Skip to content

Commit

Permalink
interface: use Web IDL's new-ish interface mixins concept (#1176)
Browse files Browse the repository at this point in the history
WebIDL recently introduced dedicated syntax for mixins [1]. This
replaces the existing [NoInterfaceObject] and "implements" syntax with
"interface mixin" and "includes" in the appropriate places.

Fixes: #1140
Test: web-platform-tests/wpt#8770
  • Loading branch information
romandev authored and andreastt committed Dec 21, 2017
1 parent 06d2e5d commit d50bdf0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions webdriver-spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -740,12 +740,11 @@ <h2 data-dfn-for="NavigatorAutomationInformation">Interface</h2>
the user agent must support <dfn>NavigatorAutomationInformation</dfn> interface:

<pre class=idl>
Navigator implements NavigatorAutomationInformation;
Navigator includes NavigatorAutomationInformation;
</pre>

<pre class=idl>
[NoInterfaceObject, Exposed=(Window)]
interface NavigatorAutomationInformation {
interface mixin NavigatorAutomationInformation {
readonly attribute boolean webdriver; // always returns true
};
</pre>
Expand Down

0 comments on commit d50bdf0

Please sign in to comment.