Closed Bug 1348735 Opened 7 years ago Closed 7 years ago

Do not share accesskeys between different labels (web notification permissions)

Categories

(Firefox :: Site Identity, defect, P1)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1349841

People

(Reporter: flod, Assigned: nhnt11)

References

Details

(Whiteboard: [fxprivacy])

Attachments

(1 file)

Landed in bug 1341742
https://hg.mozilla.org/mozilla-central/rev/a60007195df5

You're sharing the same accesskey (webNotifications.never.accesskey) for two different labels. The fact that it works in English doesn't mean it will work in other languages.
Thanks for catching that!

Nihanth, would you like to fix it?
Flags: needinfo?(nhnt11)
Priority: -- → P1
Whiteboard: [fxprivacy]
Thanks for catching this, good to remember in the future.
Assignee: nobody → nhnt11
Status: NEW → ASSIGNED
Flags: needinfo?(nhnt11)
Comment on attachment 8849793 [details]
Bug 1348735 - Add a separate accesskey for "Never For This Session" in web notification permission prompts.

https://reviewboard.mozilla.org/r/122550/#review124786

::: browser/locales/en-US/chrome/browser/browser.properties:501
(Diff revision 1)
>  webNotifications.notNow=Not Now
>  webNotifications.notNow.accesskey=n
>  webNotifications.never=Never Allow
> -webNotifications.neverForSession=Never For This Session
>  webNotifications.never.accesskey=v
> +webNotifications.neverForSession=Never For This Session

My understanding from the original bug is that this string is available only in Private mode. If that's the case, can we add a localization note?

A simple one would work.

# LOCALIZATION NOTE (webNotifications.neverForSession): this string is displayed
# only in private windows.
Comment on attachment 8849793 [details]
Bug 1348735 - Add a separate accesskey for "Never For This Session" in web notification permission prompts.

https://reviewboard.mozilla.org/r/122550/#review124786

> My understanding from the original bug is that this string is available only in Private mode. If that's the case, can we add a localization note?
> 
> A simple one would work.
> 
> # LOCALIZATION NOTE (webNotifications.neverForSession): this string is displayed
> # only in private windows.

Actually, since you use the same letter as accesskey, I assume this would be more precise

# LOCALIZATION NOTE (webNotifications.neverForSession): this string is displayed
# only in private windows, replacing “Never Allow” (they can share the same
# accesskey).
Comment on attachment 8849793 [details]
Bug 1348735 - Add a separate accesskey for "Never For This Session" in web notification permission prompts.

https://reviewboard.mozilla.org/r/122550/#review124836

Taking a step back we should just remove the dropdown in private mode as mentioned in bug 1341742 comment 33. When bug 1348257 lands this will be the consistent behavior of all permission prompts in PBM.
Attachment #8849793 - Flags: review?(jhofmann)
This bug will no longer be relevant once the string is removed in bug 1349841 (I've set that as blocking this one).
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Depends on: 1349841
Resolution: --- → INVALID
Eh, on second thought, I shouldn't resolve this until that one lands. Sorry for the bugspam.
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
I don't think INVALID is the right solution for this bug (it's definitely valid).

We can still consider it a dupe for sake of tracking.
Status: REOPENED → RESOLVED
Closed: 7 years ago7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: