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

Unified Diff: content/browser/webui/web_ui_message_handler.cc

Issue 2041993002: WebUI: Fix lifecycle-bug when RenderFrameHost is swapped out (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
Index: content/browser/webui/web_ui_message_handler.cc
diff --git a/content/browser/webui/web_ui_message_handler.cc b/content/browser/webui/web_ui_message_handler.cc
index 56e0adcbbaa7a1919749123f767746c17f0069fa..744dbba5f17eb2d7ceecb5b3d8ade7ffabaa1392 100644
--- a/content/browser/webui/web_ui_message_handler.cc
+++ b/content/browser/webui/web_ui_message_handler.cc
@@ -73,4 +73,8 @@ void WebUIMessageHandler::RenderViewReused() {
DisallowJavascript();
}
+void WebUIMessageHandler::RenderFrameHostSwappingOut() {
+ DisallowJavascript();
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698