Fredrik Söderquist aac58e3a63 Bug 1804273 [wpt PR 37353] - Rework load/error event dispatch for <use> elements, a=testonly
Automatic update from web-platform-tests
Rework load/error event dispatch for <use> elements

The way events are dispatch (for <use> 'load' of external resources) is
racy, since the resource reference can change from "external" to "local"
in the space between the resource finished loading and the event was
dispatched.

Instead post 'load' (and 'error') events as cancellable tasks, and then
cancel the event task if the target reference changes before the event
has been dispatched. This somewhat matches similar types of loading
sequences.

Fixed: 1130925
Change-Id: Icd4e89a0288ab0ed5e4c7ee0fe218ee30329d477
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4047289
Auto-Submit: Fredrik Söderquist <fs@opera.com>
Reviewed-by: Philip Rogers <pdr@chromium.org>
Commit-Queue: Philip Rogers <pdr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1081477}

--

wpt-commits: 6f1c494b9a42cfe0703bcfa84d07ccdba82b7152
wpt-pr: 37353
2022-12-12 11:39:05 +00:00

An explanation of the Firefox Source Code Directory Structure and links to
project pages with documentation can be found at:

    https://firefox-source-docs.mozilla.org/contributing/directory_structure.html

For information on how to build Firefox from the source code and create the patch see:

    https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html

If you have a question about developing Firefox, and can't find the solution
on https://firefox-source-docs.mozilla.org/, you can try asking your question on Matrix at chat.mozilla.org in `Introduction` (https://chat.mozilla.org/#/room/#introduction:mozilla.org) channel.


Nightly development builds can be downloaded from:

    https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
            - or -
    https://www.mozilla.org/firefox/channel/desktop/#nightly

Keep in mind that nightly builds, which are used by Firefox developers for
testing, may be buggy.
Description
Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Readme 6 GiB
Languages
JavaScript 32.3%
C++ 25.4%
HTML 21%
C 10.8%
Python 2.8%
Other 7.2%