12345678910111213141516171819202122232425262728293031 |
- # HG changeset patch
- # User Bill Gianopoulos <wgianopoulos@gmail.com>
- # Date 1652730873 0
- # Parent 1e52597082be9b384cfa1547ec461f1a1984ae7b
- Bug 9999999 - Port bug 1769442 to suite.
- Bug 1769442 - Remove nsIFactory::lockFactory, breaking compatibility with IClassFactory.
- diff --git a/suite/browser/nsBrowserContentHandler.js b/suite/browser/nsBrowserContentHandler.js
- --- a/suite/browser/nsBrowserContentHandler.js
- +++ b/suite/browser/nsBrowserContentHandler.js
- @@ -606,20 +606,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;
|