在Chrome中停用Flash [英] Disabling flash in Chrome

查看:366
本文介绍了在Chrome中停用Flash的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的一个内部应用程序在页面上有一个flash对象。当浏览器中没有可用/安装的Flash插件时,我需要测试其中一个角落案例:既不是内部(pepperflash),也不是系统级的adobe flash player插件。

根据铬命令列表开关文档页面,有一个相关的命令行开关:


- disable-bundled


但是,这只会关闭pepperflash内部铬插件。

根据线程,还有 - disable-internal-flash 开关,但它也与chrome的内部flash插件有关。



建议遵循断头台是最好的头皮屑治疗的原则,并通过使用<$ em>禁用所有的插件。 c $ c> - disable-plugins switch:
$ b


要在Chrome中禁用Flash,请创建chromeOptions功能,
将--disable-plugins参数传递给该能力。

有没有办法禁用所有的flash插件而不是禁用Chrome中的所有插件?






举例来说,如果要列出所有需要关闭的插件,最好是完美的:

  plugins.disabled:['Adobe Flash Player','pepperflash'] 


解决方案

发现它,有另一个开关,它告诉chrome根本不加载外部插件:
$ b


- disable-plugins-发现禁用发现第三方插件。有效地加载浏览器附带的文件加上--extra-plugin-dir和--load-plugin
开关指定的
第三方文件。

结合 - disable-internal-flash - disable-plugins-discovery 我已经在Chrome中取消了所有的Flash插件。


One of our internal applications has a flash object on a page. I need to test one of the corner cases when there is no flash plugin available/installed in the browser: neither the internal (pepperflash), nor the system-wide adobe flash player plugin.

According to the List of Chromium Command Line Switches documentation page, there is a relevant command-line switch:

--disable-bundled-ppapi-flash - Disables the bundled PPAPI version of Flash.

But, this would turn off only the pepperflash internal chrome plugin.

According to the How to run Chrome/Firefox with disabled flash plugin from watir script? thread, there is also --disable-internal-flash switch, but it is also relevant to the chrome's internal flash plugin.

Browserstack's documentation suggests to follow the principle "the guillotine is the best dandruff cure" and to disable all plugins by using --disable-plugins switch:

To disable Flash in Chrome, create a chromeOptions capability, and pass the --disable-plugins argument to the capability.

Is there a way to disable all flash plugins without disabling all plugins in Chrome?


For instance, would be perfect to have a preference to list all of the plugins that needs to be turned off:

plugins.disabled: ['Adobe Flash Player', 'pepperflash']

解决方案

Found it, there is an another switch which tells chrome not to load external plugins at all:

--disable-plugins-discovery Disable discovering third-party plug-ins. Effectively loading only ones shipped with the browser plus third-party ones as specified by --extra-plugin-dir and --load-plugin switches.

By combining --disable-internal-flash and --disable-plugins-discovery I've achieved disabling all flash plugins in Chrome.

这篇关于在Chrome中停用Flash的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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