Closed Bug 1199929 Opened 9 years ago Closed 9 years ago

Tooltip for muting / unmuting a tab should only contain the keyboard shortcut if it's the selected tab

Categories

(Firefox :: Tabbed Browser, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 43
Tracking Status
firefox43 --- verified

People

(Reporter: dao, Assigned: ehsan.akhgari)

References

Details

Attachments

(1 file)

Obviously (to us), the shortcut isn't going to work for background tabs. This might confuse users.

See also my patch for bug 1199609
Blocks: 1186267
Flags: needinfo?(ehsan)
Yes, agreed.
Assignee: nobody → ehsan
Flags: needinfo?(ehsan)
This will add new strings, so it won't block shipping.
No longer blocks: tab-sound-indicator
Attachment #8655153 - Flags: review?(jaws)
Comment on attachment 8655153 [details] [diff] [review]
Don't show the keyboard shortcut in the tooltip text for the tab audio indicator on background tabs

Review of attachment 8655153 [details] [diff] [review]:
-----------------------------------------------------------------

::: browser/base/content/tabbrowser.xml
@@ +3965,5 @@
> +              label = stringWithShortcut(stringID, "key_toggleMute");
> +            } else {
> +              let stringID = tab.linkedBrowser.audioMuted ?
> +                "tabs.unmuteAudio.background.tooltip" :
> +                "tabs.muteAudio.background.tooltip";

Pull the `let stringId = ...` part outside of the if/else as it is duplicated in each block.
Attachment #8655153 - Flags: review?(jaws) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/0c3b14c7ffd9
https://hg.mozilla.org/mozilla-central/rev/0c3b14c7ffd9
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 43
Verified fixed on latest Aurora 43.0a2 (buildID: 20151011004016).
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: