Logo
Explore Help
Register Sign In
yujunjun/playwright
1
0
Fork 0
You've already forked playwright
mirror of https://github.com/microsoft/playwright.git synced 2025-06-26 21:40:17 +00:00
Code Issues Packages Projects Releases Wiki Activity
playwright/tests/assets/shared-worker/shared-worker.html

7 lines
242 B
HTML
Raw Normal View History

fix(chromium): detach from shared workers (#18976) This prevents shared workers from stalling upon restart. We receive `Inspector.targetCrashed` and `Inspector.targetReloadedAfterCrash` events that assume `Runtime.runIfWaitingForDebugger` from any attached client. It is easier and more stable to just detach from shared workers, because we do not inspect them. For service workers, we should actually issue `Runtime.runIfWaitingForDebugger` in such cases, because we attach to them. Fixes #18932.
2022-11-22 15:20:42 -08:00
<script>
window.sharedWorkerResponsePromise = new Promise(f => {
window.myWorker = new SharedWorker("shared-worker.js");
window.myWorker.port.postMessage('hello');
window.myWorker.port.onmessage = e => f(e.data);
});
</script>
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.5 Page: 1709ms Template: 43ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API