Commit graph

116 commits

Author SHA1 Message Date
Keith Yeung
c82108a005 servo: Merge #5031 - Moved dispatch_key_event method from script_task.rs to document.rs (from KiChjang:refactor-dispatch-key-event); r=jdm
Fixes #4982

Source-Repo: https://github.com/servo/servo
Source-Revision: 071941da59e442ad359d97e7c36e387c0029f9aa
2015-02-26 06:15:56 -07:00
Glenn Watson
0d83959390 servo: Merge #5071 - If root element contains "reftest-wait" class, don't mark document as ready until it's removed (from glennw:reftest-wait); r=jdm
This allows reftests to perform tests for incremental layout and other bugs that require rendering multiple frames.

Source-Repo: https://github.com/servo/servo
Source-Revision: c7c399a26b01fe6f4d49476638a68caf6ecb8f82
2015-02-25 21:06:57 -07:00
Dae-seon Moon
4591049d79 servo: Merge #5068 - Remove ScriptMsg::Navigate (fixes #4948) (from servo:navigate-msg); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: a5688466855c31548ba27506bd99a35b9e6d136d
2015-02-25 07:49:08 -07:00
Pawel Kondzior
4be04275fb servo: Merge #4960 - Add thaw/freeze messages that can suspend/resume webcontent timers #4907 (from pkondzior: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

Source-Repo: https://github.com/servo/servo
Source-Revision: a3ea3eed47713a4a6faa86c575bc2ac95c5fe135
2015-02-23 21:45:46 -07:00
Glenn Watson
2e341432b6 servo: Merge #4959 - Fixes a number of issues with setting hover state, and simplifies the code (from glennw: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).

Source-Repo: https://github.com/servo/servo
Source-Revision: 576158d08deae2d87bde351548cbeb77590a34dc
2015-02-23 19:18:51 -07:00
Keith Yeung
3bd31af0aa servo: Merge #5022 - script_task.rs now utilizes hyper's LastModified header (from KiChjang:hyper-last-modified); r=Manishearth
Fixes #4986

Source-Repo: https://github.com/servo/servo
Source-Revision: 3d9ff6e880a22de9fc5f9751da5a404e55ea23bf
2015-02-22 14:24:45 -07:00
Prabhjyot Singh Sodhi
8e4c455bec servo: Merge #4956 - Fixing Intermittent failure in pages with timers (from psdh:interfail); r=jdm
Fixes #4923

Source-Repo: https://github.com/servo/servo
Source-Revision: f1f826544919b4fa7cdf4bf263abf0c0c1497f70
2015-02-21 12:51:44 -07:00
Ms2ger
959786fd9f servo: Merge #5007 - Remove unused imports (from Ms2ger:warnings); r=saneyuki
Source-Repo: https://github.com/servo/servo
Source-Revision: 939b13f436d2fc895cf8a57140b0bd50acc53a89
2015-02-21 11:33:46 -07:00
Ms2ger
0369e60ea1 servo: Merge #5006 - Cleanup ScriptTask::load (from Ms2ger:script_task); r=saneyuki
Source-Repo: https://github.com/servo/servo
Source-Revision: 31c8f97b4b493d828f1b96144772f3df1aff145b
2015-02-21 10:48:46 -07:00
Tetsuharu OHZEKI
d03a50553c servo: Merge #4997 - Move DocumentProgressHandler to document.rs (from saneyuki:doc); r=jdm
Fix #4987

Source-Repo: https://github.com/servo/servo
Source-Revision: b589735b47e0c8c9b008831a776a6db38b38cd5d
2015-02-21 09:24:47 -07:00
Keith Yeung
624cc237e1 servo: Merge #4999 - Moved handle_click_event from script_task.rs to document.rs (from KiChjang:refactor-handle-click-event); r=jdm
Fixes #4983

Source-Repo: https://github.com/servo/servo
Source-Revision: aad6cc03b80c3ef88439c3dc68693ddcc941ecde
2015-02-21 05:42:53 -07:00
Ruud van Asseldonk
ad71ce0ea3 servo: Merge #4925 - Remove glob re-exports in devtools_traits/lib.rs (from ruuda:devtools-traits); r=jdm
This resolves #4921.

Source-Repo: https://github.com/servo/servo
Source-Revision: 40eff84ae1220c3d596cddf4fb789763b71bcb38
2015-02-13 09:06:53 -07:00
Keith Yeung
4dd00911b1 servo: Merge #4866 - Updated trigger_fragment to take a string instead of URL and updated cal (from KiChjang:trigger-fragment-string); r=jdm
Fixes #4863

Source-Repo: https://github.com/servo/servo
Source-Revision: 29d24a5049cda10111bb36f3ca2d798e68137107
2015-02-12 10:18:45 -07:00
Simon Sapin
da87abc762 servo: Merge #4893 - Upgrade to rustc ba2f13ef0 2015-02-04 (from servo:rustup_2015-01-31); r=Ms2ger,glennw
Ready for review.

Final link step on android fails, but we know how to fix it and will add it to this branch soon.

Source-Repo: https://github.com/servo/servo
Source-Revision: 2cc08f289ab909de44fa09a07b2c43b70ce379b9

--HG--
rename : servo/ports/gonk/build.rs => servo/support/rust-task_info/build.rs
2015-02-11 17:24:45 -07:00
Glenn Watson
cadc2b7986 servo: Merge #4884 - Dispatch a load event at iframes. Fixes #4350 (from glennw:iframe-load); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: fcfa00f4df7e382f1390c26ab3fd322886d2e138
2015-02-11 03:51:47 -07:00
Ms2ger
e80f986397 servo: Merge #4887 - Import net as net rather than servo_net (from Ms2ger:servo_net); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: e3a4d493117ffd09ce75270b36012845ebb9c08c
2015-02-10 05:15:45 -07:00
Ms2ger
37b5782606 servo: Merge #4886 - Import msg as msg rather than servo_msg (from Ms2ger:servo_msg); r=saneyuki
Source-Repo: https://github.com/servo/servo
Source-Revision: 29d3b872de4abb693b75e71fc0b987c52b0fd1f6
2015-02-10 03:51:46 -07:00
Glenn Watson
2015f0954a servo: Merge #4859 - Fix page being removed too early. Fixes #3986 (intermittent failure) (from glennw:fix-3986); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: 13b49ddf446871e7c544bd0b5d6457168c84de46

--HG--
rename : servo/tests/content/test_iframe_contentDocument.html.disabled => servo/tests/content/test_iframe_contentDocument.html
2015-02-08 08:51:43 -07:00
Glenn Watson
d93ca71608 servo: Merge #4842 - Implement window.frameElement, change window.parent to make use of it (from glennw:window-frameelement); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: d0f61f4f85acda3da2f0bbcccc5949f185f94373
2015-02-07 04:51:41 -07:00
Ms2ger
13b8a682c5 servo: Merge #4862 - Cleanup script_task.rs (from Ms2ger:script_task); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 5436922169c79ea4cabcfabb195c7b732df8e74b
2015-02-06 05:18:44 -07:00
Shreya Bastikar
42e76273cf servo: Merge #4854 - Support firing error events from a dedicated worker at the containing wo (from jdm:workererr); r=jdm
...rker object.

Rebased from #4537.

Source-Repo: https://github.com/servo/servo
Source-Revision: c360b75e1640d5329068cfdbaa560b63ed03b35f
2015-02-05 15:27:44 -07:00
Sagar Muchhal
e8dbf69dbc servo: Merge #4853 - Add console message support to devtools. Does not actually cause logging (from jdm:consoleapicall); r=jdm
... to occur in the remote console.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0d560806f8fd621c2744429ae534e93e1f2563cb
2015-02-05 14:45:45 -07:00
Sagar Muchhal
9b1f1b9c10 servo: Merge #4852 - Add flag to send live updates to devtools (from jdm:buffermessages); r=jdm
Rebased and squashed version of #4191.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0a2bde1b6ea97b68dfa0e62440dc92ef80fb1fd2
2015-02-05 12:36:45 -07:00
Ms2ger
7f6a9f9591 servo: Merge #4850 - Remove the Deref implementation for Root (from Ms2ger:root-deref); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: d439c0d16d6ea1449d207858705d124e191ecc13
2015-02-05 10:51:50 -07:00
Glenn Watson
0fb02d59d2 servo: Merge #4811 - Implement window.parent for iframes (from glennw:window_parent); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 0beb070d482323889556276b122624a2b14cd08b
2015-02-04 15:24:50 -07:00
Josh Matthews
21a974a25d servo: Merge #4519 - Cookie support (from jdm:cookies); r=Ms2ger
As specified in http://tools.ietf.org/html/rfc6265. Requires https://github.com/servo/cookie-rs/pull/1. Tested against http://www.joshmatthews.net/cookie.php, http://www.html-kit.com/tools/cookietester/, https://github.com/login, and https://mobile.twitter.com/session/new .

Source-Repo: https://github.com/servo/servo
Source-Revision: 7e3f504d94ffb77ec6148166d2ab73978e1c71c8
2015-02-04 11:57:54 -07:00
Gilles Leblanc
49f20e1f82 servo: Merge #4706 - Initialize trusted-ness of DOM events properly (from gilles-leblanc:issue-3740); r=jdm
Fixes #3740

