Commit graph

3377 commits

Author SHA1 Message Date
bors-servo
8c0736211b Auto merge of #9378 - paulrouget:removeProperty, r=KiChjang
Invalidate node style after style property removed

Fix #9377

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9378)
<!-- Reviewable:end -->
2016-01-27 16:43:30 +05:30
Paul Rouget
6d7dc0b905 Invalidate node style after style property removed 2016-01-27 07:43:23 +01:00
bors-servo
a75f2cecda Auto merge of #9419 - psdh:includeTypedef, r=nox
generate typedefs in CodegenRust.

fixes #9384

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9419)
<!-- Reviewable:end -->
2016-01-26 22:10:57 +05:30
Prabhjyot Singh Sodhi
d6df844ae5 generate typedefs in CodegenRust 2016-01-26 21:56:44 +05:30
Michael Rosenberg
1f45eaf8a1 For WebIDL interfaces without constant members, do not generate a 'Constant' module 2016-01-26 02:50:53 -05:00
bors-servo
842ec7c415 Auto merge of #9418 - paulrouget:iframeCrash, r=jdm
Check if root page exist before handling DOM events

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?

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9418)
<!-- Reviewable:end -->
2016-01-25 21:06:22 +05:30
Paul Rouget
a2c931e4df Check if root page exist before handling DOM events 2016-01-25 16:31:59 +01:00
bors-servo
e74021baaa Auto merge of #9400 - jmr0:websocket, r=nox
Fixing websocket subprotocol header validation

This takes care of https://github.com/servo/servo/issues/9034

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9400)
<!-- Reviewable:end -->
2016-01-25 17:01:39 +05:30
jmr0
3846cf52f2 fix websocket header validation, ensure it meets token requirements, add
testing
2016-01-24 18:31:21 -05:00
nxnfufunezn
e54929b4d7 Move ConstantSpec, NonNullJSNative and define_constants from utils to interface 2016-01-24 20:37:30 +05:30
Joshua Holmer
75d258f866 Update HTMLFormElement.length to be of type unsigned long
Fixes #9402
2016-01-22 12:09:12 -05:00
bors-servo
1c6fb0f04e Auto merge of #9367 - Chandler:url_origin, r=jdm
Add origin to Location and Url API.

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!

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9367)
<!-- Reviewable:end -->
2016-01-22 04:25:49 +05:30
Chandler Abraham
1ee9ccba21 add origin to location and url api 2016-01-21 11:06:41 -08:00
bors-servo
52da517a14 Auto merge of #9393 - Ms2ger:renumber-prepare, r=jdm
Update HTMLScriptElement::prepare to match the changed specification.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9393)
<!-- Reviewable:end -->
2016-01-21 23:31:18 +05:30
bors-servo
1ba1fb0b7f Auto merge of #9380 - servo:cssparserup, r=SimonSapin
Update cssparser.

https://github.com/servo/rust-cssparser/pull/91

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9380)
<!-- Reviewable:end -->
2016-01-21 22:45:51 +05:30
Simon Sapin
6fd46b5e6a Update cssparser.
https://github.com/servo/rust-cssparser/pull/91
2016-01-21 17:58:03 +01:00
bors-servo
262974cb11 Auto merge of #9396 - psdh:fixwebidltests, r=Ms2ger
update tests for WebIDL.py from mozilla-central

Fixes #9388

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9396)
<!-- Reviewable:end -->
2016-01-21 22:00:22 +05:30
Prabhjyot Singh Sodhi
da40818f25 update to latest tests 2016-01-21 21:53:47 +05:30
Ms2ger
678cb9da84 Update HTMLScriptElement::prepare to match the changed specification. 2016-01-21 11:54:41 +01:00
Lanza
cfc3500dbf Implement HTMLDetailsElement. Fixes #9216 2016-01-20 16:15:37 +01:00
James Sanders
482d23bb19 Fix test-tidy errors 2016-01-18 17:50:25 -07:00
James Sanders
d121958a17 Make closing related code more clear and more correct 2016-01-18 17:37:16 -07:00
bors-servo
03a0b73538 Auto merge of #9360 - jsanders:accept-protocols-sequence, r=KiChjang
Accept WebSocket protocols as string or sequence

Fixes #9053

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9360)
<!-- Reviewable:end -->
2016-01-19 02:18:28 +05:30
Ms2ger
ff0992401e Remove remaining reference to the long-disappeared JSRef type. 2016-01-18 09:52:23 +01:00
James Sanders
0bffffd8f5 Make WebSocket constructor take (DOMString or sequence<DOMString>) 2016-01-17 21:33:04 -07:00
St.Spyder
763b99258f Update XHR BodyInit, update extract method impl 2016-01-18 02:26:13 +05:30
bors-servo
7f16b4e47b Auto merge of #9348 - therealkbhat:script-cleanup, r=Wafflespeanut
Remove unused imports in script

Fixes #9345.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9348)
<!-- Reviewable:end -->
2016-01-18 00:36:34 +05:30
bors-servo
7ae16c7ea3 Auto merge of #9294 - KiChjang:xhr-usvstring, r=nox
Change all DOMStrings to USV strings for XHR

