Closed Bug 1709036 Opened 4 years ago Closed 4 years ago

Remote control robot icon should be visible on all pages

Categories

(DevTools :: General, defect, P3)

defect

Tracking

(firefox90 fixed)

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: jdescottes, Assigned: jdescottes)

References

(Blocks 1 open bug)

Details

Attachments

(2 files, 1 obsolete file)

When the browser starts under remote control, a Robot icon is displayed in the urlbar.
However it's missing on some pages, eg about:newtab.

If we want to use this icon to convey more information about the current remote control setup, it would be great if it was visible in most cases.

This icon is part of the #identity-box container.

It is explicitly hidden at https://searchfox.org/mozilla-central/rev/083983b7f09b00cdfe4f70396e39ea4f8a1735e1/browser/themes/shared/identity-block/identity-block.inc.css#45

#identity-box[pageproxystate="invalid"] #remote-control-icon {
  display: none;
}

Together with a few other icons. It would be great to be able to always show it.

Which pages do we actually miss? I assume it's just about all the privileged in-content about pages?

Flags: needinfo?(jdescottes)

Seems to be a bit more complicated than that:
https://searchfox.org/mozilla-central/rev/083983b7f09b00cdfe4f70396e39ea4f8a1735e1/browser/components/urlbar/UrlbarInput.jsm#1745-1761

It's about the "proxy state" of the URL bar.

For instance, when you are on about:newtab, but the URL is actually empty (eg starting page), there is a mismatch between the displayed URL and the loaded URL, and the icon is hidden.

The same happens if you start typing in the URL bar. See the comment I linked to for more info.

I guess the idea is that all icons that relate to the actual URL should be hidden.
Because if the URL no longer matches the loaded URL, the info might be wrong (or even misleading)

For our remote control icon however, it's always relevant to show it, so I hope we can simply update the rule.
Or maybe the icon should be somewhere else?

Flags: needinfo?(jdescottes)

Ah, good to know. Maybe we should get a UX person involved to find the right place then.

(In reply to Julian Descottes [:jdescottes] from comment #2)

It's about the "proxy state" of the URL bar.

For instance, when you are on about:newtab, but the URL is actually empty (eg starting page), there is a mismatch between the displayed URL and the loaded URL, and the icon is hidden.

For our remote control icon however, it's always relevant to show it, so I hope we can simply update the rule.
Or maybe the icon should be somewhere else?

Hi Victoria. For this particular issue we would need some input from the UX team given that it is unclear to us how to actually solve this problem. As such your input would be appreciated. Thanks a lot.

Flags: needinfo?(victoria)

For this particular issue we would need some input from the UX team given that it is unclear to us how to actually solve this problem.

In a first step we can propose to always show it despite the fact that it's in the #identity-box container? And file a follow up bug to move it somewhere else?

Also I don't know if we need to move it from a UX point of view.
I was thinking about moving it outside of the #identity-box container, but roughly keeping it in the same spot?

Thanks Julian. Do you have some screenshot that show how this would look like in the different scenarios?

Attached image about_newtab.png

about:newtab with the robot icon.

I was concerned that forcing the display of the icon would lead to show a "clickable" container.
However the hover text doesn't show up when moving the mouse cursor on the icon. This comes from another rule:

https://searchfox.org/mozilla-central/rev/27722db2f164add7047d7db03169966cb806e927/browser/themes/shared/identity-block/identity-block.inc.css#49

This really makes me think we would benefit to use another container for the icon. Maybe desktop-theme-reviewers will be able to suggest something.

Assignee: nobody → jdescottes
Status: NEW → ASSIGNED

Hi Julian! If there's a solution to always show it, it does seem ideal to keep it in the address field, as in the screenshot, to connect it with the warning colors.

Flags: needinfo?(victoria)
Attachment #9221504 - Attachment is obsolete: true
Pushed by jdescottes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a1f86626a0c9 [remote] Move remotecontrol visual cue to dedicated container r=desktop-theme-reviewers,harry
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: