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

Location-permissions icon not dynamically removed from URL bar on permissions-lifetime timeout. #15473

Open
stephendonner opened this issue Apr 23, 2021 · 1 comment
Labels
OS/Desktop priority/P4 Planned work. We expect to get to it "soon".

Comments

@stephendonner
Copy link

Description

Location-permissions icon not dynamically removed from URL bar on permissions-lifetime timeout.

Found while testing #14126 - so am not sure this is a bug, but wanted to cover it.

Steps to Reproduce

  1. launch Brave using --enable-logging=stderr --vmodule="*/bat-native-ledger/*"=6,"*/brave_rewards/*"=6,"*/bat-native-ads/*"=6,"*/bat-native-confirmations/*"=6,"*/brave_ads/*"=9,"*/brave_user_model/*"=6 --permission-lifetime-test-seconds=20
  2. via brave://flags, set the Permissions Lifetime flag to Enabled
  3. restart Brave again using the above command-line parameters
  4. load https://permission.site
  5. click on Location
  6. choose 20 seconds from the Give permission prompt
  7. click Allow
  8. click on the location-permission icon in the URL bar
  9. confirm it reads Continue allowing this site to access your location
  10. wait the remainder of the 20 seconds
  11. click again on the location-permission icon in the URL bar

Actual result:

The location-permissions icon:

  • is still present
  • toggles its radio button to now show Always block permission.site from accessing your location (from Continue allowing this site to access your location)

Screen Shot 2021-04-23 at 11 21 18 AM

But brave://settings/content/location returns to defaults, with Ask before accessing (recommended) toggled on.

Screen Shot 2021-04-23 at 11 21 27 AM

Expected result:

Not 100% sure; should the location-permission icon dynamically be removed once the permissions-lifetime duration expires?

If I reload the page, it's gone, which matches the restored defaults I find in brave://settings/content

Screen Shot 2021-04-23 at 11 22 21 AM

Reproduces how often:

100%

Brave version (brave://version info)

Brave 1.24.72 Chromium: 90.0.4430.72 (Official Build) dev (x86_64)
Revision b6172ef8d07ef486489a4b11b66b2eaeed50d132-refs/branch-heads/4430@{#1233}
OS macOS Version 11.2.3 (Build 20D91)

@goodov @pes10k what's the correct behavior, here? Thanks in advance!

@goodov
Copy link
Member

goodov commented Apr 26, 2021

I think it would be nice to clean up this, but not sure if it's worth it. Given that this only happens when the page is opened and it got hit with a 24hrs/1week trigger (short time periods are available only while we test it currently).
Maybe if we'll add short time periods (like 1hr), this can be elevated.

@rebron rebron added the priority/P4 Planned work. We expect to get to it "soon". label Apr 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS/Desktop priority/P4 Planned work. We expect to get to it "soon".
Projects
Status: P4 Backlog
Development

No branches or pull requests

3 participants