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

Unified Diff: webkit/pending/Settings.cpp

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/pending/Settings.h ('k') | webkit/tools/test_shell/test_shell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/pending/Settings.cpp
===================================================================
--- webkit/pending/Settings.cpp (revision 2301)
+++ webkit/pending/Settings.cpp (working copy)
@@ -72,6 +72,7 @@
, m_needsSiteSpecificQuirks(false)
, m_fontRenderingMode(0)
, m_usesEncodingDetector(false)
+ , m_allow_scripts_to_close_windows(false)
{
// A Frame may not have been created yet, so we initialize the AtomicString
// hash before trying to use it.
@@ -329,4 +330,9 @@
m_usesEncodingDetector = usesEncodingDetector;
}
+void Settings::setAllowScriptsToCloseWindows(bool allow_scripts_to_close_windows)
+{
+ m_allow_scripts_to_close_windows = allow_scripts_to_close_windows;
+}
+
} // namespace WebCore
« no previous file with comments | « webkit/pending/Settings.h ('k') | webkit/tools/test_shell/test_shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698