mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Auto merge of #26607 - nosark:master, r=gterzian
Use ExtendableMessageEvent for messageerror in service workers #25241 <!-- Please describe your changes on the following line: --> added function dispatch_error to the ExtendableMessageEvent implmentation and replaced the MessageEvent dispatch error call with the ExtendableMessageEvent dispatch error call in serviceworkerglobalscope.rs --- <!-- 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 - [X] These changes fix #25241 (GitHub issue number if applicable) <!-- Either: --> - [x] There are tests for these changes OR - [x] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
This commit is contained in:
commit
9b6b7935e6
3 changed files with 27 additions and 8 deletions
|
@ -16,9 +16,9 @@ interface ExtendableMessageEvent : ExtendableEvent {
|
|||
};
|
||||
|
||||
dictionary ExtendableMessageEventInit : ExtendableEventInit {
|
||||
any data;
|
||||
DOMString origin;
|
||||
DOMString lastEventId;
|
||||
any data = null;
|
||||
DOMString origin = "";
|
||||
DOMString lastEventId = "";
|
||||
// (Client or ServiceWorker /*or MessagePort*/)? source;
|
||||
// sequence<MessagePort>? ports;
|
||||
sequence<MessagePort> ports = [];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue