In macOS versions of FF, the core macOS feature of text/glyph substitution is blocked/unimplemented for text fields
Categories
(Core :: Widget: Cocoa, defect, P3)
Tracking
()
People
(Reporter: usefuldesign.au, Unassigned)
Details
(Whiteboard: [mac:integration])
Attachments
(2 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:71.0) Gecko/20100101 Firefox/71.0
Steps to reproduce:
-
Make sure you have at least on text substitution in your system preferences (there are default cases, I will use the "&shrug" default case which converts any instance where the user types "&shrug" to "¯_(ツ)_/¯."
-
load a webpage (eg duckduckgo.com) that has a text input field.
-
type "&shrug" into the search query text field
N.B> the "¯_(ツ)_/¯." substitution is a trivial example however I have loaded dozens of shortcut links to urls that I frequently post on SM (hence needing it to work in FF as well as all my text editors) and shortcuts for non-ASCII glyphs that would otherwise take time to paste in with macOS Text Glyph tools. eg
CH4 ➞ CH₄
gwp20 ➞ GWP₂₀
Gwp100 ➞ GWP₁₀₀
"->" ➞ "➝⤑➞ " (i can delete the arrows I don't wish to use leaving the style I want to use)
iCloud also sync these keyboard substitutions across multiple macOS and iOS devices, which is great because iOS lacks the sophisticated glyph substitutions that macOS has with Edit Menu > Emoji & Symbols…)
Actual results:
- Nothing
Expected results:
- the "&shrug" text is converted on the fly to "¯_(ツ)_/¯." (it also appears as a text in a clickable box below the typed text prior to text conversion. When there's multiple suggestions, this also allows for user to click one of several options. See screenshots before and after in Safari.
Reporter | ||
Comment 1•6 years ago
|
||
screenshot of macOS system preference item where substitutions are defined:
link : https://my.pcloud.com/publink/show?code=XZDeOukZ5G6QspRB2AX6agUKm4s0TYsA9S77
Reporter | ||
Comment 2•6 years ago
|
||
This bug not to be confused with this (also) long existing bug: Bug 1284892:
Add support for Mac: text areas and text fields: contextual menu: Substitutions
Reporter | ||
Comment 3•6 years ago
|
||
where text substitutions are defined in macOS for system wide text substitution (and synced to other iOS and macOS devices).
Comment 4•6 years ago
|
||
Hello, macOS text substitution functionality is indeed not working in Firefox. Note that this functionality is also not present when using Google Chrome.
Updated•6 years ago
|
Updated•5 years ago
|
Comment hidden (advocacy) |
Comment hidden (me-too) |
Updated•4 years ago
|
Comment hidden (advocacy) |
As of November 2022 Google Chrome also supports this feature, which leaves Firefox the only major browser on macos that doesn't.
Comment 9•3 years ago
•
|
||
Caveat: This comment's solution is theoretical and a starting point.
I ran into this issue and contacted a coworker (:gregtatum) about how this feature works on OSX. Sharing some of our conversation here, along with links to how Chrome implemented it.
First - here's the overall concept and process from Apple.
How Chrome implements it:
- The main implementation is here: content/app_shim_remote_cocoa/render_widget_host_view_cocoa.mm.
- They set the menu item(s) here: chrome/browser/ui/cocoa/main_menu_builder.mm
- See all references to
automaticTextReplacement
Caveats/notes:
- Firefox uses its own spell checking and dictionary system (as opposed to Apple's
nsspellchecker
) and you'd probably have to build on top of, and select the OS-dictionaries. - This feature includes other text replacement features (Smart dash/quote replacement, etc) that would have to be implemented along side it.
Again, this isn't a step-by-step guide on how to do it, but some (hopefully) helpful context for future travelers.
Comment hidden (advocacy) |
Comment hidden (advocacy) |
Comment hidden (advocacy) |
Comment hidden (advocacy) |
Comment 14•2 years ago
|
||
This looks like a duplicate of https://bugzilla.mozilla.org/show_bug.cgi?id=1149826
Comment 15•2 years ago
|
||
Thanks!
Description
•