Bug 241676
Summary: | Resetting source on a long-loading <img> still prevents window "load" event | ||
---|---|---|---|
Product: | WebKit | Reporter: | Antoine Quint <graouts> |
Component: | Page Loading | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED CONFIGURATION CHANGED | ||
Severity: | Normal | CC: | achristensen, ap, beidson, cdumez, webkit-bug-importer, youennf |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
See Also: |
https://bugs.webkit.org/show_bug.cgi?id=235131 https://bugs.webkit.org/show_bug.cgi?id=240325 |
Antoine Quint
If you have an <img> element pointing to a long-loading resource it should prevent the window "load" event from firing until that image is loaded. However, if you cancel the load by setting the "src" to the empty string, the window "load" event should trigger and not be delayed anymore. In WebKit, the original resource load will continue to block the window "load" event. This came up investigating the failure of a CSS Transition WPT test, see https://github.com/web-platform-tests/wpt/issues/34444.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Antoine Quint
I'm adding a new WPT for this in https://github.com/web-platform-tests/wpt/pull/34463.
Radar WebKit Bug Importer
<rdar://problem/95277912>
Antoine Quint
The WPT PR has landed, so now we should import https://github.com/web-platform-tests/wpt/commit/644aba8746b83668d5d9033cda16ae3f8bba0b3d to have the new dedicated test for this, and rebase the result for the css/css-transitions test changed in that revision as well.
Antoine Quint
The import is being done in https://bugs.webkit.org/show_bug.cgi?id=235131.
Antoine Quint
The related tests have been fixed, so I think this is done now.