Closed Bug 1612254 Opened 4 years ago Closed 4 years ago

Keyboard shortcut (cmd + ,) does not create subscript as it does in other browsers

Categories

(Firefox :: Keyboard Navigation, defect, P2)

72 Branch
Desktop
macOS
defect

Tracking

()

VERIFIED FIXED
Firefox 76
Tracking Status
firefox-esr68 --- wontfix
firefox72 --- wontfix
firefox73 --- wontfix
firefox74 --- wontfix
firefox75 --- wontfix
firefox76 --- verified

People

(Reporter: sarahrbrazier3, Assigned: jdai)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:72.0) Gecko/20100101 Firefox/72.0

Steps to reproduce:

Reproduction:

  1. Open Firefox
  2. Go to drive.google.com
  3. Open document in Google docs
  4. Highlight character in google docs (such as the "2" in H20)
  5. Press command + , (comma)

Actual results:

Command + , opens a new tab in firefox - about:preferences

Expected results:

Highlighted character should turn into a subscript

(this works in google docs in other browsers and is listed as the proper shortcut for a subscript; superscript, command + . works)

Hi Sarah,

Thank you for submitting this report. I was able to reproduce the issue on Mac 10.14 with Firefox versions Release 72.0.2, Beta 73.0b11 and Nightly 74.0a1 (2020-02-02).

The problem couldn't be reproduced using "Ctrl" + "," on Windows 10 x64 and Ubuntu 18.04.3 LTS with Firefox versions Release 72.0.2, Beta 73.0b11 and Nightly 74.0a1 (2020-02-02).

I am assigning a component, so our developers can take a look.

Status: UNCONFIRMED → NEW
Component: Untriaged → Keyboard Navigation
Ever confirmed: true
OS: Unspecified → macOS
Hardware: Unspecified → Desktop

The priority flag is not set for this bug.
:dao, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(dao+bmo)
Component: Keyboard Navigation → DOM: UI Events & Focus Handling
Flags: needinfo?(dao+bmo)
Product: Firefox → Core

It seems that we have a Preferences keyboard shortcut (command-comma) only for MacOS[1] and it set to reserved="true" in bug 1381951 so that the event will no longer dispatch to content process. I notice Safari also has the same issue.

[1] https://searchfox.org/mozilla-central/rev/fca0be7e2cf2f922c9b927423ce28e8a04b3fd90/browser/base/content/browser-sets.inc#363-366

It seems it's safe to remove reserved="true" for macOS's preferences keyboard shortcut and it still can open preferences in Gmail[1].

[1] See bug 1381951 comment 17

Assignee: nobody → jdai
Status: NEW → ASSIGNED
Priority: -- → P2
Regressed by: 1381951
Has Regression Range: --- → yes

To remind about a comment from bug 1381951 (aside from the regression itself), allowing JavaScript to bind this shortcut introduces a phishing opportunity for sites to spoof Firefox’s “it’s made of HTML” about:preferences, since Mac users are trained to expected that shortcut to open application preferences.

Component: DOM: UI Events & Focus Handling → Keyboard Navigation
Product: Core → Firefox

Marking as wontfix for 74 as we are nearing the end of the beta cycle.

April, will you find time for that patch? Thanks!

Flags: needinfo?(april)

Err, I just noticed this. I don't usually work on Firefox, but the patch looks fine to me and so I gave it an r+. That said, it's really outside my area of expertise, so you may want to have an additional eye take a quick glance at it.

Flags: needinfo?(april)
Attachment #9127614 - Attachment description: Bug 1612254 - Remove reserve preferences shortcut on mac; → Bug 1612254 - Stop marking the preferences shortcut as "reserved" on mac;
Pushed by gijskruitbosch@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/d9b28e0aad5d
Stop marking the preferences shortcut as "reserved" on mac; r=April

I would add that I know this is done for compatibility with a popular product and is in line with how Chrome works, but I still feel in my gut that GDocs is behaving poorly here.

I will add that Safari also does not do subscript, and cmd-, on Safari while Google Docs is open brings up Safari's preferences.

(In reply to April King [:April] from comment #11)

I would add that I know this is done for compatibility with a popular product and is in line with how Chrome works, but I still feel in my gut that GDocs is behaving poorly here.

I will add that Safari also does not do subscript, and cmd-, on Safari while Google Docs is open brings up Safari's preferences.

I agree that it'd be better for gdocs not to conflict here, and the browser discrepancies (and thus somewhat of a minefield for web authors to work out which shortcuts they can/cannot use/override) are not great.

Anne, is shortcut-un-overrideable-ness-for-websites something we could try to standardize as part of the DOM spec? Is there prior art / conversation on that subject?

Flags: needinfo?(annevk)
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 76

https://github.com/w3c/uievents/issues/261 seems related (and that would also be the repository to use for any enhancements to keyboard events). HTML has an accesskey attribute that in principle browsers could expose in a variety of ways, including those not overlapping with builtins, but it does require sites to use it (and browsers to support it accurately), neither of which is really a thing I believe. Hope that helps a bit.

Flags: needinfo?(annevk)

The patch landed in nightly and beta is affected.
:jdai, is this bug important enough to require an uplift?
If not please set status_beta to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(jdai)

(In reply to Release mgmt bot [:sylvestre / :calixte / :marco for bugbug] from comment #15)

The patch landed in nightly and beta is affected.
:jdai, is this bug important enough to require an uplift?
If not please set status_beta to wontfix.

For more information, please visit auto_nag documentation.

Talked with John, and also as what Julien marked, wontfix for 75.

Flags: needinfo?(jdai)
Flags: qe-verify+

Reproduced the issue using Firefox 74.0a1 (20200129213721) on macOS 10.12.
The issue is verified fixed using Firefox 76.0b5 (20200415234430) on macOS 10.12. CMD + , turns the highlighted character into a subscript.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: