Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This CL adds WPTs for removing steps, to ensure that script is never executed during the removing steps hook [1], which are invoked synchronously during per-node removal (that is, they are not batched, but run this way per-node). This CL: 1. Augments the existing iframe removing steps WPT, to include `pagehide` events. At the time of writing this, all browsers deviate from the HTML Standard, and fail this test. 2. Adds new tests for `<input>` and `<button>` to assert that when they are focused and subsequently removed from the DOM, the `blur` event is *not* fired, per the HTML Standard. Chromium fails this test, while Safari and Firefox pass it. [1]: https://dom.spec.whatwg.org/#concept-node-remove-ext Bug: 40150299 Change-Id: I0aa43755ccac8ea432056800c5c4167d8e4460e8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5323158 Commit-Queue: Dominic Farolino <dom@chromium.org> Reviewed-by: Mason Freed <masonf@chromium.org> Cr-Commit-Position: refs/heads/main@{#1266801}
- Loading branch information