Josh Matthews
65785e2c44
Disable two tests that do not yield reliable output in release builds.
2015-07-24 18:28:43 -04:00
bors-servo
3c88d3418c
Auto merge of #6720 - mbrubeck:wpt-release, r=pcwalton
...
Update WPT test expectations for --release builds
r? @pcwalton or @larsbergstrom
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6720 )
<!-- Reviewable:end -->
2015-07-24 01:11:48 -06:00
Matt Brubeck
859f99d5e8
Update WPT test expectations for --release builds
2015-07-23 22:57:54 -07:00
Matt Brubeck
dfac8ce4a1
Basic support for bidirectional text
2015-07-23 20:05:55 -07:00
farodin91
27e760e28d
Implement FileReader.{readAsText,readAsDataUrl}. Fixes #6172
2015-07-23 22:33:51 +02:00
bors-servo
658c3d05ae
Auto merge of #6683 - tschneidereit:dompoint, r=Ms2ger
...
Implement DOMPoint and DOMPointReadOnly
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6683 )
<!-- Reviewable:end -->
2015-07-23 11:38:14 -06:00
Till Schneidereit
b692187ca2
Implement DOMPoint and DOMPointReadOnly
...
Passes some but not all WPT tests. One failure is caused by an issue in codegen for the `DOMPointInit` dictionary, the others by outdated tests: Gecko implements an old version of the spec that overloaded the `DOMPoint` constructor to optionally take an object as the first argument, and made `DOMPointReadOnly` non-constructible.
2015-07-23 19:09:36 +02:00
Simon Sapin
055a1c5cee
Update rust-selectors
...
Update for https://github.com/servo/rust-selectors/pull/37
2015-07-23 18:53:57 +02:00
bors-servo
36d732a60a
Auto merge of #6582 - servo:clamp-enforce-range, r=jdm
...
Add Clamp and EnforceRange support for webidl arguments.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6582 )
<!-- Reviewable:end -->
2015-07-22 11:03:05 -06:00
bors-servo
ab3d6c472d
Auto merge of #6490 - samfoo:hsts-preload, r=jdm
...
Implement HSTS (preload-only)
Implement HSTS (preload-only) servo/servo#6105
* Downloads the HSTS preload list from the chromium repo (same as gecko), then convert it to a list appropriate for servo.
* Reads the preload list when creating a resource task, and implements STS for those domains.
Still todo:
* Read Strict-Transport-Security headers from servers and add details to the in-memory HSTS list. (note: this requires hyper or servo to implement an STS header struct. Hyper seems like the appropriate location, so I will create an issue/PR there soon). The work for this is nearly done with the exception of adding a new ControlMsg and the new header.
* Persist HSTS list to disk with known hosts (perhaps a different issue should be raised for this?)
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6490 )
<!-- Reviewable:end -->
2015-07-22 10:23:05 -06:00
bors-servo
6b4f1a42f0
Auto merge of #6694 - jdm:websocketprotocol, r=Ms2ger
...
Reject websocket protocol requests that don't match https://tools.iet …
…f.org/html/rfc6455#section-4.1 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6694 )
<!-- Reviewable:end -->
2015-07-22 09:44:34 -06:00
snf
7f152b665d
Add Clamp and EnforceRange support for webidl arguments.
2015-07-22 17:04:06 +02:00
Ms2ger
0888e1acac
Add a test for clamping in WebSocket#close.
2015-07-22 17:01:21 +02:00
Josh Matthews
d385cb701b
Reject websocket protocol requests that don't match https://tools.ietf.org/html/rfc6455#section-4.1 .
2015-07-22 09:35:07 -04:00
Corey Farwell
b1b03a32db
Upgrade rust-selectors, pass ':empty' tests
...
https://github.com/servo/rust-selectors/pull/36
2015-07-22 18:27:33 +07:00
Sam Gibson
bae979137a
Moves HSTS includeSubdomains enum to net_traits
2015-07-22 11:49:09 +12:00
Sam Gibson
11f5be6d85
Responds to more code review feedback
...
* Use regex from resource task
* Don't have an option of an HSTS list, default to empty
2015-07-22 11:49:08 +12:00
Sam Gibson
f2148f06b1
Moves the HSTS replacement code to http_loader
...
This respects STS for redirects as well.
2015-07-22 11:49:08 +12:00
Sam Gibson
826f56bdf3
Moves HSTS code to it's own module
2015-07-22 11:49:07 +12:00
Sam Gibson
02bd5cdc1b
Resolves remaining code review issues
...
* Don't pass a boolean to the HSTSEntry constructor, use an enum instead
* Don't clone when securing load data
* Comment about the Url bug
* Change remaining assert!(... == ...) to assert_eq!(..., ...)
2015-07-22 11:49:07 +12:00
Sam Gibson
29a34dbdb5
Resolves code review comments
...
* Lots of rust-isms
* Mutable iterator for modifying entries (much better)
2015-07-22 11:49:06 +12:00
Sam Gibson
f284181781
Abstract out ResourceManager messaging from impl
...
De-coupling makes testing a bit easier.
2015-07-22 11:49:04 +12:00
Sam Gibson
ff1777e446
Evict HSTS entries when a max-age of 0 is seen
2015-07-22 11:49:03 +12:00
Sam Gibson
690ac636eb
Rename/refactor
2015-07-22 11:49:03 +12:00
Sam Gibson
15c90a58b2
Expire HSTS entries that have exceeded their max-age
...
servo/servo#6105
2015-07-22 11:49:03 +12:00
Sam Gibson
8d39fb6dcf
Shift checking for IP address host for HSTS entry to constructor
...
servo/servo#6105
2015-07-22 11:48:05 +12:00
Sam Gibson
cb9b0c2a7a
Add max-age to HSTS entries
...
Refactors API for pushing new entries on, and adds a max age. This does
not add a check for the max-age, or remove old entries from the list.
Instead this just adds the data-field.
servo/servo#6105
2015-07-22 11:48:05 +12:00
Sam Gibson
855a9487ae
Do not change the port when loading HSTS domain
...
servo/servo#6105
2015-07-22 11:48:04 +12:00
Sam Gibson
72d4433587
Do not allow IP address in HSTS list
...
As per [rfc6797](https://tools.ietf.org/html/rfc6797#section-8.1.1 ), do
not allow IPv4 or IPv6 addresses as host entries into the HSTS list.
servo/servo#6105
2015-07-22 11:48:04 +12:00
Sam Gibson
d2f35555b9
Implement mutable HSTS list
...
This prepares the resource task to update the HSTS list when it sees STS
headers. This will allow full HSTS support for servo/servo#6105 when the
resource task implements the header checking
2015-07-22 11:48:03 +12:00
Sam Gibson
aa19a9a741
Preload an HSTS domain list from chromium
...
This resolves the first part of servo/servo#6105 . The remaining part is
to update the list based on the STS headers from the server.
2015-07-22 11:48:03 +12:00
Bogdan Cuza
0baa6b477c
Replace astersisks with appropriate versions in deps
2015-07-20 20:08:08 +03:00
Patrick Walton
b6485a9eaf
compositing: Make the constellation messages serializable.
2015-07-18 12:43:08 -07:00
David Zbarsky
207648f14d
Implement Range#cloneContents
2015-07-17 02:48:39 -04:00
bors-servo
acf47a02cf
Auto merge of #6568 - dzbarsky:delete_range, r=jdm
...
Implement Range#insertNode
Gecko doesn't really follow the spec but it seems to throw a HierarchyRequest error when parent is null.
Any ideas who I should talk to about fixing the spec to account for the null checks?
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6568 )
<!-- Reviewable:end -->
2015-07-16 10:56:17 -06:00
David Zbarsky
c2664e52dd
Implement Range#insertNode
2015-07-16 17:43:46 -04:00
Ms2ger
b467f3e9d6
Don't try to send a message in WebSocket#close if the sender isn't present.
2015-07-16 14:29:04 +02:00
Simon Sapin
83d2a11d86
Upgrade to rustc 1.3.0-dev (fddfd089b 2015-07-10)
2015-07-15 00:46:43 +02:00
bors-servo
2947d78e4e
Auto merge of #6584 - Ms2ger:wpt_20150709, r=jdm
...
Update web-platform-tests to revision 5e3ea8f49fee68c327388bfd1dd1375a8ce12a0e.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6584 )
<!-- Reviewable:end -->
2015-07-14 05:33:35 -06:00
Ms2ger
48b94ec02b
Throw an InvalidStateError from WebSocket#send when it is called too early.
2015-07-14 17:27:10 +02:00
Ms2ger
bfb96b9448
Update web-platform-tests to revision 5e3ea8f49fee68c327388bfd1dd1375a8ce12a0e.
2015-07-14 10:38:54 +02:00
Ms2ger
86e94786ae
Stop panicking while establishing a WebSocket connection.
2015-07-14 16:01:59 +02:00
bors-servo
0fb9f22ff7
Auto merge of #6611 - jdm:websocketorigin, r=jdm
...
Add Origin header to WebSocket connections.
Closes #6532 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6611 )
<!-- Reviewable:end -->
2015-07-13 23:39:16 -06:00
bors-servo
91ce002241
Auto merge of #6554 - dzbarsky:master, r=Ms2ger
...
Test namespace prefix for element equality
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6554 )
<!-- Reviewable:end -->
2015-07-13 22:24:22 -06:00
Ms2ger
365937160d
Update the test-css expectations for the OSX update.
2015-07-14 11:08:36 +02:00
Josh Matthews
15102d9c53
Update web-platform-tests expected data
2015-07-13 12:23:54 -04:00
Ms2ger
4c0c60a4d6
Return the parsed URL from WebSocket#url.
2015-07-13 14:21:18 +02:00
Ms2ger
8b45f9f51c
Implement Window#top.
2015-07-11 18:00:59 +02:00
David Zbarsky
0fa8e51432
Test element prefix for element equality
2015-07-11 02:50:39 -04:00
bors-servo
52e857dd7b
Auto merge of #6561 - dzbarsky:namespace, r=Ms2ger
...
Implement Node#isDefaultNamespace and Node#lookupNamespaceURI (fixes #1826 )
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6561 )
<!-- Reviewable:end -->
2015-07-10 06:44:25 -06:00