From f86046b7e452a818642753664b114922f61cbf9d Mon Sep 17 00:00:00 2001 From: "silver%warwickcompsoc.co.uk" Date: Sun, 16 Jan 2005 17:01:55 +0000 Subject: [PATCH] Bug 231892 - gPrintPreviewObs should not throw for QI to nsISupports. r/sr=neil --- xpfe/browser/resources/content/browser.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xpfe/browser/resources/content/browser.js b/xpfe/browser/resources/content/browser.js index 1322b6c417d5..d0b3d6456061 100644 --- a/xpfe/browser/resources/content/browser.js +++ b/xpfe/browser/resources/content/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; }