Summary: | Expose Window constructor | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Erik Arvidsson <arv> | ||||
Component: | DOM | Assignee: | Erik Arvidsson <arv> | ||||
Status: | RESOLVED CONFIGURATION CHANGED | ||||||
Severity: | Normal | CC: | abarth, ahmad.saleem792, ap, bfulgham, ian, ossy, rniwa, sam, webkit-bug-importer, webkit.review.bot | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
URL: | http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#the-window-objecthttp://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#the-window-object | ||||||
Attachments: |
|
Description
Erik Arvidsson
2012-02-15 10:18:15 PST
Constructor? You mean prototype object, right? Window shouldn't be a constructor. (In reply to comment #1) > Constructor? You mean prototype object, right? Window shouldn't be a constructor. No. I mean constructor. It is not constructable but it is still a constructor. Just like Document and HTMLDocument are exposed. IE and Mozilla pass the following assertTrue(typeof Window !== 'undefined'); Created attachment 127211 [details]
Patch
Comment on attachment 127211 [details] Patch Clearing flags on attachment: 127211 Committed r107869: <http://trac.webkit.org/changeset/107869> All reviewed patches have been landed. Closing bug. Reopen, because it broke 3 tests on Qt. I assume that on other platforms too, but unfortunately I can't check it, because build.webkit.org is unavailable. - fast/dom/Window/window-properties.html - http://build.webkit.sed.hu/results/x86-64%20Linux%20Qt%20Release/r107900%20%2833816%29/fast/dom/Window/window-properties-pretty-diff.html - fast/dom/Window/window-property-descriptors.html - http://build.webkit.sed.hu/results/x86-64%20Linux%20Qt%20Release/r107900%20(33816)/fast/dom/Window/window-property-descriptors-pretty-diff.html - fast/js/global-constructors.html - http://build.webkit.sed.hu/results/x86-64%20Linux%20Qt%20Release/r107900%20%2833816%29/fast/js/global-constructors-pretty-diff.html I think the first two tests only needs to be rebaselined. But the third one seems an error: +FAIL Window.toString() should be [object WindowConstructor]. Was [object DOMWindowConstructor]. I updated the 3 tests on Qt - http://trac.webkit.org/changeset/107916 Please check what should we do with the 3rd failing test. Sorry about that. These tests where in the test_expectation.txt for chromium. I should have realized it would change the expectations for JSC based platforms. (In reply to comment #7) > I updated the 3 tests on Qt - http://trac.webkit.org/changeset/107916 > Please check what should we do with the 3rd failing test. The FAIL in global-constructors-expected.txt is bug 78721 The changes to the Skipped file seems unrelated though. From WPT - Safari passes all "window constructor" events, do we need anything further? https://wpt.fyi/results/dom/events?label=master&label=experimental&aligned&q=constructor Please ignore my comment, if I incorrect or wrong and update latest status accordingly. Thanks! We have window.Window now. |