Closed
Bug 1272466
Opened 9 years ago
Closed 8 years ago
adding which container is being used in the tooltip when hovering over tabs
Categories
(Core :: DOM: Security, defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla53
People
(Reporter: kjozwiak, Assigned: jkt)
References
(Blocks 1 open bug)
Details
(Whiteboard: [domsecurity-backlog][usercontextId][usercontextId-UI])
Attachments
(2 files)
We should add which container is being used in the tooltip that the user receives when they hover over tabs. Something similar to what e10s is currently doing. When a user hovers over a tab that's using e10s, they'll see a "e10s" at the end of the tooltip (see attached example).
* Default Container - we shouldn't do anything (leave as is)
* Personal Container - append "Personal" at the end of the tooltip
* Work Container - append "Work" at the end of the tooltip
* Banking Container - append "Banking" at the end of the tooltip
* Shopping Container - append "Shopping" at the end of the tooltip
Once we implement bug # 1267920, users should see the names that they've selected under the tooltip rather than the hardcoded values (Personal, Work etc..) that we're currently using.
Updated•9 years ago
|
Whiteboard: [domsecurity-backlog]
Updated•9 years ago
|
Priority: -- → P2
Whiteboard: [domsecurity-backlog] → [domsecurity-backlog][usercontextId][usercontextId-UI]
Updated•8 years ago
|
Priority: P2 → P3
Whiteboard: [domsecurity-backlog][usercontextId][usercontextId-UI] → [domsecurity-backlog2][usercontextId][usercontextId-UI]
Updated•8 years ago
|
Priority: P3 → P2
Whiteboard: [domsecurity-backlog2][usercontextId][usercontextId-UI] → [domsecurity-*][usercontextId][usercontextId-UI]
Updated•8 years ago
|
Whiteboard: [domsecurity-*][usercontextId][usercontextId-UI] → [domsecurity-backlog][usercontextId][usercontextId-UI]
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → jkt
Comment hidden (mozreview-request) |
Assignee | ||
Updated•8 years ago
|
Attachment #8814189 -
Flags: review?(gijskruitbosch+bugs)
Updated•8 years ago
|
Attachment #8814189 -
Flags: review?(gijskruitbosch+bugs) → review?(francesco.lodolo)
Comment 2•8 years ago
|
||
mozreview-review |
Comment on attachment 8814189 [details]
Bug 1272466 - Adding in container name to the tab title tooltip
https://reviewboard.mozilla.org/r/95446/#review95668
I expect we should use a separate string with 2 replacement vars for this. Flod, am I overthinking this?
Comment 3•8 years ago
|
||
mozreview-review |
Comment on attachment 8814189 [details]
Bug 1272466 - Adding in container name to the tab title tooltip
https://reviewboard.mozilla.org/r/95446/#review95674
I suggest to have a different string ID, with placeholders and a clear localization comment, to manage this properly. For example:
tabs.container.tooltip = #1 - #2
Or you could use
tabs.container.tooltip = \u0020- #2
But the risk is to be confusing, since you need an explicit whitespace.
Personally I would argue that the container might be the first information displayed, but that's a UX decision.
Attachment #8814189 -
Flags: review?(francesco.lodolo) → review-
Comment 4•8 years ago
|
||
(In reply to Francesco Lodolo [:flod] from comment #3)
> tabs.container.tooltip = #1 - #2
> tabs.container.tooltip = \u0020- #2
Better examples
tabs.container.tooltip = %1$S - %2$S
tabs.container.tooltip = \u0020- %S
Assignee | ||
Comment 5•8 years ago
|
||
:flod, Should there be a similar one added for e10s too with the same usecase for consistency?
Flags: needinfo?(francesco.lodolo)
Comment 6•8 years ago
|
||
(In reply to Jonathan Kingston [:jkt] from comment #5)
> :flod, Should there be a similar one added for e10s too with the same
> usecase for consistency?
Ideally yes, but we have e10s strings hard-coded in other places, including one fairly visible in the context menu. When I filed bug 1198920, the reply was that this was temporary, so I wouldn't bother touching a e10s specific strings.
Flags: needinfo?(francesco.lodolo)
Comment hidden (mozreview-request) |
Comment 8•8 years ago
|
||
mozreview-review |
Comment on attachment 8814189 [details]
Bug 1272466 - Adding in container name to the tab title tooltip
https://reviewboard.mozilla.org/r/95446/#review95710
::: browser/locales/en-US/chrome/browser/tabbrowser.properties:53
(Diff revision 2)
>
> # LOCALIZATION NOTE (tabs.allowTabFocusByPromptForSite):
> # %S is the hostname of the site where dialogs are allowed to switch tabs
> tabs.allowTabFocusByPromptForSite=Allow dialogs from %S to take you to their tab
> +
> +tabs.containers.tooltip=%1$S - %2$S
Please add a localization comment explaining what the variables are.
# LOCALIZATION NOTE (tabs.containers.tooltip
# Displayed as a tooltip on container tabs
# %1$S is the URL of the current tab
# %1$S is the name of the current container
Attachment #8814189 -
Flags: review?(francesco.lodolo)
Comment 9•8 years ago
|
||
Comment on attachment 8814189 [details]
Bug 1272466 - Adding in container name to the tab title tooltip
String looks good with the note added.
I suggest to request a proper review from a peer, since I can't actually test the code, and mozreview wouldn't land the code with my review anyway.
Attachment #8814189 -
Flags: feedback+
Comment 10•8 years ago
|
||
(In reply to Francesco Lodolo [:flod] from comment #8)
> # LOCALIZATION NOTE (tabs.containers.tooltip
> # Displayed as a tooltip on container tabs
> # %1$S is the URL of the current tab
> # %1$S is the name of the current container
That's one poor example :-\
# LOCALIZATION NOTE (tabs.containers.tooltip):
# Displayed as a tooltip on container tabs
# %1$S is the URL of the current tab
# %2$S is the name of the current container
Assignee | ||
Comment 11•8 years ago
|
||
Thanks Flod appreciate you looking at this, sorry forgot about the note :)
Assignee | ||
Comment 12•8 years ago
|
||
Ah except it's not a URL either I'm changing that line to:
# %1$S is the title of the current tab
Comment hidden (mozreview-request) |
Assignee | ||
Updated•8 years ago
|
Attachment #8814189 -
Flags: review?(francesco.lodolo)
Assignee | ||
Updated•8 years ago
|
Attachment #8814189 -
Flags: review?(gijskruitbosch+bugs)
Comment 14•8 years ago
|
||
Comment on attachment 8814189 [details]
Bug 1272466 - Adding in container name to the tab title tooltip
LGTM, but Flod should OK, I guess.
Attachment #8814189 -
Flags: review?(gijskruitbosch+bugs) → review?(francesco.lodolo)
Comment 15•8 years ago
|
||
mozreview-review |
Comment on attachment 8814189 [details]
Bug 1272466 - Adding in container name to the tab title tooltip
https://reviewboard.mozilla.org/r/95446/#review95912
Thanks Gijs, I feel safer when a real developer looks at code, as trivial as it can be.
The problem is that he's probably not going to be able to land with my r+ (but I'll ask).
Attachment #8814189 -
Flags: review?(francesco.lodolo) → review+
Comment 16•8 years ago
|
||
A sheriff will need to r+ this again to let this land.
Keywords: checkin-needed
Comment 17•8 years ago
|
||
mozreview-review |
Comment on attachment 8814189 [details]
Bug 1272466 - Adding in container name to the tab title tooltip
https://reviewboard.mozilla.org/r/95446/#review96454
Attachment #8814189 -
Flags: review+
Comment 18•8 years ago
|
||
Pushed by gijskruitbosch@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/b25f222b8636
Adding in container name to the tab title tooltip r=flod,Gijs
Keywords: checkin-needed
Comment 19•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox53:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
You need to log in
before you can comment on or make changes to this bug.
Description
•