summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/test_webview_delegate.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/tools/test_shell/test_webview_delegate.cc')
-rw-r--r--webkit/tools/test_shell/test_webview_delegate.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/webkit/tools/test_shell/test_webview_delegate.cc b/webkit/tools/test_shell/test_webview_delegate.cc
index 9711aa4..f7cc828 100644
--- a/webkit/tools/test_shell/test_webview_delegate.cc
+++ b/webkit/tools/test_shell/test_webview_delegate.cc
@@ -336,6 +336,12 @@ void TestWebViewDelegate::DidFinishDocumentLoadForFrame(WebView* webview,
if (shell_->ShouldDumpFrameLoadCallbacks()) {
printf("%S - didFinishDocumentLoadForFrame\n",
GetFrameDescription(frame).c_str());
+ } else {
+ unsigned pending_unload_events = frame->PendingFrameUnloadEventCount();
+ if (pending_unload_events) {
+ printf("%S - has %u onunload handler(s)\n",
+ GetFrameDescription(frame).c_str(), pending_unload_events);
+ }
}
}
@@ -655,12 +661,6 @@ void TestWebViewDelegate::SetUserStyleSheetLocation(const GURL& location) {
shell_->webView()->SetPreferences(*prefs);
}
-void TestWebViewDelegate::SetDashboardCompatibilityMode(bool use_mode) {
- WebPreferences* prefs = shell_->GetWebPreferences();
- prefs->dashboard_compatibility_mode = use_mode;
- shell_->webView()->SetPreferences(*prefs);
-}
-
// WebWidgetDelegate ---------------------------------------------------------
HWND TestWebViewDelegate::GetContainingWindow(WebWidget* webwidget) {