[Webkit-unassigned] [Bug 239624] New: Fire <link rel=preload> error events if and only if network errors

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 21 15:30:59 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=239624

            Bug ID: 239624
           Summary: Fire <link rel=preload> error events if and only if
                    network errors
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Minor
          Priority: P2
         Component: Page Loading
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: hiroshige at chromium.org
                CC: beidson at apple.com

According to the discussion on https://github.com/whatwg/html/issues/1142
(draft Spec PR https://github.com/whatwg/html/pull/7799),
error events on <link rel=preload> should be fired only for network errors.

WPT: https://github.com/web-platform-tests/wpt/pull/33382

On Safari,

load events should be fired for responses that are not network errors (actual behavior: error events):

- <link rel=preload as=style/script> + HTTP 404 (all browsers)
- <link rel=preload as=image> + broken images (all browsers)

error events should be fired for network errors (actual behavior: load events):

- `<link rel=preload as=script>` + MIME type listed in https://fetch.spec.whatwg.org/#should-response-to-request-be-blocked-due-to-mime-type?, without nosniff (Safari/Chrome)

Note: the events described above are on <link rel=preload>, which can be different from events fired on main requests e.g. <img>.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220421/a0868abd/attachment.htm>


More information about the webkit-unassigned mailing list