From 919a966dc2177a7abbe7792dda00d9e033209996 Mon Sep 17 00:00:00 2001 From: Martok Date: Tue, 3 Jan 2023 22:55:13 +0100 Subject: 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 --- toolkit/components/places/PageIconProtocolHandler.js | 1 + 1 file changed, 1 insertion(+) (limited to 'toolkit/components') 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); -- cgit v1.2.3