Граф коммитов

2663 Коммитов

Автор SHA1 Сообщение Дата
Ms2ger 1334ce2033 servo: Merge #9393 - Update HTMLScriptElement::prepare to match the changed specification (from Ms2ger:renumber-prepare); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 52da517a14d8f45a17203b3a137cf9fc8bcd64fb
2016-01-21 23:02:18 +05:01
Simon Sapin ec5662344b servo: Merge #9380 - Update cssparser (from servo:cssparserup); r=SimonSapin
https://github.com/servo/rust-cssparser/pull/91

Source-Repo: https://github.com/servo/servo
Source-Revision: 1ba1fb0b7f46472e1f37f4e3f2e7dde025fa9f1f
2016-01-21 22:16:51 +05:01
Prabhjyot Singh Sodhi 94757ff74c servo: Merge #9396 - update tests for WebIDL.py from mozilla-central (from psdh:fixwebidltests); r=Ms2ger
Fixes #9388

Source-Repo: https://github.com/servo/servo
Source-Revision: 262974cb1190ebc776b2155dfdcc62d4743f65b3
2016-01-21 21:31:22 +05:01
Nikki cfc23bc6fb servo: Merge #9391 - Test redirect_count boundaries in Fetch (from nikkisquared:test_redirect); r=jdm
I've written two new tests for Fetch: one to test the highest possible number of redirects succeeds; and another to ensure a failure in Fetch by requesting too many redirects. I also wrote a helper function to be used by each test, since the main difference is how many times they try to redirect.

I've also changed the check against redirect_count in http_network fetch to compare it as greater than or equal to 20, as opposed to being only equal to 20. That's outside of the spec, but in my experience testing for pure equality can easily create errors. Even though it's technically not possible for redirect_count be above 20, bizarre bugs during runtime certainly happen.

