Open
Bug 1726298
Opened 4 years ago
Updated 4 years ago
`ContentEventHandler` should guess caret rect from parent frames when there is no text
Categories
(Core :: DOM: UI Events & Focus Handling, defect, P3)
Core
DOM: UI Events & Focus Handling
Tracking
()
ASSIGNED
People
(Reporter: masayuki, Assigned: masayuki)
References
Details
NS_ENSURE_TRUE(frame) failed: dom/events/ContentEventHandler.cpp:1316
WARNING: 'queryTextRectsEvent.Failed()', widget/ContentCache.cpp:285
WARNING: '!QueryCharRectArray(aWidget, startOffset, length, rects)', widget/ContentCache.cpp:386
Even after fixing bug 1726297, I still see those warnings...
| Assignee | ||
Comment 1•4 years ago
|
||
I got it. If GetFirstFrameInRangeForTextRect() does not find any visible content, it does not return a frame. In that case, we should guess caret position in first visible parent. Then, IME can show its window at least around the editor.
Summary: Avoid warnings in `ContentEventHandler` → `ContentEventHandler` should guess caret rect from parent frames when there is no text
You need to log in
before you can comment on or make changes to this bug.
Description
•