-
Notifications
You must be signed in to change notification settings - Fork 918
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: Unify Location #5208
Permissions: Unify Location #5208
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @malmstein and the rest of your teammates on Graphite |
aa054f0
to
78888b2
Compare
78888b2
to
06e5f89
Compare
app/src/androidTest/java/com/duckduckgo/app/location/GeoLocationPermissionsTestRequest.kt
Outdated
Show resolved
Hide resolved
...idTest/java/com/duckduckgo/app/location/data/LocationPermissionsRepositoryImplTestRequest.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/duckduckgo/app/browser/BrowserChromeClient.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/duckduckgo/app/browser/BrowserTabFragment.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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! 🎉
Left a few tiny comments.
06e5f89
to
c628b45
Compare
c628b45
to
bac553f
Compare
52c8946
to
1f41356
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@malmstein I tested your branch and there is a problem when the site requests more than one site permission.
You can reproduce it on https://webcammictest.com/ which would request mic and camera. I checked and it works fine in production.
The bug was introduced in branch feature/david/11-04-permissions_update_drm_dialogs
4931411
to
ae2a35b
Compare
app/src/main/java/com/duckduckgo/app/sitepermissions/SitePermissionsViewModel.kt
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 👍
There's a failing test.
ae2a35b
to
b07c0b2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked the last changes. LGTM 👍
d141612
to
98967c0
Compare
Task/Issue URL: https://app.asana.com/0/0/1208750400255371/f ### Description PIxels for the new site permission dialogs ### Steps to test this PR _Impression pixel_ - [x] open app visit permission.site - [x] tap on camera - [x] verify `m_site_permissions_dialog_impresssion` with parameter `type:camera` is sent - [x] tap on microphone - [x] verify `m_site_permissions_dialog_impresssion` with parameter `type: microphone ` is sent - [x] tap on camera + microphone - [x] verify `m_site_permissions_dialog_impresssion` with parameter `type:camera_and_microphone` is sent - [x] tap on drm - [x] verify `m_site_permissions_dialog_impresssion` with parameter `type: drm ` is sent - [x] tap on location - [x] verify `m_site_permissions_dialog_impresssion` with parameter `type:location` is sent _Click pixel_ - [x] open app visit permission.site - [x] tap on camera and enable system permission - [x] tap on Allow (checked box not pressed) - [x] verify `m_site_permissions_dialog_click` with parameters `type:camera` and `selection:allow_once` is sent - [x] tap on microphone and enable system permission - [x] tap on Deny (checked box not pressed) - [x] verify `m_site_permissions_dialog_click` with parameters `type:microphone` and `selection:deny_once` is sent - [x] tap on drm - [x] tap on Allow (checked box pressed) - [x] verify `m_site_permissions_dialog_click` with parameters `type:drm` and `selection:allow_always` is sent - [x] tap on location and enable system permissions - [x] tap on Deny (checked box pressed) - [x] verify `m_site_permissions_dialog_click` with parameters `type:location` and `selection:deny_always` is sent Notes: Pixels don’t include ATB
Task/Issue URL: https://app.asana.com/0/1174433894299346/1208719691317744/f
Description
This PR moves the Location permission logic to the SitePermissionsManager
Note: This
Steps to test this PR
Location permission granted
Location permission not granted
Location permission granted (not system granted)