gecko-dev/devtools/shared/resources/tests/fission_document.html
Alexandre Poirot 3b193b3c3b Bug 1594754 - Make target-list support all workers in the browser toolbox. r=jdescottes
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
2020-03-11 12:34:43 +00:00

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>