On Mon, Sep 5, 2022 at 2:54 PM Henri Sivonen <[email protected]> wrote:
> While writing new tests before this lands, please avoid the pattern that
> expects to be able to catch the load event for about:blank by installing
> the event listener after the iframe has been inserted into the DOM. That
> is, please don't do this:
>
> <iframe></iframe>
> <script>
> document.getElementsByTagName("iframe")[0].onload = function() {
> // ...
> }
> </script>
>
Another pattern that's seen in Gecko-specific tests and that will stop
working:
w = window.open("about:blank");
w.onload = function() {
// Expecting this to run
}
That will no longer work. It's rather surprising that there's a URL for
which the onload event isn't listenable, but that's interop. (IE was that
way, too.)
--
Henri Sivonen
[email protected]
--
You received this message because you are subscribed to the Google Groups
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/CAJHk%2B8SO3shqV3TrVVQYZTKh_8Daoy-YpSytrFNU78CQJjMJEA%40mail.gmail.com.