Open stephendonner opened 3 years ago
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.
Description
Location-permissions icon not dynamically removed from URL bar on permissions-lifetime timeout.
Found while testing https://github.com/brave/brave-browser/issues/14126 - so am not sure this is a bug, but wanted to cover it.
Steps to Reproduce
--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
brave://flags
, set thePermissions Lifetime
flag toEnabled
https://permission.site
Location
20 seconds
from theGive permission
promptAllow
Continue allowing this site to access your location
Actual result:
The location-permissions icon:
Always block permission.site from accessing your location
(fromContinue allowing this site to access your location
)But
brave://settings/content/location
returns to defaults, withAsk before accessing (recommended)
toggled on.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
Reproduces how often:
100%
Brave version (brave://version info)
@goodov @pes10k what's the correct behavior, here? Thanks in advance!