[Webkit-unassigned] [Bug 179249] New: [WebIDL] add support for mixins

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 3 11:24:37 PDT 2017


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

            Bug ID: 179249
           Summary: [WebIDL] add support for mixins
           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: tobie.langel at gmail.com
                CC: cdumez at apple.com

Hi all!

WebIDL recently introduced dedicated syntax for mixins[0].

This syntax replaces the [NoInterfaceObject] extended attribute and "implements statement" which have been deprecated (except for a few legacy uses cases explicitly mentioned in the spec[1]).

You can read more about it in the spec[2].

In most cases, the changes should be relatively straightforward. The now deprecated:

    interface Foo { };

    [NoInterfaceObject]  // (Mostly) DEPRECATED
    interface Bar { };
    Foo implementes Bar; // DEPRECATED


should just be rewritten as:

    interface Foo { };

    interface mixin Bar { };
    Foo includes Bar;

Please feel free to reach out if you have any questions.

Thanks!

[0]: https://github.com/heycam/webidl/commit/45e8173d40ddff8dcf81697326e094bcf8b92920
[1]: https://heycam.github.io/webidl/#NoInterfaceObject
[2]: https://heycam.github.io/webidl/#idl-interface-mixins

This is tracked in: https://github.com/heycam/webidl/issues/472
The original pull-request: https://github.com/heycam/webidl/pull/433

-- 
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/20171103/dc6912fc/attachment.html>


More information about the webkit-unassigned mailing list