问题
One way I can call printpreview is with getMostRecentBrowserWindow
const { getMostRecentBrowserWindow } = require('sdk/window/utils');
var chromewin = getMostRecentBrowserWindow();
chromewin.PrintUtils.printPreview(chromewin.PrintPreviewListener);
Now i want to call printpreview with url. Please help me. Thank you so much.
来源:https://stackoverflow.com/questions/22728166/how-to-call-firefox-printpreview-via-url-not-getmostrecentbrowserwindow-using