forked from mirrors/gecko-dev
<!-- Please describe your changes on the following line: --> r? @jdm --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [X] These changes do not require tests because refactor <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Source-Repo: https://github.com/servo/servo Source-Revision: 83f687a7be2d4cdda11f5ec03133c23d6d621e78
24 lines
954 B
Text
24 lines
954 B
Text
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
// https://w3c.github.io/ServiceWorker/#extendablemessage-event-section
|
|
|
|
[Constructor(DOMString type, optional ExtendableMessageEventInit eventInitDict),
|
|
Exposed=ServiceWorker,
|
|
Pref="dom.serviceworker.enabled"]
|
|
interface ExtendableMessageEvent : ExtendableEvent {
|
|
readonly attribute any data;
|
|
readonly attribute DOMString origin;
|
|
readonly attribute DOMString lastEventId;
|
|
// [SameObject] readonly attribute (Client or ServiceWorker /*or MessagePort*/)? source;
|
|
// readonly attribute FrozenArray<MessagePort>? ports;
|
|
};
|
|
|
|
dictionary ExtendableMessageEventInit : ExtendableEventInit {
|
|
any data;
|
|
DOMString origin;
|
|
DOMString lastEventId;
|
|
// (Client or ServiceWorker /*or MessagePort*/)? source;
|
|
// sequence<MessagePort>? ports;
|
|
};
|