Closed Bug 1570776 Opened 4 months ago Closed 3 months ago

[wpt-sync] Sync PR 17554 - Add ability for service worker to filter out frozen windows.

Categories

(Core :: DOM: Service Workers, task, P4)

task

Tracking

()

RESOLVED FIXED
mozilla70
Tracking Status
firefox70 --- fixed

People

(Reporter: wptsync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 17554 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/17554
Details from upstream follow.

Dave Tapuska <dtapuska@chromium.org> wrote:

Add ability for service worker to filter out frozen windows.

Add code to support handling of frozen clients. Frozen clients do not
run their event loop, so postMessage to them just causes problems. To
allow service workers to continue working with frozen windows we expose
includeFrozen in the matchAll and the frozen attribute on the Client. If
a service worker calls focus on a client it will unfreeze the window when
it is moved to have focus.

BUG=957597

Change-Id: I6abe1882e88c65dac99250db5bb7fa8d3a4b2b1d
Reviewed-on: https://chromium-review.googlesource.com/1677065
WPT-Export-Revision: 65c2a151ae908acf0929b91fac67342151d4dfbb

Component: web-platform-tests → DOM: Service Workers
Product: Testing → Core
Ran 6 tests and 8[android-em-7.0-x86_64-opt-geckoview], 11[android-em-7.0-x86_64-debug-geckoview], 14[linux64-asan-opt,linux64-debug,linux64-opt,linux64-qr-debug,linux64-qr-opt,windows10-64-debug,windows10-64-opt,windows10-64-qr-debug,windows10-64-qr-opt,windows7-32-debug,windows7-32-opt] subtests
OK     : 4[android-em-7.0-x86_64-debug-geckoview,android-em-7.0-x86_64-opt-geckoview], 5[linux64-asan-opt,linux64-debug,linux64-opt,linux64-qr-debug,linux64-qr-opt,windows10-64-debug,windows10-64-opt,windows10-64-qr-debug,windows10-64-qr-opt,windows7-32-debug,windows7-32-opt]
PASS   : 10[android-em-7.0-x86_64-debug-geckoview], 13[linux64-asan-opt,linux64-debug,linux64-opt,linux64-qr-debug,linux64-qr-opt,windows10-64-debug,windows10-64-opt,windows10-64-qr-debug,windows10-64-qr-opt,windows7-32-debug,windows7-32-opt], 7[android-em-7.0-x86_64-opt-geckoview]
TIMEOUT: 2

New tests that have failures or other problems:
/service-workers/service-worker/clients-matchall-frozen.https.html: TIMEOUT
    Test Clients.matchAll(): TIMEOUT

Tests that are disabled for instability:
/service-workers/service-worker/clients-matchall-include-uncontrolled.https.html: [android-em-7.0-x86_64-debug-geckoview,android-em-7.0-x86_64-opt-geckoview]
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/d34dc9e00ee2
[wpt PR 17554] - Add ability for service worker to filter out frozen windows., a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/62a72299127d
[wpt PR 17554] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
You need to log in before you can comment on or make changes to this bug.