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

Unified Diff: webkit/tools/test_shell/test_shell.cc

Issue 2915: Add a new switch: --allow-scripts-to-close-windows.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 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 | « webkit/tools/test_shell/test_shell.h ('k') | webkit/tools/test_shell/test_shell_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/test_shell.cc
===================================================================
--- webkit/tools/test_shell/test_shell.cc (revision 2301)
+++ webkit/tools/test_shell/test_shell.cc (working copy)
@@ -203,6 +203,12 @@
}
// static
+void TestShell::SetAllowScriptsToCloseWindows() {
+ if (web_prefs_)
+ web_prefs_->allow_scripts_to_close_windows = true;
+}
+
+// static
void TestShell::InitializeTestShell(bool interactive) {
// Start COM stuff.
HRESULT res = OleInitialize(NULL);
@@ -244,6 +250,7 @@
web_prefs_->user_agent = webkit_glue::GetDefaultUserAgent();
web_prefs_->dashboard_compatibility_mode = false;
web_prefs_->java_enabled = true;
+ web_prefs_->allow_scripts_to_close_windows = false;
}
}
« no previous file with comments | « webkit/tools/test_shell/test_shell.h ('k') | webkit/tools/test_shell/test_shell_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698