WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 108802
Web Inspector: window.close() from console doesn't work
https://bugs.webkit.org/show_bug.cgi?id=108802
Summary
Web Inspector: window.close() from console doesn't work
Vivek Galatage
Reported
2013-02-04 01:01:52 PST
Steps: 1. Open a new tab 2. Open devtools/inspector and switch to Console panel 3. Issue "window.close();" and enter 4. See that the window is closed 5. Open a new tab again and this time enter some URL in it 6. Now again after opening devtools/inspector, issue "window.close();" Expected result: Newly opened tab should close or should show warning message if its not allowed to be closed. (the later case is seen with firebug where it throws the warning) Actual result: The page wont close and without any warning.
Attachments
Add attachment
proposed patch, testcase, etc.
Brian Burg
Comment 1
2014-12-13 13:48:24 PST
Current warning is now "Can't close the window since it was not opened by JavaScript".
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