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

Unified Diff: extensions/renderer/dispatcher.cc

Issue 1332563006: Allow 'chrome-extension:' URLs to bypass content settings (2/2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/dispatcher.cc
diff --git a/extensions/renderer/dispatcher.cc b/extensions/renderer/dispatcher.cc
index a9186347776415b6c29901c0c7515875485251fb..8343468b59c91d8af1cbfdd1dd7117d79f03ef34 100644
--- a/extensions/renderer/dispatcher.cc
+++ b/extensions/renderer/dispatcher.cc
@@ -876,6 +876,9 @@ void Dispatcher::WebKitInitialized() {
// Extension resources are HTTP-like and safe to expose to the fetch API.
// The rules for the fetch API are consistent with XHR.
WebSecurityPolicy::registerURLSchemeAsSupportingFetchAPI,
+ // Extension resources, when loaded as the top-level document, should
+ // bypass Blink's strict first-party origin checks.
+ WebSecurityPolicy::registerURLSchemeAsFirstPartyWhenTopLevel,
};
WebString extension_scheme(base::ASCIIToUTF16(kExtensionScheme));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698