IME's candidate/suggest window may be positioned at wrong point in comment form of Office Online (Word/Excel/PowerPoint)
Categories
(Core :: DOM: UI Events & Focus Handling, defect, P2)
Tracking
()
People
(Reporter: masayuki, Assigned: masayuki)
References
Details
(Keywords: inputmethod)
Attachments
(1 file)
47 bytes,
text/x-phabricator-request
|
lizzard
:
approval-mozilla-beta+
|
Details | Review |
STR
- Open Word/Excel/PowerPoint of Office Online
- Show comments pane with clicking "Comments" at top-right of their toolbar
- Click "New" to open comment form
- Type something at first line.
- Type
Enter
twice (i.e., cursor should be at third line) - Type something with IME
- Type
Backspace
until going to the second line - Type something with IME and try to convert it.
AR
Candidate window and/or suggest window of IME may show wrong point (i.e., not around caret).
This is our long standing bug. A patch is coming.
Assignee | ||
Comment 1•5 years ago
|
||
IMEContentObserver
sends selection change notification only when it receives
a DOM Selection
change notification received. However, selection range in
plaintext offset may be changed when changing previous content of caret is
changed. In this case, currently we notify IME of only text change and
that causes IME keep caching selection offsets in previous content. This
causes IME queries character rect out of bounds. Therefore, even if
IMEContentObserver
hasn't received DOM Selection
change notification,
it should recompute selection range and if it's changed, it should notify
IME of selection change too.
Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/eff2ef054e11 Make `IMEContentObserver` always recompute selection range after sending text change notification r=m_kato
Comment 3•5 years ago
|
||
bugherder |
Assignee | ||
Comment 4•5 years ago
|
||
Comment on attachment 9093509 [details]
Bug 1582010 - Make IMEContentObserver
always recompute selection range after sending text change notification
Beta/Release Uplift Approval Request
- User impact if declined: IME users type text with IME not comfortable in comment field of Office Online apps such as Word, Excel and PowerPoint if they remove one or more lines in it.
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: 1. Open Word, Excel and PowerPoint of Office Online and start editing a file
- Press "Comments" button in the toolbar (at right)
- Press "New" to show a comment field.
- Type something in the first line
- Type Enter some times (to make empty lines)
- Type a character with IME at last line
- Type Backspace key some times to remove the last line and empty lines (don't remove all empty lines at this step, i.e., you should stay in an empty line after this step)
- Type something with IME and convert it with IME (Type "a" -> "i" and Type space key if you use Japanese IME)
Then, at step 8, suggest window (shown at typing characters) and candidate window (shown at typing space character) should be shown immediately under caret.
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): The patch just makes
IMEContentObserver
recompute selection range if it sends text changes to IME. I have assumed that if text change notification occurs,IMEContentObserver
always receives selection change notification if we need to notify IME of selection changes too. However, this was wrong in some applications. (I.e., unnecessary computation may occur, but this is now necessary cost.) - String changes made/needed: none
Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Comment 5•5 years ago
•
|
||
Hello!
Reproduced the issue on Windows 10x64 with Firefox 71.0a1 (20190917155453). After doing STR mentioned above the suggest window is shown on the down left side of the browser window.
The issue is verified fixed with Firefox 71.0a1 (20190923094800) on Windows 10x64. The suggest window is correctly shown.
Comment 6•5 years ago
|
||
Comment on attachment 9093509 [details]
Bug 1582010 - Make IMEContentObserver
always recompute selection range after sending text change notification
Fix for IME backspace error, verified in Nightly.
OK for uplift for beta 10.
Comment 7•5 years ago
|
||
bugherder uplift |
Comment 8•5 years ago
|
||
Hello!
The issue is verified fixed with Firefox 70.0b10 (20190924213629) using Windows 10x64. The suggest window is correctly shown under the text on Word, Excel and PowerPoint of Office Online pages after doing the STR from comment 4.
Updated•4 years ago
|
Description
•