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

Issue 2766313002: Allow webview guests to skip WAR checks in ShouldAllowOpenURL. (Closed)

Created:
3 years, 9 months ago by alexmos
Modified:
3 years, 9 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow webview guests to skip WAR checks in ShouldAllowOpenURL. Prior to r429532, the web-accessible resource checks in ShouldAllowOpenURL were skipped for all schemes other than HTTP/HTTPS/chrome-extension. After r429532, we've started enforcing them for most other schemes, but this breaks navigations from webview guests to webview-accessible app resources whenever those go through the OpenURL path, since the webview-accessible resource check is done separately later, in AllowCrossRendererResourceLoadHelper, and ShouldAllowOpenURL was killing the navigation before it ever got there. This CL will return webview guests to the previous behavior. BUG=691941 Review-Url: https://codereview.chromium.org/2766313002 Cr-Commit-Position: refs/heads/master@{#458959} Committed: https://chromium.googlesource.com/chromium/src/+/f89e04046aaac44ecad27056fb856c3d6e37370f

Patch Set 1 #

Total comments: 8

Patch Set 2 : lazyboy@'s comments #

Patch Set 3 : Devlin's comments #

Messages

Total messages: 25 (16 generated)
alexmos
Nick, can you please take a look? I kept this simple so it's easier to ...
3 years, 9 months ago (2017-03-22 21:16:42 UTC) #6
ncarter (slow)
lgtm
3 years, 9 months ago (2017-03-22 21:19:26 UTC) #7
alexmos
Thanks! Adding OWNERS: - Devlin for chrome_content_browser_client_extensions_part.cc - lazyboy@ for the webview test
3 years, 9 months ago (2017-03-22 21:24:25 UTC) #9
lazyboy
webview tests lgtm. https://codereview.chromium.org/2766313002/diff/1/chrome/test/data/extensions/platform_apps/web_view/load_webview_accessible_resource/embedder.js File chrome/test/data/extensions/platform_apps/web_view/load_webview_accessible_resource/embedder.js (right): https://codereview.chromium.org/2766313002/diff/1/chrome/test/data/extensions/platform_apps/web_view/load_webview_accessible_resource/embedder.js#newcode42 chrome/test/data/extensions/platform_apps/web_view/load_webview_accessible_resource/embedder.js:42: if (didReload) { nit: I think ...
3 years, 9 months ago (2017-03-22 21:54:03 UTC) #10
Devlin
You also wrote in the bug: > it seems like we were allowing all app ...
3 years, 9 months ago (2017-03-22 21:58:57 UTC) #11
alexmos
Thanks! Responses below. On 2017/03/22 21:58:57, Devlin wrote: > You also wrote in the bug: ...
3 years, 9 months ago (2017-03-22 23:56:39 UTC) #16
Devlin
lgtm
3 years, 9 months ago (2017-03-23 00:00:09 UTC) #17
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/2766313002/40001
3 years, 9 months ago (2017-03-23 00:12:57 UTC) #22
commit-bot: I haz the power
3 years, 9 months ago (2017-03-23 00:47:33 UTC) #25
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/f89e04046aaac44ecad27056fb85...

Powered by Google App Engine
This is Rietveld 408576698