在Chrome中停用Flash [英] Disabling flash in Chrome
问题描述
根据铬命令列表开关文档页面,有一个相关的命令行开关:
- 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屋!