gecko-dev/netwerk
Kershaw Chang 5c8ac9f08f Bug 1781094 - Revert the some changes done in bug 1759745 and also try to take more output data, r=necko-reviewers,dragana
The problem in the previous change is that `mBrotli->mTotalOut` is not updated immediately. In the case that `nsUnknownDecoder` is involved in the listener chain and the result of `Brotli` decoder is `BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT`, `mBrotli->mTotalOut` is 0. In the end, when `nsHTTPCompressConv::OnStopRequest` is called by `nsUnknownDecoder` [1], an error code is set [2].
The safest way would be to revert the changes done in bug 1759745. However, to make the case in bug 1759745 work ( and also make `test_brotli_decoding.js` pass), we need to add another while loop and try to get more output data from the decoder.


[1] https://searchfox.org/mozilla-central/rev/d5edb4a4538657b7d691a41c00e6796a19ade6e7/netwerk/streamconv/converters/nsUnknownDecoder.cpp#778
[2] https://searchfox.org/mozilla-central/rev/d5edb4a4538657b7d691a41c00e6796a19ade6e7/netwerk/streamconv/converters/nsHTTPCompressConv.cpp#167

Differential Revision: https://phabricator.services.mozilla.com/D152729
2022-07-28 08:04:13 +00:00
..
base Bug 1778492 - Add an origin trial for coep: credentialless r=emilio,necko-reviewers,kershaw 2022-07-27 20:33:19 +00:00
build Bug 1773770: Part 5 - Migrate necko category entries to static registration. r=necko-reviewers,kershaw 2022-06-30 09:12:17 +00:00
cache
cache2 Bug 1769027 - Cleanup netwerk includes r=necko-reviewers,dragana 2022-05-30 14:21:13 +00:00
cookie Bug 1780543 - Part 5: Add mozilla/chrome-script environment. r=Standard8 2022-07-26 02:46:30 +00:00
dns Bug 1769290 - Part 16: Apply mozilla-js-handle-rooted-typedef against netwerk r=andi 2022-07-14 17:00:21 +00:00
docs Bug 1667455 - Part 14: Stop importing Services.jsm in documents. r=kmag,necko-reviewers,dragana 2022-07-11 12:41:54 +00:00
ipc Bug 1778492 - Add an origin trial for coep: credentialless r=emilio,necko-reviewers,kershaw 2022-07-27 20:33:19 +00:00
locales Bug 1763073 - Add telemetry (and messaging) for SameSite cookies blocked due to redirects. r=freddyb,dveditz 2022-06-15 14:51:16 +00:00
mime Bug 1769027 - Cleanup netwerk includes r=necko-reviewers,dragana 2022-05-30 14:21:13 +00:00
protocol Bug 1778492 - Add an origin trial for coep: credentialless r=emilio,necko-reviewers,kershaw 2022-07-27 20:33:19 +00:00
sctp
socket Bug 1780014: Add specific telemetry for conservative and first-try handshakes. r=keeler. 2022-07-21 11:02:32 +00:00
streamconv Bug 1781094 - Revert the some changes done in bug 1759745 and also try to take more output data, r=necko-reviewers,dragana 2022-07-28 08:04:13 +00:00
system Bug 1769027 - Cleanup netwerk includes r=necko-reviewers,dragana 2022-05-30 14:21:13 +00:00
test Bug 1775244 - Make HTTP2ProxyCode speak Http/2, r=necko-reviewers,dragana 2022-07-27 15:28:46 +00:00
url-classifier Bug 1773702 - Adding Content Blocking Event flags for email tracking protection. r=dimi 2022-07-27 20:07:53 +00:00
wifi Bug 1776210 - [macOS 13] Stack underflow crashes on Wifi Monitor thread on macOS 13 (Ventura) beta r=mac-reviewers,necko-reviewers,mstange,dragana 2022-07-25 14:09:09 +00:00
moz.build