Bug 160323 - window.open.length should be 0
Summary: window.open.length should be 0
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: WebExposed
Depends on:
Blocks:
 
Reported: 2016-07-28 15:54 PDT by Chris Dumez
Modified: 2016-07-28 16:30 PDT (History)
8 users (show)

See Also:


Attachments
Patch (7.18 KB, patch)
2016-07-28 15:58 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2016-07-28 15:54:28 PDT
window.open.length should be 0 as all its parameters are optional:
- https://html.spec.whatwg.org/multipage/browsers.html#the-window-object

It is 2 in WebKit. Firefox and Chrome agree with the specification and return 0.
Comment 1 Chris Dumez 2016-07-28 15:58:06 PDT
Created attachment 284826 [details]
Patch
Comment 2 WebKit Commit Bot 2016-07-28 16:30:51 PDT
Comment on attachment 284826 [details]
Patch

Clearing flags on attachment: 284826

Committed r203849: <http://trac.webkit.org/changeset/203849>
Comment 3 WebKit Commit Bot 2016-07-28 16:30:56 PDT
All reviewed patches have been landed.  Closing bug.