diff --git a/mozilla/mail/components/compose/content/MsgComposeCommands.js b/mozilla/mail/components/compose/content/MsgComposeCommands.js index 6ff5a3e6266..95dacdd29d9 100644 --- a/mozilla/mail/components/compose/content/MsgComposeCommands.js +++ b/mozilla/mail/components/compose/content/MsgComposeCommands.js @@ -2598,7 +2598,10 @@ nsAttachmentOpener.prototype = getInterface: function(iid) { - return this.QueryInterface(iid); + if (iid.equals(Components.interfaces.nsIDOMWindowInternal)) + return window; + else + return this.QueryInterface(iid); }, loadCookie: null,