Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permissions: Update DRM, Camera and Microphone dialogs #5234

Conversation

malmstein
Copy link
Contributor

@malmstein malmstein commented Nov 4, 2024

Task/Issue URL: https://app.asana.com/0/1174433894299346/1208578724221050/f

Description

Update Camera and Microphone dialogs to use a checkbox
It also updates the DRM dialog to match the other dialogs

Steps to test this PR

Camera - Allow Remember + System Permission Allowed

  • Fresh install, navigate to permission.site
  • Choose camera
  • Choose Allow + Remember
  • Allow System Permission
  • Verify permission granted
  • Open Settings / Permissions / Site Permissions -> Verify Camera permission granted for permission.site

Camera - Allow + System Permission Allowed

  • Fresh install, navigate to permission.site
  • Choose camera
  • Choose Allow
  • Allow System Permission
  • Verify permission granted
  • Open Settings / Permissions / Site Permissions -> Verify permission.site not in the list of permissions

Camera - Deny Remember

  • Fresh install, navigate to permission.site
  • Choose camera
  • Choose Deny + Remember
  • Verify permission denied
  • Open Settings / Permissions / Site Permissions -> Verify Camera permission denied for permission.site
  • Open a new tab with the same site
  • Choose camera
  • Verify no dialog shown and permission denied directly

Camera - Deny

  • Fresh install, navigate to permission.site
  • Choose camera
  • Choose Deny
  • Verify permission denied
  • Open Settings / Permissions / Site Permissions -> Verify permission.site not in the list of permissions
  • Open a new tab with the same site
  • Choose camera
  • Verify dialog shown

Microphone- Allow Remember + System Permission Denied

  • Fresh install, navigate to permission.site
  • Choose camera
  • Choose Deny + Remember
  • Deny System Permission
  • Verify permission denied
  • Open Settings / Permissions / Site Permissions -> Verify Camera permission denied for permission.site

Microphone - Allow + System Permission Denied

  • Fresh install, navigate to permission.site
  • Choose camera
  • Choose Deny
  • Deny System Permission
  • Verify permission denied
  • Open Settings / Permissions / Site Permissions -> Verify permission.site not in the list of permissions

Microphone - Deny Remember

  • Fresh install, navigate to permission.site
  • Choose microphone
  • Choose Deny + Remember
  • Verify permission denied
  • Open Settings / Permissions / Site Permissions -> Verify Camera permission denied for permission.site
  • Open a new tab with the same site
  • Choose microphone
  • Verify no dialog shown and permission denied directly

Microphone - Deny

  • Fresh install, navigate to permission.site
  • Choose microphone
  • Choose Deny
  • Deny System Permission
  • Verify permission denied
  • Open Settings / Permissions / Site Permissions -> Verify permission.site not in the list of permissions
  • Open a new tab with the same site
  • Choose microphone
  • Verify dialog shown

DRM - Allow Remember

  • Fresh install, navigate to permission.site
  • Choose Encrypted Media
  • Choose Allow + Remember
  • Verify permission granted
  • Open Settings / Permissions / Site Permissions -> Verify DRM permission granted for permission.site

DRM - Allow

  • Fresh install, navigate to permission.site
  • Choose Encrypted Media
  • Choose Allow
  • Verify permission granted
  • Open Settings / Permissions / Site Permissions -> Verify permission.site not in the list of permissions

DRM - Deny Remember

  • Fresh install, navigate to permission.site
  • Choose Encrypted Media
  • Choose Deny + Remember
  • Verify permission granted
  • Open Settings / Permissions / Site Permissions -> Verify DRM permission denied for permission.site

DRM - Deny

  • Fresh install, navigate to permission.site
  • Choose Encrypted Media
  • Choose Deny
  • Verify permission granted
  • Open Settings / Permissions / Site Permissions -> Verify permission.site not in the list of permissions

@malmstein malmstein mentioned this pull request Nov 4, 2024
26 tasks
Copy link
Contributor Author

malmstein commented Nov 4, 2024

@malmstein malmstein mentioned this pull request Nov 4, 2024
33 tasks
@malmstein malmstein changed the title Permissions: Update DRM dialogs Permissions: Update DRM, Camera and Microphone dialogs Nov 4, 2024
@malmstein malmstein marked this pull request as ready for review November 4, 2024 14:35
@malmstein malmstein force-pushed the feature/david/10-30-permissions_update_location_dialogs branch from 0210977 to f143ee3 Compare November 5, 2024 11:01
@malmstein malmstein force-pushed the feature/david/11-04-permissions_update_drm_dialogs branch from 15a52bd to d0e96bd Compare November 5, 2024 11:02
@malmstein malmstein mentioned this pull request Nov 5, 2024
32 tasks
@malmstein malmstein force-pushed the feature/david/10-30-permissions_update_location_dialogs branch from f143ee3 to f2e2692 Compare November 6, 2024 12:17
@malmstein malmstein force-pushed the feature/david/11-04-permissions_update_drm_dialogs branch from d0e96bd to 8b35e56 Compare November 6, 2024 12:17
Copy link
Contributor

@anikiki anikiki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and works as expected! 🎉

@malmstein malmstein force-pushed the feature/david/10-30-permissions_update_location_dialogs branch from f2e2692 to 4164446 Compare November 6, 2024 17:29
@malmstein malmstein force-pushed the feature/david/11-04-permissions_update_drm_dialogs branch from 8b35e56 to 2c9b9b1 Compare November 6, 2024 17:30
Task/Issue URL:
https://app.asana.com/0/1174433894299346/1208578724221048

### Description
This PR updates the Site Permissions screens to match the Figma designs

### Steps to test this PR

_Site Permissions_
- [x] Add permissions to a site (permissions.site) 
- [x] Open Settings -> Permissions -> Site Permissions
- [x] Verify site and favicon are visible

_Site Permissions Removed on Fire Button (Fireproof)_
- [x] Add location permissions to a site (permissions.site) 
- [x] Fireproof the site
- [x] Ensure Fire Button will clear data on app restart
- [x] Open Settings -> Permissions -> Site Permissions
- [x] Verify site and favicon are visible
- [x] Go back to the Browser and use the Fire Button
- [x] Open Settings -> Permissions -> Site Permissions
- [x] Verify site and favicon are visible

_Site Permissions Removed on Fire Button_
- [x] Add location permissions to a site (permissions.site) 
- [x] Ensure Fire Button will clear data on app restart
- [x] Open Settings -> Permissions -> Site Permissions
- [x] Verify site and favicon are visible
- [x] Go back to the Browser and use the Fire Button
- [x] Open Settings -> Permissions -> Site Permissions
- [x] Verify site is no longer visible

_Individual Site Permissions_
- [x] Add location permissions to a site (permissions.site) 
- [x] Open Settings -> Permissions -> Site Permissions
- [x] Verify site and favicon are visible
- [x] Tap on the site to see the details page
- [x] Verify location permission is allowed for the site

_Disable overall location permission_
- [x] Add location permissions to a site (permissions.site) 
- [x] Open Settings -> Permissions -> Site Permissions
- [x] Verify site and favicon are visible
- [x] Toggle overall location permission off
- [x] Verify site and favicon are visible
- [x] Tap on the site to see the details page
- [x] Verify “Disabled for all sites” visible next to Location
- [x] Open a new tab and open permissions.site
- [x] Tap on location, verify it’s red permission not given)
@malmstein malmstein merged commit 4594054 into feature/david/10-30-permissions_update_location_dialogs Nov 6, 2024
4 checks passed
@malmstein malmstein deleted the feature/david/11-04-permissions_update_drm_dialogs branch November 6, 2024 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants