Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test gets skipped with pattern: !e10s OR http3 OR http2
- Manifest: toolkit/components/extensions/test/mochitest/mochitest-serviceworker.toml
<!DOCTYPE HTML>
<html>
<head>
<title>Verify WebExtension background service worker mode</title>
<meta charset="utf-8">
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script src="/tests/SimpleTest/ExtensionTestUtils.js"></script>
<script type="text/javascript" src="head.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body>
<script type="text/javascript">
"use strict";
// This test ensures we are running with the proper settings.
const {WebExtensionPolicy} = SpecialPowers.Cu.getGlobalForObject(SpecialPowers.Services);
SimpleTest.ok(WebExtensionPolicy.useRemoteWebExtensions, "extensions running remote");
SimpleTest.ok(!WebExtensionPolicy.isExtensionProcess, "testing from remote process");
SimpleTest.ok(WebExtensionPolicy.backgroundServiceWorkerEnabled, "extensions background service worker enabled");
SimpleTest.ok(AppConstants.MOZ_WEBEXT_WEBIDL_ENABLED, "extensions API webidl bindings enabled");
</script>
</body>
</html>