blob: 79341252941c129cf1969a64d288e906f99dc837 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<!DOCTYPE html>
<title>Test permission of notification</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<script src="resources/utils.js"></script>
<script src="/common/utils.js"></script>
<body>
<script>
promise_test(async t => {
const permission_notification_key = token();
await test_driver.set_permission({name: 'notifications'}, 'granted', true);
attachFencedFrame(generateURL(
'resources/permission-notification-inner.html',
[permission_notification_key]));
const actual_result = await nextValueFromServer(permission_notification_key);
assert_equals(
actual_result, 'result: denied',
'notification permission should not be granted in the fenced frame.');
}, 'notification permission should not be granted');
</script>
</body>
|