Firefox浏览器禁用安全模式 [英] Firefox browser disable safe mode

查看:1378
本文介绍了Firefox浏览器禁用安全模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Windows 7,而且我一直在使用Firefox浏览器。
我想创建一个使用它的自助服务终端应用程序,我为它安装了一个插件,但是问题是,当我启动Firefox应用程序时,如果按下Shift键,它就会进入安全模式。



我在Google上阅读了一些指导,告诉我编辑 chrome / browser.jar ,但是我的Firefox文件夹中没有这样的文件。 p>

我需要一些帮助来禁用允许我通过按下Shift键进入安全模式的功能。

解决方案

你不能通过编辑文本文件来禁用安全模式,Shift键的处理在编译的代码。但是,您可以通过从 components / nsBrowserGlue.js

  //检查我们是否处于安全模式
if(Services.appinfo.inSafeMode){
Services.ww.openWindow(null,chrome://browser/content/safeMode.xul,
_blank,chrome,centrecreen,modal,resizable = no,null);

您也可以在安全模式下启用扩展功能。为此,您还必须编辑 modules / XPIProvider.jsm 并删除所有出现的代码,如:

  if(Services.appinfo.inSafeMode)
返回false;

这两个文件都可以在 onmi.ja 存档在Firefox目录中。



也就是说,解决这个问题的适当方法是在 XULRunner ,这将允许您设计自己的用户界面的Kiosk模式。可悲的是,开放式自助服务终端(可能是您使用的)是古老的,早于XULRunner。


I am using Windows 7 and I've been playing with the Firefox browser for a while. I want to create a kiosk app using it, I installed a plugin for that, but the problem is that when I start the Firefox app, if I press Shift, it enters safe mode.

I read some guides on Google that tell me to edit chrome/browser.jar but I have no such file in my Firefox folder.

I need some help for disabling the feature that lets me enter safe mode by pressing Shift.

解决方案

You cannot really disable safe mode by editing text files, the handling of the Shift key is inside compiled code. You can however disable the dialog that pops up by removing this code from components/nsBrowserGlue.js:

// check if we're in safe mode
if (Services.appinfo.inSafeMode) {
  Services.ww.openWindow(null, "chrome://browser/content/safeMode.xul", 
                         "_blank", "chrome,centerscreen,modal,resizable=no", null);
}

You can also leave extensions enabled in safe mode. For that you will have to also edit modules/XPIProvider.jsm and remove all occurrences of code like:

if (Services.appinfo.inSafeMode)
  return false;

Both files can be found inside the onmi.ja archive in the Firefox directory.

That said, the proper solution to this problem would be running your own application on top of XULRunner which would allow you to design your own user interface for kiosk mode. Sadly, Open Kiosk (which is probably what you are using) is ancient and predates XULRunner.

这篇关于Firefox浏览器禁用安全模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