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

Unified Diff: content/renderer/mojo_bindings_controller.cc

Issue 1642283002: Deal with frame removal by content scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Last nits Created 4 years, 9 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 | « content/renderer/mojo_bindings_controller.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/mojo_bindings_controller.cc
diff --git a/content/renderer/mojo_bindings_controller.cc b/content/renderer/mojo_bindings_controller.cc
index 2214254a0341703b7680ecbb6252a3efbf756da8..84a61b2bcd98c004e54e7fbc67f6536ad200458c 100644
--- a/content/renderer/mojo_bindings_controller.cc
+++ b/content/renderer/mojo_bindings_controller.cc
@@ -71,17 +71,17 @@ void MojoBindingsController::WillReleaseScriptContext(
DestroyContextState(context);
}
-void MojoBindingsController::DidFinishDocumentLoad() {
+void MojoBindingsController::RunScriptsAtDocumentStart() {
+ CreateContextState();
+}
+
+void MojoBindingsController::RunScriptsAtDocumentReady() {
v8::HandleScope handle_scope(blink::mainThreadIsolate());
MojoContextState* state = GetContextState();
if (state)
state->Run();
}
-void MojoBindingsController::DidCreateDocumentElement() {
- CreateContextState();
-}
-
void MojoBindingsController::DidClearWindowObject() {
// NOTE: this function may be called early on twice. From the constructor
// mainWorldScriptContext() may trigger this to be called. If we are created
« no previous file with comments | « content/renderer/mojo_bindings_controller.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698