Bug 108802
Summary: | Web Inspector: window.close() from console doesn't work | ||
---|---|---|---|
Product: | WebKit | Reporter: | Vivek Galatage <vivekg> |
Component: | Web Inspector (Deprecated) | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | apavlov, burg, keishi, loislo, pfeldman, pmuellr, vsevik, web-inspector-bugs, yurys |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All |
Vivek Galatage
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
Current warning is now "Can't close the window since it was not opened by JavaScript".