[Webkit-unassigned] [Bug 247421] New: Content downloaded with fetch() API when Concent-Encoding: gzip is set is not decompressed
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Nov 3 06:33:56 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=247421
Bug ID: 247421
Summary: Content downloaded with fetch() API when
Concent-Encoding: gzip is set is not decompressed
Product: WebKit
Version: Safari 16
Hardware: Mac (Apple Silicon)
OS: macOS 13
Status: NEW
Severity: Major
Priority: P2
Component: Page Loading
Assignee: webkit-unassigned at lists.webkit.org
Reporter: jujjyl at gmail.com
CC: beidson at apple.com
Safari browser does not decompress gzip-compressed content downloaded with fetch() even though Content-Encoding: gzip is instructed on the content by the web server.
On other browsers (Firefox, Chrome), this works properly.
STR:
1. Download attached fetch_test.tgz and unzip it.
2. Navigate in console to the uncompressed directory, and run "python3 emrun.py --no_browser --port 8000 ."
This step will launch an ad hoc web server to listen at address http://localhost:8000/ . This is based on the regular ad hoc python3 web server, except that the server has been augmented to specify "Content-Encoding: gzip" on the served test.data.gz file.
3. Navigate to http://localhost:8000/test.html
4. Open the page web console, and observe the logs printed there, and the final test result that appears on the page body.
Observed:
On Safari, the browser will print (among other things)
[Warning] Downloaded an ArrayBuffer of size 25098 bytes (test.html, line 10)
[Warning] Fetch Response headers: (test.html, line 11)
[Log] content-encoding: gzip (test.html, line 13)
[Log] content-length: 25098 (test.html, line 13)
and the page body will report
Test ERROR: Received gzip-compressed data, but browser should have decompressed it
Expected:
On Chrome and Firefox, the browser will print
Downloaded an ArrayBuffer of size 93274 bytes
Fetch Response headers:
content-encoding: gzip
content-length: 25098
and the page body will report
Test passed OK
--
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/20221103/1854cdda/attachment.htm>
More information about the webkit-unassigned
mailing list