Add allow=web-share for supported websites
YouTube for example has a share button inside an iframe and thus requires allow=web-share
on the iframe element to call navigator.share()
. Otherwise the share button does not work on Firefox Nightly and Safari Technology Preview when embedded.
See also: https://w3c.github.io/web-share/#permissions-policy