Occasional crash in CollectionIndexCache::~CollectionIndexCache while running moveBefore tests.#65120
Conversation
|
EWS run on current version of this PR (hash a789fd4) Details |
|
Do you happen to know the iteration count that triggers this crash? Either way this looks fine as a temporary fix I suspect in the end we don't want to call this and will handle it another way. (I might be wrong on that but the spec never fires these steps from my reading of it) |
|
The spec doesn't mention it because there is no equivalent step / concept in the spec. |
|
Ah okay, I thought they were the same as https://dom.spec.whatwg.org/#concept-node-children-changed-ext |
Oh, that's very confusing. We should probably rename |
| @@ -1,4 +1,4 @@ | |||
|
|
|||
| PASS Synchronous script execution in HTMLScriptElement during moveBefore should be blocked | |||
| PASS Synchronous script execution in SVGScriptElement during moveBefore should be blocked | |||
| FAIL Synchronous script execution in HTMLScriptElement during moveBefore should be blocked assert_false: <html:script> does not define moving steps which allow script execution. expected false got true | |||
There was a problem hiding this comment.
Is it OK that this PASS changes to a FAIL?
There was a problem hiding this comment.
Yes, we'd just need to follow up.
… running moveBefore tests. https://bugs.webkit.org/show_bug.cgi?id=315034 rdar://177337493 Reviewed by Simon Fraser. Notify the parent nodes for a child move so that things like HTMLCollectionCache gets invalidated. No new tests since existing tests cover this scenario. More tests progress with this change except script-move-before.html which regresses. * LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/Node-moveBefore-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/iframe-document-preserve.window-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/moveBefore-name-map-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/script-move-before-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/dom/nodes/moveBefore/slotchange-events-expected.txt: * Source/WebCore/dom/ContainerNode.cpp: (WebCore::ContainerNode::moveBefore): Canonical link: https://commits.webkit.org/313444@main
a789fd4 to
958ef3d
Compare
|
Committed 313444@main (958ef3d): https://commits.webkit.org/313444@main Reviewed commits have been landed. Closing PR #65120 and removing active labels. |
958ef3d
a789fd4
🧪 ios-wk2🧪 ios-wk2-wpt