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
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
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
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
bors-servo
396d411ac8
Auto merge of #9297 - KiChjang:document-new-elements, r=ecoal95
...
Add instructions to update create.rs when adding new DOM interfaces
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9297 )
<!-- Reviewable:end -->
2016-01-14 11:10:10 +05:30
Darin Minamoto
374bd5be27
Moving MouseButton from msg to script_traits
2016-01-13 19:23:45 -08:00
Joshua Holmer
83e66d6959
Move AnimationState to script_traits
...
Resolves #9223
2016-01-13 18:14:12 -05:00
Keith Yeung
b4a0d5b857
Add instructions to update create.rs when adding new DOM interfaces
2016-01-13 13:53:54 -05:00
bors-servo
897007f134
Auto merge of #9271 - apopiak:moveMozBrowserEvent_9225, r=KiChjang
...
Move `MozBrowserEvent` to `script_traits`
close #9225
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9271 )
<!-- Reviewable:end -->
2016-01-14 00:10:48 +05:30
apopiak
4b773cefe9
move MozBrowserEvent to script_traits (+ documentation)
2016-01-13 17:48:50 +01:00
Emilio Cobos Álvarez
4092ffd245
webgl: Check shader compilation status on use_program.
2016-01-13 15:28:36 +01:00
Emilio Cobos Álvarez
5c23c3851a
webgl: Remove old WebGLContextEvent idl
...
It's already defined in its own idl file.
2016-01-13 13:41:32 +01:00
Emilio Cobos Álvarez
e3532dda24
webgl: Check for bound element array buffer on DrawElements
...
And remove outdated TODOs
2016-01-13 13:41:32 +01:00
Emilio Cobos Álvarez
910b2260ab
webgl: Check for pending current_program errors
2016-01-13 13:41:31 +01:00
Emilio Cobos Álvarez
221a583784
webgl: Track uniformlocation's program
2016-01-13 13:41:30 +01:00
Emilio Cobos Álvarez
532b53ddc9
webgl: Implement Uniform1f, Uniform1fv, and Uniform4f
...
I was going to implement Uniform4fv with sequences, (since it
practically implemented), but we can't until we support Float32Array
args because codegen doesn't know how tu differenciate between both.
2016-01-13 13:41:30 +01:00
Matt McCoy
e684a20a1a
Making create attribute lowercase
2016-01-12 21:03:50 -05:00
bors-servo
cbb5a0d872
Auto merge of #9279 - nerith:documentstate, r=nox
...
Move DocumentState to script_traits
Fixes #9224 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9279 )
<!-- Reviewable:end -->
2016-01-13 02:58:32 +05:30