Bug 177847 - data: stylesheets sometimes applied sync and sometimes async
Summary: data: stylesheets sometimes applied sync and sometimes async
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: FromImplementor, InRadar
Depends on:
Blocks:
 
Reported: 2017-10-03 16:56 PDT by Boris Zbarsky
Modified: 2022-10-25 01:31 PDT (History)
9 users (show)

See Also:


Attachments
Testcase (452 bytes, text/html)
2017-10-03 16:56 PDT, Boris Zbarsky
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Boris Zbarsky 2017-10-03 16:56:33 PDT
Created attachment 322616 [details]
Testcase

Consider the attached testcase.  It should have green text per spec: the HTML spec uses fetch to get the resources referenced by <link> elements (see <https://html.spec.whatwg.org/multipage/semantics.html#obtaining-a-resource-from-a-link-element>) and fetch is always an async operation.

In Safari, the text is green the first time I load the testcase in a tab, but becomes red if I reload it.  That's broken.
Comment 1 Boris Zbarsky 2017-10-03 17:02:18 PDT
Note also https://bugs.chromium.org/p/chromium/issues/detail?id=771425
Comment 2 Radar WebKit Bug Importer 2017-10-04 10:10:48 PDT
<rdar://problem/34814066>
Comment 3 Antti Koivisto 2017-10-04 10:41:10 PDT
That's because the seconds time we get the already decoded resource synchronously from the memory cache.
Comment 4 Ahmad Saleem 2022-10-25 01:29:34 PDT
I am not able to reproduce this bug in Safari 16.1 and Safari Technology Preview 156 and it shows "Green" color text and as it should be. I tested it in "Private" window as well to avoid any cache issue. It is matching Firefox Nightly 108 while Chrome Canary 109 still show text as "red".

Is it resolved and can we mark this as "RESOLVED CONFIGURATION CHANGED". Thanks!
Comment 5 Ahmad Saleem 2022-10-25 01:30:41 PDT
(In reply to Ahmad Saleem from comment #4)
> I am not able to reproduce this bug in Safari 16.1 and Safari Technology
> Preview 156 and it shows "Green" color text and as it should be. I tested it
> in "Private" window as well to avoid any cache issue. It is matching Firefox
> Nightly 108 while Chrome Canary 109 still show text as "red".
> 
> Is it resolved and can we mark this as "RESOLVED CONFIGURATION CHANGED".
> Thanks!

Actually ignore my comment, it reproduces in this case:

"In Safari, the text is green the first time I load the testcase in a tab, but becomes red if I reload it.  That's broken."
Comment 6 Ahmad Saleem 2022-10-25 01:31:37 PDT
But it is same with Firefox Nightly 108, where on first load it is "Green" and on reload, it is "Red".