CSS Custom Highlight API: Call `NotifySelectionListener()` with the correct Selection type
Categories
(Core :: DOM: Selection, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox128 | --- | fixed |
People
(Reporter: jjaschke, Assigned: jjaschke)
References
(Blocks 2 open bugs)
Details
Attachments
(1 file)
Currently, adding/removing highlight selections calls Selection::NotifySelectionListener()
using nsFrameSelection::EndBatchChanges(), but for SelectionType::eNormal
instead of SelectionType::eHighlight
.
My assumption here is that this might trigger unnecessary a11y or IME listeners, which could be the reason for Bug 1892216. Bug 1892589 contains an abandoned wip patch to fix this, however this patch unexpectedly failed some tests, so let's continue the work for this in here.
Assignee | ||
Comment 1•10 months ago
|
||
Before this patch, the AutoFrameSelectionBatcher
helper class would always call NotifySelectionListeners()
for SelectionType::eNormal
, even if the selection may have originated from Custom Highlight. This could have triggered unnecessary code leading to poorer performance.
Assignee | ||
Comment 2•10 months ago
|
||
Comment 4•10 months ago
|
||
bugherder |
Updated•10 months ago
|
Description
•