How to call Firefox printpreview via url (not getM

2019-07-21 09:51发布

问题:

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.