blob: aada6f04e1a6c86367c0ea9d5dad3fa16899f2d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<!DOCTYPE html>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-actions.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<script src="utils.js"></script>
<title>Fenced frame content to test Web Share</title>
<body>
<script>
(async () => {
await simulateGesture();
const [navigator_share_key] = parseKeylist();
try {
await navigator.share({text: 'hello world'});
writeValueToServer(navigator_share_key, 'Web Share succeeded');
} catch(error) {
writeValueToServer(navigator_share_key, 'Web Share failed');
}
})();
</script>
</body>
|