Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(475)

Issue 2905293002: Ensure the renderer doesn't specify base_url_for_data_url in the BeginNavigation IPC. (Closed)

Created:
3 years, 7 months ago by nasko
Modified:
3 years, 6 months ago
Reviewers:
Charlie Reis, jam
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, asvitkine+watch_chromium.org, creis+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Ensure the renderer doesn't specify base_url_for_data_url in the BeginNavigation IPC. This should only be set by browser-initiated navigations. BUG=726142 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2905293002 Cr-Commit-Position: refs/heads/master@{#475043} Committed: https://chromium.googlesource.com/chromium/src/+/1a1392222a9b97ffbaa77f3beee093fc81e655ff

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -0 lines) Patch
M content/browser/bad_message.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/browser_side_navigation_browsertest.cc View 3 chunks +43 lines, -0 lines 1 comment Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 chunk +5 lines, -0 lines 1 comment Download
M tools/metrics/histograms/enums.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 15 (9 generated)
nasko
This CL just adds a test on top of https://codereview.chromium.org/2905043004/.
3 years, 7 months ago (2017-05-26 16:26:36 UTC) #5
jam
lgtm lgtm, thanks!
3 years, 7 months ago (2017-05-26 16:29:34 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2905293002/1
3 years, 7 months ago (2017-05-26 16:30:11 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/1a1392222a9b97ffbaa77f3beee093fc81e655ff
3 years, 7 months ago (2017-05-26 17:30:34 UTC) #12
Charlie Reis
https://codereview.chromium.org/2905293002/diff/1/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2905293002/diff/1/content/browser/frame_host/render_frame_host_impl.cc#newcode2191 content/browser/frame_host/render_frame_host_impl.cc:2191: GetProcess(), bad_message::RFH_BASE_URL_FOR_DATA_URL_SPECIFIED); This needs a return statement, or we'll ...
3 years, 6 months ago (2017-05-30 20:41:48 UTC) #14
Charlie Reis
3 years, 6 months ago (2017-05-30 20:49:09 UTC) #15
Message was sent while issue was closed.
https://codereview.chromium.org/2905293002/diff/1/content/browser/browser_sid...
File content/browser/browser_side_navigation_browsertest.cc (right):

https://codereview.chromium.org/2905293002/diff/1/content/browser/browser_sid...
content/browser/browser_side_navigation_browsertest.cc:465:
process_exit_observer.Wait();
We should add a case to this test where the tab is reloaded and the renderer
tries to navigate to something illegal in base_url_for_data_url.  It looks like
the request will still succeed due to the early return, when it shouldn't.

Powered by Google App Engine
This is Rietveld 408576698