How to call Firefox printpreview via url (not getMostRecentBrowserWindow) using addon SDK

 ̄綄美尐妖づ 提交于 2019-12-12 17:41:10

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!