Commit Graph

5547 Commits

Author SHA1 Message Date
Patrick Walton
12dbf27eaf servo: Merge #9405 - layout: Remove some bogus code that tried to handle absolutely-positioned flows separately when storing overflow (from pcwalton:absolute-positioning-overflow); r=glennw
This code dates back to the time when absolutely positioned flows were
ignored by all of their ancestors up to the containing block. This
hasn't been true for at least a year.

Closes #9306.
Closes #9309.
Is a partial fix for #9308.

r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: 4755cc5c6211e845fc8081cb3c8a67b4bdbea5cc
2016-01-25 23:51:26 +05:01
Paul Rouget
cafcd1bf9e servo: Merge #9418 - Check if root page exist before handling DOM events (from paulrouget:iframeCrash); r=jdm
Fix #9417

For the test, I'm not sure how to simulate a mouse event or a key event in a way that it would be forwarded to the iframe.

Any idea?

Source-Repo: https://github.com/servo/servo
Source-Revision: 842ec7c41566c478c07e30c10f330f9f8595eadd
2016-01-25 20:37:22 +05:01
jmr0
5a259023aa servo: Merge #9400 - Fixing websocket subprotocol header validation (from jmr0:websocket); r=nox
This takes care of https://github.com/servo/servo/issues/9034

Source-Repo: https://github.com/servo/servo
Source-Revision: e74021baaa85ba1b2839192d4fcb4f4b5cb5536b
2016-01-25 16:32:39 +05:01
nxnfufunezn
28dd0cb227 servo: Merge #9413 - Move ConstantSpec, NonNullJSNative and define_constants from utils to interface (from nxnfufunezn:issue-9412); r=nox
Fixes #9412
r? @nox

Source-Repo: https://github.com/servo/servo
Source-Revision: e93a460db4902195ec64e6fe67817f9e3a7c1da9
2016-01-24 20:19:57 +05:01
Lars Bergstrom
5d2bc22040 servo: Merge #9385 - Win32 support (from larsbergstrom:win32); r=frewsxcv,pcwalton,jdm,ecoal95
r? @frewsxcv for python stuff
r? @pcwalton for the "remove usage of Gaol" stuff for Win32
r? anybody else for misc cargo.lock updates, etc.

This replaces #7878.

This works best with https://github.com/servo/mozjs/pull/71, too, to enable static linking, but can be run without (via some PATH hackery).

The instructions are here, and will be added to a .md file in the repo once the mozjs changes also land:
https://hackpad.com/Servo-on-Windows-C1LPcI2bP25

I'd like to get these changes landed because I've been rebasing them for months, they're otherwise quite stable, and don't affect our other platforms and targets.

Source-Repo: https://github.com/servo/servo
Source-Revision: 525e77f64fc65ea2397b4ff3849f5b1f39386698
2016-01-23 06:58:27 +05:01
Joshua Holmer
ef7e43368f servo: Merge #9404 - Update HTMLFormElement.length to be of type unsigned long (from shssoichiro:htmlformelementlength); r=nox
Fixes #9402

Source-Repo: https://github.com/servo/servo
Source-Revision: a9147275413a1a83ab737f0188a283b2a7dedb85
2016-01-22 22:24:53 +05:01
Chandler Abraham
83748b55e1 servo: Merge #9367 - Add origin to Location and Url API (from Chandler:url_origin); r=jdm
The origin field is part of location and url spec but hasn't been implemented in servo yet.
https://html.spec.whatwg.org/multipage/browsers.html#dom-location-origin
https://url.spec.whatwg.org/#dom-url-origin

All of the logic to calculate the url origin exists in https://github.com/servo/rust-url

This review threads through rust-url origin implementation into the servo location and url API.

This fixes one websockets test:
servo/tests/wpt/web-platform-tests/websockets/opening-handshake/003.html

testing done:
./mach test-wpt tests/wpt/web-platform-tests/websockets/

I'm brand new to rust so feedback is appreciated, thanks!

Source-Repo: https://github.com/servo/servo
Source-Revision: 1c6fb0f04e0cf305f4e1f75371be84944b1e5518
2016-01-22 03:56:49 +05:01
nxnfufunezn
2262f6788c servo: Merge #9399 - Fixes #9398 Integrate BuildTimeTrend into TravisCI (from nxnfufunezn:build_time-9398); r=jdm
r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: 0dd024e492cff1bbbbceeb295c0e220d9dd045fc
2016-01-22 02:19:01 +05:01
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
Ms2ger
d333e6a4f2 servo: Merge #9394 - Include the wpt lint in test-tidy --faster (from servo:wpt-lint); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 41892d4c93327b43dfe380a4e603789a86193069
2016-01-21 19:22:04 +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
Glenn Watson
d3e7e43e12 servo: Merge #9359 - Allow horizontal scrolling with left/right arrow keys (from glennw:scroll-horizontal); r=KiChjang
Source-Repo: https://github.com/servo/servo
Source-Revision: 2cfed414d00ccfad50eb069f62608036d918f604
2016-01-18 06:32:57 +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
Ms2ger
30d558a9fb servo: Merge #9293 - Remove the legacy reftest framework (from Ms2ger:reftests); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: d28fb42201dd743c470fcc1f43bf2e13f1c8cddc
2016-01-14 14:31:14 +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