Source-Repo: https://github.com/servo/servo
Source-Revision: e0d4fd35947d5ba80df26a4157c920b7b226d53d
2015-02-04 03:39:49 -07:00
Alexandru Cojocaru
24ca70cf6f servo: Merge #4820 - add unwrap to send/recv calls (from servo:send-recv); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 8e6dcc7c26d88bb0452226ff8c34539e368e03d9
2015-02-03 11:24:53 -07:00
Diego Marcos
ebfd758aec servo: Merge #4777 - Adds borrow_for_script_deallocation and unsafe_mut_js_info method to avo (from dmarcos:issue4692); r=jdm
...id '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.

Source-Repo: https://github.com/servo/servo
Source-Revision: a7e29939a1df679bd865573dc71f7ba65f0268c4
2015-01-30 16:06:52 -07:00
Ms2ger
3cee792603 servo: Merge #4766 - Import the util crate as util rather than servo_util (from Ms2ger:util); r=Manishearth
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.

Source-Repo: https://github.com/servo/servo
Source-Revision: 27e0f16407629422b5e047e067d458142372c97e
2015-01-29 05:12:49 -07:00
Manish Goregaokar
0baa68ddf8 servo: Merge #4739 - Fix some warnings (from Manishearth:warning-patrol); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: d373f8dc26239310dec8d2fd66ed72385548cf6f
2015-01-28 02:27:50 -07:00
Josh Matthews
78741af324 servo: Merge #4719 - Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev (from servo:rustup_20150109); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 3f9012864a2cd927cf17a8e11dfa6922add1b7df
2015-01-27 18:15:50 -07:00
Josh Matthews
28dff52c4a servo: Merge #4710 - Make UntrustedNodeAddress a newtype (from servo:untrusted); r=Manishearth
This will allow us to make it Send after the Rust upgrade.

Source-Repo: https://github.com/servo/servo
Source-Revision: d9c2bfae8764d9f7813a6b6e9267102625e3d7b8
2015-01-24 04:57:48 -07:00
Ms2ger
b706a00a11 servo: Merge #4705 - Encapsulate to-be-cleaned-up refcounted pointers (from Ms2ger:refcounted); r=larsbergstrom
This will allow us to make them Send in the future.

Source-Repo: https://github.com/servo/servo
Source-Revision: ad328fda65e6b7180de8b47f0964fe2f94c505a9
2015-01-21 12:09:56 -07:00
Ms2ger
190438fa42 servo: Merge #4682 - Move to to_owned rather than into_string (from servo:to_owned); r=jdm
into_string has been removed from Rust.

Source-Repo: https://github.com/servo/servo
Source-Revision: 94ebc7c32d5ce58ada3f9d8ffdb60cc025eb5997
2015-01-20 07:54:46 -07:00
Ms2ger
69f18f8d14 servo: Merge #4609 - Make Runnable::handler take self by value (from Ms2ger:runnable-self-by-value); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 879af966b3c18d9405b6f5837b39a28039db1eb3
2015-01-10 10:30:44 -07:00
Ms2ger
8bac961b2d servo: Merge #4607 - Consolidate structured cloning code (from Ms2ger:clone); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: a07c3eadb33eca1fbb2209d168c63c5ec3db23df
2015-01-10 09:18:45 -07:00
Tetsuharu OHZEKI
4121c89acd servo: Merge #4532 - Make DOMContentLoaded and load asynchronous with using Runnable (from saneyuki:event); r=jdm
Fix #4505

Source-Repo: https://github.com/servo/servo
Source-Revision: 21fd1120c3c18a8ccc3d95f8d53b5f2875c77c97
2015-01-09 13:54:47 -07:00
Ms2ger
7eb4d4db43 servo: Merge #4584 - Deny unsafe blocks in script (from Ms2ger:unsafe); r=jdm
As a first start, this allows them indiscriminately where used.

Source-Repo: https://github.com/servo/servo
Source-Revision: f74d5360ba30ec7aaa12f675eb267fd11053d8a8
2015-01-09 07:15:52 -07:00
Matthew Rasmus
66118e1666 servo: Merge #4575 - Post-rustup warning fixes (from mttr:warnings); r=jdm
Notes:

