Browse Source

Port bug 1769442

Bill Gianopoulos 2 years ago
parent
commit
deee6993a9
2 changed files with 29 additions and 0 deletions
  1. 28 0
      comm-central/patches/9999999-port1769442-suite.patch
  2. 1 0
      comm-central/patches/series

+ 28 - 0
comm-central/patches/9999999-port1769442-suite.patch

@@ -0,0 +1,28 @@
+# HG changeset patch
+# User Bill Gianopoulos <wgianopoulos@gmail.com>
+# Date 1652730873 0
+Bug 9999999 - Port bug 1769442 to suite.
+Bug 1769442 - Remove nsIFactory::lockFactory, breaking compatibility with IClassFactory.
+
++++ b/suite/browser/nsBrowserContentHandler.js
+@@ -608,20 +608,16 @@ var nsBrowserContentHandler = {
+ 
+   /* nsIFactory */
+   createInstance: function createInstance(outer, iid) {
+     if (outer != null)
+       throw Cr.NS_ERROR_NO_AGGREGATION;
+ 
+     return this.QueryInterface(iid);
+   },
+-
+-  lockFactory: function lockFactory(lock) {
+-    /* no-op */
+-  }
+ };
+ 
+ const BROWSER_CID = Components.ID("{c2343730-dc2c-11d3-98b3-001083010e9b}");
+ 
+ function NSGetFactory(cid) {
+   if (cid.number == BROWSER_CID)
+     return nsBrowserContentHandler;
+   throw Cr.NS_ERROR_FACTORY_NOT_REGISTERED;

+ 1 - 0
comm-central/patches/series

@@ -7,3 +7,4 @@ TOP-1611647-2-fix-xul-references-suite.patch
 TOP-9999999-port1646560-suite-91a1.patch
 WIP-9999999-port1712633-suite-90a1.patch
 WIP-1650630-2-port-1603712-suite.patch
+9999999-port1769442-suite.patch