Commit graph

387 commits

Author SHA1 Message Date
Josh Matthews
d9f04180a5 Split page load into separate network and parsing stages. Delay Page creation until the load is finished. Make session history traversal simply activate existing pipelines, rather than potentially loading them from the network. 2015-03-03 16:25:40 -05:00
Ms2ger
fde91b19ff Remove unused import from script_task. 2015-02-28 22:03:40 +01:00
Guro Bokum
94e7f89524 Move body of ScriptTask::handle_mouse_move_event into a method on #5073 2015-02-28 12:26:46 +07:00
Keith Yeung
d79e422a8f Moved dispatch_key_event method from script_task.rs to document.rs, fixes #4982 2015-02-26 19:14:17 +08:00
Glenn Watson
93088e84f0 If root html element contains "reftest-wait" class, don't mark document as ready until it's removed.
This allows reftests to perform tests for incremental layout and other bugs that require rendering multiple frames.
2015-02-26 13:01:12 +10:00
Dae-seon Moon
d7fab117c2 Remove ScriptMsg::Navigate (fixes #4948). 2015-02-25 15:25:02 +01:00
bors-servo
a3ea3eed47 auto merge of #4960 : pkondzior/servo/add-script-timers-suspend-resume-functionality, r=jdm
Adds free/thaw methods to script_task that let you send suspend/resume messages to web content timers. Fixes #4907
2015-02-23 21:45:46 -07:00
Pawel Kondzior
c2961c94b4 Add thaw/freeze messages that can suspend/resume webcontent timers #4907 2015-02-24 05:33:27 +01:00
bors-servo
576158d08d auto merge of #4959 : glennw/servo/fix-hover, r=jdm
Specifically:
 - Use inclusive_ancestors instead of ancestors, to detect hover on elements like divs.
 - Send the mousemove event after all the hover states have been set correctly.
 - Correctly handle removing hover state from elements when mouse is not over any elements.
 - Correctly detect when a reflow is required (previous code failed in several edge cases).
2015-02-23 19:18:51 -07:00
Keith Yeung
7162c872de script_task.rs now utilizes hyper's LastModified header, removed old implementation (fixes #4986) 2015-02-23 04:19:14 +08:00
bors-servo
f1f8265449 auto merge of #4956 : psdh/servo/interfail, r=jdm
Fixes #4923
2015-02-21 12:51:44 -07:00
Prabhjyot Singh Sodhi
cc48797999 Fixing Intermittent failure in pages with timers
Fixes #4923
2015-02-22 00:27:16 +05:30
bors-servo
939b13f436 auto merge of #5007 : Ms2ger/servo/warnings, r=saneyuki 2015-02-21 11:33:46 -07:00
Ms2ger
b5b58bba24 Remove unused imports. 2015-02-21 18:46:29 +01:00
Ms2ger
226e059370 Cleanup ScriptTask::load. 2015-02-21 18:21:26 +01:00
Tetsuharu OHZEKI
749ebbba71 Move DocumentProgressHandler to document.rs. 2015-02-22 00:29:05 +09:00
Keith Yeung
b855bc4716 Changed js_runtime to be of type *mut JSRuntime 2015-02-21 20:01:27 +08:00
Keith Yeung
c7ddab2efb Removed unused crates 2015-02-21 18:09:30 +08:00
Keith Yeung
e715f0958b Moved handle_click_event from script_task.rs to document.rs 2015-02-21 17:58:23 +08:00
Glenn Watson
451512aa29 Fixes a number of issues with setting hover state, and simplifies the code.
Specifically:
 - Use inclusive_ancestors instead of ancestors, to detect hover on elements like divs.
 - Send the mousemove event after all the hover states have been set correctly.
 - Correctly handle removing hover state from elements when mouse is not over any elements.
 - Correctly detect when a reflow is required (previous code failed in several edge cases).
2015-02-19 09:39:11 +10:00
Ruud van Asseldonk
6ff3a5a3c1 Do not glob-export DevtoolScriptControlMsg variants. 2015-02-13 14:51:10 +01:00
Ruud van Asseldonk
1452614e28 Do not glob-export DevtoolsControlMsg variants. 2015-02-13 14:51:10 +01:00
bors-servo
29d24a5049 auto merge of #4866 : KiChjang/servo/trigger-fragment-string, r=jdm
Fixes #4863
2015-02-12 10:18:45 -07:00
Simon Sapin
d5dd1d658e Upgrade to rustc ba2f13ef0 2015-02-04 2015-02-11 14:48:34 -08:00
bors-servo
fcfa00f4df auto merge of #4884 : glennw/servo/iframe-load, r=jdm 2015-02-11 03:51:47 -07:00
Glenn Watson
980b1efb72 Dispatch a load event at iframes. Fixes #4350. 2015-02-11 09:07:05 +10:00
Ms2ger
a09a912178 Import net as net rather than servo_net. 2015-02-10 12:55:24 +01:00
Ms2ger
b2fcc2397e Import msg as msg rather than servo_msg. 2015-02-10 11:40:36 +01:00
bors-servo
13b49ddf44 auto merge of #4859 : glennw/servo/fix-3986, r=larsbergstrom 2015-02-08 08:51:43 -07:00
Keith Yeung
3e33a0b633 Updated trigger_fragment to take a string instead of URL and updated callers 2015-02-07 20:54:11 +08:00
Glenn Watson
1e0e98b63c Implement window.frameElement, change window.parent to make use of it. 2015-02-07 06:46:29 +10:00
Ms2ger
e46ac8c8a1 Replace an and_then call by a map call in ScriptTask::load. 2015-02-06 12:31:56 +01:00
Ms2ger
e85b3b6acb Reindent script_task.rs. 2015-02-06 12:31:12 +01:00
Glenn Watson
5ef9eaa1e1 Fix page being removed too early. Fixes #3986 (intermittent failure). 2015-02-06 15:28:02 +10:00
bors-servo
c360b75e16 auto merge of #4854 : jdm/servo/workererr, r=jdm
...rker object.

Rebased from #4537.
2015-02-05 15:27:44 -07:00
Sagar Muchhal
6699738cae Add console message support to devtools. Does not actually cause logging to occur in the remote console. 2015-02-05 21:44:07 +00:00
Shreya Bastikar
7309f2a428 Support firing error events from a dedicated worker at the containing worker object. 2015-02-05 21:42:10 +00:00
bors-servo
0a2bde1b6e auto merge of #4852 : jdm/servo/buffermessages, r=jdm
Rebased and squashed version of #4191.
2015-02-05 12:36:45 -07:00
Sagar Muchhal
5345edf51e Add flag to send live updates to devtools. 2015-02-05 19:26:59 +00:00
Ms2ger
d8c2c88bbd Replace Root::deref by a custom get_unsound_ref_forever method.
This will hopefully make it clearer that this is not the correct function
to call.
2015-02-05 18:45:20 +01:00
Glenn Watson
0873e5c8ca Implement window.parent for iframes. 2015-02-05 07:04:04 +10:00
Josh Matthews
a814ba4449 Use an option for the parser input. 2015-02-04 17:56:31 +00:00
Josh Matthews
fb217ab24b Make XMLHttpRequest user-set headers be preserved across redirects. 2015-02-04 13:37:01 +00:00
Josh Matthews
542e8d52d5 Reorganize document creation so it occurs after we have a final URL. 2015-02-04 13:37:01 +00:00
Gilles Leblanc
a1804effaf Initialize trusted-ness of DOM events properly
Fixes #3740
2015-02-03 21:40:07 -05:00
Alexandru Cojocaru
685fee02a0 add unwrap to send/recv calls 2015-02-03 16:05:13 +01:00
Diego Marcos
7b9c902a0a Adds borrow_for_script_deallocation and unsafe_mut_js_info method to avoid 'DOMRefCell already mutably borrowed' messages. This is just a temporary fix until the Rust standard library allows borrowing already-borrowed RefCell values during unwinding.
It also removes LiveDOMReferences destructor that it's a no-op but it contains an assert that was being violated causing an endless cycle of destructor calls ending up in a stack overflow.
2015-01-30 12:07:53 -08:00
Ms2ger
505159a464 Import the util crate as util rather than servo_util.
This used to conflict with the util crate from the standard library, which
has long since been removed.

The import in layout has not been changed because of a conflict with the
util mod there.
2015-01-29 12:16:41 +01:00
Manish Goregaokar
b68b7e87c8 self import 2015-01-28 13:46:00 +05:30
Josh Matthews
95fc29fa0d Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev. 2015-01-28 10:16:49 +10:00