From ab4522987bb6f8be4a2d66a5d18a6109dc06d897 Mon Sep 17 00:00:00 2001 From: "silver%warwickcompsoc.co.uk" Date: Thu, 14 Sep 2006 06:09:42 +0000 Subject: [PATCH] Bug 231892 - gPrintPreviewObs should not throw for QI to nsISupports. r/sr=neil --- suite/browser/browser.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/suite/browser/browser.js b/suite/browser/browser.js index 1322b6c417d5..d0b3d6456061 100644 --- a/suite/browser/browser.js +++ b/suite/browser/browser.js @@ -195,8 +195,11 @@ var gPrintPreviewObs = { QueryInterface : function(iid) { - if (iid.equals(Components.interfaces.nsIObserver) || iid.equals(Components.interfaces.nsISupportsWeakReference)) + if (iid.equals(Components.interfaces.nsIObserver) || + iid.equals(Components.interfaces.nsISupportsWeakReference) || + iid.equals(Components.interfaces.nsISupports)) { return this; + } throw Components.results.NS_NOINTERFACE; }