Bug 233315
| Summary: | WKWebView does not allow remembering permissions granted by the user? | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Franz <franz> |
| Component: | WebKit API | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Critical | CC: | ggaren, jonlee, webkit-bug-importer, wilander, youennf |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Other | ||
| Hardware: | iPhone / iPad | ||
| OS: | iOS 14 | ||
Franz
What's happening: We're loading a WebRTC-based mobile-optimized chat web app into WKWebView which allows users to toggle on their microphone and talk to others in a virtual room. However, the problem is that WKWebView will ask for this permission repeatedly: Once the app moves to the background and comes to the foreground again, and the user wants to toggle the microphone on again, the user is presented with a new permission prompt.
Expected behavior: WKWebView should remember the granted permission and not ask again.
Interestingly, iOS Safari has an option where the user can grant a website permanent permission (roughly: "do not ask again for this site"). I couldn't find any relevant APIs to facilitate this and consider it a critical bug, as it has a hugely negative impact on user experience.
If I've missed something, I'd be glad to hear about it.
Thanks
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/85563772>
youenn fablet
A WKUIDelegate (https://developer.apple.com/documentation/webkit/wkuidelegate/3763087-webview?language=objc) can be used for that purpose. Please reopen if this is not sufficient.
*** This bug has been marked as a duplicate of bug 223806 ***