Skip to content
Snippets Groups Projects
Verified Commit da7f4e63 authored by Dave Long's avatar Dave Long
Browse files

Issue #3416141 by gorkagr, Jaypan, Wim Leers, alexpott: big_pipe.js'...

Issue #3416141 by gorkagr, Jaypan, Wim Leers, alexpott: big_pipe.js' checkMutation() does not check if node exists before using it
parent 1a187e37
No related branches found
No related tags found
Loading
Pipeline #97411 passed with warnings
......@@ -113,7 +113,12 @@
// occur if the script node was first observed with empty content and then
// the child text node was added in full later.
// @see `@ingroup large_chunk` for more information.
else if (checkMutation(node.parentNode)) {
// If an element is added and then immediately (faster than the next
// setImmediate is triggered) removed to a watched element of a
// MutationObserver, the observer will notice and add a mutation for both
// the addedNode and the removedNode - but the referenced element will not
// have a parent node.
else if (node.parentNode !== null && checkMutation(node.parentNode)) {
processReplacement(node.parentNode);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment