[Webkit-unassigned] [Bug 261811] New: Link-stylesheet elements fire load events for non-text/css and non-2XX responses

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 20 03:01:46 PDT 2023


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

            Bug ID: 261811
           Summary: Link-stylesheet elements fire load events for
                    non-text/css and non-2XX responses
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: jannis.rautenstrauch at cispa.de

If I understand https://html.spec.whatwg.org/#link-type-stylesheet correctly, cross-origin responses should only result in a load for codes 2XX and content-type text/css.
If my understanding is false, there still is a compatibility problem as Firefox (and Chromium) behave different for various responses.

Example differences:
- 200 with content-type text/html (https://observer.sectec.rocks/opg/link-stylesheet/?url=https://echo.sectec.rocks/echo/?content-type=text/html)
WebKit load, Firefox error
- 3XX with content-type text/css and no location header (https://observer.sectec.rocks/opg/link-stylesheet/?url=https://echo.sectec.rocks/echo/?content-type=text/css&ecohd_status=302)
WebKit load, Firefox error

-- 
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/20230920/f6153712/attachment-0001.htm>


More information about the webkit-unassigned mailing list