http://bugs.winehq.org/show_bug.cgi?id=29574
Bug #: 29574 Summary: Ajax example fails with unspecified error (IE8) Product: Wine Version: 1.3.36 Platform: x86 URL: http://www.w3schools.com/ajax/tryit.asp?filename=tryaj ax_asyncfalse OS/Version: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: msxml3 AssignedTo: wine-bugs@winehq.org ReportedBy: ocean04@suomi24.fi Classification: Unclassified
There are many examples: http://www.w3schools.com/ajax/default.asp
All work fine except this one:
http://www.w3schools.com/ajax/tryit.asp?filename=tryajax_asyncfalse
1. winetricks ie8 2. open that page in ie 3. click "Change Content" -> There is yellow question mark "unspecified error".
Workaround is winetricks msxml3
http://bugs.winehq.org/show_bug.cgi?id=29574
--- Comment #1 from ocean04@suomi24.fi 2012-01-09 02:42:47 CST --- Created attachment 38305 --> http://bugs.winehq.org/attachment.cgi?id=38305 +msxml,+tid
Relevant part is after the (non fatal) crash, thats when I clicked the button.
http://bugs.winehq.org/show_bug.cgi?id=29574
ocean04@suomi24.fi changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source
http://bugs.winehq.org/show_bug.cgi?id=29574
--- Comment #2 from ocean04@suomi24.fi 2012-01-09 03:56:08 CST --- On that page change "responseText" -> "readyState" and click button "Edit and Click Me"
Now example gives you "2". Seems it's not waiting as it should, readyState should be "4"
http://bugs.winehq.org/show_bug.cgi?id=29574
--- Comment #3 from Nikolay Sivov bunglehead@gmail.com 2012-01-09 06:36:21 CST --- It works for me with wine iexplore, so the problem is likely cause you're using native urlmon shipped with ie8. And the reason state is not updated is probably because bind callback sequence differs or something like that.
So this really is about builtin urlmon being compatible/replaceable with native one.
http://bugs.winehq.org/show_bug.cgi?id=29574
--- Comment #4 from ocean04@suomi24.fi 2012-01-09 07:06:24 CST --- with wine iexplore I don't get any msxml traces, it doesn't use msxml?
http://bugs.winehq.org/show_bug.cgi?id=29574
--- Comment #5 from Nikolay Sivov bunglehead@gmail.com 2012-01-09 07:28:37 CST --- (In reply to comment #4)
with wine iexplore I don't get any msxml traces, it doesn't use msxml?
Yes, it's possible actually, gecko has its own implementation. But if you keep only ActiveXObject("Microsoft.XMLHTTP") way it should start using msxml.
http://bugs.winehq.org/show_bug.cgi?id=29574
--- Comment #6 from ocean04@suomi24.fi 2012-01-09 08:26:52 CST --- Tried that, but seems it fails to create object. (Nothing happens)
http://bugs.winehq.org/show_bug.cgi?id=29574
Vitaliy Margolen vitaliy-bugzilla@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Component|msxml3 |-unknown Resolution| |INVALID
--- Comment #7 from Vitaliy Margolen vitaliy-bugzilla@kievinfo.com 2012-01-09 08:59:06 CST --- http://wiki.winehq.org/winetricks#winetricks_and_bugs
http://bugs.winehq.org/show_bug.cgi?id=29574
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|INVALID |
--- Comment #8 from Nikolay Sivov bunglehead@gmail.com 2012-01-09 09:04:39 CST --- (In reply to comment #6)
Tried that, but seems it fails to create object. (Nothing happens)
Yeah, I can confirm.
So there's a bunch of problems here: - ActiveXObject("Microsoft.XMLHTTP") doesn't work probably; - IXMLDOMHttpRequest fails to resolve relative path name, I'm aware of this problem, and this is a good test case to fix it, we even have a tests that show how it supposed to work.
(In reply to comment #7)
Don't do that, it's still a valid bug.
http://bugs.winehq.org/show_bug.cgi?id=29574
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |msxml3
--- Comment #9 from Nikolay Sivov bunglehead@gmail.com 2012-01-09 13:35:46 CST --- (In reply to comment #8)
- ActiveXObject("Microsoft.XMLHTTP") doesn't work probably;
This is intentional apparently, wine iexplore doesn't use builtin jscript for every page.
- IXMLDOMHttpRequest fails to resolve relative path name, I'm aware of this
problem, and this is a good test case to fix it, we even have a tests that show how it supposed to work.
Let's make this bug about this particular issue. Requested document url should be resolved to http://www.w3schools.com/ajax/ajax_info.txt.
http://bugs.winehq.org/show_bug.cgi?id=29574
--- Comment #10 from ocean04@suomi24.fi 2012-01-09 16:23:13 CST --- 003e:trace:msxml:httprequest_open (0x33ab6e8)->(L"GET" L"http://www.w3schools.com/ajax/ajax_info.txt" {VT_BOOL: ffffffff})
Why that's not {VT_BOOL: 0} when async is false?
Example works if set This->async=VARIANT_FALSE;
http://bugs.winehq.org/show_bug.cgi?id=29574
--- Comment #11 from Nikolay Sivov bunglehead@gmail.com 2012-01-10 05:05:44 CST --- (In reply to comment #10)
003e:trace:msxml:httprequest_open (0x33ab6e8)->(L"GET" L"http://www.w3schools.com/ajax/ajax_info.txt" {VT_BOOL: ffffffff})
Why that's not {VT_BOOL: 0} when async is false?
That's because when you create object with 'new XMLHttpRequest()' as builtin jscript extension it's always acts as asynchronous with installed event handler.
If you do ActiveXObject() it's created as a normal COM object and operated through IDispatch, jscript extension for this class acts as a wrapper over msxml implementation and doesn't even use IDispatch as you may see in logs.
I'll open a jscript bug for that.
Example works if set This->async=VARIANT_FALSE;
Yeah, that could be caused by urlmon problems or a real bug in httprequest in msxml itself.
http://bugs.winehq.org/show_bug.cgi?id=29574
--- Comment #12 from ocean04@suomi24.fi 2012-03-30 00:13:51 CDT --- Example now uses msxml in builtin iexplore, and works if this patch is also included:
http://source.winehq.org/patches/data/82922
It's "bool 0" case, but anyway..
I can't test Microsoft.XMLHTTP, I always get "Filename missing" problem
http://bugs.winehq.org/show_bug.cgi?id=29574
Kyle Auble randomidman48@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |randomidman48@yahoo.com
http://bugs.winehq.org/show_bug.cgi?id=29574
--- Comment #13 from Nikolay Sivov bunglehead@gmail.com 2012-12-07 05:40:13 CST --- (In reply to comment #12)
Example now uses msxml in builtin iexplore, and works if this patch is also included:
http://source.winehq.org/patches/data/82922
It's "bool 0" case, but anyway..
I can't test Microsoft.XMLHTTP, I always get "Filename missing" problem
Requesting site uri is implemented now:
http://source.winehq.org/git/wine.git/?a=commit;h=36a47dd0f2493ce5e0fcc594ac...
http://bugs.winehq.org/show_bug.cgi?id=29574
--- Comment #14 from ocean04@suomi24.fi 2012-12-07 07:38:37 CST --- Microsoft.XMLHTTP case now works both builtin iexplore and IE8 (from winetricks)
But this new XMLHttpRequest(); still fails in IE8 (with builtin msxml). And is still unimplemented in builtin iexplore bug 29583
http://bugs.winehq.org/show_bug.cgi?id=29574
--- Comment #15 from Nikolay Sivov bunglehead@gmail.com 2012-12-07 08:00:13 CST --- (In reply to comment #14)
But this new XMLHttpRequest(); still fails in IE8 (with builtin msxml). And is still unimplemented in builtin iexplore bug 29583
That's covered by bug 29583.
http://bugs.winehq.org/show_bug.cgi?id=29574
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED See Also| |http://bugs.winehq.org/show | |_bug.cgi?id=29583 Resolution| |FIXED
--- Comment #16 from Nikolay Sivov bunglehead@gmail.com 2012-12-24 23:26:58 CST --- I'm marking this fixed as we have a separate bug for "new XMLHttpRequest();" way to create request object.
http://bugs.winehq.org/show_bug.cgi?id=29574
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #17 from Alexandre Julliard julliard@winehq.org 2013-01-04 15:00:55 CST --- Closing bugs fixed in 1.5.21.
http://bugs.winehq.org/show_bug.cgi?id=29574
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |36a47dd0f2493ce5e0fcc594ace | |17933c1dbf3d3
https://bugs.winehq.org/show_bug.cgi?id=29574
Kyle Auble kyle.auble@zoho.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|kyle.auble@zoho.com |