Ms2ger
78df6e8d3e
Remove the receiver field from WebSocket.
...
The receiver will be used from another thread than the WebSocket object in
the future.
2015-07-22 20:28:15 +02:00
Ms2ger
56c660d4de
Split up WebSocketTaskHandler.
...
There's no real reason to have internal dynamic dispatch inside a trait
object.
2015-07-22 20:28:13 +02:00
bors-servo
aafc3dfa96
Auto merge of #6682 - boghison:scripttask, r=jdm
...
Fix a few issues
- Use SmallVec<[T; N]>
- Make find_iframe a free function
- Make ProgressEvent use enums for bubbles and cancelable
- Change README, as `rust-snapshot-hash` is just a text file
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6682 )
<!-- Reviewable:end -->
2015-07-22 12:25:57 -06:00
Michael Howell
402a2a8717
Optimize Node.normalize()
.
...
Do not copy the discarded node's text data, borrow it.
Closes #6658 .
2015-07-22 10:53:50 -07:00
Michael Howell
ce4709d6a7
Remove the last few TRs.
2015-07-22 10:52:04 -07:00
Michael Howell
970f018dc8
Better references.
2015-07-22 10:49:26 -07:00
bors-servo
3f69eadc0d
Auto merge of #6640 - mrobinson:memory-profiling-for-compositor, r=nnethercote
...
Add memory profiling for the compositor task
Currently only the BufferMap is recorded, but a later change will also
measure the memory usage of the compositor tree.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6640 )
<!-- Reviewable:end -->
2015-07-22 11:44:30 -06: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
Ms2ger
751a367eb9
Don't call type_id_for_layout directly in LayoutElement::is_link.
2015-07-22 18:29:38 +02:00
Ms2ger
9cc1e017ee
Move local_name and namespace to LayoutJS<Element>.
2015-07-22 18:28:17 +02: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
Ms2ger
23c679d55a
Implement style_attribute() on LayoutJS<Element>.
2015-07-22 17:27:23 +02: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
Bogdan Cuza
79623e7b45
Update README about rust-snapshot-hash
2015-07-22 16:45:45 +03:00
Bogdan Cuza
68d574bc32
Fix #6674
2015-07-22 16:45:44 +03:00
Bogdan Cuza
681b11c08b
Fix #6680
2015-07-22 16:45:43 +03:00
Bogdan Cuza
e10a524c81
Fix #6676
2015-07-22 16:45:42 +03: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
bors-servo
8a6681ba70
Auto merge of #6688 - Manishearth:smarter-root-lint, r=jdm
...
Handle type parameters in unused_must_root
fixes #6651
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6688 )
<!-- Reviewable:end -->
2015-07-22 07:05:31 -06:00
Manish Goregaokar
a9f651cfa1
Address review comments; add docs
2015-07-22 18:34:54 +05:30
bors-servo
488f3b65a1
Auto merge of #6607 - frewsxcv:bump-selectors, r=Ms2ger
...
Upgrade rust-selectors, pass ':empty' tests
https://github.com/servo/rust-selectors/pull/36
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6607 )
<!-- Reviewable:end -->
2015-07-22 05:33:06 -06: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
Manish Goregaokar
521d8bc32e
Make enum/fn part of unrooted_must_root handle type parameters
2015-07-22 10:44:26 +05:30
Sam Gibson
118122da38
Uses the approach suggested by @SimonSapin for changing Url scheme
...
servo/rust-url#61
2015-07-22 11:49:10 +12:00
Sam Gibson
5014da42fc
Only secure URL's that aren't already to HTTPS.
...
Cuts down on logger spam, and unnecessary Url::clone's
2015-07-22 11:49:09 +12:00
Sam Gibson
bae979137a
Moves HSTS includeSubdomains enum to net_traits
2015-07-22 11:49:09 +12:00
Sam Gibson
82cafc4274
Passes an Arc<Mutex<HSTSList>> to threads instead of cloning
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
8086034e0b
Commit HSTS preload list to source control
...
* No longer download the HSTS list as a bootstrap step
* Check the current revision of the HSTS list into source
2015-07-22 11:49:06 +12:00
Sam Gibson
a068a80619
Don't unnecessarily clone strings
2015-07-22 11:49:06 +12:00
Sam Gibson
865fb2eacb
Resolve tidy issues
2015-07-22 11:49:05 +12:00
Sam Gibson
8a401d5a7f
Re-parse URL to not have inconsistent state
2015-07-22 11:49:05 +12:00
Sam Gibson
795454fb81
Adds control message for HSTS headers
2015-07-22 11:49:04 +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
Michael Howell
91c61ae751
Tidy finds WebIDLs with no spec.
...
Closes #6689
2015-07-21 15:36:33 -07:00