FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Shred should clear device motion & orientation permissions · Issue #41900 · brave/brave-browser · GitHub

Shred should clear device motion & orientation permissions #41900

Description

Description

When shredding a website, we should clear the motion & orientation permissions of that website.

Current Issues

Apple does not currently provide an explicit API to reset these permissions. The device motion & device orientation permission is reset/cleared when the app is quit and relaunched. Reloading the page and/or removing the WKWebView and creating a new one do not suffice.

Apple provides a delegate function webView(_:requestDeviceOrientationAndMotionPermissionFor:initiatedByFrame:decisionHandler:), but once responding with WKPermissionDecision.prompt (and user selecting 'Allow') or WKPermissionDecision.grant, the delegate function is not called again until next app launch.

On iOS 17 and later, we can create a new WKWebsiteDataStore using the init(forIdentifier:) to create a new profile, however this would reset the data store for the entire WKWebView, clearing data for all domains where Shred is domain-specific.

Metadata

Metadata

Assignees

Labels

OS/iOSFixes related to iOS browser functionalityneeds-discussionAlthough the issue is clear, we haven't yet reached a decision about the right solution.priority/P4Planned work. We expect to get to it "soon".privacyprivacy/feature/shredIssues related to the Shred feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


Back | FazBrowse Home | New Git URL