You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Firefox webworker's console messages are reported twice #6001
$ git clone https://github.com/achingbrain/playwright-ff-webworkers.git
$ cd playwright-ff-webworkers
$ npm i
$ npm start
> [email protected] start
> node .globalThis in worker is JSHandle@objectglobalThis in worker is [object DedicatedWorkerGlobalScope]
Describe the bug
When running webworker code in Firefox, it appears to get run twice, see the linked repo above for more details and a runnable example.
Only seems to affect Firefox run via playwright, running the same page in standalone Firefox or Chrome works as expected
Happens when loading a page via file:// or via a webserver
Activity
achingbrain commentedon Mar 30, 2021
It could just be the
consoleevent getting fired twice, rather than the whole worker running twice?pavelfeldman commentedon Mar 30, 2021
Thanks for the repro!
Yes, that's the same message printed twice: once from the worker itself and once from the page that owns the worker:
Note that workers aren't supposed to work when running off
file://.[-][BUG] Firefox webworkers get run twice[/-][+][BUG] Firefox webworker's console messages are reported twice[/+]fix(firefox): do not report console messages twice.
fix(firefox): do not report console messages twice.
fix(firefox): do not report console messages twice.
browser(firefox): do not report console messages twice. (#6031)
feat(firefox): roll Firefox to r1244
feat(firefox): roll Firefox to r1244 (#6052)