mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove "fire a simple event" concept, refactor event firing API.
"fire a simple event" concept was removed in https://github.com/whatwg/html/pull/1933.
This commit is contained in:
parent
5b4cc9568d
commit
c3b279a4c3
15 changed files with 58 additions and 52 deletions
|
@ -268,7 +268,7 @@ impl ServiceWorkerGlobalScope {
|
|||
// TODO XXXcreativcoder This will eventually use a FetchEvent interface to fire event
|
||||
// when we have the Request and Response dom api's implemented
|
||||
// https://slightlyoff.github.io/ServiceWorker/spec/service_worker_1/index.html#fetch-event-section
|
||||
self.upcast::<EventTarget>().fire_simple_event("fetch");
|
||||
self.upcast::<EventTarget>().fire_event("fetch");
|
||||
let _ = mediator.response_chan.send(None);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue