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

Issue 1234403005: Don't refer browser-initiated navigations to web-safe URLs to delegate. (Closed)

Created:
5 years, 5 months ago by wjmaclean
Modified:
5 years, 5 months ago
Reviewers:
Charlie Reis, lazyboy
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't refer browser-initiated navigations to web-safe URLs to delegate. In a previous CL (https://codereview.chromium.org/890183002) it was decided to refer browser-initiated navigations to the owner WebContents' delegate, on the assumption that the navigation was to a non-web-safe url (e.g. a "chrome"-scheme url). However, this change can block guest navigations to web-safe URLs just because they originated, for example, from an extension. This CL ensures that navigations to web-safe URLs are not referred to the delegate in order to allow them to succeed. BUG=488053 Committed: https://crrev.com/a03c23d32d176daf1e95cfffbfa333316e1eb1a6 Cr-Commit-Position: refs/heads/master@{#339204}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Improve comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -11 lines) Patch
M chrome/browser/apps/guest_view/web_view_browsertest.cc View 1 1 chunk +23 lines, -0 lines 0 comments Download
M extensions/browser/guest_view/web_view/web_view_guest.cc View 1 1 chunk +12 lines, -11 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 16 (6 generated)
wjmaclean
creis@ - it seems that the safest way to address this bug is in WebViewGuest ...
5 years, 5 months ago (2015-07-16 19:19:49 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1234403005/1
5 years, 5 months ago (2015-07-16 19:20:51 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 5 months ago (2015-07-16 20:29:48 UTC) #6
Charlie Reis
I'm sad that we aren't fixing the strangeness that extension navigations get branded as browser-initiated, ...
5 years, 5 months ago (2015-07-17 00:05:15 UTC) #7
wjmaclean
Updated comments as requested ... thanks for the comment suggestions, they explain things well! https://codereview.chromium.org/1234403005/diff/1/chrome/browser/apps/guest_view/web_view_browsertest.cc ...
5 years, 5 months ago (2015-07-17 01:29:46 UTC) #8
lazyboy
lgtm
5 years, 5 months ago (2015-07-17 01:44:24 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1234403005/20001
5 years, 5 months ago (2015-07-17 01:46:32 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 5 months ago (2015-07-17 02:37:43 UTC) #14
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/a03c23d32d176daf1e95cfffbfa333316e1eb1a6 Cr-Commit-Position: refs/heads/master@{#339204}
5 years, 5 months ago (2015-07-17 02:38:47 UTC) #15
wjmaclean
5 years, 3 months ago (2015-09-16 20:15:46 UTC) #16
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/1350893002/ by wjmaclean@chromium.org.

The reason for reverting is: Since this CL was landed something has changed that
causes clinking on links in the PDF viewer (embedded inside another WebView,
e.g. the Chrome app "Browser Sample") to open in the wrong window, or in the
case of "Open in a new tab", not be opened at all.

Reverting this CL fixes
https://code.google.com/p/chromium/issues/detail?id=529187 and
https://code.google.com/p/chromium/issues/detail?id=521573

A new bug has been filed to capture the error where the links are not opened in
the correct target window:

https://code.google.com/p/chromium/issues/detail?id=532621

.

Powered by Google App Engine
This is Rietveld 408576698