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

Unified Diff: chrome/renderer/content_settings_observer.cc

Issue 10412053: Whitelist unreachable webdata pages for content settings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 8 years, 7 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 | content/public/common/url_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/content_settings_observer.cc
diff --git a/chrome/renderer/content_settings_observer.cc b/chrome/renderer/content_settings_observer.cc
index fea2747a4fa9b11a3dcdf016b77f12605a785dba..8c2493b14c0d57ba4c2a440de78b1a0f10fd783f 100644
--- a/chrome/renderer/content_settings_observer.cc
+++ b/chrome/renderer/content_settings_observer.cc
@@ -319,6 +319,9 @@ bool ContentSettingsObserver::IsWhitelistedForContentSettings(WebFrame* frame) {
bool ContentSettingsObserver::IsWhitelistedForContentSettings(
const WebSecurityOrigin& origin,
const GURL& document_url) {
+ if (document_url == GURL(content::kUnreachableWebDataURL))
+ return true;
+
if (origin.isUnique())
return false; // Uninitialized document?
« no previous file with comments | « no previous file | content/public/common/url_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698