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

Unified Diff: webkit/glue/webview_impl.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/glue/webpreferences.h ('k') | webkit/pending/DOMWindow.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webview_impl.cc
===================================================================
--- webkit/glue/webview_impl.cc (revision 2301)
+++ webkit/glue/webview_impl.cc (working copy)
@@ -1106,6 +1106,8 @@
preferences.shrinks_standalone_images_to_fit);
settings->setUsesUniversalDetector(preferences.uses_universal_detector);
settings->setTextAreasAreResizable(preferences.text_areas_are_resizable);
+ settings->setAllowScriptsToCloseWindows(
+ preferences.allow_scripts_to_close_windows);
if (preferences.user_style_sheet_enabled) {
settings->setUserStyleSheetLocation(webkit_glue::GURLToKURL(
preferences.user_style_sheet_location));
« no previous file with comments | « webkit/glue/webpreferences.h ('k') | webkit/pending/DOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698