This is in compliance with the new spec [here](https://xhr.spec.whatwg.org/#xmlhttprequest).

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9294)
<!-- Reviewable:end -->
2016-01-17 19:40:46 +05:30
bors-servo
557d79bb87 Auto merge of #9194 - nerith:info, r=nox
Remove the w3c link for the Event interface

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9194)
<!-- Reviewable:end -->
2016-01-17 18:58:42 +05:30
bors-servo
a4e805d909 Auto merge of #9337 - fmmartins:urlsearchparams-getall, r=nox
Implement URLSearchParams::getAll

Fixes #5439.

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

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9337)
<!-- Reviewable:end -->
2016-01-17 18:13:17 +05:30
bors-servo
2f0daa1d47 Auto merge of #9304 - ecoal95:sequence-in-unions, r=nox
webidl: Implement sequences in unions

Unblocks #9053

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9304)
<!-- Reviewable:end -->
2016-01-17 17:19:49 +05:30
Kishor Bhat
1ca2073979 Remove unused imports in script 2016-01-17 12:41:28 +05:30
bors-servo
5a954d2492 Auto merge of #9334 - MonsieurLanza:DomContentLoadedBubbles, r=KiChjang
DOMContentLoaded event should be trusted

Hopefully resolves #9332.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9334)
<!-- Reviewable:end -->
2016-01-16 22:14:38 +05:30
bors-servo
9118b64b4b Auto merge of #9263 - DarinM223:move_mousebutton, r=KiChjang
Moved MouseButton from msg to script_traits

Fixes #9250

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9263)
<!-- Reviewable:end -->
2016-01-16 19:34:51 +05:30
Keith Yeung
a64f832e57 Change all DOMStrings to USV strings for XHR 2016-01-16 08:51:34 -05:00
Lanza
27b78f3b84 Use fire_event instead of DispatchEvent to make DOMContentLoaded trusted
Removed unused import.

Update expectations for EventTarget#dispatchEvent()
2016-01-16 14:12:38 +01:00
Fernando Martins
29b14d4b3d Implement URLSearchParams::getAll 2016-01-15 22:40:55 +00:00
Emilio Cobos Álvarez
950821989f webidl: Refactor isSequence in getJSToNativeConversionInfo
That way it does not depend on the return value for the same type.

This hopefully makes the code more clear, and avoids errors if something
changes in the future (for example, we could want to pass slices as
sequence arguments).
2016-01-15 14:30:38 +01:00
Emilio Cobos Álvarez
8859c617a8 webidl: Add test for interface and sequence in the same union 2016-01-15 14:20:23 +01:00
Emilio Cobos Álvarez
a76efa5eca webidl: Add test for interface sequences
Sequence interfaces return values worked before, but had no test.

Sequence interface arguments didn't work until the previous commit.
2016-01-15 14:20:22 +01:00
Emilio Cobos Álvarez
3327f00bce script: Implement FromJSValConvertible for Root<T> 2016-01-15 13:51:05 +01:00
Emilio Cobos Álvarez
4ad1a8ddcc webidl: Implement sequences in unions
Unblocks #9053
2016-01-15 13:42:08 +01:00
bors-servo
c7e8641174 Auto merge of #9328 - frewsxcv:window-broken-link, r=jdm
Fix broken spec link on Window::Document

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9328)
<!-- Reviewable:end -->
2016-01-15 09:09:40 +05:30
bors-servo
0bc25369d1 Auto merge of #9318 - shssoichiro:rename-script-task-root, r=KiChjang
Rename SCRIPT_TASK_ROOT to SCRIPT_THREAD_ROOT

Resolves #9316

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9318)
<!-- Reviewable:end -->
2016-01-15 08:25:15 +05:30
Corey Farwell
f6dc6ad463 Fix broken spec link on Window::Document 2016-01-14 21:13:14 -05:00
bors-servo
0c500a9da5 Auto merge of #9317 - MonsieurLanza:DomContentLoadedBubbles, r=KiChjang
DOMContentLoaded should bubble.

DOMContentLoaded event is currently set as non bubbling event.
Test :
./tests/wpt/web-platform-tests/html/syntax/parsing/the-end.html

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9317)
<!-- Reviewable:end -->
2016-01-15 06:53:12 +05:30
Joshua Holmer
4d7f304ef7 Rename SCRIPT_TASK_ROOT to SCRIPT_THREAD_ROOT
Resolves #9316
2016-01-14 12:01:11 -05:00
Lanza
eb018c0a04 DOMContentLoaded should bubble. 2016-01-14 17:11:30 +01:00
bors-servo
a28b5cb438 Auto merge of #9296 - apopiak:implement_as_class_9287, r=ecoal95
implement NonCallbackInterfaceObjectClass::as_jsclass()

close #9287

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9296)
<!-- Reviewable:end -->
2016-01-14 18:24:03 +05:30
apopiak
e2160cb3b9 implement NonCallbackInterfaceObjectClass::as_jsclass() 2016-01-14 12:51:16 +01:00