mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Auto merge of #7445 - JoshTheGoldfish:Issue6934, r=Manishearth
Issue #6934 - Implement onerror event handler for AbstractWorker Please review. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7445) <!-- Reviewable:end -->
This commit is contained in:
commit
3062e0c7b1
3 changed files with 2 additions and 4 deletions
|
@ -6,7 +6,7 @@
|
||||||
// https://www.whatwg.org/html/#abstractworker
|
// https://www.whatwg.org/html/#abstractworker
|
||||||
[NoInterfaceObject/*, Exposed=Window,Worker*/]
|
[NoInterfaceObject/*, Exposed=Window,Worker*/]
|
||||||
interface AbstractWorker {
|
interface AbstractWorker {
|
||||||
// attribute EventHandler onerror;
|
attribute EventHandler onerror;
|
||||||
};
|
};
|
||||||
|
|
||||||
// https://www.whatwg.org/html/#worker
|
// https://www.whatwg.org/html/#worker
|
||||||
|
|
|
@ -163,6 +163,7 @@ impl WorkerMethods for Worker {
|
||||||
}
|
}
|
||||||
|
|
||||||
event_handler!(message, GetOnmessage, SetOnmessage);
|
event_handler!(message, GetOnmessage, SetOnmessage);
|
||||||
|
event_handler!(error, GetOnerror, SetOnerror);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct WorkerMessageHandler {
|
pub struct WorkerMessageHandler {
|
||||||
|
|
|
@ -8430,9 +8430,6 @@
|
||||||
[Worker interface: operation terminate()]
|
[Worker interface: operation terminate()]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Worker interface: attribute onerror]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[SharedWorker interface: existence and properties of interface object]
|
[SharedWorker interface: existence and properties of interface object]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue