Make methods in `WhiteSpaceVisibilityKeeper` track DOM points in smaller block as far as possible
Categories
(Core :: DOM: Editor, enhancement, P3)
Tracking
()
People
(Reporter: masayuki, Assigned: masayuki)
References
Details
Attachments
(4 files)
|
48 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-esr91+
|
Details | Review |
|
48 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-esr91+
|
Details | Review |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-esr91+
|
Details | Review |
I found some points in the class do not track cached DOM points/ranges for each DOM change. So they could cause deleting unexpected characters or inserting new character to unexpected position.
| Assignee | ||
Comment 1•4 years ago
|
||
It pointToSplit should be tracked at replacing text, but I have no idea how
to test this because it replaces the text after the split point.
| Assignee | ||
Comment 2•4 years ago
|
||
And also invisible white-space range and replacing white-space position should
also be tracked too.
Depends on D131036
| Assignee | ||
Comment 3•4 years ago
|
||
Similar to the previous patch, this patch also make it track invisible
white-space ranges and clear outdated things.
And this makes it cache some information instead of tracking some changes
because of performance reason.
Depends on D131037
Comment 7•4 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/addb07ae8de0
https://hg.mozilla.org/mozilla-central/rev/7f1d3fd39a93
https://hg.mozilla.org/mozilla-central/rev/17076719bbf2
Updated•4 years ago
|
Comment 8•4 years ago
|
||
We've gotten some reports of this fixing other crashes in the wild. What do you think about nominating this for ESR uplift, Masayuki?
| Assignee | ||
Comment 9•4 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM] from comment #8)
We've gotten some reports of this fixing other crashes in the wild. What do you think about nominating this for ESR uplift, Masayuki?
Sure, but we need to port the part 3 patch.
https://treeherder.mozilla.org/jobs?repo=try&selectedTaskRun=Y5DR197hSfSc7EKSWflxKw.0&revision=1201346db134cacfae33874a53bb14c64dd3cb26
| Assignee | ||
Comment 10•4 years ago
|
||
Due to the change of bug 1727844 and bug 1724650, only "part 3" cannot be
grafted cleanly.
| Assignee | ||
Comment 11•4 years ago
|
||
Comment on attachment 9250476 [details]
Bug 1740847 - part 1: Track split point at replacing collapsible white-spaces r=m_kato!
ESR Uplift Approval Request
- If this is not a sec:{high,crit} bug, please state case for ESR consideration: These patches fix some random crashes in the wild.
- User impact if declined: Users will see crash in some editor apps.
- Fix Landed on Version: 96
- Risk to taking this patch: Medium
- Why is the change risky/not risky? (and alternatives if risky): The patches touch a lot of lines, but each line's change is simple. And the fix has already been tested by a lot of testers.
| Assignee | ||
Updated•4 years ago
|
Comment 12•4 years ago
|
||
Comment on attachment 9250476 [details]
Bug 1740847 - part 1: Track split point at replacing collapsible white-spaces r=m_kato!
Approved for 91.5esr. Thanks for attaching the rebased patch.
Updated•4 years ago
|
Updated•4 years ago
|
Comment 13•4 years ago
|
||
| bugherder uplift | ||
https://hg.mozilla.org/releases/mozilla-esr91/rev/38ff66d6c922
https://hg.mozilla.org/releases/mozilla-esr91/rev/255cad36ba4d
https://hg.mozilla.org/releases/mozilla-esr91/rev/ed25aa724fba
Description
•