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
main.js creates a Web Worker using new Worker("worker.js")
When I run this project in a browser (using npx cap serve) and look at the network requests in the Chrome DevTools, it shows (index) as the initiator of the request to worker.js. When I run it in a WebView on Android, however, the initiator of the same request is Other. Can anyone explain where this difference comes from?
(I ran into this while trying to fix an issue in lichobile which is caused by Bromite blocking a WebSocket. I believe it is blocked because of the unknown originator of the request to the Worker script.)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Let's say I have a very simple project:
index.html
loadsmain.js
main.js
creates a Web Worker usingnew Worker("worker.js")
When I run this project in a browser (using
npx cap serve
) and look at the network requests in the Chrome DevTools, it shows(index)
as the initiator of the request toworker.js
. When I run it in a WebView on Android, however, the initiator of the same request isOther
. Can anyone explain where this difference comes from?(I ran into this while trying to fix an issue in lichobile which is caused by Bromite blocking a WebSocket. I believe it is blocked because of the unknown originator of the request to the Worker script.)
Beta Was this translation helpful? Give feedback.
All reactions