WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
22070
Add an option to allow scripts to close windows.
https://bugs.webkit.org/show_bug.cgi?id=22070
Summary
Add an option to allow scripts to close windows.
Zachary Kuznia
Reported
2008-11-04 15:25:48 PST
This is a useful option for automated testing. It allows you to set up test pages that clean up after themselves when they're done.
Attachments
Patch to implement this feature
(3.08 KB, patch)
2008-11-04 15:27 PST
,
Zachary Kuznia
eric
: review-
Details
Formatted Diff
Diff
Patch to implement this feature
(3.05 KB, patch)
2008-11-25 16:44 PST
,
Zachary Kuznia
sam
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Zachary Kuznia
Comment 1
2008-11-04 15:27:10 PST
Created
attachment 24900
[details]
Patch to implement this feature
Eric Seidel (no email)
Comment 2
2008-11-25 16:12:48 PST
Comment on
attachment 24900
[details]
Patch to implement this feature The patch looks fine in general, but the variable names don't follow WebKit's style guidelines:
http://webkit.org/coding/coding-style.html
Zachary Kuznia
Comment 3
2008-11-25 16:44:24 PST
Created
attachment 25513
[details]
Patch to implement this feature Fixed the variable names to be CamelCase
Sam Weinig
Comment 4
2008-11-25 19:44:02 PST
Comment on
attachment 25513
[details]
Patch to implement this feature
> + bool allowScriptsToCloseWindows = > + (settings && settings->allowScriptsToCloseWindows());
No reason to put these on two lines.
> @@ -232,6 +235,7 @@ namespace WebCore { > bool m_zoomsTextOnly : 1; > bool m_enforceCSSMIMETypeInStrictMode : 1; > size_t m_maximumDecodedImageSize; > + bool m_allowScriptsToCloseWindows : 1;
If you move this bool up one place, it will not cause unnessary bloating of the object. This patch looks fine, but it is not hooked up to anything. Usually when we expose a new setting, we hook it up to the WebPreferences API (or probably SPI in this case) in WebKit. r- since this really won't do anything on its own.
Sam Weinig
Comment 5
2008-12-23 13:45:46 PST
Comment on
attachment 25513
[details]
Patch to implement this feature I am reversing my decision here. It is a little odd to add a new setting without adding WebKit SPI to do something with it, and I would rather you did, but it is not strictly necessary.
Darin Fisher (:fishd, Google)
Comment 6
2009-01-28 11:19:50 PST
http://trac.webkit.org/changeset/40315
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug