Log spam: `JavaScript error: resource://gre/actors/CookieBannerChild.sys.mjs, line 449: InvalidStateError: JSWindowActorChild.document getter: Cannot access property 'document' after actor 'CookieBanner' has been destroyed` when running tests
Categories
(Core :: Privacy: Anti-Tracking, defect, P3)
Tracking
()
People
(Reporter: asuth, Unassigned, NeedInfo)
References
(Blocks 1 open bug)
Details
When running ServiceWorker mochitests with dFPI enabled (under PBM), particularly test_claim.html, I see a bunch of repeated log spam of:
JavaScript error: resource://gre/actors/CookieBannerChild.sys.mjs, line 449: InvalidStateError: JSWindowActorChild.document getter: Cannot access property 'document' after actor 'CookieBanner' has been destroyed
For example, the above line was emitted 11 times consecutively with the mach timestamp of 1:07.37 then another 40 times between two TEST-PASS lines in my test between timestamp 1:07.64 and 1:08.80 which makes it hard to read test output.
Sometimes there will also be single instances of which seems like it might happen only once per global:
JavaScript error: resource://gre/actors/CookieBannerChild.sys.mjs, line 489: TypeError: can't access dead object
Comment 1•1 year ago
|
||
Matt, could this be a regression of your recent changes to the actor?
Comment 2•1 year ago
|
||
@asuth What command are you using to run the test? Running
./mach test dom/serviceworkers/test/test_claim.html --setpref browser.privatebrowsing.autostart=true
just fails for me with with some
FAIL uncaught exception - TypeError: can't access property "oncontrollerchange", navigator.serviceWorker is undefined at @http://mochi.test:8888/tests/dom/serviceworkers/test/claim_clients/client.html:26:3
errors.
Description
•