Firefox 3.x 扩展:“另存为”对话框- 选择开启方式,如何开启?
是否可以调用 Firefox 另存为对话框( chrome://mozapps/content/downloads/unknownContentType.xul )与 指定网址?
我发现该对话框的类存储在“nsHelperAppDlg.js”中并且 称为“nsUnknownContentTypeDialog”,但我不明白如何使用 它 :(
我想创建扩展,在 Firefox 上显示“另存为”对话框 指定 URLl 并选择用哪个程序保存它。
请帮忙!
Is it possible to call Firefox Save As dialog (
chrome://mozapps/content/downloads/unknownContentType.xul ) with
specifying URL?
I found that class for this dialog stored in "nsHelperAppDlg.js" and
called "nsUnknownContentTypeDialog", but i don't understand how to use
it :(
I want to create extension, that show firefox "save as" dialog on
specifying URLl and give a choice which program to save it with.
Help please!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您真正想要的是 saveURL 方法在 contentAreaUtils.js 中。这将为您提供 Firefox 所具有的确切行为(因为 Firefox 就是这么称呼的)。
What you really want is the saveURL method in contentAreaUtils.js. That will give you the exact behavior that Firefox has (since that's what Firefox calls).
这帮助我显示另存为对话框,或在浏览器中预览数据
除了更改标题之外,如何在 Firefox 中强制另存为对话框?
This has helped me in displaying the save-as dialog, or previewing data in-browser
How to force save as dialog box in firefox besides changing headers?