TOP-9999999-port1769442-suite-102a1.patch 1008 B

12345678910111213141516171819202122232425262728293031
  1. # HG changeset patch
  2. # User Bill Gianopoulos <wgianopoulos@gmail.com>
  3. # Date 1652730873 0
  4. # Parent 1e52597082be9b384cfa1547ec461f1a1984ae7b
  5. Bug 9999999 - Port bug 1769442 to suite.
  6. Bug 1769442 - Remove nsIFactory::lockFactory, breaking compatibility with IClassFactory.
  7. diff --git a/suite/browser/nsBrowserContentHandler.js b/suite/browser/nsBrowserContentHandler.js
  8. --- a/suite/browser/nsBrowserContentHandler.js
  9. +++ b/suite/browser/nsBrowserContentHandler.js
  10. @@ -606,20 +606,16 @@ var nsBrowserContentHandler = {
  11. /* nsIFactory */
  12. createInstance: function createInstance(outer, iid) {
  13. if (outer != null)
  14. throw Cr.NS_ERROR_NO_AGGREGATION;
  15. return this.QueryInterface(iid);
  16. },
  17. -
  18. - lockFactory: function lockFactory(lock) {
  19. - /* no-op */
  20. - }
  21. };
  22. const BROWSER_CID = Components.ID("{c2343730-dc2c-11d3-98b3-001083010e9b}");
  23. function NSGetFactory(cid) {
  24. if (cid.number == BROWSER_CID)
  25. return nsBrowserContentHandler;
  26. throw Cr.NS_ERROR_FACTORY_NOT_REGISTERED;