Commit Graph

1404 Commits

Author SHA1 Message Date
Ms2ger
d90b0bab5f servo: Merge #9678 - Derive the Debug trait for WebIDL-generated enums (from servo:debug-enum); r=KiChjang
Source-Repo: https://github.com/servo/servo
Source-Revision: 07cb6599d0829d2eccdd8a2a0cf46ff657901593
2016-02-18 09:21:57 +05:00
Paul Rouget
a50c6d0d91 servo: Merge #9529 - Implement focus, blur, focusin and focusout events (from paulrouget:focusEvents); r=asajeffrey
Based on https://github.com/servo/servo/pull/7985

Fixes https://github.com/servo/servo/issues/7981

Source-Repo: https://github.com/servo/servo
Source-Revision: d8ffa3d0b85815a5ff62491f9f3bc7445834fc0e
2016-02-18 08:33:42 +05:00
Kamil Muszyński
66afed6092 servo: Merge #9683 - Issue #9561 continued - renamed *_thread_source to *_task_source (from kmuszyn:9561-more-thread-source-renamings); r=jdm
components/script/dom/bindings/global.rs modified -> all *_thread_source occurrences renamed to *_task_source to comply with spec

Source-Repo: https://github.com/servo/servo
Source-Revision: 63dc161b773775c6755a604ec04b81c0bc479bf3
2016-02-18 04:29:32 +05:00
Rebecca
114769dd9e servo: Merge #9662 - Add support for websocket cookies (from rebstar6:websocket_cookies); r=jdm
Addresses both cookies in request and response. Resolves #9540.

Source-Repo: https://github.com/servo/servo
Source-Revision: bc034845b7e543e4e71fa21d6bf99e9f10ddb6c5
2016-02-18 02:14:01 +05:00
Anthony Ramine
6ebe6b0385 servo: Merge #9676 - Support [ExceptionClass] (from nox:domexception); r=KiChjang
Use it on DOMException.

Source-Repo: https://github.com/servo/servo
Source-Revision: 61f09cce4e7c1681fd1f7fbefada596316f06809
2016-02-17 18:21:47 +05:00
Daniel Robertson
1522ccd40e servo: Merge #9664 - Implement RootedReference<T> for Option<JS<T>> (from danlrobertson:i9654); r=KiChjang
A basic implementation of `RootedReference for Option<JS<T>>` based off of
other implementations of `RootedReference` for `Option` wrapped types.

Really I just wanted an excuse to read more in `bindings` 😄 Let me know
if you have any comments or critiques.

Fixes  #9654

Source-Repo: https://github.com/servo/servo
Source-Revision: ab381cf951f3e556d0f4c1f2107a311b0d275f91
2016-02-17 17:24:15 +05:00
Peter
ba40dfb3c2 servo: Merge #9632 - Addresses Issue #1716. Indicated part of the document (from peterjoel:issue_1716); r=KiChjang
Fixes #1716.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8d63eff463417cdc739dd291d0ae4ab225b8dce5
2016-02-17 14:53:21 +05:00
zakorgyula
bc09c20121 servo: Merge #9657 - Move parse_integer and parse_unsigned_integer from util::str to style::attr (from zakorgy:refactor); r=KiChjang
Fixes #9637

