Nowadays web browser has become an integral part of computer system.However,the world's highest market share of Internet Explorer browsers,its widely used ActiveX control,cannot run in the Linux's browser.Therefore,two browser plug-in frameworks are studied,NPAPI and ActiveX,and a compatibility mechanism is proposed.This mechanism is a middleware solution of which one end is NPAPI and the other end is wrapped ActiveX control in Wine.It implements message passing and conversion between NPAPI and ActiveX control.Experimental results show that based on this mechanism ActiveX control is able to run in Linux and its load time,effectiveness and memory usage are acceptable.We provide a new method for ActiveX control cross-platform technology.%目前,浏览器已经成为计算机系统中不可缺少的组成部分.然而,全球市场份额最高的Internet Ex-plorer浏览器,其广泛应用的ActiveX控件却无法运行在Linux操作系统的浏览器中.因此,研究了两种浏览器插件框架,NPAPI和ActiveX,提出了一种兼容机制.该机制为中间件解决方案,一端面向NPAPI,另一端面向Wine中经封装的ActiveX控件,实现NPAPI和ActiveX控件间的消息传输和转换.实验结果表明,兼容机制实现了ActiveX控件运行在Linux操作系统的浏览器中,且加载时间、运行效率和内存占用均在可接受的范围内,为ActiveX 控件跨平台技术提供了一种新的方法.
展开▼