[TSF] Support `GUID_PROP_URL`
Categories
(Core :: DOM: UI Events & Focus Handling, enhancement, P2)
Tracking
()
People
(Reporter: masayuki, Assigned: masayuki)
References
Details
Attachments
(3 files)
TSF has new attribute GUID_PROP_URL to make TIP (IME) be able to retrieve the URL of focused document. Chromium has already supported (the commit).
Although I feel it has some concerns about privacy. However, TIP (IME) can access other private things. So I think that we need a new pref to unsupport it, but it should be enabled by default for the compatibility of IME behavior between browsers on Windows.
The purpose of this property is explained as (by the commit message of Chromium):
TSF is used in various scenarios to enable intelligent services, such as autocorrection, text suggestions as you type, shapewriting etc. The URL GUID will be used by accessibility via TSF services in the OS. For example, accessibility experiences can be optimized for specific URLs, such as a screen reader reading "microsoft.com" or "YouTube at google.com".
| Assignee | ||
Updated•4 years ago
|
| Assignee | ||
Comment 1•3 years ago
|
||
TSFTextStore needs to expose the document URL for supporting new feature
of Windows 11 22H2 update. Therefore, the InputContext should have the
document URL.
Updated•3 years ago
|
| Assignee | ||
Comment 2•3 years ago
|
||
GUID_PROP_URL is defined here:
https://learn.microsoft.com/en-us/windows/win32/tsf/predefined-properties
Contains a BSTR value representing the URL of the text control source, where
applicable.
The URL may contain sensitive information, e.g., user name, password, query
string. However, they are already leaked via MSAA/UIA.
https://searchfox.org/mozilla-central/rev/b1e5f2c7c96be36974262551978d54f457db2cae/accessible/generic/DocAccessible.cpp#350
Therefore, this patch just has prefs to completely prevent to expose the URL
for users who don't like this feature.
Depends on D157893
Comment 4•3 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/329666086b40
https://hg.mozilla.org/mozilla-central/rev/418dec4ac3f9
Comment 5•3 years ago
|
||
Backed out for causing a top-crash ( bug 1792767 )
Backout link: https://hg.mozilla.org/mozilla-central/rev/59ab3186dfd4016b98a1dc97ea9ba146cb9f7abc
| Assignee | ||
Comment 6•3 years ago
|
||
The crash tracked in bug 1792767 is caused by uninitialized member of
TSFTextStore. Therefore, it runs the cleaning up the TSF objects at
setting focus to new TSFTextStore, but MS-IME didn't grab the necessary
objects and thus, the crash occurs.
Depends on D158244
Comment 8•3 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/a7c4336fcf3e
https://hg.mozilla.org/mozilla-central/rev/6dcffe73045a
https://hg.mozilla.org/mozilla-central/rev/55825a1bc9fd
Comment 9•3 years ago
|
||
I think this is noticeable enough to put into the release note, would you agree? If so, could you be kind enough to nominate relnote-firefox? for this one? thank you.
| Assignee | ||
Comment 10•3 years ago
|
||
Sure.
Release Note Request (optional, but appreciated)
[Why is this notable]: This may improve some web pages performance on Win11 22H2 unless user disables a11y module.
[Affects Firefox for Android]: No.
[Suggested wording]: Improved the performance of the case when Microsoft's IME and Defender retrieve URL of focused document in Win11 22H2.
[Links (documentation, blog post, etc)]: nothing special.
Updated•3 years ago
|
Description
•