Closed
Bug 1283497
Opened 9 years ago
Closed 9 years ago
"ASSERTION: These should always be in sync!" with mutation observer, designMode
Categories
(Core :: DOM: Editor, defect)
Core
DOM: Editor
Tracking
()
RESOLVED
FIXED
mozilla50
| Tracking | Status | |
|---|---|---|
| firefox50 | --- | fixed |
People
(Reporter: jruderman, Assigned: smaug)
References
Details
(Keywords: assertion, testcase)
Attachments
(3 files, 1 obsolete file)
###!!! ASSERTION: These should always be in sync!: 'slowNode == node', file dom/base/nsINode.cpp, line 281
This assertion was first added in bug 730587 (https://hg.mozilla.org/mozilla-central/rev/5280e98d2d77) but has moved several times since then.
I'm also CCing the developers who fixed bug 1056841, which sounds like it hit the assertion with XUL.
| Reporter | ||
Comment 1•9 years ago
|
||
| Assignee | ||
Comment 2•9 years ago
|
||
Ok, I think we need to expand nsElementDeletionObserver a bit to deal with unbinding too and unbind native anonymous content too.
| Assignee | ||
Comment 3•9 years ago
|
||
Not sure who would be a good reviewer for this. Given that native anonymous content (nac) has somewhat similar issues as shadow DOM, perhaps wchen you could take a look.
The basic idea is that we keep the editor created NAC around with the non-NAC element unless DeleteRefToAnonymousNode (which is normally used) is called.
If the non-nac is moved to another document, we just unbind since the editor in that other document might create similar NACs.
The change to nsElementDeletionObserver::NodeWillBeDestroyed is just to make it safer, and changes to nsHTMLEditor::DeleteRefToAnonymousNode just remove some useless calls to presshell, which end up firing warnings.
Reading also nsHTMLEditor::CreateAnonymousElement may ease reviewing.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=98e3d8c7b16ceac0b2d46c732fe4bf21d78e9b93
Assignee: nobody → bugs
Attachment #8767281 -
Flags: review?(wchen)
| Assignee | ||
Comment 5•9 years ago
|
||
There has been some renames in editor/
Attachment #8769646 -
Flags: review?(wchen)
| Assignee | ||
Updated•9 years ago
|
Attachment #8767281 -
Attachment is obsolete: true
Attachment #8767281 -
Flags: review?(wchen)
Comment 6•9 years ago
|
||
Comment on attachment 8769646 [details] [diff] [review]
up-to-date
Review of attachment 8769646 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good to me.
Attachment #8769646 -
Flags: review?(wchen) → review+
Pushed by opettay@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/b6ab1c8708cf
unbind editor created native anonymous content properly, r=wchen
Comment 8•9 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
Updated•9 years ago
|
Flags: needinfo?(wchen)
You need to log in
before you can comment on or make changes to this bug.
Description
•