Fix wpt failure in perform-microtask-checkpoint-before-construction-xml-parser.xhtml
Categories
(Core :: DOM: Core & HTML, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox124 | --- | fixed |
People
(Reporter: hsinyi, Assigned: avandolder)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Comment 1•1 year ago
|
||
I took a quick look. For HTML we do this in nsHtml5TreeOperation::CreateHTMLElement. For XML we should do something similar in nsXMLContentSink::CreateElement.
We should probably add an mozilla::dom::CustomElementDefinition* aDefinition=nullptr argument to NS_NewElement, which can then forward it to NS_NewHTMLElement and NS_NewXULElement. In nsXMLContentSink::CreateElement we look up the CustomElementDefinition with nsContentUtils::LookupCustomElementDefinition, add an nsAutoMicroTask and AutoCEReaction if there is a CustomElementDefinition and pass it on to NS_NewElement. I think that might be enough. Olly and I think it should be fine to run script at this point, but of course we should run the whole testsuite.
| Assignee | ||
Comment 2•1 year ago
|
||
Updated•1 year ago
|
Comment 4•1 year ago
•
|
||
Backed out for causing failures at browser_UrlbarInput_searchTerms_searchBar.js.
Backout link: https://hg.mozilla.org/integration/autoland/rev/77a354de11e22ddd10874d06a7e8c72701450148
Failure log:
https://treeherder.mozilla.org/logviewer?job_id=444549290&repo=autoland&lineNumber=4441
https://treeherder.mozilla.org/logviewer?job_id=444549272&repo=autoland&lineNumber=3022
https://treeherder.mozilla.org/logviewer?job_id=444553360&repo=autoland&lineNumber=7049
https://treeherder.mozilla.org/logviewer?job_id=444552779&repo=autoland&lineNumber=3481
https://treeherder.mozilla.org/logviewer?job_id=444550904&repo=autoland&lineNumber=13721
Comment 6•1 year ago
|
||
| bugherder | ||
| Assignee | ||
Updated•1 year ago
|
Description
•