blob: 9e8fad717afad9f20e9af2b08bf28f438e177943 [file] [log] [blame]
<!DOCTYPE html>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script src="../resources/mojo-helpers.js"></script>
<script src="resources/mock-share-service.js"></script>
<script>
share_test((t, mock) => {
return promise_rejects(
t, new DOMException('Must be handling a user gesture to perform a share request.', 'SecurityError'),
navigator.share({title: 'the title', text: 'the message', url: 'data:the url'}));
}, 'share without a user gesture');
</script>