Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

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

> [email protected] start
> node .

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

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages