| Index: third_party/WebKit/LayoutTests/webshare/share-without-user-gesture.html
|
| diff --git a/third_party/WebKit/LayoutTests/webshare/share-error.html b/third_party/WebKit/LayoutTests/webshare/share-without-user-gesture.html
|
| similarity index 68%
|
| copy from third_party/WebKit/LayoutTests/webshare/share-error.html
|
| copy to third_party/WebKit/LayoutTests/webshare/share-without-user-gesture.html
|
| index 267f0e41ac42c926415cdb4afd8c73fd1938d998..d69adc8155fc11014ec356907ca36400458f96f9 100644
|
| --- a/third_party/WebKit/LayoutTests/webshare/share-error.html
|
| +++ b/third_party/WebKit/LayoutTests/webshare/share-without-user-gesture.html
|
| @@ -6,10 +6,9 @@
|
| <script>
|
|
|
| share_test((t, mock) => {
|
| - mock.pushShareResult('the title', 'the message', 'error from browser');
|
| return promise_rejects(
|
| - t, new DOMException('error from browser', 'AbortError'),
|
| + t, new DOMException('Must be handling a user gesture to perform a share request.', 'SecurityError'),
|
| navigator.share({title: 'the title', text: 'the message'}));
|
| -}, 'share with browser-side error');
|
| +}, 'share without a user gesture');
|
|
|
| </script>
|
|
|