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

Unified Diff: content/browser/tab_contents/interstitial_page.cc

Issue 8773035: Content settings: allow scripts on interstitial pages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review. 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: content/browser/tab_contents/interstitial_page.cc
diff --git a/content/browser/tab_contents/interstitial_page.cc b/content/browser/tab_contents/interstitial_page.cc
index a960433e3f9a8803cff4a97360f55bd22a3ab04b..da2156b40e87f2c187c129f66f6ca7c05850999b 100644
--- a/content/browser/tab_contents/interstitial_page.cc
+++ b/content/browser/tab_contents/interstitial_page.cc
@@ -203,6 +203,8 @@ void InterstitialPage::Show() {
std::string data_url = "data:text/html;charset=utf-8," +
net::EscapePath(GetHTMLContents());
render_view_host_->NavigateToURL(GURL(data_url));
+ render_view_host_->Send(
+ new ViewMsg_SetAsInterstitial(render_view_host_->routing_id()));
notification_registrar_.Add(this,
content::NOTIFICATION_TAB_CONTENTS_DESTROYED,

Powered by Google App Engine
This is Rietveld 408576698