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

Unified Diff: chrome/renderer/content_settings_observer.cc

Issue 8889008: Revert 113579 - Content settings: allow scripts on interstitial pages even if JavaScript is blocked. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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
Index: chrome/renderer/content_settings_observer.cc
===================================================================
--- chrome/renderer/content_settings_observer.cc (revision 113590)
+++ chrome/renderer/content_settings_observer.cc (working copy)
@@ -68,8 +68,7 @@
: content::RenderViewObserver(render_view),
content::RenderViewObserverTracker<ContentSettingsObserver>(render_view),
content_setting_rules_(NULL),
- plugins_temporarily_allowed_(false),
- is_interstitial_page_(false) {
+ plugins_temporarily_allowed_(false) {
ClearBlockedContentSettings();
}
@@ -163,8 +162,6 @@
bool ContentSettingsObserver::AllowImage(WebFrame* frame,
bool enabled_per_settings,
const WebURL& image_url) {
- if (is_interstitial_page_)
- return true;
if (IsWhitelistedForContentSettings(frame))
return true;
@@ -203,8 +200,6 @@
bool ContentSettingsObserver::AllowScript(WebFrame* frame,
bool enabled_per_settings) {
- if (is_interstitial_page_)
- return true;
if (!enabled_per_settings)
return false;
@@ -234,8 +229,6 @@
WebFrame* frame,
bool enabled_per_settings,
const WebKit::WebURL& script_url) {
- if (is_interstitial_page_)
- return true;
if (!enabled_per_settings)
return false;
@@ -279,10 +272,6 @@
DidBlockContentType(CONTENT_SETTINGS_TYPE_JAVASCRIPT, std::string());
}
-void ContentSettingsObserver::SetAsInterstitial() {
- is_interstitial_page_ = true;
-}
-
void ContentSettingsObserver::OnLoadBlockedPlugins() {
plugins_temporarily_allowed_ = true;
}
« no previous file with comments | « chrome/renderer/content_settings_observer.h ('k') | chrome/renderer/content_settings_observer_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698