* This adds `#![allow(missing_copy_implementations)]` to components/*/lib.rs. I'm not sure how to approach the missing Copy warnings (are there things for which Copy should NOT be implemented, and how can I tell?) so I stuck this in to make life easier when looking through the warnings. I can easily remove this if necessary.
* This leaves the following type of warnings, which I couldn't figure out how to approach (I'll investigate it later if no one else wants to).
```
css/matching.rs:72:23: 72:35 warning: use of deprecated item: Use overloaded core::cmp::PartialEq, #[warn(deprecated)] on by default
css/matching.rs:72         this_as_query.equiv(other)
                                         ^~~~~~~~~~~~
css/matching.rs:95:10: 95:49 warning: use of deprecated item: Use overloaded core::cmp::PartialEq, #[warn(deprecated)] on by default
css/matching.rs:95 impl<'a> Equiv<ApplicableDeclarationsCacheEntry> for ApplicableDeclarationsCacheQuery<'a> {
```

Source-Repo: https://github.com/servo/servo
Source-Revision: 0793137631cbe4ebbff8fb85639206ce8e41bbb7
2015-01-08 16:03:55 -07:00
Guillaume Bort
2fc1f6a506 servo: Merge #4069 - Fix #3936 – {Window,WorkerGlobalScope}.set{Timeout,Interval}(DOMString) (from guillaumebort:fix/3936); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: df6a7959df69bf98b397f088fc3cf1fad2cc0aaf
2015-01-08 08:48:54 -07:00
Ms2ger
e5578c14fd servo: Merge #4554 - Update rustc to revision 2cfb5acb5a2751c759627377e602bac4f88f2d19 (from servo:rustup_20141221); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 1d7148c79f9124779a910fd5291c5fa0543b2dae
2015-01-08 08:00:57 -07:00
Ms2ger
cb9f21fded servo: Merge #4548 - Various cleanup (from Ms2ger:cleanup); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: 65ee8166bd64e911502e29a050258b70d9f263aa
2015-01-05 01:27:48 -07:00
Ms2ger
11a0efe9f4 servo: Merge #4542 - Prepare for the rust upgrade (from servo:pre-rustup_20141221); r=saneyuki
In particular, this contains changes to qualify enums where rust will require it, and to stop using some features that will be removed.

Source-Repo: https://github.com/servo/servo
Source-Revision: ba8cf6b0e6145265f9472d4855f078d8b5943fe7
2015-01-04 12:39:47 -07:00
Megha Gupta
aa260a7580 servo: Merge #4495 - Add HTMLElementTypeId enum (fixes #3625) (from MeghaGupta:typeid); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 2e17cae5d080db72d5f89733d19e0304857cfd34
2015-01-04 12:12:48 -07:00
Bharath M R
91757f2f01 servo: Merge #4533 - Issue 4497 Fix: Converts WorkerPostMessage into a Runnable (from catchmrbharath:4497); r=jdm
A lot of tests were failing when I ran `./mach test tests/wpt/web-platform-tests/workers --processes=4` and
`./mach test tests/wpt/web-platform-tests/XMLHttpRequest --processes=4` on master. So I could not completely test it. I verified that the tests that were failing were the same, before and after the change.

Is there any way to run it here?

Source-Repo: https://github.com/servo/servo
Source-Revision: 076e28795d90a9a8bb523774b993f841602ae9e6
2015-01-04 06:21:50 -07:00
Ms2ger
62056757ed servo: Merge #4535 - Stop using some obsolete features (from servo:pre-rustup_20141221); r=jdm
This prepares for the rust upgrade currently being conducted.

Source-Repo: https://github.com/servo/servo
Source-Revision: e8fac3681b690adb0796b2a807ac95bd9c13597a
2015-01-03 14:39:46 -07:00
Martin Robinson
8e14dc298f servo: Merge #4536 - Stall PaintTask exit until it can release all buffers (from mrobinson:pixmap); r=pcwalton
It is possible for a PaintTask to start exiting soon after sending new
buffers to the compositor. In that case, the compositor should return
the now unnecessary buffers to the PaintTask so that it can properly
free them.

To accomplish this, the compositor now keeps a hash map of paint task
channels per pipeline id. When a PaintTask exists, the constellation
informs the compositor that it can forget about it. Additionally, the
PaintTask should not wait for any buffers when the engine is doing a
complete shutdown. In that case, the compositor is already halted and
has simply let all buffers leak. We pipe through the shutdown type when
destroying the pipeline to make this decision.

Fixes #2641.

Source-Repo: https://github.com/servo/servo
Source-Revision: a31acffb0405b2c38b39c39c6d552f2ba79b6326
2015-01-02 20:21:47 -07:00
Ms2ger
3d0a04c20a servo: Merge #4526 - Move away from Root::deref (from servo:deref-1); r=Manishearth
This is a start towards fixing #3868. Not all callers have been fixed yet, so the `Deref` implementation remains for now.

Source-Repo: https://github.com/servo/servo
Source-Revision: 141b5d038fad3c0c44a6f1b309b8ca9edea54580
2015-01-02 09:22:51 -07:00
Ms2ger
3f568d3a37 servo: Merge #4528 - Stop using ptr.is_not_null() in script (from Ms2ger:is_not_null); r=larsbergstrom
This method is deprecated in rust master; removing its users in advance will
make a future rust upgrade smoother.

Source-Repo: https://github.com/servo/servo
Source-Revision: a61417e2a87004e30e2a02f2e6ae58629062e3d5
2015-01-01 14:42:44 -07:00