Page 1 of 1

How to support ActiveXObject in OSR

Posted: Tue Feb 23, 2021 9:08 am
by tad.chen
Hi,

Some JS in html file will call function is ActiveX Object, such as:
<button onclick="wsh = new ActiveXObject('WScript.Shell'); wsh.Run('file:///C:/WINDOWS/system32/cmd.exe')">Open Cmd.exe </button>
or
var obj = document.createElement("embed"), ok;
obj.type="application/nptxsso";
obj.style.width="0px";
obj.style.height="0px";
document.body.appendChild(obj);
ok = obj.InitPVANoST();
It's used to load some application, and Commercial browser can load them correctly. But MiniBrowser and SimpleOSRBrowser in demo can't.

How to support it? Is there some demo?

Re: How to support ActiveXObject in OSR

Posted: Wed Feb 24, 2021 10:41 am
by salvadordf
Hi,

Chromium doesn't support ActiveXObject. You need to use TWebBrowser (Internet Explorer) :
https://stackoverflow.com/questions/60360700/js-activexobject-on-chrome