Make it more visible in browser UI that geolocation is being accessed
Categories
(Firefox :: Site Permissions, enhancement, P3)
Tracking
()
People
(Reporter: emz, Assigned: bvandersloot)
References
Details
Attachments
(4 files)
When a website accesses geolocation via previously granted permission we should highlight that better. This would help with cases like Bug 2036733. Since Bug 630614 we show an indicator when geolocation is in use, including when it was last accessed (via the permission panel). We should consider making that indicator red and flashing similar what we do for camera / screen / microphone permissions.
| Reporter | ||
Updated•2 months ago
|
| Assignee | ||
Comment 1•2 months ago
|
||
Show the site permission box on SERPs with persisted search terms, where
the identity-box would otherwise be hidden by the invalid pageproxystate.
The lock/globe icon stays hidden and the permission box's own cascade
decides when it appears. Also wobble and tint geo/serial/webrtc sharing
icons while a capture is active.
Updated•2 months ago
|
| Assignee | ||
Comment 2•2 months ago
|
||
| Assignee | ||
Comment 3•2 months ago
|
||
| Assignee | ||
Comment 4•2 months ago
|
||
| Reporter | ||
Comment 5•2 months ago
|
||
hmm it's adding quite a bit of padding. I wonder if we should decrease that.
| Assignee | ||
Comment 6•2 months ago
•
|
||
That would be because of https://searchfox.org/firefox-main/rev/22adc0417a3dbf478c7af00d45daa311e2efdf8b/browser/themes/shared/urlbar-searchbar.css#67-74. We can probably override that for this case.
Comment 7•2 months ago
|
||
https://phabricator.services.mozilla.com/D296287 should address the margin / padding issues
| Assignee | ||
Comment 8•2 months ago
|
||
I think I also found a way to fix it and worked in the patch. Happy to try to manage merge conflicts and figure out the best CSS that does both of these.
Dale: what you think of the color change and persistence of the permission item into SERP?
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Comment 10•1 month ago
|
||
Comment 11•1 month ago
|
||
Backed out for causing failures at browser_searchTerms_revert_keyboard.js.
Backout link: https://hg.mozilla.org/integration/autoland/rev/a96c25e743c4
Updated•1 month ago
|
Comment 12•1 month ago
|
||
| Assignee | ||
Updated•1 month ago
|
Comment 13•1 month ago
|
||
| bugherder | ||
Comment 14•1 month ago
|
||
I think this would be good to include in release notes. @ben do you mind adding release-notes request?
| Assignee | ||
Comment 15•1 month ago
|
||
Release Note Request (optional, but appreciated)
[Why is this notable]: Commonly visible UI will change.
[Affects Firefox for Android]: No
[Suggested wording]: Permissions are now visible when the search mode switcher is visible; geolocation permission indicator now turns red when the Geolocation API is used.
[Links (documentation, blog post, etc)]: n/a
Comment 16•1 month ago
|
||
Note added to our 153 nightly release notes in the New section with this wording:
The location permission icon in the address bar now turns red while a website is actively accessing your location, making it easier to notice when your location is being shared.
I reworked the suggested wording to be more user-focused. I also added a screenshot of the address bar with the red icon.
I am keeping the relnote-firefox? flag set until we include this note in our final 153 release notes, thanks.
| Reporter | ||
Comment 17•1 month ago
|
||
(In reply to Pascal Chevrel (relman team) -> :pascalc from comment #16)
Note added to our 153 nightly release notes in the New section with this wording:
The location permission icon in the address bar now turns red while a website is actively accessing your location, making it easier to notice when your location is being shared.
I reworked the suggested wording to be more user-focused. I also added a screenshot of the address bar with the red icon.
I am keeping the
relnote-firefox?flag set until we include this note in our final 153 release notes, thanks.
This description only covers one aspect of the change. The other part that isnโt mentioned is that we show permissions for SERP pages now. The main motivation was the permission reuse between Google maps and search.
Comment 18•1 month ago
|
||
How about:
Firefox now highlights the location permission icon in red while a website is actively reading your location. The permission icon is also now visible on search results pages where it was previously hidden.
| Reporter | ||
Comment 19•1 month ago
|
||
(In reply to Pascal Chevrel (relman team) -> :pascalc from comment #18)
How about:
Firefox now highlights the location permission icon in red while a website is actively reading your location. The permission icon is also now visible on search results pages where it was previously hidden.
I like it! We also show other permission icons on SERP now, but maybe thatโs not as important to point out.
Updated•1 month ago
|
Comment 20•1 month ago
|
||
Benjamin, if I'm reading the code correctly, the icon will change its color depending on the state? (not sure because in the screenshots you posted, we only see the geolocation icon in red and not in another color)
If that's the case, we might consider switching to a different icon (or adding a small "badge" to it) to improve accessibility (we shouldn't convey a state change only by changing the color , see https://www.w3.org/WAI/WCAG22/Understanding/use-of-color.html )
| Assignee | ||
Comment 21•1 month ago
|
||
That's correct. I agree that it's an accessibility bug. Unfortunately it applies to all permission indicators that have a sharing state (e.g. webRTC). I'll file another bug here.
| Assignee | ||
Comment 22•1 month ago
|
||
I've filed Bug 2045700.
Comment 23•1 month ago
|
||
I am keeping the
relnote-firefox?flag set until we include this note in our final 153 release notes, thanks.
(Change of internal process)
(In reply to Pascal Chevrel (relman team) -> :pascalc from comment #18)
How about:
Firefox now highlights the location permission icon in red while a website is actively reading your location. The permission icon is also now visible on search results pages where it was previously hidden.
"actively reading your location" is wrong, once the page gets the location it stays red.
The commit message jumped back and forth somehow?
Comment 26•1 month ago
|
||
(In reply to Kagami Rosylight [:saschanaz] (they/them) from comment #24)
"actively reading your location" is wrong, once the page gets the location it stays red.
Or let's change to:
Firefox now highlights the location permission icon in red whenever a website has access to your location. The permission icon is also now visible on search results pages where it was previously hidden.
That sounds better ๐๐ป
Updated•1 month ago
|
Description
•