Closed Bug 1735875 Opened 3 years ago Closed 2 years ago

ServiceWorker-controlled pages losing their controller after going into and coming out of BFCache due to dropped ClientHandle actors on freeze

Categories

(Core :: DOM: Service Workers, defect, P3)

defect

Tracking

()

RESOLVED FIXED
103 Branch
Tracking Status
firefox103 --- fixed

People

(Reporter: asuth, Assigned: smaug)

References

Details

Attachments

(1 file)

In https://github.com/w3c/ServiceWorker/issues/1594#issuecomment-942933128 it was identified that "on Firefox, after a page is restored from BFCache, the page seems uncontrolled by service workers (even if it was controlled before BFCached). Is this a known issue". This is from tests being developed as part of https://github.com/web-platform-tests/wpt/pull/31082.

the tests pass if I comment out https://searchfox.org/mozilla-central/rev/0ec81de2037cb0a0701d5d316f42763230b3a142/dom/clients/manager/ClientSourceParent.cpp#124-126

We're missing to recreate the handles somewhere or should not delete them at all (only mark frozen)?

Summary: ServiceWorker-controlled pages losing their controller after going into and coming out of BFCache → ServiceWorker-controlled pages losing their controller after going into and coming out of BFCache due to dropped ClientHandle actors on freeze
Blocks: 1741387
Attachment #9280000 - Attachment description: WIP: Bug 1735875, WIP, with random debugging stuff, eviction in case of client.postMessage is still missing (there are no wpt for that either) → WIP: Bug 1735875, ServiceWorkers + bfcache: evict bfcache in certain cases, to pass the existing WPTs, and add a new test for Client.postMessage
Attachment #9280000 - Attachment description: WIP: Bug 1735875, ServiceWorkers + bfcache: evict bfcache in certain cases, to pass the existing WPTs, and add a new test for Client.postMessage → Bug 1735875, ServiceWorkers + bfcache: evict bfcache in certain cases, to pass the existing WPTs, and add a new test for Client.postMessage
Assignee: nobody → bugs
Status: NEW → ASSIGNED
Attachment #9280000 - Attachment description: Bug 1735875, ServiceWorkers + bfcache: evict bfcache in certain cases, to pass the existing WPTs, and add a new test for Client.postMessage → Bug 1735875, ServiceWorkers + bfcache: evict bfcache in certain cases, to pass the existing WPTs, and add a new test for Client.postMessage, r=asuth
Pushed by opettay@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/249823eb1a68 ServiceWorkers + bfcache: evict bfcache in certain cases, to pass the existing WPTs, and add a new test for Client.postMessage, r=asuth
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/34446 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 103 Branch
Regressions: 1774475
Upstream PR was closed without merging
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: