Commit Graph

293 Commits

Author SHA1 Message Date
Jacek Caban bc02ba80b9 mshtml: Pass event target as EventTarget to release_event_target.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-14 22:49:11 +01:00
Jacek Caban c12b4b4846 mshtml: Return event target as EventTarget from DispatchEx vtbl.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-14 22:48:57 +01:00
Jacek Caban 74a759673d mshtml: Use inner window's event target for body element.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-14 22:48:53 +01:00
Nikolay Sivov a5f27c6cdc mshtml: Fix outer window url leak (Valgrind).
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-11-14 11:07:07 -06:00
Nikolay Sivov 7846f0947a mshtml: Use proper constants as HRESULT return values.
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-09-14 22:24:58 +09:00
Jacek Caban 9679755a06 mshtml: Use rb tree instead of list to map nsIDOMWindowProxy to HTMLOuterWindow.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-14 00:02:02 +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
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 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
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 03ed7f483d mshtml: Return success in IHTMLWindow2::moveBy and resizeBy.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-22 00:58:56 +09:00
Jacek Caban 3a16c8bbca mshtml: Wine Gecko 2.47 release.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-14 13:43:54 +09:00
Jacek Caban 7d2bba4647 mshtml: Added IHTMLWindow2::onunload property implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-26 22:14:54 +09:00
Piotr Caban 60fe748543 mshtml: Make it possible to clear timer and interval with any of clearTimeout and clearInterval functions.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-02 22:45:59 +09:00
Jacek Caban 6fd383e8df mshtml: Added IHTMLWindow6::postMessage semi-stub implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-05 12:51:34 +09:00
Jacek Caban feed9d4750 mshtml: Added IHTMLWindow6::onmessage property implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-05 12:51:30 +09:00
Jacek Caban c0fda9824e mshtml: Expose XMLHttpRequest constructor to scripts.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-25 00:25:02 +09:00
Jacek Caban 11a6bfc673 mshtml: Added IHTMLWindow::get_clientInformation implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-21 19:50:29 +01:00
Francois Gouget 413c6f60cf Assorted spelling fixes.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-02 12:59:52 +09:00
Jacek Caban fa43b8cac9 mshtml: Make msec argument of setTimeout optional.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-20 22:19:29 +09:00
Indrek Altpere 2cfe3cac0c mshtml: Handle nsIDOMWindow_GetFrames returning NULL. 2015-08-17 14:39:33 +09:00
Zhenbo Li deb884a6d8 mshtml: Add IHTMLXMLHttpRequestFactory::create() method implementation. 2015-07-01 19:18:12 +09:00
Zhenbo Li 0036b8bf2e mshtml: Implement IHTMLXMLHttpRequestFactory as a stub. 2015-06-10 23:30:39 +09:00
Indrek Altpere 2676488fcd mshtml: Add NULL check to get_frame_by_name. 2015-06-02 14:08:29 +09:00
Jacek Caban c1079f2571 mshtml: Use bind_event in set_event_handler. 2015-05-21 13:55:07 +09:00
Jacek Caban 7950f780df mshtml: Get rid of no longer needed detach_event argument. 2015-05-21 13:55:03 +09:00
Jacek Caban 189cb568ee mshtml: Use vtbl for binding to event in attach_event. 2015-05-21 13:54:58 +09:00
Jacek Caban 21151f3ec6 mshtml: Pass EventTarget to detach_event. 2015-05-15 18:06:01 +09:00
Jacek Caban 513c77d9e4 mshtml: Pass EventTarget to attach_event. 2015-05-15 18:05:57 +09:00
Jacek Caban f2fa7e662e mshtml: Pass EventTarget to get_event_handler. 2015-05-15 18:05:52 +09:00
Jacek Caban f26597753a mshtml: Pass EventTarget to set_event_handler. 2015-05-15 18:05:46 +09:00
Jacek Caban 2f4e85abb8 mshtml: Make HTMLInnerWindow inherit from EventTarget. 2015-05-15 18:05:37 +09:00
Jacek Caban 144056bce0 mshtml: Allow setting event handlers to strings. 2015-03-11 12:42:42 +09:00
Jacek Caban 679ddf24d4 mshtml: Added support for _self target in IHTMLWindow2::open. 2015-01-28 21:30:07 +01:00
Jacek Caban df63590706 mshtml: Added screenLeft and screenTop properties implementation. 2014-12-24 11:15:00 +01:00
Andrew Eikum 8df2774124 mshtml: Support new window targets for FORM elements. 2014-12-16 16:32:34 +01:00
Jacek Caban 6b18f619f4 mshtml: Fixed session_storage leak. 2014-09-02 11:45:51 +02:00
Jacek Caban be2128fd05 mshtml: Added IHTMLWindow2::navigate implementation. 2014-07-28 17:23:42 -05:00
Jacek Caban 0b30276e2f mshtml: Added IHTMLWindow2::scroll implementation. 2014-06-17 20:36:38 +02:00
Jacek Caban 6ebe1c60e2 mshtml: Use debugstr_mshtml_guid in a few more places. 2014-05-13 19:57:28 +02:00
Jacek Caban 9c45b34c62 mshtml: Bind events not sent to default view to body element instead of directly to target. 2014-03-11 19:39:39 +01:00
Jacek Caban 595fb40efc mshtml: Don't use fragment navigation for SuperNavigate calls. 2014-03-04 19:24:26 +01:00
Jacek Caban 0be56d27d2 mshtml: Wine Gecko 2.24 release. 2013-09-25 19:31:38 +02:00
Piotr Caban b3fb1b0408 mshtml: Support IObjectIdentity interface in HTMLWindow object. 2013-04-26 16:28:38 +02:00
Piotr Caban 019a1af76e mshtml: Added IOmHistory::get_length implementation. 2013-04-23 17:20:14 +02:00
Jacek Caban 6a7db8967f mshtml: Use nsAString_InitDepend in SetDesignMode call. 2013-04-23 15:35:03 +02:00
Jacek Caban e13cf82e61 mshtml: Added IHTMLWindow2::close partial implementation. 2013-04-15 17:47:35 +02:00
Jacek Caban 7b9fc3bb7d mshtml: Use Uri_CREATE_ALLOW_IMPLICIT_FILE_SCHEME in CreateUri calls. 2013-03-26 12:16:21 +01:00
Jacek Caban 2a0fd1c956 mshtml: Added IHTMLWindow2::onfocus property implementation. 2013-02-20 16:28:06 +01:00
Jacek Caban 07e72de9a4 mshtml: Get rid of PRUint32 outside XPCOM C API. 2013-01-23 20:47:25 +01:00
Jacek Caban 7ac09e721c mshtml: Properly report history update for location.replace call. 2012-11-12 16:35:15 +01:00
Jacek Caban cfa0a3accd mshtml: Use flags in navigation functions. 2012-11-09 11:30:48 +01:00
Jacek Caban e0a33d0480 mshtml: Don't pass hash part of URI to EvaluateNewWindow. 2012-11-09 11:30:35 +01:00
Jacek Caban 2c6cbf75d4 mshtml: Added IHTMLWindow2::onblur property implementation. 2012-10-25 15:57:50 +02:00
Jacek Caban 3a4a4acd1a mshtml: Properly handle OOM errors in omnavigator.c (coverity). 2012-10-19 12:20:11 +02:00
Jacek Caban 08485aeb48 mshtml: Properly handle OOM errors in task.c (coverity). 2012-10-19 12:19:45 +02:00
Jacek Caban 81e106cfa2 mshtml: Moved remove_target_tasks to detach_inner_window. 2012-10-17 14:01:46 +02:00
Jacek Caban 4a491ea7e4 mshtml: Make HTMLInnerWindow the owner of timers. 2012-10-17 14:01:39 +02:00
Jacek Caban d1c1f9e830 mshtml: Use detach_inner_window in release_inner_window. 2012-10-17 14:01:32 +02:00
Jacek Caban ccbee09f7e mshtml: Added support for IHTMLScriptElement::put_src calls during parser callback. 2012-10-16 20:40:58 +02:00
Jacek Caban 51b701c3ad mshtml: Moved HTMLScriptElement declaration to separated header. 2012-10-16 20:40:28 +02:00
Jacek Caban f90798572a mshtml: Added DISPATCH_PROPERTYGET|DISPATCH_METHOD flags support for elements exposed as window properties. 2012-09-25 21:13:07 +02:00
Jacek Caban 7293e84163 mshtml: Added IHTMLWindow2::onscroll implementation. 2012-09-10 17:35:54 +02:00
Jacek Caban 156e94429d mshtml: Use first script host's GUID as default script guid. 2012-09-10 11:51:52 +02:00
Jacek Caban f63da13c28 mshtml: Added IHTMLWindow2::onhelp property implementation. 2012-09-04 15:06:28 +02:00
Jacek Caban 4ff0a82416 mshtml: Properly expose frame and iframe element's windows to scripts. 2012-09-04 15:06:11 +02:00
Jacek Caban 2dcb37e520 mshtml: Use nsIDOMWindowCollection::NamedItem in get_window_by_name. 2012-09-03 17:42:38 +02:00
Jacek Caban a535417443 mshtml: Open targeted anchors in existing frames if available. 2012-09-03 17:42:34 +02:00
Jacek Caban d3b77c4507 mshtml: Moved getting frame by name to separated function. 2012-09-03 17:42:29 +02:00
Jacek Caban c74d9a43b8 mshtml: Added IHTMLWindow6::get_sessionStorage implementation. 2012-08-20 17:06:51 +02:00
Jacek Caban 93a2de1fba mshtml: Moved HTMLLocation reference to inner window. 2012-08-14 12:47:58 +02:00
Jacek Caban 1a25ed2637 mshtml: Store moniker in HTMLInnerWindow. 2012-08-14 12:47:57 +02:00
Jacek Caban 1b2525d1bf mshtml: Default to previous script type if not given. 2012-08-13 11:52:32 +02:00
Jacek Caban 27f799d880 mshtml: Store inner window directly in HTMLDocumentNode. 2012-07-30 17:57:45 +02:00
Marcus Meissner b810fad34c mshtml: Remove superflous check (Coverity). 2012-07-19 15:42:52 +02:00
Jacek Caban 5fecc4896f mshtml: Don't store outer window in nsChannelBSC. 2012-07-12 11:47:20 -05:00
Jacek Caban bbaa307fdf mshtml: Use per-inner window task_magic for binding. 2012-07-12 11:47:14 -05:00
Jacek Caban 25c5082f90 mshtml: Create inner window early in binding process and use it to store current binding callback. 2012-07-12 11:47:09 -05:00
Jacek Caban 2c1fe7f0c8 mshtml: Moved detaching inner window to separated function. 2012-07-11 10:00:34 -05:00
Jacek Caban 94f0f884fd mshtml: Moved binding list to HTMLInnerWindow. 2012-07-11 10:00:26 -05:00
Jacek Caban d31176ec03 mshtml: Moved history property to HTMLInnerWindow. 2012-06-26 17:06:11 +02:00
Jacek Caban 4647fe0f23 mshtml: Moved screen property to HTMLInnerWindow. 2012-06-26 17:06:11 +02:00
Jacek Caban b85631bab6 mshtml: Moved image_factory to HTMLInnerWindow. 2012-06-26 17:06:11 +02:00
Jacek Caban c73b135686 mshtml: Store event object in HTMLInnerWindow instead of HTMLOuterWindow. 2012-06-25 17:45:21 +02:00
Jacek Caban bb02767f15 mshtml: Moved script_hosts from HTMLOuterWindow to HTMLInnerWindow. 2012-06-25 17:45:21 +02:00
Jacek Caban c77b8bfdd9 mshtml: Moved option_factory from HTMLOuterWindow to HTMLInnerWindow. 2012-06-25 17:45:21 +02:00
Jacek Caban 2698fe0b3f mshtml: Moved global_props from HTMLOuterWindow to HTMLInnerWindow. 2012-06-25 17:45:20 +02:00
Jacek Caban c13bb135ca mshtml: Moved DispatchEx instance from HTMLOuterWindow to HTMLInnerWindow. 2012-06-25 17:45:20 +02:00
Jacek Caban 79356c65c1 mshtml: Moved document node from HTMLOuterWindow to HTMLInnerWindow. 2012-06-25 17:45:19 +02:00
Jacek Caban 08964ede45 mshtml: Added separated types for outer and inner HTML windows. 2012-06-25 17:45:19 +02:00
Jacek Caban e120ca06c3 mshtml: Release script hosts in window_set_docnode. 2012-06-13 19:40:04 +02:00
Francois Gouget fac36c55e9 Assorted typo, spelling, wording and case fixes. 2012-05-15 16:26:43 +02:00
Jacek Caban d2e8d44811 mshtml: Added IHTMLWindow2::get_history implementation. 2012-05-02 12:00:43 +02:00
Jacek Caban c5c94f101f mshtml: Added IHTMLWindow3::detachEvent implementation. 2012-04-17 12:43:19 +02:00
Jacek Caban d987690212 Added support for shadowing of element pseudo-variables. 2012-04-17 12:43:17 +02:00
Jacek Caban 16a5a5c91b mshtml: Use return_nsstr helper in more functions. 2012-04-13 16:09:43 +02:00
Jacek Caban 325f8c8172 mshtml: Return self as a parent of global top window. 2012-04-11 18:16:11 +02:00
Jacek Caban 8e71096fd1 mshtml: Added better IHTMLWindow2::get_opener stub. 2012-04-10 16:21:30 +02:00