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
running importScripts inside a web-worker is not intercepted property with page.route
this does work in firefox and webkit.
might be related to #4487
firefox output - looks like something is causing the web-worker to be loaded twice.
> node worker.demo
devtools parameter is not supported as a launch argument in Firefox. You can launch the devtools window manually.
error: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "https://microsoft.com/main.html" line: 0}] ({"lineNumber":0,"columnNumber":0,"url":"https://microsoft.com/main.html"})
info: page fetched data: {
"id": "playwright caught ya!"
} ({"lineNumber":19,"columnNumber":31,"url":"https://microsoft.com/main.html"})
info: importing scripts... ({"lineNumber":0,"columnNumber":8,"url":"https://microsoft.com/worker.js"})
info: importing scripts... ({"lineNumber":0,"columnNumber":8,"url":"https://microsoft.com/worker.js"})
info: "testing worker" ({"lineNumber":14,"columnNumber":20,"url":"https://microsoft.com/main.html"})
info: imported scripts... ({"lineNumber":4,"columnNumber":8,"url":"https://microsoft.com/worker.js"})
info: imported scripts... ({"lineNumber":4,"columnNumber":8,"url":"https://microsoft.com/worker.js"})
info: worker fetched data: {
"id": "playwright caught ya!"
} ({"lineNumber":8,"columnNumber":23,"url":"https://microsoft.com/worker.js"})
info: worker fetched data: {
"id": "playwright caught ya!"
} ({"lineNumber":8,"columnNumber":23,"url":"https://microsoft.com/worker.js"})
warn: [JavaScript Warning: "Strict-Transport-Security: The connection to the site is untrustworthy, so the specified header was ignored." {file: "https://www.microsoft.com/favicon.ico" line: 0}] ({"lineNumber":0,"columnNumber":0,"url":"https://www.microsoft.com/favicon.ico"})
Terminate batch job (Y/N)?
webkit output - works properly
> node worker.demo
devtools parameter as a launch argument in WebKit is not supported. Also starting Web Inspector manually will terminate the execution in WebKit.
info: page fetched data: {
"id": "playwright caught ya!"
} ({"url":"https://microsoft.com/main.html","lineNumber":19,"columnNumber":35})
info: importing scripts... ({"url":"https://microsoft.com/worker.js","lineNumber":0,"columnNumber":12})
info: imported scripts... ({"url":"https://microsoft.com/worker.js","lineNumber":4,"columnNumber":12})
info: "testing worker" ({"url":"https://microsoft.com/main.html","lineNumber":14,"columnNumber":24})
info: worker fetched data: {
"id": "playwright caught ya!"
} ({"url":"https://microsoft.com/worker.js","lineNumber":8,"columnNumber":27})
Terminate batch job (Y/N)?
tl;dr
running
importScripts
inside a web-worker is not intercepted property withpage.route
Context:
System:
Binaries:
Languages:
npmPackages:
Code Snippet
complete reproduction - https://github.com/Meir017/playwright-worker-interception-sample
Describe the bug
running
importScripts
inside a web-worker is not intercepted property withpage.route
this does work in firefox and webkit.
might be related to #4487
firefox output - looks like something is causing the web-worker to be loaded twice.
webkit output - works properly
chromium output - stuck on the importScripts line
The text was updated successfully, but these errors were encountered: