Bug 718499 - Save as PDF saves content from the wrong tab. r=mfinkle

This commit is contained in:
Margaret Leibovic 2012-01-18 12:53:12 -08:00
parent ccd0b9b1a7
commit 5cbd100b34

View File

@ -556,7 +556,8 @@ var BrowserApp = {
let ms = Cc["@mozilla.org/mime;1"].getService(Ci.nsIMIMEService);
let mimeInfo = ms.getFromTypeAndExtension("application/pdf", "pdf");
let webBrowserPrint = content.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIWebBrowserPrint);
let webBrowserPrint = aBrowser.contentWindow.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIWebBrowserPrint);
let cancelable = {
cancel: function (aReason) {