mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 09:45:41 +00:00
3b193b3c3b
For now, this is only an equivalent of the existing listAllWorkerTargets. But thanks to it using the TargetList API to listen to processes, it can fetch only the workers from the newly-created processes or only for the process which have their worker list updated. Follow-up would be necessary to: * optionally listen for SW in the content toolbox codepath * expose SW Registrations? Differential Revision: https://phabricator.services.mozilla.com/D63854 --HG-- extra : moz-landing-system : lando
22 lines
690 B
HTML
22 lines
690 B
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf8">
|
|
<title>Test fission document</title>
|
|
<!-- Any copyright is dedicated to the Public Domain.
|
|
- http://creativecommons.org/publicdomain/zero/1.0/ -->
|
|
</head>
|
|
<body>
|
|
<p>Test fission iframe</p>
|
|
|
|
<iframe src="https://example.com/browser/devtools/shared/resources/tests/fission_iframe.html"></iframe>
|
|
<script>
|
|
"use strict";
|
|
// eslint-disable-next-line no-unused-vars
|
|
const worker = new Worker("https://example.com/browser/devtools/shared/resources/tests/test_worker.js");
|
|
|
|
navigator.serviceWorker.register("https://example.com/browser/devtools/shared/resources/tests/test_service_worker.js#service-worker");
|
|
</script>
|
|
</body>
|
|
</html>
|