| Index: content/test/data/android/webshare.html
|
| diff --git a/content/test/data/android/webshare.html b/content/test/data/android/webshare.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..14e7c734d7861780052c6e9a18fe299a452b48e3
|
| --- /dev/null
|
| +++ b/content/test/data/android/webshare.html
|
| @@ -0,0 +1,28 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| + <head>
|
| + <title>Web Share</title>
|
| + <script>
|
| + function initiate_share() {
|
| + if (navigator.share === undefined) {
|
| + window.document.title = 'Fail: navigator.share === undefined';
|
| + return;
|
| + }
|
| +
|
| + var data = {title: "Test Title", text: "Test Text",
|
| + url: "https://test.url"};
|
| + navigator.share(data).then(() => {
|
| + window.document.title = 'Success';
|
| + }).catch(e => {
|
| + window.document.title = 'Fail: ' + e;
|
| + });
|
| + }
|
| +
|
| + window.addEventListener('load', () => {
|
| + window.addEventListener('click', initiate_share);
|
| + });
|
| + </script>
|
| + </head>
|
| + <body>
|
| + </body>
|
| +</html>
|
|
|