Source-Repo: https://github.com/servo/servo
Source-Revision: c80fa3386459efd27b64c8b6cab33794e66d082b
2016-01-21 02:07:38 +05:01
Lanza 0836f58dcb servo: Merge #9381 - Implement HTMLDetailsElement. Fixes #9216 (from MonsieurLanza:htmldetails); r=KiChjang
Implement the interface HTMLDetailsElement ( // https://html.spec.whatwg.org/multipage/#htmldetailselement )

All tests pass in
tests/wpt/web-platform-tests/html/semantics/interactive-elements/the-details-element/details.html
&
tests/wpt/web-platform-tests/html/semantics/interactive-elements/the-details-element/toggleEvent.html

Anyway, no change is made on layout and attribute open currently has no effect, it just fires a toggle event.

Source-Repo: https://github.com/servo/servo
Source-Revision: 5b2d2c0ed88e8b635f91c3421b472c804dd1afe4
2016-01-20 20:29:36 +05:01
James Sanders 4deadf3c1a servo: Merge #9358 - Clean up websocket closing code (from jsanders:refactor-websocket-closing); r=jdm
Fixes #7860.

This also changes quite a bit about how close codes are implemented, I believe bringing them closer in line with the spec. Instead of saving off the close code sent by the client, it uses the code from the server's closing handshake. It also handles `NO_STATUS` in what I believe is the correct manner. Making this work required a change to the test harness to make the `/echo` websocket handler echo the code sent by the client and handle `NO_STATUS` properly, rather than always replying with `NORMAL`.

Source-Repo: https://github.com/servo/servo
Source-Revision: 6663f28f0de308c9365b360cd8ad9ee9e43127ee
2016-01-19 20:39:09 +05:01
Bobby Holley 2379681f6b servo: Merge #9284 - Add Partial Implementation of style DOM traits for Gecko, and some basic glue to let Gecko call into Servo (from bholley:bootstrap_stylo); r=SimonSapin
The wrapper stuff is partially-complete, modulo some unimplemented methods. The glue code is just a toy for now. Regardless, I think it's worth getting some of this stuff in-tree to minimize breakage.

Source-Repo: https://github.com/servo/servo
Source-Revision: 77d3fbcca3c6f7e8b4068f89e25b090977fe5672
2016-01-19 13:50:10 +05:01
Nikki 00e1d361d6 servo: Merge #9321 - Test setting response.body and fetching a message on a server (from nikkisquared:response_body); r=jdm
I've updated http_fetch to now set response.body, as well as written a test to ensure that fetch can retrieve a message on a server. I've also looked into partially implementing some more of http_fetch while trying to figure out where response.body gets written to.

As always I'd like feedback on my logic, I'm confident there are more steps for handling response.body I need but I find the specification difficult to parse on this.

Source-Repo: https://github.com/servo/servo
Source-Revision: 175b3c2d271cdfdfcac4c3daf5cde3060748b0b8
2016-01-19 03:55:09 +05:01
James Sanders b2933ef6b8 servo: Merge #9360 - Accept WebSocket protocols as string or sequence (from jsanders:accept-protocols-sequence); r=KiChjang
Fixes #9053

Source-Repo: https://github.com/servo/servo
Source-Revision: 03a0b73538e58c0fb7e0828ff3371fdd99d0aa0b
2016-01-19 01:49:28 +05:01
Emilio Cobos Álvarez c31546392b servo: Merge #9375 - Bump rust-mozjs (from emilio:mozjs-up); r=jdm
In order to include https://github.com/servo/rust-mozjs/pull/235.

Source-Repo: https://github.com/servo/servo
Source-Revision: bdb899e550e0f7663b85ac687da76560a7e86f32
2016-01-19 00:52:01 +05:01
askalski db185a6817 servo: Merge #9341 - Fix to issue 9338 (from askalski:issue9338); r=KiChjang
Fixes #9338.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8f7f7e11b72a59271c3dccf54d9f4959a6992929
2016-01-18 20:01:41 +05:01
Keith Yeung dde4fcf0e7 servo: Merge #9362 - Rename net/fetch/request.rs to net/fetch/methods.rs and move Request … (from KiChjang:move-fetch-request); r=Ms2ger
…to net_traits.

Also updated unit tests to correctly reference and use Request and Fetch methods.

This is in preparation for XHR and EventSource (possibly WebSocket as well), which rely on using Request, but we cannot make the script crate depend upon the net crate.

cc @nikkisquared @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: ce0b89d310212aaaa66b759c7c2548fb2f9a2738

--HG--
rename : servo/components/net/fetch/request.rs => servo/components/net/fetch/methods.rs
2016-01-18 15:36:56 +05:01
Ms2ger 289b422cde servo: Merge #9366 - Remove remaining reference to the long-disappeared JSRef type (from Ms2ger:jsref); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: c8eb92bbf22dbcf8dd960a3a90c35789e836ad2f
2016-01-18 14:08:48 +05:01
Corey Farwell 17bc9967b6 servo: Merge #9364 - Bump indirect 'libc' dependency through 'malloc_buf' (from servo:rm-libc); r=KiChjang
https://github.com/servo/servo/issues/8608

Source-Repo: https://github.com/servo/servo
Source-Revision: 754120684b460772da1f12498839ac4b1585d080
2016-01-18 11:25:19 +05:01
Matthew Kuo e672faf985 servo: Merge #9363 - Remove remaining unused imports (from mattkuo:clean-imports); r=KiChjang
Closes #9361

Source-Repo: https://github.com/servo/servo
Source-Revision: 6a38d55ceafca08d6ce83c8cbfa5f55835f9e141
2016-01-18 10:35:06 +05:01
Corey Farwell 07cef580f0 servo: Merge #9339 - Upgrade servo-glutin to latest published version (0.4.7) (from frewsxcv:bump-glutin); r=SimonSapin
servo/glutin@servo-v0.4.5...servo-v0.4.7

The primary reason I'm updating servo-glutin is to indirectly pick up
these changes:

vberger/wayland-kbd#9

Daggerbot/x11-rs#32

...which results in two fewer libc 0.1.x dependency

servo#8608

Source-Repo: https://github.com/servo/servo
Source-Revision: 6b81a72228b54f37028e9400808768bd0d52d69f
2016-01-18 08:34:12 +05:01
Florian Strübe 56214970d5 servo: Merge #9351 - Removed unused imports from devtools crate (from fstr:9343-unused-imports); r=nox
Patch for #9343

Source-Repo: https://github.com/servo/servo
Source-Revision: eb7b9309dd4dabb5ffc5e792af8cd0cfc6ad0435
2016-01-18 07:19:03 +05:01
St.Spyder 4d1734e744 servo: Merge #9354 - Update XMLHTTPRequest FetchBodyInit and related Impl (#9291) (from stspyder:master); r=KiChjang
Fixes #9291.

Source-Repo: https://github.com/servo/servo
Source-Revision: 55d8228ed6910c72b663dfb4f2b7d140e28a8364
2016-01-18 03:50:59 +05:01
Matthew Kuo 0e37316f1a servo: Merge #9352 - Convert private types to public (from mattkuo:cleanup-private-types); r=nox
fixes #9347

Source-Repo: https://github.com/servo/servo
Source-Revision: 380541bd48bb7ce0b36a8be90f756734e531ca5f
2016-01-18 01:29:01 +05:01
Kishor Bhat 79a9a23449 servo: Merge #9348 - Remove unused imports in script (from therealkbhat:script-cleanup); r=Wafflespeanut
Fixes #9345.

Source-Repo: https://github.com/servo/servo
Source-Revision: 7f16b4e47bf8aef035ea788d80172dfd1a11ecff
2016-01-18 00:07:34 +05:01
Kishor Bhat 21afea8340 servo: Merge #9349 - Remove unused imports in layout (from therealkbhat:layout-cleanup); r=SimonSapin
Fixes #9346.

Source-Repo: https://github.com/servo/servo
Source-Revision: 2ad562042ba1d80e619286e0d03e8d1fb408779a
2016-01-17 22:45:37 +05:01
Brandon Fairchild 9ba81c08a5 servo: Merge #9344 - Remove multiple unused imports in gfx (from nerith:gfx); r=Wafflespeanut
Fixes #9342.

Source-Repo: https://github.com/servo/servo
Source-Revision: 41a3961ba57b720f1df9637090b78d40df7bc778
2016-01-17 19:57:45 +05:01
Keith Yeung a3e0520252 servo: Merge #9294 - Change all DOMStrings to USV strings for XHR (from KiChjang:xhr-usvstring); r=nox
This is in compliance with the new spec [here](https://xhr.spec.whatwg.org/#xmlhttprequest).

Source-Repo: https://github.com/servo/servo
Source-Revision: 7ae16c7ea3934dcc7dbc90957aca415a22674fa8
2016-01-17 19:11:46 +05:01
Brandon Fairchild 133c9544d2 servo: Merge #9194 - Remove the w3c link for the Event interface (from nerith:info); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 557d79bb877a75c0cb1fd35f2aab7e0e0fa70f0d
2016-01-17 18:29:42 +05:01
Fernando Martins 53916ad2b3 servo: Merge #9337 - Implement URLSearchParams::getAll (from fmmartins:urlsearchparams-getall); r=nox
Fixes #5439.

Please tell me if anything is wrong or needs some change!

Source-Repo: https://github.com/servo/servo
Source-Revision: a4e805d9092ae197a129fb9802bd45bf6602623e
2016-01-17 17:44:17 +05:01
Emilio Cobos Álvarez 52314ac85d servo: Merge #9304 - webidl: Implement sequences in unions (from emilio:sequence-in-unions); r=nox
Unblocks #9053

Source-Repo: https://github.com/servo/servo
Source-Revision: 2f0daa1d47a2c720be241720b2083be4968404b6
2016-01-17 16:50:49 +05:01
Lanza 9af07af8ba servo: Merge #9334 - DOMContentLoaded event should be trusted (from MonsieurLanza:DomContentLoadedBubbles); r=KiChjang
Hopefully resolves #9332.

Source-Repo: https://github.com/servo/servo
Source-Revision: 5a954d2492195aab2f3bd5a8d2775ef5c586689d
2016-01-16 21:45:38 +05:01
Darin Minamoto 7af6d9dbee servo: Merge #9263 - Moved MouseButton from msg to script_traits (from DarinM223:move_mousebutton); r=KiChjang
Fixes #9250

Source-Repo: https://github.com/servo/servo
Source-Revision: 9118b64b4b610a95f48a88a198baac4eb31a04a0
2016-01-16 19:05:51 +05:01
Simon Sapin 9a7c1d808c servo: Merge #9333 - Add a script to list all CSS properties parsed by Servo (from servo:list-properties); r=larsbergstrom
I’ve been asked for that list by two different people this week :)

r? @larsbergstrom

Source-Repo: https://github.com/servo/servo
Source-Revision: dba1f27305c5e81eda6acd4c438a2adfb6ed053d
2016-01-16 00:37:03 +05:01
Lars Bergstrom 928d1d2132 servo: Merge #9093 - Update to rustc 1.7.0-nightly (b4707ebca 2015-12-27) (from servo:rustup); r=KiChjang
Source-Repo: https://github.com/servo/servo
Source-Revision: 4cb2c87982355bdf2a2dd409db71d0d4ed6f9a85
2016-01-15 19:08:07 +05:01
Corey Farwell a33c94d362 servo: Merge #9328 - Fix broken spec link on Window::Document (from frewsxcv:window-broken-link); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: c7e86411746d229b1f5d43ca55875f7ddda9145a
2016-01-15 08:40:40 +05:01
Joshua Holmer 2be05a5a44 servo: Merge #9318 - Rename SCRIPT_TASK_ROOT to SCRIPT_THREAD_ROOT (from shssoichiro:rename-script-task-root); r=KiChjang
Resolves #9316

Source-Repo: https://github.com/servo/servo
Source-Revision: 0bc25369d166217b92743cb877b93a70c3aa5a04
2016-01-15 07:56:15 +05:01
Lanza f516d45bea servo: Merge #9317 - DOMContentLoaded should bubble (from MonsieurLanza:DomContentLoadedBubbles); r=KiChjang
DOMContentLoaded event is currently set as non bubbling event.
Test :
./tests/wpt/web-platform-tests/html/syntax/parsing/the-end.html

Source-Repo: https://github.com/servo/servo
Source-Revision: 0c500a9da53145bf065804794137e2b4fc295dee
2016-01-15 06:24:12 +05:01
apopiak bfbb31dc42 servo: Merge #9296 - implement NonCallbackInterfaceObjectClass::as_jsclass() (from apopiak:implement_as_class_9287); r=ecoal95
close #9287

Source-Repo: https://github.com/servo/servo
Source-Revision: a28b5cb43859b6300c0b157c6b3d25d78606dda8
2016-01-14 17:55:03 +05:01
Olaf Buddenhagen 289efa1b7b servo: Merge #9300 - layout/text.rs: Add assertion for empty fontgroup (from antrik:assert_empty_fontgroup); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: a76de4b0cc2ec1e37539e9d328c9825c9812be78
2016-01-14 13:42:56 +05:01
Keith Yeung b9b11b9e68 servo: Merge #9297 - Add instructions to update create.rs when adding new DOM interfaces (from KiChjang:document-new-elements); r=ecoal95
Source-Repo: https://github.com/servo/servo
Source-Revision: 396d411ac834722430e63007d419eef0e29186a9
2016-01-14 10:41:10 +05:01
Olaf Buddenhagen ba0130fe7e servo: Merge #9299 - cargo-update ipc-channel to get important fixes (from antrik:update-ipc_channel); r=pcwalton
This pulls in https://github.com/servo/ipc-channel/pull/25 and
https://github.com/servo/ipc-channel/pull/27, thus fixing fallout from
the multiprocess split, and making Servo work on my system again.

(It also pulls in https://github.com/servo/ipc-channel/pull/12 -- I
guess that's fine?)

Source-Repo: https://github.com/servo/servo
Source-Revision: 42372dbdf112c1c2967c4487401b28e7305c2993
2016-01-14 09:58:52 +05:01
Nikki 129c7554c0 servo: Merge #9298 - Implement a basic test for Fetch (from nikkisquared:test_fetch); r=KiChjang
As per @jdm's suggestion that I start minimally testing the Fetch protocol to catch any errors, I wrote a very simple test that just calls Fetch and checks that the response isn't a network error. I've made changes as necessary for every failure I encountered, although this doesn't mean the implementation is faultless yet.

As always, I look forward to any feedback for improvements regarding the test itself, the changes to the fetch files I've made, and anything that I missed and should update.

Source-Repo: https://github.com/servo/servo
Source-Revision: 9c713cb4688f1a1729ada64846fac2d8426b1ef4
2016-01-14 07:51:05 +05:01
Joshua Holmer 511a4a2f92 servo: Merge #9295 - Move AnimationState to script_traits (from shssoichiro:move-animationstate); r=KiChjang
Resolves #9223

Source-Repo: https://github.com/servo/servo
Source-Revision: b26c7bd7ea92bdbf7cdcaa0e3d826a880b9cd0ca
2016-01-14 06:01:05 +05:01
Maciej Skrzypkowski a29e3050be servo: Merge #9289 - Move FrameTreeId type to gfx_traits #9221 (from mskrzypkows:move_FrameTreeId); r=KiChjang
Fixes #9221.

Source-Repo: https://github.com/servo/servo
Source-Revision: 3c6e16c9add63b421deae422cf98a65fabadb410
2016-01-14 01:37:47 +05:01
apopiak cb076cb7bf servo: Merge #9271 - Move `MozBrowserEvent` to `script_traits` (from apopiak:moveMozBrowserEvent_9225); r=KiChjang
close #9225

Source-Repo: https://github.com/servo/servo
Source-Revision: 897007f13447f6b34e220042e5cfd31f7686cfec
2016-01-13 23:41:48 +05:01
Emilio Cobos Álvarez 643caf9158 servo: Merge #9107 - webgl: Track the current program, implement some uniform functions, and nits (from emilio:webgl-uniforms-and-nits); r=simartin
Was done while implementing sequence arguments.

Depends on #9056.

Source-Repo: https://github.com/servo/servo
Source-Revision: c13e84010d1dd33c5532cdfa2937dddd4db4dd26
2016-01-13 21:45:59 +05:01
Ms2ger 5418f19918 servo: Merge #9275 - Remove some unused extern crates (from Ms2ger:extern-crate); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: 0b5dda3e9c38f6cd4ec9b82f023bf3698addc65f
2016-01-13 20:47:35 +05:01
Matt McCoy 927dd11ffe servo: Merge #9282 - Making create attribute lowercase (from mattnenterprise:create-attribute-lowercase); r=nox
This should fix #9252. I need some help getting the test case to work correctly. I get output that "TITLE" should FAIL, but it PASS. How do I make it to where it should PASS?

Source-Repo: https://github.com/servo/servo
Source-Revision: ee5aead60bba3c6a482960021677aac3d559289b
2016-01-13 15:17:13 +05:01
Brandon Fairchild e8e2b2b80a servo: Merge #9279 - Move DocumentState to script_traits (from nerith:documentstate); r=nox
Fixes #9224.

Source-Repo: https://github.com/servo/servo
Source-Revision: cbb5a0d8726313545d95fe0261145a5350857e93
2016-01-13 02:29:32 +05:01
Corey Farwell 7e7b3cba36 servo: Merge #9266 - Link to tracking issue for redundant codegen getter (from frewsxcv:redundant-getter-tracking-issue); r=metajack
https://github.com/servo/servo/issues/5875

Source-Repo: https://github.com/servo/servo
Source-Revision: 6736593c475da81c1cf61616c7a63d084f140826
2016-01-12 23:42:39 +05:01
Emilio Cobos Álvarez 59da8760a5 servo: Merge #9056 - Implement WebIDL sequence arguments (from emilio:sequence-args); r=nox
And use it for `WebGLRenderingContext#uniform1fv`.

Blocked on https://github.com/servo/rust-mozjs/pull/226

Fixes #544

Source-Repo: https://github.com/servo/servo
Source-Revision: c97d557720b2ef312b964534bd511d45161a2729
2016-01-12 22:58:30 +05:01
Anthony Ramine 46b9c7f311 servo: Merge #8954 - Fix prototypes of interface objects (fixes #2665) (from nox:protochain); r=Ms2ger
Callback interface objects' (i.e. NodeFilter's) prototype is now Object instead of
Function and non-callback interface objects' their proper ancestor, starting with
the Function prototype.

The function do_create_interface_objects is removed in favour of 4 functions:
create_callback_interface_object, create_interface_prototype_object,
create_noncallback_interface_object and create_named_constructors.

While this increases the amount of codegen'd code, this greatly improves the
readability of the code involved in this part of DOM, instead of having one function
doing 4 different things. We can always find a more adequate abstraction later.

NativeProperties and everything related to the interface objects have been removed
from the utils module.

Fixes #2665.

Source-Repo: https://github.com/servo/servo
Source-Revision: e977a6e69a06ad69e87cc235b4ede60f8fb3eca3
2016-01-12 21:31:47 +05:01
Chad Kimes 9899b01934 servo: Merge #9255 - Remove global fields from DOM objects (from ckimes89:remove-globalfield); r=nox
Fixes #9227

Source-Repo: https://github.com/servo/servo
Source-Revision: 53c4a782a0906c487139d4b6f3c62d9eca3f9f17
2016-01-12 18:03:37 +05:01
Josh Leverette 57e4f9695b servo: Merge #9240 - Refactor WebGLPaintTask to prevent creating extra IPC channels #9228 (from coder543:Refactoring); r=ecoal95
Closes #9228

I think this code will actually do what is desired now. I had to rebase off of master since WebGLPaintTask was renamed to WebGLPaintThread in a commit since last night.

I'm sorry this has been so much trouble so far. I'm still learning how things are done around here. I didn't even think about trailing whitespace, but now I know about the test-tidy tool.

Source-Repo: https://github.com/servo/servo
Source-Revision: 6b1e73c1c0cf3fe2c935df0de667145bc6130461
2016-01-12 17:04:32 +05:01