Skip to content

Commit

Permalink
Use interface mixins instead of [NoInterfaceObject]
Browse files Browse the repository at this point in the history
WebIDL recently introduced dedicated syntax for mixins[1]. So, we can
replace `[NoInterfaceObject]` and `implements` with `interface mixin` and
`includes`.

This following interface is impacted by this change:
  - NavigatorStorage

This fixes whatwg#53 issue.

[1] whatwg/webidl@45e8173
  • Loading branch information
romandev committed Dec 15, 2017
1 parent 0ecf0dd commit 14a891c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions storage.bs
Original file line number Diff line number Diff line change
Expand Up @@ -221,14 +221,12 @@ user agent should alert the user and offer a way to clear <a>persistent buckets<
<h2 id=api>API</h2>

<pre class=idl>
[SecureContext,
NoInterfaceObject,
Exposed=(Window,Worker)]
interface NavigatorStorage {
[SecureContext]
interface mixin NavigatorStorage {
readonly attribute StorageManager storage;
};
Navigator implements NavigatorStorage;
WorkerNavigator implements NavigatorStorage;
Navigator includes NavigatorStorage;
WorkerNavigator includes NavigatorStorage;
</pre>

Each <a>environment settings object</a> has an associated {{StorageManager}} object.
Expand Down

0 comments on commit 14a891c

Please sign in to comment.