Closed Bug 1607115 Opened 6 years ago Closed 2 years ago

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)

71 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1149826
Tracking Status
firefox72 --- affected
firefox73 --- affected
firefox74 --- affected

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:

  1. 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 "¯_(ツ)_/¯."

  2. load a webpage (eg duckduckgo.com) that has a text input field.

  3. 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:

  1. Nothing

Expected results:

  1. 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.

screenshot of macOS system preference item where substitutions are defined:

link : https://my.pcloud.com/publink/show?code=XZDeOukZ5G6QspRB2AX6agUKm4s0TYsA9S77

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

where text substitutions are defined in macOS for system wide text substitution (and synced to other iOS and macOS devices).

Hello, macOS text substitution functionality is indeed not working in Firefox. Note that this functionality is also not present when using Google Chrome.

Status: UNCONFIRMED → NEW
Component: Untriaged → Widget: Cocoa
Ever confirmed: true
Product: Firefox → Core
Priority: -- → P3
Severity: normal → S3
Whiteboard: [mac:integration]

As of November 2022 Google Chrome also supports this feature, which leaves Firefox the only major browser on macos that doesn't.

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:

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.

Thanks!

Status: NEW → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1149826
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: