Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Unified Diff: third_party/WebKit/LayoutTests/webshare/share-types.html

Issue 2219383002: Require a user gesture to use navigator.share. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webshare-dictionary
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/webshare/share-types.html
diff --git a/third_party/WebKit/LayoutTests/webshare/share-types.html b/third_party/WebKit/LayoutTests/webshare/share-types.html
index 8c49cb15e791475b45ec2bcf16182dce7e2fb79b..64d8229b038da564cf9dba6c279176fc4c06eb18 100644
--- a/third_party/WebKit/LayoutTests/webshare/share-types.html
+++ b/third_party/WebKit/LayoutTests/webshare/share-types.html
@@ -7,7 +7,7 @@
share_test((t, mock) => {
mock.pushShareResult('384957', '[object Object]', null);
- return navigator.share({title: 384957, text: {}});
+ return callWithKeyDown(() => navigator.share({title: 384957, text: {}}));
}, 'share of types other than string (expect implicitly converted to string)');
</script>

Powered by Google App Engine
This is Rietveld 408576698