|
@@ -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;
|