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

Issue 2884123002: PlzNavigate: blocked browser-initiated navigations should transfer processes sometimes (Closed)

Created:
3 years, 7 months ago by ncarter (slow)
Modified:
3 years, 7 months ago
Reviewers:
Charlie Reis, nasko
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org, alexmos, site-isolation-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

PlzNavigate: don't reuse current_frame_host() for error pages if the navigation is browser-initiated. The "stay in current process to prevent privilege escalation" strategy is only valid when the navigation was initiated by that process. (As an aside, it is worth pointing out that current_frame_host is not necessarily the initiator process.) This change prevents a CheckWebUIRendererDoesNotDisplayNormalURL browser crash in the scenario where the current page is chrome://settings, and the user types in an URL that happens to be blocked by a NavigationThrottle. This scenario starts being possible once ExtensionNavigationThrottle starts doing more aggressive blocking of top-level navigations. BUG=661324 TEST=ToolbarModelTest.ShouldDisplayURL CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2884123002 Cr-Commit-Position: refs/heads/master@{#472303} Committed: https://chromium.googlesource.com/chromium/src/+/1c2f3f0b21b2e0eefe0e76e5f519a30970933202

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fix test. #

Patch Set 3 : Rewrite comment paragram. #

Patch Set 4 : Phrasing. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -13 lines) Patch
M content/browser/frame_host/navigation_handle_impl_browsertest.cc View 1 1 chunk +56 lines, -2 lines 0 comments Download
M content/browser/frame_host/navigation_request.cc View 1 2 3 1 chunk +16 lines, -11 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 22 (14 generated)
ncarter (slow)
nasko or charlie, please review
3 years, 7 months ago (2017-05-15 23:49:56 UTC) #6
Charlie Reis
[+alexmos to CC] Makes sense-- in a browser-initiated case, the current page wasn't trying to ...
3 years, 7 months ago (2017-05-16 00:04:27 UTC) #7
ncarter (slow)
PTAL. I fixed the test and rewrote the comment.
3 years, 7 months ago (2017-05-16 20:06:59 UTC) #10
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/2884123002/60001
3 years, 7 months ago (2017-05-16 20:08:49 UTC) #13
Charlie Reis
Thanks! LGTM.
3 years, 7 months ago (2017-05-16 20:41:08 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/295404) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 7 months ago (2017-05-16 21:53:37 UTC) #16
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/2884123002/60001
3 years, 7 months ago (2017-05-16 22:07:30 UTC) #18
commit-bot: I haz the power
3 years, 7 months ago (2017-05-17 03:35:34 UTC) #22
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/1c2f3f0b21b2e0eefe0e76e5f519...

Powered by Google App Engine
This is Rietveld 408576698