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

Unified Diff: third_party/WebKit/public/web/WebFrameClient.h

Issue 2633253002: Split content script injections into multiple tasks (Closed)
Patch Set: rebase Created 3 years, 10 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: third_party/WebKit/public/web/WebFrameClient.h
diff --git a/third_party/WebKit/public/web/WebFrameClient.h b/third_party/WebKit/public/web/WebFrameClient.h
index b4b8a74a8b5c643fa364d43ab082f79f6f730e82..ef45bf732a95110e675492268393c0a1d3153597 100644
--- a/third_party/WebKit/public/web/WebFrameClient.h
+++ b/third_party/WebKit/public/web/WebFrameClient.h
@@ -397,6 +397,10 @@ class BLINK_EXPORT WebFrameClient {
virtual void runScriptsAtDocumentReady(WebLocalFrame*, bool documentIsEmpty) {
}
+ // The frame's window.onload event is about to fire. This method may delay
haraken 2017/03/02 03:54:32 Shall we drop the part of "The frame's window.onlo
Kunihiko Sakamoto 2017/03/06 09:11:06 document_idle scripts may run enough before window
+ // window.onload by incrementing LoadEventDelayCount.
+ virtual void runScriptsAtDocumentIdle(WebLocalFrame*) {}
+
// The 'load' event was dispatched.
virtual void didHandleOnloadEvents(WebLocalFrame*) {}

Powered by Google App Engine
This is Rietveld 408576698