Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion browser_patches/firefox/juggler/NetworkObserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,12 @@ class ResponseStorage {
// Note: fulfilled request comes with decoded body right away.
if ((request.httpChannel instanceof Ci.nsIEncodedChannel) && request.httpChannel.contentEncodings && !request.httpChannel.applyConversion && !request._fulfilled) {
const encodingHeader = request.httpChannel.getResponseHeader("Content-Encoding");
encodings = encodingHeader.split(/\s*\t*,\s*\t*/);
// Firefox itself skips "identity" and empty encodings when applying content
// conversions, and there is no stream converter registered for them.
encodings = encodingHeader.split(/\s*\t*,\s*\t*/).filter(encoding => {
const normalized = encoding.trim().toLowerCase();
return normalized && normalized !== 'identity' && normalized !== 'x-identity';
});
}
this._responses.set(request.requestId, {
body,
Expand Down
2 changes: 1 addition & 1 deletion packages/playwright-core/browsers.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
{
"name": "firefox",
"revision": "1542",
"revision": "1543",
"installByDefault": true,
"browserVersion": "155.0",
"title": "Firefox"
Expand Down
Loading