Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DOM: Fix moveBefore null parent crash
Before this CL, we didn't early-return from `Node::moveBefore()` when `insertBefore()` threw an error due to an invalid node hierarchy. This wasn't necessary until we introduced the `MovedFrom()` hook, since there was no significant code after the `insertBefore()` call. But once we introduced that hook, we didn't add the early-return before calling the hook, which caused this crash. R=masonf, nrosenthal Bug: 40150299, 388934346 Change-Id: Ie5f7401ed5097b7f64097daa557f315a9889664f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6179644 Commit-Queue: Dominic Farolino <[email protected]> Reviewed-by: Noam Rosenthal <[email protected]> Cr-Commit-Position: refs/heads/main@{#1407973}
- Loading branch information