Firefox 3.x 扩展:“另存为”对话框- 选择开启方式,如何开启?

发布于 2024-08-07 00:10:06 字数 256 浏览 1 评论 0原文

是否可以调用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

不必了 2024-08-14 00:10:06

您真正想要的是 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).

浸婚纱 2024-08-14 00:10:06

这帮助我显示另存为对话框,或在浏览器中预览数据

除了更改标题之外,如何在 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?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文