http://bugs.winehq.org/show_bug.cgi?id=26546
Summary: Buitin IE cannot run some methods of ActiveX controls from ICBC online bank Product: Wine Version: 1.3.16 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: mshtml AssignedTo: wine-bugs@winehq.org ReportedBy: fracting@gmail.com
First, write a html named safeEdit1.getLength.html like below:
<object id="safeEdit1" classid="CLSID:73E4740C-08EB-4133-896B-8D0A7C9EE3CD" codebase="/icbc/newperbank/AxSafeControls.cab#version=1,0,0,13" height="21" width="145"></object> <script type="text/javascript"> function write_result(){ var div_result = document.getElementById("result"); var object_test = document.getElementById("safeEdit1"); div_result.innerHTML += object_test.getLength(); } </script> <div> <a href="javascript:write_result();">write result </a> </div> <div id="result"></div>
Second, regist the ActiveX control of ICBC : $ winetricks -q mfc42 # Please use the latest winetricks # see http://code.google.com/p/winetricks/issues/detail?id=9 for details.
$ wget --timestamping 'https://mybank.icbc.com.cn/icbc/newperbank/AxSafeControls.cab#version=1,0,0,...' $ cabextract AxSafeControls.cab $ regsvr32 InputControl.dll
Third, open safeEdit1.getLength.html with builtin IE, type some char to the "safeEdit" control, and then click the "write result" link. Normally, there will be some output to the "result" div, that is the length of the string we have typed. However, it doesn't work on builtin IE.
the log is like this: fixme:mshtml:nsURI_GetAsciiHost Use Uri_PUNYCODE_IDN_HOST flag
Wine MS IE and Windows IE will work.
getLength() may be a function from InputControl.dll $ strings InputControl.dll | grep getLength XgetLengthWWW method getLengthWW
http://bugs.winehq.org/show_bug.cgi?id=26546
--- Comment #1 from fracting fracting@gmail.com 2011-03-25 04:20:24 CDT --- Created an attachment (id=33808) --> (http://bugs.winehq.org/attachment.cgi?id=33808) safeEdit1.getLength.html
http://bugs.winehq.org/show_bug.cgi?id=26546
--- Comment #2 from fracting fracting@gmail.com 2011-03-25 04:25:11 CDT --- Created an attachment (id=33809) --> (http://bugs.winehq.org/attachment.cgi?id=33809) Log: load ActiveX with builtin IE
http://bugs.winehq.org/show_bug.cgi?id=26546
fracting fracting@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jacek@codeweavers.com
http://bugs.winehq.org/show_bug.cgi?id=26546
Jacek Caban jacek@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #3 from Jacek Caban jacek@codeweavers.com 2011-06-07 05:21:26 CDT --- The problem you can see is not related to ActiveX support. We don't handle javascript: scheme in anchors properly, so write_result is never invoked. You can test the ActiveX itself by changing the anchor to something like that:
<div onclick="write_result();">write result </div>
http://bugs.winehq.org/show_bug.cgi?id=26546
--- Comment #4 from fracting fracting@gmail.com 2011-06-07 05:43:30 CDT --- Thank you Jacek, I test with wine1.3.21, but seems not work, here is the new html file:
<object id="safeEdit1" classid="CLSID:73E4740C-08EB-4133-896B-8D0A7C9EE3CD" codebase="/icbc/newperbank/AxSafeControls.cab#version=1,0,0,13" height="21" width="145"></object> <script type="text/javascript"> function write_result(){ var div_result = document.getElementById("result"); var object_test = document.getElementById("safeEdit1"); div_result.innerHTML += object_test.getLength(); } </script> <div onclick="write_result();">write result </div> <div id="result"></div>
When I click on the "write result" div, I get a message from the console:
fixme:mshtml:nsURI_GetAsciiHost Use Uri_PUNYCODE_IDN_HOST flag
Did I do anything wrong?
http://bugs.winehq.org/show_bug.cgi?id=26546
--- Comment #5 from Jacek Caban jacek@codeweavers.com 2011-06-07 05:47:31 CDT --- Do you run from local file? Please attach mshtml logs.
http://bugs.winehq.org/show_bug.cgi?id=26546
--- Comment #6 from fracting fracting@gmail.com 2011-06-07 05:59:21 CDT --- Created an attachment (id=35054) --> (http://bugs.winehq.org/attachment.cgi?id=35054) Log: +mshtml trace
http://bugs.winehq.org/show_bug.cgi?id=26546
--- Comment #7 from fracting fracting@gmail.com 2011-06-07 05:59:40 CDT --- (In reply to comment #5)
Do you run from local file? Please attach mshtml logs.
From a localhost server.
http://bugs.winehq.org/show_bug.cgi?id=26546
--- Comment #8 from Jacek Caban jacek@codeweavers.com 2011-06-07 06:21:34 CDT --- Created an attachment (id=35055) --> (http://bugs.winehq.org/attachment.cgi?id=35055) Use jscript for localhost
http protocol by default doesn't use our jscript.dll for scripting, so it attempts to use that code with Gecko script engine. You may use the attached .reg file to change that behavior.
http://bugs.winehq.org/show_bug.cgi?id=26546
Jacek Caban jacek@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #9 from Jacek Caban jacek@codeweavers.com 2011-08-02 07:49:34 CDT --- Fixed in git.
http://bugs.winehq.org/show_bug.cgi?id=26546
--- Comment #10 from fracting fracting@gmail.com 2011-08-02 23:37:01 CDT --- (In reply to comment #9)
Fixed in git.
Hello, this bug seems depends on Bug 27966 ... Thanks!
http://bugs.winehq.org/show_bug.cgi?id=26546
fracting fracting@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |
--- Comment #11 from fracting fracting@gmail.com 2011-08-05 04:23:56 CDT --- Hello, Bug 27966 is fixed, but Bug 26546 seems not fixed here with either gecko1.2 or gecko1.3beta1 .
$ wine iexplore 'http://bugs2.winehq.org/attachment.cgi?id=33808'
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented group {000214d1-0000-0000-c000-000000000046} fixme:ieframe:ClOleCommandTarget_Exec Unimplemented group {000214d1-0000-0000-c000-000000000046} fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 29 fixme:jscript:JScriptProperty_SetProperty Unimplemented property 70000001 fixme:jscript:JScriptProperty_SetProperty Unimplemented property 70000002 fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 29 fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 28
http://bugs.winehq.org/show_bug.cgi?id=26546
--- Comment #12 from fracting fracting@gmail.com 2011-08-05 04:25:02 CDT --- Created an attachment (id=35819) --> (http://bugs.winehq.org/attachment.cgi?id=35819) Log: +mshtml trace
http://bugs.winehq.org/show_bug.cgi?id=26546
--- Comment #13 from Jacek Caban jacek@codeweavers.com 2011-08-05 04:30:00 CDT --- You still need to setup jscript for http or use file: protocol as per comment 8
http://bugs.winehq.org/show_bug.cgi?id=26546
Jacek Caban jacek@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |5751441f39cbe1f20d885d879d8 | |6c30a556fd5c0 Status|REOPENED |RESOLVED Resolution| |FIXED
--- Comment #14 from Jacek Caban jacek@codeweavers.com 2011-11-16 10:23:01 CST --- This is fixed. The fact that we don't use jscript.dll for http: proocol by default is a separated issue.
http://bugs.winehq.org/show_bug.cgi?id=26546
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #15 from Alexandre Julliard julliard@winehq.org 2011-11-18 13:04:10 CST --- Closing bugs fixed in 1.3.33.