Skip to content

Commit

Permalink
Remove nsISupports from ChromeUtils.generateQI
Browse files Browse the repository at this point in the history
This was causing an assert on debug builds of the browser.
  • Loading branch information
acatarineu committed Aug 2, 2019
1 parent 5b13748 commit 45b9907
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/domain-isolator.js
Expand Up @@ -173,7 +173,7 @@ function DomainIsolator() {

// Firefox component requirements
DomainIsolator.prototype = {
QueryInterface: ChromeUtils.generateQI([Ci.nsISupports, Ci.nsIObserver]),
QueryInterface: ChromeUtils.generateQI([Ci.nsIObserver]),
classDescription: kMODULE_NAME,
classID: kMODULE_CID,
contractID: kMODULE_CONTRACTID,
Expand Down
2 changes: 1 addition & 1 deletion components/dragDropFilter.js
Expand Up @@ -32,7 +32,7 @@ function DragDropFilter() {

DragDropFilter.prototype =
{
QueryInterface: ChromeUtils.generateQI([Ci.nsISupports, Ci.nsIObserver]),
QueryInterface: ChromeUtils.generateQI([Ci.nsIObserver]),

// make this an nsIClassInfo object
flags: Ci.nsIClassInfo.DOM_OBJECT,
Expand Down
2 changes: 1 addition & 1 deletion components/external-app-blocker.js
Expand Up @@ -33,7 +33,7 @@ ExternalAppBlocker.prototype =
{
_helperAppLauncher: undefined,

QueryInterface: ChromeUtils.generateQI([Ci.nsISupports, Ci.nsIObserver,
QueryInterface: ChromeUtils.generateQI([Ci.nsIObserver,
Ci.nsIHelperAppWarningDialog]),

// make this an nsIClassInfo object
Expand Down
2 changes: 1 addition & 1 deletion components/torCheckService.js
Expand Up @@ -25,7 +25,7 @@ function TBTorCheckService() {

TBTorCheckService.prototype =
{
QueryInterface: ChromeUtils.generateQI([Ci.nsISupports, Ci.nsIClassInfo]),
QueryInterface: ChromeUtils.generateQI([Ci.nsIClassInfo]),

kCheckNotInitiated: 0, // Possible values for statusOfTorCheck.
kCheckSuccessful: 1,
Expand Down
2 changes: 1 addition & 1 deletion components/torbutton-logger.js
Expand Up @@ -58,7 +58,7 @@ function padInt(i)

TorbuttonLogger.prototype =
{
QueryInterface: ChromeUtils.generateQI([Ci.nsISupports, Ci.nsIClassInfo]),
QueryInterface: ChromeUtils.generateQI([Ci.nsIClassInfo]),

wrappedJSObject: null, // Initialized by constructor

Expand Down

0 comments on commit 45b9907

Please sign in to comment.