[Webkit-unassigned] [Bug 220855] New: [WebIDL] namespace objects should be objects, not functions (affects CSS object)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 22 02:54:15 PST 2021


https://bugs.webkit.org/show_bug.cgi?id=220855

            Bug ID: 220855
           Summary: [WebIDL] namespace objects should be objects, not
                    functions (affects CSS object)
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Bindings
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: philip at foolip.org
                CC: cdumez at apple.com

Unlike interface objects, Web IDL namespace objects should be plain objects, not functions. Confirmed with the spec editors here:
https://github.com/heycam/webidl/issues/949

There are currently 3 namespace objects on the web: CSS, console and WebAssembly. CSS is currently a function in WebKit, and there's a failing idlharness.js test because of this, called 'CSS namespace: typeof is "object"':
https://wpt.fyi/results/css/cssom/idlharness.html?q=safari%3Afail&run_id=5750044512747520&run_id=5673650978029568&run_id=5657341938630656

However, the same test for console is passing in all browsers:
https://wpt.fyi/results/console/idlharness.any.html?run_id=5750044512747520&run_id=5673650978029568&run_id=5657341938630656

I can't find the test for WebAssembly, but it's an object as it should be.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210122/122a8c84/attachment.htm>


More information about the webkit-unassigned mailing list