@@ -66,28 +66,9 @@ modes, but not learn the identity of the chosen application):
6666* The data could not be delivered to the target app (e.g., the chosen app could
6767 not be launched), or the target app explicitly rejected the share event.
6868
69- ## navigator.canShare
70-
71- ` navigator ` also provides a method for determining whether there are any
72- applications that can handle sharing:
73-
74- ``` WebIDL
75- partial interface Navigator {
76- boolean canShare();
77- };
78- ```
79-
80- Returns ` true ` if there are one or more applications that could handle a share
81- event (i.e., if ` share ` was called, would any applications be presented to the
82- user?). May give false positives, but not false negatives (on some systems, it
83- may not be possible to determine in advance whether any native applications
84- support sharing, in which case ` canShare ` should return ` true ` ; ` false ` means
85- that ` share ` will definitely fail). This can be used by websites to hide or
86- disable the sharing UI, to avoid presenting a button that just fails when users
87- press it.
88-
89- ** TODO(mgiuca)** : This may have to be asynchronous, so that the implementation
90- can query the file system without blocking.
69+ In a user agent that will never provide any share targets (e.g., on a platform
70+ that does not support sharing) ` navigator.share ` SHOULD NOT be present, so that
71+ sites can use feature detection to avoid showing sharing UI.
9172
9273## Share handlers
9374
0 commit comments