Mozilla Prism:禁用弹出窗口阻止程序

发布于 2024-07-21 05:37:33 字数 364 浏览 6 评论 0原文

我正在使用 Mozilla Prism 开发一个应用程序。 不幸的是,Prism 已激活其弹出窗口阻止程序。

我尝试通过插入类似以下的行来禁用它

user_pref("privacy.popups.policy", "1");

或者

user_pref("dom.disable_open_during_load", false);

进入 webapp.js,该文件位于 Prism 应用程序的目录中。 然而,这不起作用,弹出窗口仍然不起作用。 有任何想法吗?

I'm developing an application using Mozilla Prism. Unfortunately, Prism has its pop-up blocker activated.

I tried to disable it by inserting a line like

user_pref("privacy.popups.policy", "1");

or

user_pref("dom.disable_open_during_load", false);

into the webapp.js, which resides in the directory of the Prism application. However, this did not work, pop-ups are still not working. Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

如果没有你 2024-07-28 05:37:33

有一个关于此的错误,您可以在这里投票/评论。

https://bugzilla.mozilla.org/show_bug.cgi?id=503841

亚当

There's a bug about this you can vote/comment on here.

https://bugzilla.mozilla.org/show_bug.cgi?id=503841

adam

夏有森光若流苏 2024-07-28 05:37:33

我在 prefs.js 中添加了以下几行:

对于 Win XP: /Documents and Settings/[用户名]/Application Data/Prism/[应用程序名称]/Profiles/ [棱镜配置文件名称]/

对于 Vista: /Users/[用户名]/AppData/Roaming/Prism/[应用程序名称]/Profiles/[棱镜配置文件名称]/

user_pref("dom.disable_open_during_load", false);
user_pref("capability.policy.default.Window.open", "allAccess");

确保您的 Prism 应用程序在进行这些更改之前关闭,因为它会在关闭时覆盖 prefs.js,从而清除您的更改。

最后 - 我可以使用 Gmail 创建事件按钮从我的 Gmail Prism 应用程序创建事件。

I added the following lines inside prefs.js located in

For Win XP: /Documents and Settings/[username]/Application Data/Prism/[app name]/Profiles/[prism profile name]/

For Vista: /Users/[username]/AppData/Roaming/Prism/[app name]/Profiles/[prism profile name]/

user_pref("dom.disable_open_during_load", false);
user_pref("capability.policy.default.Window.open", "allAccess");

Make sure your Prism application is closed before making these changes because it will overwrite the prefs.js on close, wiping out your changes.

Finally - I can use the Gmail Create Event button to create events from my Gmail Prism app.

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