Firefox 关于:SWT 浏览器中的配置首选项
我当前正在开发的一个应用程序使用 SWT 工具包的浏览器小部件来显示 Firefox/XULRunner 浏览器。我想在 Firefox 中设置自定义用户代理数据:配置首选项;使用 SWT 浏览器时如何更改它们?
An application I am currently working on uses the SWT tool-kit's Browser widget to display a Firefox/XULRunner browser. I would like to set custom user agent data in Firefox about:config preferences; how does one alter them when working with SWT browsers?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我并不真正使用 SWT 浏览器,但是 http:// /dev.eclipse.org/mhonarc/lists/platform-swt-dev/msg06747.html 似乎表明 SWT 浏览器中至少曾经有一个 about:config 。你尝试过吗?发生了什么?
另外,SWT 浏览器默认应该有一个名为“eclipse”的配置文件(它似乎位于
C:\Documents and Settings\\Application Data\Mozilla\eclipse\
,请参阅 < a href="http://support.mozilla.com/en-US/kb/Profiles#w_finding-your-profile-without-opening-firefox" rel="nofollow">mozilla 支持有关配置文件的更多信息。您应该能够在其中编辑 prefs.js 来设置您的首选项。
I don't really work with the SWT browser, but http://dev.eclipse.org/mhonarc/lists/platform-swt-dev/msg06747.html seems to indicate there at least used to be an about:config in the SWT browser. Did you try it? What happened?
Also the SWT browser should have a profile named "eclipse" by default (it seems it's located at
C:\Documents and Settings\<user name>\Application Data\Mozilla\eclipse\
, see mozilla support for more info about profiles.You should be able to edit prefs.js in there to set your preferences.