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 783632 d4cd1293182635d341f0c91409a11966aaa33259
parent 783631 33084069f825ddf224d6158a3f0113e88ae9ce85
child 783633 19e274628b12dd295c33ff87aa12b49e74c835bd
push id106746
push userbmo:gijskruitbosch+bugs@gmail.com
push dateTue, 17 Apr 2018 15:04:52 +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]);