react-share icon indicating copy to clipboard operation
react-share copied to clipboard

Firefox iOS blocking window.open facebook and twitter with default configuration

Open buesing opened this issue 6 years ago • 2 comments

I'm running Firefox 17.0 on an iPhone 7 with iOS 12.2. At least the facebook and twitter share buttons are not working for me (tested on the demo page at http://nygardk.github.io/react-share/). This seems to be related to the feature "protect from tracking", which is on by default (not sure if this is the exact feature name, my browser language is german). When I turn that feature off, everything works.

Looking into this, I have reduced the test case to running window.open("http://www.facebook.com"), which is not doing anything in firefox iOS, no errors, just nothing happens. Same for window.open("http://www.twitter.com/");, it does work with other domains though. Interestingly it works with http://www.faebook.com and http://twiter.com/ (notice the typos in the domains, these seem to have been bought to avoid phishing etc, and forward to the correct domain). Maybe this would be a reasonable workaround for FF iOS?

buesing avatar May 22 '19 09:05 buesing

In addition to TwitterShareButton, LinkedinShareButton and RedditShareButton are also not working on Firefox on iOS.

@nygardk Would it make sense to use an anchor tag instead of window.open?

vishnukvmd avatar Sep 19 '21 08:09 vishnukvmd

add EmailShareButton to the list

coderdix24 avatar Feb 28 '23 19:02 coderdix24