Open
Bug 1410504
Opened 8 years ago
Updated 5 years ago
Sort out how or whether mParser should affect editing state on HTML documents
Categories
(Core :: DOM: Core & HTML, enhancement, P5)
Tracking
()
NEW
People
(Reporter: bzbarsky, Unassigned)
Details
See bug 1384606 comment 4. nsHTMLDocument::DeferredContentEditableCountChange bails out if mParser is non-null, but nsHTMLDocument::EndUpdate calls MaybeEditingStateChanged() which does not consider mParser and just looks at mContentEditableCount. So any codepath that calls DeferredContentEditableCountChange while not in an update will basically defer "until the next update", which is not a very useful thing to do.
Mats, do you know anything about this stuff? Peter thought you might...
Flags: needinfo?(mats)
Comment 1•8 years ago
|
||
No, not really. I've only touched this code tangentially in bug 842166.
Fwiw, I thought the mParser check was an optimization to delay the work
until EndLoad.
http://searchfox.org/mozilla-central/rev/1c4da216e00ac95b38a3f236e010b31cdfaae03b/dom/html/nsHTMLDocument.cpp#844-845
Flags: needinfo?(mats)
| Reporter | ||
Comment 2•8 years ago
|
||
OK, that matches Peter's recollection, but it's totally ineffective at that per comment 0... Looks like that's been true ever since bug 395340.
Given that, I suspect we should just remove the mParser check....
Updated•8 years ago
|
Priority: -- → P3
Comment 3•5 years ago
|
||
Bulk-downgrade of unassigned, >=3 years untouched DOM/Storage bug's priority.
If you have reason to believe this is wrong, please write a comment and ni :jstutte.
Severity: normal → S4
Priority: P3 → P5
You need to log in
before you can comment on or make changes to this bug.
Description
•