Does Firebreath support plugin updates in Internet Explorer once an instance is created without restarting?

一笑奈何 提交于 2019-12-25 16:43:04

问题


Code snippet:

navigator.plugins.refresh(false);

var a = new ActiveXObject(collab.axName);
if (a) {
  version = parseVersion(a.version);
}

I run something very similar to the above to check the version of my installed FB plugin. If it is out-of-date, I replace it with a newer version (Firebreath bog-standard Windows installer). However, if I run the snippet again, the newer version is not detected - the new ActiveX object has the old version number.

The ActiveX object creation seems to be the key - installing an update before creating an object will work correctly, and the update is detected if the browser is restarted. And updates work fine in NPAPI browser (which do version detection using navigator.plugins).

Internet Explorer 10, Windows 7.

My question:

Is this expected behavior (or indicative of a bug in my code)? If it is expected, is there is known workaround or alternate approach to accomplish the same goal of installing an update without restarting the browser (e.g., version detection without instantiation, forcing ActiveX update detection)?

来源:https://stackoverflow.com/questions/16907979/does-firebreath-support-plugin-updates-in-internet-explorer-once-an-instance-is

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!