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

Issue 2486843003: Allow navigations to non-web-accessible resources from chrome schemes. (Closed)

Created:
4 years, 1 month ago by alexmos
Modified:
4 years, 1 month ago
Reviewers:
Devlin, ncarter (slow)
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, site-isolation-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow navigations to non-web-accessible resources from chrome schemes. Recent fixes for web accessible resource checks in ShouldAllowOpenURL (https://codereview.chromium.org/2454563003) removed the free pass that non-HTTP(S) and non-extensions schemes used to have to load non-web-accessible resources. However, data gathered in that CL showed that this is breaking navigations from NTP pages (e.g., if an extensions page appears on the recent tiles) and chrome://history when clicking on an extensions page. To fix these, this CL relaxes the rules in ShouldAllowOpenURL to allow chrome:// and chrome-search:// pages to navigate to non-WAR extension pages. BUG=662602 Committed: https://crrev.com/cf5145bb7919c53d6866829a0f4fa7f2af0b7ca4 Cr-Commit-Position: refs/heads/master@{#431074}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Review comments from Nick and Devlin #

Patch Set 3 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -7 lines) Patch
M chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc View 1 2 3 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/extensions/window_open_apitest.cc View 1 4 chunks +43 lines, -7 lines 0 comments Download

Messages

Total messages: 23 (13 generated)
alexmos
Devlin, Nick - can you please take a look? I checked that the NTP extension ...
4 years, 1 month ago (2016-11-09 18:32:31 UTC) #6
ncarter (slow)
https://codereview.chromium.org/2486843003/diff/1/chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc File chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc (right): https://codereview.chromium.org/2486843003/diff/1/chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc#newcode539 chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc:539: site_url.SchemeIs(chrome::kChromeSearchScheme)) { Are we sure we want to allow ...
4 years, 1 month ago (2016-11-09 18:44:21 UTC) #7
ncarter (slow)
Given that filesystem URLs can appear in history, I think a blanket relaxation is probably ...
4 years, 1 month ago (2016-11-09 19:10:15 UTC) #8
Devlin
lgtm Something else I thought of: we allow extensions to override ntp, bookmarks, etc. It's ...
4 years, 1 month ago (2016-11-09 21:54:43 UTC) #9
alexmos
On 2016/11/09 19:10:15, ncarter wrote: > Given that filesystem URLs can appear in history, I ...
4 years, 1 month ago (2016-11-09 21:59:50 UTC) #10
alexmos
Thanks for reviewing! https://codereview.chromium.org/2486843003/diff/1/chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc File chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc (right): https://codereview.chromium.org/2486843003/diff/1/chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc#newcode539 chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc:539: site_url.SchemeIs(chrome::kChromeSearchScheme)) { On 2016/11/09 18:44:21, ncarter ...
4 years, 1 month ago (2016-11-09 22:20:31 UTC) #15
ncarter (slow)
lgtm
4 years, 1 month ago (2016-11-09 22:24:07 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/2486843003/40001
4 years, 1 month ago (2016-11-09 22:42:42 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-09 23:20:18 UTC) #21
commit-bot: I haz the power
4 years, 1 month ago (2016-11-09 23:27:49 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/cf5145bb7919c53d6866829a0f4fa7f2af0b7ca4
Cr-Commit-Position: refs/heads/master@{#431074}

Powered by Google App Engine
This is Rietveld 408576698