`ContentCacheInParent::HandleQueryContentEvent` should not return error when there is a selection and queried with relative offset from current selection
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
People
(Reporter: masayuki, Assigned: masayuki)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(4 files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-beta+
|
Details | Review |
|
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-release+
|
Details | Review |
|
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-esr140+
|
Details | Review |
} else if (NS_WARN_IF(mSelection->mHasRange)) {
MOZ_LOG(sContentCacheLog, LogLevel::Error,
("0x%p HandleQueryContentEvent(), FAILED due to there is no "
"selection range, but the query requested with relative offset "
"from selection",
this));
return false;
Obviously, the check should be NS_WARN_IF(!mSelection->mHasRange)!
| Assignee | ||
Comment 1•10 months ago
|
||
This is just the typo of the condition, but this have made a lot of
queries failed when there is no IME selections. This could be one of
the cause of bug 1824143.
Comment 2•10 months ago
|
||
Set release status flags based on info from the regressing bug 1746104
Updated•10 months ago
|
Comment 3•10 months ago
|
||
firefox-beta Uplift Approval Request
- User impact if declined: Chinese users might see the crash of bug 1824143 because this bug caused us returning unexpected error to TSF when TSF/IME queries character rect or text content around selection.
(And this may fix bug 1859125 because we failed to reply queries due to this bug.)
- Code covered by automated testing: yes
- Fix verified in Nightly: no
- Needs manual QE test: no
- Steps to reproduce for manual QE testing:
- Risk associated with taking this patch: low
- Explanation of risk level: Just fix the mistake.
- String changes made/needed: no
- Is Android affected?: no
| Assignee | ||
Comment 4•10 months ago
|
||
This is just the typo of the condition, but this have made a lot of
queries failed when there is no IME selections. This could be one of
the cause of bug 1824143.
Original Revision: https://phabricator.services.mozilla.com/D272821
Comment 6•10 months ago
|
||
| bugherder | ||
Updated•10 months ago
|
Updated•10 months ago
|
Updated•10 months ago
|
Comment 8•10 months ago
|
||
firefox-release Uplift Approval Request
- User impact if declined: Chinese users cannot use Baidu's search form due to the crash (which may be caused by returning error to TSF caused by bug 1824143, bug 2000479 and bug 1992288) or our
TextEditorbug (bug 1992288).
As far as using moz-phab patch on the release branch, these patches can be applied cleanly and the new tests work.
https://treeherder.mozilla.org/jobs?repo=try&revision=cd466c731c4fd16f201ca5f3b6f42ff6ef88aef6
(The bustage of Bp-nu is in media's code...)
- Code covered by automated testing: no
- Fix verified in Nightly: yes
- Needs manual QE test: yes
- Steps to reproduce for manual QE testing: 1. Install Sogou IME from https://pinyin.sogou.com/index.php and use it
- Run debug build on Windows
- Load https://www.baidu.com/
- Type "nihao" into the search form at center of the page
Then, you should be able to type text after the form is moved to top of the page and you shouldn't see a lot of warnings in the terminal:
WARNING: 'queryTextRectEvent.Failed()', file D:/firefox2/widget/windows/TSFTextStore.cpp:2020
(The line number may become different after applying the last patch.)
- Risk associated with taking this patch: low
- Explanation of risk level: The first one is just adding the logger of
TextEditorcreation, etc. So, it does not affect to the behavior.
The second one is covered by the automated test.
The third one makes TSFTextStore stop notifying TSF of "layout available notifiecation" immediately after dispatching composition events. This can be checked by the manual QE testing.
The last one fixes the simple mistake of the content cache in the parent process.
(About "Is Android affected": Only the second bug fix and the last bug fix are cross-platform bugs. Therefore, they are "yes", but the 3rd patch is "no".)
- String changes made/needed: no
- Is Android affected?: yes
| Assignee | ||
Comment 9•10 months ago
|
||
This is just the typo of the condition, but this have made a lot of
queries failed when there is no IME selections. This could be one of
the cause of bug 1824143.
Original Revision: https://phabricator.services.mozilla.com/D272821
Updated•10 months ago
|
| Assignee | ||
Comment 10•10 months ago
|
||
This is just the typo of the condition, but this have made a lot of
queries failed when there is no IME selections. This could be one of
the cause of bug 1824143.
Original Revision: https://phabricator.services.mozilla.com/D272821
Updated•10 months ago
|
Comment 11•10 months ago
|
||
firefox-esr140 Uplift Approval Request
- User impact if declined: Chinese users cannot use Baidu's search form due to the crash (which may be caused by returning error to TSF caused by bug 1824143, bug 2000479 and bug 1992288) or our TextEditor bug (bug 1992288).
- Code covered by automated testing: yes
- Fix verified in Nightly: yes
- Needs manual QE test: yes
- Steps to reproduce for manual QE testing: 1. Install Sogou IME from https://pinyin.sogou.com/index.php and use it
- Run debug build on Windows
- Load https://www.baidu.com/
- Type "nihao" into the search form at center of the page
Then, you should be able to type text after the form is moved to top of the page and you shouldn't see a lot of warnings in the terminal:
WARNING: 'queryTextRectEvent.Failed()', file D:/firefox2/widget/windows/TSFTextStore.cpp:2020
(The line number may become different after applying the last patch.)
- Risk associated with taking this patch: low
- Explanation of risk level: The first one and the last one are covered by the automated test.
The second one makes TSFTextStore stop notifying TSF of "layout available notifiecation" immediately after dispatching composition events. This can be checked by the manual QE testing.
Note that this does not contain the patch for bug 1824143 because it only adds the logger of TextEditor creation, destruction and focus/blur. However, it's not required to fix the bug but it requires the new logging helper methods which were added in bug 1983375 in 144.
(About "Is Android affected": Only the second bug fix and the last bug fix are cross-platform bugs. Therefore, they are "yes", but the 3rd patch is "no".)
- String changes made/needed: no
- Is Android affected?: yes
Comment 12•10 months ago
|
||
Reproduced the issue described in comment 8 using an old Nightly debug build from 2025-11-17, lots of Warnings with queryTextRectEvent.Failed are displayed.
Verified that using the latest Nightly 147.0a1 debug and Firefox Beta 146 debug build on Windows 11, no more errors appear in the console while typing in baidu.com.
Not closing the bug as verified just yet, waiting for the esr140 uplift.
Updated•10 months ago
|
Updated•10 months ago
|
Comment 13•10 months ago
|
||
| uplift | ||
Updated•10 months ago
|
Updated•10 months ago
|
Comment 14•10 months ago
|
||
| uplift | ||
Comment 15•10 months ago
|
||
This is also verified as fixed on debug builds, Firefox 145.0.2 and 140.6.0esr on Win 11.
Updated•9 months ago
|
Description
•