[Webkit-unassigned] [Bug 23634] New: Synchronize window.close() policy with HTML 5
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jan 29 18:57:48 PST 2009
https://bugs.webkit.org/show_bug.cgi?id=23634
Summary: Synchronize window.close() policy with HTML 5
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: abarth at webkit.org
CC: beidson at apple.com, abarth at webkit.org,
skylined at chromium.org
Spun off from Bug 20661. We should match HTML5's policy for window.close():
"The close() method on Window objects should, if the corresponding browsing
context A is an auxiliary browsing context that was created by a script (as
opposed to by an action of the user), and if the browsing context of the script
that invokes the method is allowed to navigate the browsing context A, close
the browsing context A (and may discard it too)."
http://www.whatwg.org/specs/web-apps/current-work/#dom-window-close
Here is Firefox's implementation:
http://mxr.mozilla.org/mozilla-central/source/dom/src/base/nsGlobalWindow.cpp#5348
Here is our implementation:
http://trac.webkit.org/browser/trunk/WebCore/page/DOMWindow.cpp#L447
The main goofy thing we do is that we allow window.close() if
|| m_frame->loader()->getHistoryLength() <= 1
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list