Skip to content

achingbrain/playwright-ff-webworkers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Playwright Firefox Webworkers

Webworker code gets run twice in Firefox and the globalThis object is different in each run?

Install deps:

$ npm i

The example starts an instance of Firefox and loads html/index.html, which in turn loads a single webworker which just prints a console line.

In practice it prints two console lines with different values for globalThis.

Run example:

$ npm start

> playwright-ff-webworkers@1.0.0 start
> node .

globalThis in worker is JSHandle@object
globalThis in worker is [object DedicatedWorkerGlobalScope]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published