Source-Repo: https://github.com/servo/servo
Source-Revision: c075092fe067292b58a781169da937d1f047b62e
2016-02-17 14:05:26 +05:00
Daniel Robertson
7af3549f07 servo: Merge #9625 - Implement step 9 of XHR Open method (from danlrobertson:i9547); r=KiChjang
Implement step 9 of the [XMLHttpRequest Open](https://xhr.spec.whatwg.org/#dom-xmlhttprequest-open) method. Thanks to @KiChjang for all the help!

As always, comments and critiques are welcomed!

Fix: #9547
Source-Repo: https://github.com/servo/servo
Source-Revision: c388c83dcdab0f4c7c8026a9ba1a123e0b59fad9
2016-02-17 02:21:44 +05:00
Jayflux
af38fc2eb5 servo: Merge #9647 - refactor, moving functions into attr and htmlfontelemend fixes #9639 … (from Jayflux:hotfix/9638); r=nox
…#9638

Source-Repo: https://github.com/servo/servo
Source-Revision: 5f8cfcd512bddba306def79aaec6cae6cdbff76b
2016-02-16 04:03:01 +05:00
Prabhjyot Singh Sodhi
857b545b86 servo: Merge #9648 - fix Node-isEqualNode.html test failure (from psdh:fixnodeiseual); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: 3ef0bb4b374e45fe8e9fb1192307c1b0224a0006
2016-02-16 02:05:47 +05:00
Keith Yeung
3c1b7d8eb7 servo: Merge #9621 - Cache XHR JSON responses (from KiChjang:xhr-response-json); r=Ms2ger
Fixes #3919.

Source-Repo: https://github.com/servo/servo
Source-Revision: 5ee5ce07baa10906a357bfb24e4f0c164bd36e26
2016-02-15 21:22:49 +05:00
Anthony Ramine
41c81d644d servo: Merge #9645 - Fix the hasInstance hook of interface objects (from nox:fix-has-instance); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 87c6889f44f67e9c8a186e1b4d95066a4e67ecd3
2016-02-15 18:43:02 +05:00
Daniel Robertson
e17f1929c0 servo: Merge #9629 - Implement Blob response for XMLHttpRequest: #9623 (from danlrobertson:i9623); r=KiChjang
My first attempt at implementing the Blob response for XMLHttpRequest. The expected result for the response `tests/wpt/web-platform-test/HMLHttpRequest/response-blob-data.htm` is also changed to `PASS`. Please let me know if you see any areas in which I can improve this PR!

Fixes #9623

Source-Repo: https://github.com/servo/servo
Source-Revision: e8ae7e47731eb20ea36dbc55deda84b664c3aab4
2016-02-15 08:23:27 +05:00
Peter
b72010af2d servo: Merge #9642 - #9640 Refactor: Move util::str::is_token to script::dom::bindings::str (from peterjoel:issue_9640_move_util_str_is_token); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 4f07aa7a3a69b312def2ca1085d92378ec523bf9
2016-02-15 03:57:55 +05:00
Kamil Muszyński
c067ddc84f servo: Merge #9576 - Issue #9561 Renamed *_thread_source to *_task_source window.rs (from kmuszyn:9561-rename-thread-to-task); r=jdm
Related to: https://github.com/servo/servo/issues/9561

Renamed *thread_source to *_task_source in components/script/dom/window.rs and files that use window methods.

Source-Repo: https://github.com/servo/servo
Source-Revision: c929dbe2530f979ce6e84d5a25ea47318ff0910e
2016-02-14 19:32:58 +05:00
Emilio Cobos Álvarez
32bca467e0 servo: Merge #9567 - style: Make the whole style crate independent of the implementation (from emilio:general-pseudo-element-parsing); r=bholley,SimonSapin
This allows, among other things, having different implementations for parsing pseudo{elements, classes} in both `ports/geckolib` and in servo.

Source-Repo: https://github.com/servo/servo
Source-Revision: c11844cbf28054784c8d65781cff20045d8ee48b
2016-02-14 03:29:59 +05:00
Anthony Ramine
361e9b1a9e servo: Merge #9622 - Bump heapsize to 0.3 (from nox:heapsize); r=ecoal95
Source-Repo: https://github.com/servo/servo
Source-Revision: a164176876bb6abccf729eb5d6334e3c22230103
2016-02-13 18:20:41 +05:00
Anthony Ramine
79d11b6e44 servo: Merge #9606 - Bump js to get fix from servo/rust-mozjs#237 (from servo:bump-js); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: a746522b58d31e14fe509d2f11fcb01b2089fdb0
2016-02-12 21:15:51 +05:00
Paul Rouget
c85a6afb33 servo: Merge #9614 - input event should bubble (from paulrouget:inputEventBubbles); r=mbrubeck
No test because: https://github.com/servo/servo/issues/9574#issuecomment-181558144

Fix #9574

Source-Repo: https://github.com/servo/servo
Source-Revision: a24e86e76fb2bebc1ded68d17cda10aa10417364
2016-02-12 11:30:31 +05:00
Josh Matthews
95672c93bf servo: Merge #8987 - Report CSS errors to script task for further processing (from jdm:devtoolsreport); r=glennw
This was a missing piece from #8838.

Source-Repo: https://github.com/servo/servo
Source-Revision: b870aa90878acf97074fa55260beb8acfd125f22
2016-02-12 01:15:58 +05:00
Josh Matthews
591304b185 servo: Merge #8491 - Compile raw inline event handlers lazily. Resolves #8489 (from jdm:lazycompile); r=Ms2ger
Per https://html.spec.whatwg.org/multipage/webappapis.html#getting-the-current-value-of-the-event-handler and https://html.spec.whatwg.org/multipage/webappapis.html#event-handler-attributes:event-handlers-2 .

Source-Repo: https://github.com/servo/servo
Source-Revision: 5942e9e3cb2fb588eb82198fd5548a42303a559f
2016-02-11 19:45:11 +05:00
Brandon Fairchild
31a3354b10 servo: Merge #9602 - Use JS_GetOwnPropertyDescriptorById in BrowserContext (fixes #6984) (from servo:bc-prop); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 3703e6d4f644ca97d1f5e012ce8edd8cfaa2c407
2016-02-11 17:52:59 +05:00
Josh Matthews
ab2b9e2470 servo: Merge #6677 - Make iframes block the enclosing document's load event (from jdm:iframeblockonload); r=Ms2ger
It occurs to me as I write this that this doesn't handle the case of removing the iframe from the document before it's finished loading. Consider this an early feedback release!

Source-Repo: https://github.com/servo/servo
Source-Revision: a31f31e81977be5215f31851885e8ab46890c556
2016-02-10 19:20:29 +05:00
Ms2ger
cabf837890 servo: Merge #9584 - Give WindowProxy objects an innerObject hook (from Ms2ger:WindowProxy); r=jdm
This ensures that UncheckedUnwrap(obj, /* stopAtOuter = */ true) will indeed
stop at the WindowProxy ("outer window", in older SpiderMonkey jargon), which
is necessary to prevent raw Window ("inner window") objects becoming visible
to JavaScript code, or tripping assertions that we don't do that.

Source-Repo: https://github.com/servo/servo
Source-Revision: 2d1293d54d58e6aa72312edd53aac4e9af5892b6
2016-02-09 21:12:23 +05:00
Ms2ger
930c3dca25 servo: Merge #9581 - Stop importing XMLHttpRequestResponseType variants (from Ms2ger:xhr-enum); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: b9ec889c44f29bffe4a914afe630835853babeaa
2016-02-09 14:18:58 +05:00
Paul Rouget
5633e74066 servo: Merge #9244 - mozbrowsersecuritychange event (from paulrouget:securitychange); r=jdm
Fixes #8544

No test yet. Is there a way to mock a https connection?

Also, I wish I could use the `HTTPSState` enum instead of a `String` when calling `trigger_mozbrowser_event` (https://github.com/servo/servo/compare/master...paulrouget:securitychange?expand=1#diff-30a18e04d7e0b66aafdf192e416cad44R306) but that would require `constellation_msg.rs` to know about `HTTPSState`, which is defined in `document.rs`, which would add a dependency to `components/msg`. I could define `HTTPSState` somewhere else maybe? Or maybe it's fine to use a `String`. But then, should I use the HTTPSState strings (`"modern/deprecated/none"`) or the mozbrowser strings (`"secure/insecure/broken"`) (as it is now)

Source-Repo: https://github.com/servo/servo
Source-Revision: 3d63f09361afa80b9d5c4f6b192c9bd8936094b7
2016-02-09 12:30:29 +05:00
Michael Wu
cd8f20b763 servo: Merge #9577 - Update html5ever to 0.5.0 (from michaelwu:h5e-update); r=Manishearth
r? @Manishearth

Source-Repo: https://github.com/servo/servo
Source-Revision: 93cad4afd33ee59df1a0328ac41b8cebd657ec7b
2016-02-09 10:38:27 +05:00
Ms2ger
9cb9f27dde servo: Merge #9571 - Remove the global argument to EventTarget::{fire_event, fire_simple_event} (from Ms2ger:fire); r=asajeffrey
Source-Repo: https://github.com/servo/servo
Source-Revision: 0124d90a6d1fb17a986b06825f8b3d2af0055144
2016-02-09 04:38:00 +05:00
Alexander Lopatin
cc7eaf2638 servo: Merge #9543 - Fix #9508: Beautify our union enums constructors (from alopatindev:enums_constructors_codingstyle_fix); r=KiChjang
Solves #9508
@jdm Please review. Thanks!

Source-Repo: https://github.com/servo/servo
Source-Revision: 28ecb0bba3fa395ed56bb2448a21e02c3ff88c8b
2016-02-07 05:29:57 +05:00
Tim van der Meij
03dc8b6298 servo: Merge #9562 - Make step 3 of XHR's SetResponseType method match the specification (from timvandermeij:setresponsetype-spec); r=KiChjang
Fixes #9552.

Source-Repo: https://github.com/servo/servo
Source-Revision: 2f52a168caa28fcbdcd84e31f093a866ac12955e
2016-02-07 02:45:31 +05:00
Ms2ger
79573d168e servo: Merge #9536 - Remove a dead_code annotation from a live method (from Ms2ger:dead); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: b3bbea8be81f949e2af6e31cf67bcaaaeb8bd84b
2016-02-05 09:32:25 +05:00
Manish Goregaokar
1c9d55eea7 servo: Merge #9521 - Make websockets work in a worker scope (from Manishearth:ws-worker); r=Ms2ger
r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: b35801bf291466a4db4eb805fc86aba20a29545e
2016-02-05 07:51:37 +05:00
Ruud van Asseldonk
98efdc7e80 servo: Merge #9523 - Upgrade to new Hasher API (from ruuda:hasher); r=Wafflespeanut
This fixes #9494.

Source-Repo: https://github.com/servo/servo
Source-Revision: 87aaa5ffe0ca7da8771883ea40d04d7c1449eea9
2016-02-05 07:02:13 +05:00
Anthony Ramine
011de9f1aa servo: Merge #9532 - Say farewell to in-tree HeapSizeOf (from nox:dedup-heapsize); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: 2a6707ce58df27d93e865bffb6b44d396b810c99
2016-02-05 03:10:36 +05:00
Emilio Cobos Álvarez
3a8bc8c62b servo: Merge #9510 - Update rust-selectors (from nox:bump-selectors); r=SimonSapin
This commits updates rust-selectors to use the generic parser, and as
such it moves the element state into the style crate.

Source-Repo: https://github.com/servo/servo
Source-Revision: ae20f2556bc7807b39b6649ac1f738644abcc26a
2016-02-03 06:34:11 +05:00
Anthony Ramine
0ea769279a servo: Merge #9470 - Bump Rust to 2016-01-31 nightly (from servo:rustup); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 9baa59a6b4de338be6cd65851694785d786cf492
2016-02-02 00:29:46 +05:00
jmr0
ee8e57b56c servo: Merge #9208 - Use image metadata to lay out images (from jmr0:master-img); r=asajeffrey
Fixes #7047.

cc: @jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 46b3eb653579a40632f91497a3d48f1d7fbd40cc
2016-01-31 00:48:41 +05:00
Shing Lyu
dc913875b4 servo: Merge #9459 - Add mach test-webidl command (from shinglyu:testwebidl); r=Wafflespeanut
I updated the `WebIDL.py` from latest mozilla-central. And add a `./mach test-webidl` command. For #9397

Source-Repo: https://github.com/servo/servo
Source-Revision: 0ada7f9c8eda9879b5536cea3266c94214f9ce9b
2016-01-30 20:51:53 +05:00
Jeff Harrison
5e3d4e8466 servo: Merge #9456 - Add onresize handler to GlobalEventHandlers (from g-k:global-resize-event); r=KiChjang
Rebased: https://github.com/servo/servo/pull/8006

Fixes #7996

Source-Repo: https://github.com/servo/servo
Source-Revision: ae67f94b804f24fad2b246d88481c68f538c4c2a
2016-01-30 07:30:40 +05:00
Simon Sapin
12550c8084 servo: Merge #9170 - Add CSS Multicolumn support with block fragmentation (from SimonSapin:multicol2); r=mbrubeck
![a](https://cloud.githubusercontent.com/assets/291359/12147538/bfb198ac-b499-11e5-9936-c54c93d0b1ed.png)

Includes/supersedes #8763.

r? @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: 5e1f0495a922c5dddbc120f17ba5c933973537ed
2016-01-30 00:19:14 +05:00
Joshua Holmer
9c4baa14ef servo: Merge #9420 - Implement console#time and console#timeEnd methods (from shssoichiro:console-time); r=KiChjang
Fixes #9325

Source-Repo: https://github.com/servo/servo
Source-Revision: dc223eb4c377b34480d9a896dbc01891f1428f5e
2016-01-29 23:17:52 +05:00
Keith Yeung
3d621311db servo: Merge #9407 - Implement RadioNodeList (from KiChjang:radio-node-list); r=nox
I also had to implement the NamedGetter for HTMLFormControlsCollection as well, since that's the only consumer of RadioNodeList and I wanted to see which wpt test passes.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0c5591a8ec3daf5fb6e415d7225c523466fdf1f0
2016-01-29 13:34:16 +05:00
Florian Strübe
569694d64d servo: Merge #9436 - Use .find().map() instead of .filter_map().next() (from fstr:issue-9403); r=KiChjang
Patch for issue #9403

Source-Repo: https://github.com/servo/servo
Source-Revision: 562fe03e8051bcefbba4b9050d7f5c7a5908565c
2016-01-28 21:28:29 +05:00
Mathieu Hordesseaux
8f51eece76 servo: Merge #9061 - Implement SetNamedItem and SetNamedItemNS (from mathieuh:setNameItem); r=eefriedman
@nox Can you add the "it needs tests" tag or so?

Source-Repo: https://github.com/servo/servo
Source-Revision: 55d4773311b7d15b5e1a7fc4b17047a51e097933
2016-01-28 16:36:41 +05:00
Glenn Watson
6eca7b12c4 servo: Merge #9401 - Fixes additional calls to rAF (from glennw:raf-timing); r=jdm
Often, a rAF callback will request another rAF from the callback itself.

Previously, the constellation would quickly receive two messages saying
that there were no animations, and then there are animations again in the
situation above. This would make the compositor tick the new animation straight
away, causing strange fluctuations and timings in rAF callbacks.

Instead, only send the NoAnimationCallbacks message if the animation
callback queue is still empty after invoking the callbacks.

This fixes rAF timing, which now runs at the correct (vsync) framerate.

Source-Repo: https://github.com/servo/servo
Source-Revision: bc44ae679f0d4a01194777c56e09a48fbebea1ad
2016-01-28 10:48:24 +05:00
Josh Matthews
6f2694e823 servo: Merge #9421 - compositing: Fix a couple of bugs that prevented iframes from painting after navigation (from jdm:iframe-painting-after-navigation-redux); r=jdm
The first bug was that iframes were not reflowed in their parent DOM when the child page navigated. This is fixed by simply having the constellation notify the appropriate script thread when navigation occurs.

The second bug was that the compositor was unable to adjust the pipeline for existing iframe layers, only new ones. This patch adds logic to do that.

The third bug was that we have ad-hoc reflow calls throughout script/, and we didn't trigger any reflow from the code that dispatches the `load` event for the iframe so the test for the first two issues would always time out. The second commit adds another reflow call to do that, and also bites the bullet and adds a catch-all reflow (which does nothing if there's no dirty nodes in the document) at the return to the event loop.

Closes #8081.

Extension of #9285.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0fa9d32c6915c9cad18e5430c10973399599458a
2016-01-28 04:25:04 +05:00
Paul Rouget
76968779c2 servo: Merge #9378 - Invalidate node style after style property removed (from paulrouget:removeProperty); r=KiChjang
Fix #9377

Source-Repo: https://github.com/servo/servo
Source-Revision: 8c0736211bf3e597b4d56a6efe6479a8c2d97c14
2016-01-27 16:13:30 +05:00
Prabhjyot Singh Sodhi
3d3d397a30 servo: Merge #9419 - generate typedefs in CodegenRust (from psdh:includeTypedef); r=nox
fixes #9384

Source-Repo: https://github.com/servo/servo
Source-Revision: a75f2cecda9b259dcfe576de53f690d9c96a36d8
2016-01-26 21:40:57 +05:00
Michael Rosenberg
005e01a997 servo: Merge #9430 - Fix issue #9411 - Do not generate empty WebIDL 'Constant' modules (from doomrobo:WebIDL-no-empty-const-modules); r=nox
Fixes issue #9411

Source-Repo: https://github.com/servo/servo
Source-Revision: a19b14313a333c5e895e481768237275f564044f
2016-01-26 15:10:16 +05:00