From 586f77dd67dd8d4f752f759d870c42bcdf83f80b Mon Sep 17 00:00:00 2001 From: Dominic Farolino Date: Wed, 28 Feb 2024 05:01:49 +0000 Subject: [PATCH] Bug 1877607 [wpt PR 44308] - DOM: Add iframe insertion & removal steps WPTs, a=testonly Automatic update from web-platform-tests DOM: Add iframe insertion & removal steps WPTs To help resolve https://github.com/whatwg/dom/issues/808, we need WPTs asserting exactly when (DOM-observing) script can and cannot be invoked during the insertion and removing steps for iframes and script elements. The tests in this CL assert the current spec behavior of: Iframe: - Insertion: - Synchronously fire the `load` event in the iframe document - Removal: - No script is run in between multiple iframe removals. Script cannot observe the state of the DOM in between multiple synchronous removals because, i.e., no `unload` events are fired in this case per HTML [1]. Script: - Insertion: - Synchronously execute