Bug 108802 - Web Inspector: window.close() from console doesn't work
Summary: Web Inspector: window.close() from console doesn't work
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-04 01:01 PST by Vivek Galatage
Modified: 2014-12-13 13:48 PST (History)
9 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vivek Galatage 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.
Comment 1 Brian Burg 2014-12-13 13:48:24 PST
Current warning is now "Can't close the window since it was not opened by JavaScript".