最近用Google Chrome浏览器登陆支付宝,在地址栏下方提示了一行黄色小字:“This site uses a plugin(npalicdo plugin) that will soon be unsupported”.意思是 支付宝这个网站使用的插件马上就不支持了。心想,难道google要封杀支付宝?!
插件技术
支付宝使用的插件技术属于NPAPI技术。它是 Netscape Plugin Application Programming Interface的英文简称,看到netscape公司,google要淘汰它也就是情理之中了,毕竟,我们这一代人是没有用过网景浏览器的。其实,NPAPI除网景浏览器以外,Gecko内核的Firefox以Webkit内核的chrome和Safari都支持这一技术,不过目前均已经抛弃这一技术路线。
这一技术对应到微软IE系列的ActiveX插件,用于提供浏览器的扩展功能,想到ActiveX,我就会感觉到大量ActiveX插件带来的IE卡顿,正是这一技术的疯狂滥用,造成IE的日渐沦落,才成就了Chrome的极速体验。不过IE在中国的捆绑销售,的确给IE带来了巨大的市场份额。作为全球最赚钱的银行ICBC的网站,就吊死在了IE上,ICBC单独开发的工银助手,就要装N多个插件,如果不禁用掉这些插件,IE根本没法用;更可恶的是,ICBC网银只支持chrome21-24.9版本。目前淘宝、腾讯等公司大量采用这些插件技术。
为什么要停用?
今天的浏览器更快、更安全、比它们的祖先更有能力。这意味着,NPAPI这种90年代的架构,已经成为'挂起'(hangs)、崩溃、安全事故、以及代码复杂性的一个主要原因。
过渡方案
chrome浏览器从2013年宣布将不再支持NPAPI,直到2015年9月1日起在chrome45版本中停用改技术,也历时2年,经过了逐渐的过度,看到了一个负责任大厂的风范。目前没有升级到45版本的chrome浏览器,依然可以通过系统管理员将插件加入组策略,以白名单方式继续使用(通过chrome://plugins/,我们可以看到白名单的插件后面注明:“根据企业政策已启用”)。不过这也都不是长久之计,逐渐停用插件才是王道。
替代方案
1.使用更新更安全的 Pepper API (PPAPI) 方案,其中chrome内置的swf播放器采用该方案。
2.使用H5等交互性更强的技术。
展望
从chrome 42版本起,微软的silverlight技术、甲骨文的java技术、Unity的网页播放器等技术从白名单中移除,需要手工开启,从chrome45起,彻底去掉了技术的支持。微软貌似只提供了42-44版本浏览器的开启插件的方式,而甲骨文直接告诉用户用其他浏览器,unity则宣布将支持新的WebGL的引擎来解决问题。各大厂家的角逐,正在展开,让我们看看支付宝、腾讯等将如何应对?
参考资料:
chrome 申明:
https://support.google.com/chrome/answer/6213033
甲骨文回应:
http://www.java.com/zh_TW/download/faq/chrome.xml
微软回应:
https://support.microsoft.com/zh-cn/kb/3058254
unity回应:
http://blogs.unity3d.com/2015/05/28/web-publishing-following-chrome-npapi-deprecation/
分享到:
相关推荐
maven-site-plugin-3.3.jar
When you install this component you will be installing all of the core Wizards, the POM Editor, Maven Repository integration, and Maven integration m2eclipse Core Update Site: ...
maven-site-plugin-3.7.1.jar
maven-site-plugin-1.7.2-sources.jar
this plugin will look for XML files in the classpath of the current project whose XML namespace is http://www.thymeleaf.org/extras/dialect. If such a file is found, it is loaded and the information in...
SVN_Plugin_site-1.0.6
Name That Color - Android Studio Plugin Introduction When I get a new color to set in my Android app, I never know how to call it. I used the website Name ...This plugin lets you insert a name for a co
NULL 博文链接:https://crazy-stone.iteye.com/blog/2028014
How to Write a plugin for JMeter
epsg对照表 * EPSG HSQL Plugin: will unpack an hsql database containing the official epsg database into a temp directory, a great solution for desktop applications. * EPSG WKT Plugin: uses an internal...
java运行依赖jar包
资源来自pypi官网,解压后可用。 资源全名:mkdocs_print_site_plugin-2.2-py3-none-any.whl
static-site-generator-webpack-plugin, web service提供的最小 unopinionated static 站点生成器 static 站点生成器 web pack插件web service提供的最小 unopinionated static 站点生成器。将服务器呈现的世界引入...
maven-site-aggregate-plugin-2.7.0.jar
This uses tag files created by the ``ctags -R -f .tags`` command by default (although this can be overriden in settings). The plugin will try to find a ``.tags`` file in the same directory as the ...
maven-site-aggregate-plugin-2.5.0.jar
java代码执行hive相关ktr时报错: database type with plugin id [HIVE2] couldn't be found! 解决:kettle-core-7.1.0.0-12.jar适配hive后的包。具体步骤请查看...
development and will be ready for component developers at a later time. This chapters describes the following components: Local Eclipse components. This provides a short overview on the concepts of ...
plugin is a plugin quite similar to https://fisheye.codehaus.org/browse/mojo/tags/buildnumber-maven-plugin-1.0-beta-4 for example but as buildnumber at the time when I started this plugin only ...
This plugin requires that you use at least build scan plugin 1.8 in your Gradle builds. It is recommended that you use the very latest build scan plugin version at all times to get the most insights ...