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

Remove deprecated requestPermissions and onRequestPermissionsResult. #2796

Merged
merged 1 commit into from May 7, 2024

Conversation

mcarare
Copy link
Contributor

@mcarare mcarare commented Apr 24, 2024

Pull Request checklist

@mcarare mcarare requested a review from jonalmeida April 24, 2024 13:31
@mcarare
Copy link
Contributor Author

mcarare commented Apr 24, 2024

Would also appreciate some manual testing :D

@mcarare
Copy link
Contributor Author

mcarare commented Apr 24, 2024

This might not be the most elegant way to do it, but it feels like it's the cleaner one, not including a new API for AC.

@jonalmeida
Copy link
Collaborator

Would also appreciate some manual testing :D

I can do this, but it might affect the DAU numbers if I switch to a different browser. 😄

Copy link
Collaborator

@jonalmeida jonalmeida left a comment

Choose a reason for hiding this comment

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

This looks fine and seems to work in my very limited testing. I can't think of any better way of structuring this today.

I would suggest not landing a similar patch in Fenix/Focus in order to avoid it from bitrotting there and more instances following this pattern until we're sure this is the best way to do it.

@@ -106,11 +103,13 @@ abstract class BaseBrowserFragment : Fragment(), UserInteractionHandler, Activit

protected var webAppToolbarShouldBeVisible = true

private lateinit var requestPermissionLauncher: ActivityResultLauncher<Array<String>>
private lateinit var requestDownloadPermissionsLauncher: ActivityResultLauncher<Array<String>>
private lateinit var requestsitePermissionsLauncher: ActivityResultLauncher<Array<String>>
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: typo

Suggested change
private lateinit var requestsitePermissionsLauncher: ActivityResultLauncher<Array<String>>
private lateinit var requestSitePermissionsLauncher: ActivityResultLauncher<Array<String>>

@mcarare mcarare added the needs landing Auto lands approved and green PRs. label May 7, 2024
@mergify mergify bot merged commit 6649352 into mozilla-mobile:master May 7, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs landing Auto lands approved and green PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants