Bug 1447341 - make page-icon protocol handler support weak referencing, r?mak draft
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Tue, 17 Apr 2018 15:40:25 +0100
changeset 784347 71a7b72165b939ee7a3e386e3e27c7dc2c9161ef
parent 784346 64f362f9694d974887640a20472217634bb45240
child 784348 a2b76e9b7c1ac1195a1977ff928b66aa6955cab9
push id106899
push userbmo:gijskruitbosch+bugs@gmail.com
push dateWed, 18 Apr 2018 12:35:51 +0000
reviewersmak
bugs1447341
milestone61.0a1
Bug 1447341 - make page-icon protocol handler support weak referencing, r?mak MozReview-Commit-ID: EpPJl89Gi1v
toolkit/components/places/PageIconProtocolHandler.js
--- a/toolkit/components/places/PageIconProtocolHandler.js
+++ b/toolkit/components/places/PageIconProtocolHandler.js
@@ -120,13 +120,14 @@ PageIconProtocolHandler.prototype = {
   },
 
   allowPort(port, scheme) {
     return false;
   },
 
   classID: Components.ID("{60a1f7c6-4ff9-4a42-84d3-5a185faa6f32}"),
   QueryInterface: XPCOMUtils.generateQI([
-    Ci.nsIProtocolHandler
+    Ci.nsIProtocolHandler,
+    Ci.nsISupportsWeakReference,
   ])
 };
 
 this.NSGetFactory = XPCOMUtils.generateNSGetFactory([PageIconProtocolHandler]);