Basic example of usage navigator.share() became unstable on recent release of the iOS 14. Example page - https://mkonikov.com/web-share-testing/ Detected problems: - On first click on "Share" promise.then() not executed. - Subsequent calls fails with error "NotAllowedError". Reproducibility may vary depending on phone version. Confirmed issue for iPhone 6 and 11. It seems that it is some timings related problem.
<rdar://problem/69659878>
I can reproduce; other Web Share clients are broken too.
Also happening here.
I can reproduce also on iOS 14.0 and some devices with iOS 14.0.1 Web Share API works on first time. After, no longer work. This error is displayed on console: Error NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission. Tests: iPhone 6s 14.0.0 iPhone 6s 14.0.1 iPhone 7 14.0.0 iPhone 7 14.0.1 iPhone 8 14.0.0 iPhone 8 14.0.1 iPhone XR 14.0.0 iPhone XR 14.0.1 iPhone 11 14.0.0 iPhone 11 14.0.1
This seems fixed in trunk, but I have /no idea/ what would have changed it (the most recent large change I made to WKShareSheet is in iOS 14, so it has to be elsewhere)
Oh, no, that's not it, it's just somehow only broken on iPhone, not iPad.
Created attachment 410097 [details] Patch
Committed r267792: <https://trac.webkit.org/changeset/267792> All reviewed patches have been landed. Closing bug and clearing flags on attachment 410097 [details].
(In reply to Tim Horton from comment #7) > Created attachment 410097 [details] > Patch Thanks for the fix. What browser version will this patch include or when can we expect this version to be released (at least approximately)?
(In reply to Oleg Strekalovsky from comment #9) > Thanks for the fix. What browser version will this patch include or when can > we expect this version to be released (at least approximately)? If you asking that question of Apple, you’ll have to make your peace with the fact that Apple does not communicate timing of releases of WebKit fixes through the WebKit open source project. I understand why you want to know, but you don’t find that answer here.
(In reply to Darin Adler from comment #10) > I understand why you want to know, but you don’t find that answer here. won't
*** Bug 218156 has been marked as a duplicate of this bug. ***