diff options
author | Martok <martok@martoks-place.de> | 2023-01-03 22:55:13 +0100 |
---|---|---|
committer | Martok <martok@martoks-place.de> | 2023-01-04 00:49:05 +0100 |
commit | 919a966dc2177a7abbe7792dda00d9e033209996 (patch) | |
tree | 521106f4a0eb65fa0f637180fa2eb0687e7e7e11 /toolkit/components | |
parent | b618b3fb767e61f73732a0385f733357571314b0 (diff) | |
download | uxp-919a966dc2177a7abbe7792dda00d9e033209996.tar.gz |
Issue #2073 - m-c 1383404: make SourceBuffer::Compact more efficient (squashed)
The first part also means that Compact no longer needs the SurfaceCache lock (used to be via CreateChunk->CanHold),
which avoids potential deadlocks during shutdown that m-c 523950 would otherwise cause
Diffstat (limited to 'toolkit/components')
-rw-r--r-- | toolkit/components/places/PageIconProtocolHandler.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/toolkit/components/places/PageIconProtocolHandler.js b/toolkit/components/places/PageIconProtocolHandler.js index 05e43ccf3e..30bd8f1857 100644 --- a/toolkit/components/places/PageIconProtocolHandler.js +++ b/toolkit/components/places/PageIconProtocolHandler.js @@ -92,6 +92,7 @@ PageIconProtocolHandler.prototype = { try { channel.contentType = mime; + channel.contentLength = len; // Pass the icon data to the output stream. let stream = Cc["@mozilla.org/binaryoutputstream;1"] .createInstance(Ci.nsIBinaryOutputStream); |