Index: third_party/WebKit/Source/core/page/Page.cpp |
diff --git a/third_party/WebKit/Source/core/page/Page.cpp b/third_party/WebKit/Source/core/page/Page.cpp |
index 38312cd3c29afc2b7f6c141751959ee6839aef00..4a083020409fba2b7999b1c52cfb1bf00e5c6589 100644 |
--- a/third_party/WebKit/Source/core/page/Page.cpp |
+++ b/third_party/WebKit/Source/core/page/Page.cpp |
@@ -253,9 +253,16 @@ |
main_frame_ = main_frame; |
} |
+void Page::WillUnloadDocument(const Document& document) { |
+ if (validation_message_client_) |
+ validation_message_client_->WillUnloadDocument(document); |
+} |
+ |
void Page::DocumentDetached(Document* document) { |
pointer_lock_controller_->DocumentDetached(document); |
context_menu_controller_->DocumentDetached(document); |
+ if (validation_message_client_) |
+ validation_message_client_->DocumentDetached(*document); |
hosts_using_features_.DocumentDetached(*document); |
} |