Commit Graph

3574 Commits

Author SHA1 Message Date
Sebastian Lackner 01581bfc48 mshtml/tests: Fix incorrect usage of broken() function.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Jacek Caban<jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-08 23:55:11 +09:00
Michael Stefaniuc 0793d01d1c mshtml: Avoid using the COM method implementations directly.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-06 11:28:39 +09:00
Andrew Eikum 22783dfef8 mshtml: Don't crash creating a URI if we have no document.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-22 12:42:15 +09:00
Nikolay Sivov 8fbaeb3058 mshtml: Formatting change to get rid of warning on GCC 6.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-11 12:09:28 +09:00
Nikolay Sivov 0b0a63b433 mshtml: Remove dead assignment (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-04 09:09:02 -05:00
Jacek Caban 3d4dbd3c14 mshtml: Use correct principal to create in create_nsxhr.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-03 09:56:19 -05:00
Jacek Caban 0ff1b0c382 mshtml: Set referer HTTP header in nsIHttpChannel::SetReferrerWithPolicy.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-03 09:56:19 -05:00
Jacek Caban 3cb45c4c8d mshtml: Don't send https referrer to non-https channel.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-03 09:56:19 -05:00
Jacek Caban ed7dc73ca5 mshtml: Forward nsIHttpChannel::SetReferrer to SetReferrerWithPolicy.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-03 09:56:19 -05:00
Michael Stefaniuc 85916a10ad mshtml: Use SetRectEmpty() instead of memset().
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-01 09:44:58 -05:00
Jacek Caban 82d867a676 mshtml: Added asynchronous script loading tests.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-20 11:03:20 +09:00
Jacek Caban b1f4bf1d7d mshtml: Load dynamically created script elements asynchronously.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-20 11:03:12 +09:00
Jacek Caban 8ccc38cb55 mshtml: Set interactive script ready state change in the right places.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-20 11:03:10 +09:00
Jacek Caban 3a85711a98 mshtml: Set loaded script ready state if binding failed.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-20 11:03:08 +09:00
Jacek Caban 5b1affa446 mshtml: Moved script execution logic from HTMLScriptElement::put_src to script BSC.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-20 11:03:06 +09:00
Jacek Caban eeb075dd0e mshtml: Merge parse_extern_script and bind_script.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-20 11:03:04 +09:00
Jacek Caban f73f884884 mshtml: Store external script text in HTMLScriptElement object.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-20 11:03:01 +09:00
Jacek Caban 718a415aa1 mshtml: Moved parsing external script to OnStopBinding callback.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-20 11:02:59 +09:00
Jacek Caban 2dd15b59d1 mshtml: Moved getting text from ScriptBSC to separated function.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-20 11:02:57 +09:00
Jacek Caban 339ebdb11d mshtml: Use bind_to_tree callback to parse dynamically added scripts.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-20 11:02:54 +09:00
Jacek Caban acef7258ab mshtml/tests: Use relative URLs in navigation.js.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-20 11:02:48 +09:00
Michael Stefaniuc 3223e15230 mshtml: Avoid using LPSTREAM.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-19 19:59:30 +09:00
Nikolay Sivov 3ea8a700f7 mshtml: Fix a typo in a trace message.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-14 22:10:31 +09:00
Michael Stefaniuc 9cec2e5936 mshtml: Use SetRect() instead of open coding it.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-14 22:10:30 +09:00
Jacek Caban 141998f63c mshtml: Removed no longer used nav_test.html file.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-08 23:07:22 +09:00
Jacek Caban d72d640308 mshtml: Export IElementSelector for all elements in compatibility mode >= IE8.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-07 19:58:13 +09:00
Jacek Caban c20c47b85e mshtml: Properly handle duplicated names with different DISPIDs in add_func_info.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-07 19:58:11 +09:00
Jacek Caban 91e7a02845 mshtml: Added support for exposing different sets of properties from DispatchEx depending on compatibility mode.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-07 19:58:09 +09:00
Jacek Caban f6a00dbd25 mshtml: Use callback to register additional IDispatch interfaces.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-06 11:54:53 +09:00
Jacek Caban 87f7aea1ca mshtml: Reimplement IHTMLDocument5::get_compatMode based on document mode.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-06 11:54:45 +09:00
Jacek Caban 429e0dde69 mshtml: Added document.documentMode tests.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-06 11:54:35 +09:00
Jacek Caban 6614df04a8 mshtml: Set compatibility mode based on doctype.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-06 11:54:27 +09:00
Jacek Caban 73bdf9d926 mshtml: Expose IHTMLDocument6 to IDispatch.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-06 11:54:23 +09:00
Jacek Caban 6e2ebcd167 mshtml: Added IHTMLDocument6::get_documentMode implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-06 11:54:19 +09:00
Jacek Caban bda4b35aa3 mshtml: Store compatibility mode provided by meta element.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-06 11:54:16 +09:00
Jacek Caban fc42ccc361 mshtml: Get rid of no longer needed get_dispex_data function.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-06 11:54:11 +09:00
Jacek Caban 13c3ae6d93 mshtml: Store dispex_data_t pointer instead of dispex_static_data_t in DispatchEx.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-06 11:54:05 +09:00
Jacek Caban bb4227d6d5 mshtml: Preprocess typelib data in init_dispex.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-06 11:54:00 +09:00
Jacek Caban 392a41060c mshtml: Store function buffer size in dispex_data_t.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-06 11:53:55 +09:00
Jacek Caban dba85f124b mshtml: Added a helper to get vtbl from DispatchEx and use it to access vtbl outside dispex.c.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-06 11:53:50 +09:00
Jacek Caban fd2f645d16 mshtml: Moved dispex_data_t pointer to the end of dispex_static_data_t struct.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-06 11:53:45 +09:00
Jacek Caban 00f74afeef mshtml: Rewrite navigation tests using new HTTP emulation framework.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-06 11:52:49 +09:00
Jacek Caban 2ad4e9f422 mshtml: Added scripted XHR tests with emulated HTTP connection.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-06 11:51:31 +09:00
Francois Gouget c242e00b8c mshtml: Fix a typo in a TRACE() message.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-05 23:27:37 +09:00
Francois Gouget 3998a7aa54 mshtml: Nswindow_to_window() is not used anymore, remove it.
It has been superseded by mozwindow_to_window().

Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-05 23:27:37 +09:00
Jacek Caban 39cba73ab5 mshtml: Specify locale in VarBstrFrom* calls.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-03 10:21:51 +09:00
Jacek Caban 244abfcb77 mshtml: Added IHTMLElement6::getElementsByClassName implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-03 10:21:47 +09:00
Jacek Caban cb1be040ea mshtml: Added missing release_dispex call in HTMLRect destructor.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-03 10:21:44 +09:00
Jacek Caban d715fdf2c8 mshtml: Added IHTMLElement2::onscroll and onresize properties implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-03 10:21:42 +09:00
Jacek Caban 4a96d20945 mshtml: Added IHTMLElement::ondragstart and onhelp properties implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-03 10:21:40 +09:00