зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1254741 P3 Fix push test_serviceworker_lifetime.html test to expect new behavior. r=kitcambridge
This commit is contained in:
Родитель
05565765eb
Коммит
8a4eee33d2
|
@ -269,14 +269,19 @@
|
|||
["dom.serviceWorkers.idle_extended_timeout", 2999999]
|
||||
],
|
||||
steps: function(ctx) {
|
||||
// Non push workers are terminated when they stop controlling documents.
|
||||
// Older versions used to terminate workers when the last controlled
|
||||
// window was closed. This should no longer happen, though. Verify
|
||||
// the new behavior.
|
||||
return createIframe(ctx)
|
||||
.then(setShutdownObserver(true))
|
||||
.then(checkStateAndUpdate(fetchEvent, "from_scope", "wait"))
|
||||
.then(closeIframe)
|
||||
.then(setShutdownObserver(true))
|
||||
.then(checkStateAndUpdate(messageEvent, "wait", "release"))
|
||||
.then(waitOnShutdownObserver)
|
||||
|
||||
// Push workers are exempt from this rule.
|
||||
// Push workers were exempt from the old rule and should continue to
|
||||
// survive past the closing of the last controlled window.
|
||||
.then(createIframe)
|
||||
.then(setShutdownObserver(false))
|
||||
.then(checkStateAndUpdate(pushEvent, "from_scope", "wait"))
|
||||
|
|
Загрузка…
Ссылка в новой задаче