Open Bug 1940574 Opened 1 month ago Updated 25 days ago

intl_keyboard_layout data is inconsistent

Categories

(Core :: Privacy: Anti-Tracking, defect, P3)

defect

Tracking

()

ASSIGNED

People

(Reporter: tjr, Assigned: fkilic)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 2 obsolete files)

Attached image Untitled.png

Wile validating the data from our set of volunteers, I found that the data we are getting for intl_keyboard_data is inconsistent across OS. We could probably apply a mapping on the backend to correct and unify the desktop OS values, but Android seems not to report anything at all. Is that because the keyboard layout is a function of a different language setting? If so, we can use that setting in the backend mapping as well.

We probably should do it but there isn't a comprehensive list of keyboard layouts. Windows provides this https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/windows-language-pack-default-values, but there isn't anything available for MacOS, wayland and x11 afaict. I'll take a look at android and see if something can be done but apparently there's no reliable way of doing this on android (some report specific keyboards, e.g. google keyboard, just return empty string)

Instead of returning localized layout names, we may consider using "reverse DNS name associated with the input source"

Assignee: nobody → fkilic
Status: NEW → ASSIGNED
See Also: → 1940840

Comment on attachment 9446681 [details]
Bug 1940574: Implement nsLookAndFeel::GetKeyboardLayoutImpl on Android. r?tjr

Revision D233762 was moved to bug 1940840. Setting attachment 9446681 [details] to obsolete.

Attachment #9446681 - Attachment is obsolete: true

Comment on attachment 9446555 [details]
Bug 1940574: Consider using kTISPropertyInputSourceID instead of kTISPropertyLocalizedName. r?tjr

Revision D233667 was moved to bug 1940840. Setting attachment 9446555 [details] to obsolete.

Attachment #9446555 - Attachment is obsolete: true
Severity: -- → S3
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: