Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 3 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /web-install/navigator-install-user-activation.tentative.https.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>navigator.install() requires user activation</title>
<link rel="help" href="https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/WebInstall/explainer.md">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<body>
<script>
promise_test(async function(t) {
await promise_rejects_dom(t, 'NotAllowedError', navigator.install(),
'navigator.install() without user activation should reject with ' +
'NotAllowedError');
}, 'navigator.install() rejects with NotAllowedError without a user ' +
'activation.');
promise_test(async function(t) {
await promise_rejects_dom(t, 'NotAllowedError',
'navigator.install(url) without user activation should reject with ' +
'NotAllowedError');
}, 'navigator.install(url) rejects with NotAllowedError without a user ' +
'activation.');
promise_test(async function(t) {
await promise_rejects_dom(t, 'NotAllowedError',
'navigator.install(url, id) without user activation should reject ' +
'with NotAllowedError');
}, 'navigator.install(url, manifest_id) rejects with NotAllowedError ' +
'without a user activation.');
</script>
</body>