mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
serviceworker: turn-off event-loop, don't assume current scope, clear runtime on shutdown
This commit is contained in:
parent
89eb7c2aa2
commit
bd31860c5d
3 changed files with 49 additions and 46 deletions
|
@ -212,7 +212,9 @@ impl ServiceWorkerManager {
|
|||
|
||||
fn handle_message_from_constellation(&mut self, msg: ServiceWorkerMsg) -> bool {
|
||||
match msg {
|
||||
ServiceWorkerMsg::Timeout(scope) => {},
|
||||
ServiceWorkerMsg::Timeout(_scope) => {
|
||||
// TODO: https://w3c.github.io/ServiceWorker/#terminate-service-worker
|
||||
},
|
||||
ServiceWorkerMsg::ForwardDOMMessage(msg, scope_url) => {
|
||||
if let Some(registration) = self.registrations.get_mut(&scope_url) {
|
||||
if let Some(ref worker) = registration.active_worker {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue