Commit 45b99073 authored by Alex Catarineu's avatar Alex Catarineu
Browse files

Remove nsISupports from ChromeUtils.generateQI

This was causing an assert on debug builds of the browser.
parent 5b13748c
......@@ -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,
......
......@@ -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,
......
......@@ -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
......
......@@ -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,
......
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment