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

时间:2021-10-28 07:18:29

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

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

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?

进入webapp.js,它位于Prism应用程序的目录中。但是,这不起作用,弹出窗口仍然无法正常工作。有任何想法吗?

2 个解决方案

#1


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

有一个错误,你可以在这里投票/评论。

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

adam

#2


I added the following lines inside prefs.js located in

我在prefs.js里面添加了以下几行

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

对于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]/

对于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.

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

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

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

#1


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

有一个错误,你可以在这里投票/评论。

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

adam

#2


I added the following lines inside prefs.js located in

我在prefs.js里面添加了以下几行

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

对于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]/

对于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.

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

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

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