【问题标题】:load Firefox without add-ons, extensions, or plug-ins在没有附加组件、扩展或插件的情况下加载 Firefox
【发布时间】:2019-09-17 18:52:24
【问题描述】:

是否有一个命令行开关可用于在没有附加组件、扩展或插件的情况下加载 Firefox?

我正在从命令行运行 Angular Karma 测试,发现如果浏览器加载了扩展、加载项、插件无法正常启动。

对于 Internet Explorer,有 -extoff 开关。 Firefox 是否也有类似功能?

【问题讨论】:

    标签: firefox command-line firefox-addon


    【解决方案1】:

    您可以从安全模式开始,也可以创建一个不带扩展名的单独配置文件,并使用适当的标志之一进行指定。

    但是,如果您的测试在存在扩展程序时中断,您可能需要考虑您的代码是否易受扩展程序影响,即在安装了相关扩展程序的用户浏览器上可能会失败。

    $ firefox --help
    
    Usage: /usr/lib/firefox-developer-edition/firefox [ options ... ] [URL]
           where options include:
    
    [...]
      -P <profile>       Start with <profile>.
      --profile <path>   Start with profile at <path>.
    [...]
      --safe-mode        Disables extensions and themes for this session.
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-09-07
      • 1970-01-01
      • 2017-06-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-12-24
      • 2020-09-25
      相关资源
      最近更新 更多