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 4741cd84d86d1c23dae5217c870f54114f3b428e..09ca836845f7489e6314d4cf762dd12355920dd3 100644 |
--- a/third_party/WebKit/public/web/WebFrameClient.h |
+++ b/third_party/WebKit/public/web/WebFrameClient.h |
@@ -298,8 +298,13 @@ public: |
virtual void didClearWindowObject(WebLocalFrame* frame) { } |
// The document element has been created. |
+ // This method may not invalidate the frame, nor execute JavaScript code. |
virtual void didCreateDocumentElement(WebLocalFrame*) { } |
+ // Like |didCreateDocumentElement|, except this method may run JavaScript |
+ // code (and possibly invalidate the frame). |
+ virtual void runScriptsAtDocumentElementAvailable(WebLocalFrame*) { } |
+ |
// The page title is available. |
virtual void didReceiveTitle(WebLocalFrame* frame, const WebString& title, WebTextDirection direction) { } |
@@ -307,8 +312,13 @@ public: |
virtual void didChangeIcon(WebLocalFrame*, WebIconURL::Type) { } |
// The frame's document finished loading. |
+ // This method may not execute JavaScript code. |
virtual void didFinishDocumentLoad(WebLocalFrame*, bool documentIsEmpty) { } |
+ // Like |didFinishDocumentLoad|, except this method may run JavaScript |
+ // code (and possibly invalidate the frame). |
+ virtual void runScriptsAtDocumentReady(WebLocalFrame*) { } |
+ |
// The 'load' event was dispatched. |
virtual void didHandleOnloadEvents(WebLocalFrame*) { } |