Commit graph

36117 commits

Author SHA1 Message Date
Josh Matthews
53ae73bdec canvas: Refactor implicit path/path builder state machine into a single enum. 2019-02-06 18:39:03 -05:00
Josh Matthews
e7edc367f9 Transform paths between user and device space when there is a 2D canvas transformation present. 2019-02-06 18:39:02 -05:00
Josh Matthews
c87a35e4d5 Ensure canvas path stroking and filling use the same paths. 2019-02-06 18:37:22 -05:00
bors-servo
a34c8f952e
Auto merge of #22835 - servo-wpt-sync:wpt_update_05-02-2019, r=jdm
Sync WPT with upstream (05-02-2019)

Automated downstream sync of changes from upstream as of 05-02-2019.
[no-wpt-sync]

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22835)
<!-- Reviewable:end -->
2019-02-06 10:24:24 -05:00
bors-servo
16b8347c86
Auto merge of #22836 - paulrouget:remove_readfile_callback, r=jdm
Remove readfile callback

Reproducing what is done in libmlservo.

This simplifies a lot of things. No need for resources anymore.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22836)
<!-- Reviewable:end -->
2019-02-06 08:20:57 -05:00
Paul Rouget
475756ec2f Remove readfile callback 2019-02-06 07:52:58 +01:00
WPT Sync Bot
6dda93c6e2 Update web-platform-tests to revision 9fc797e6e5fb7d244dfb5b5125886c01f8cedf2b 2019-02-05 23:23:41 -05:00
bors-servo
b7e9bab267
Auto merge of #22823 - servo:rustup, r=SimonSapin
Compat with rustc 1.34.0-nightly (f6fac4225 2019-02-03)

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22823)
<!-- Reviewable:end -->
2019-02-05 16:42:51 -05:00
bors-servo
9c8bce2a6b
Auto merge of #22821 - servo-wpt-sync:wpt_update_04-02-2019, r=jdm
Sync WPT with upstream (04-02-2019)

Automated downstream sync of changes from upstream as of 04-02-2019.
[no-wpt-sync]

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22821)
<!-- Reviewable:end -->
2019-02-05 15:09:35 -05:00
bors-servo
0cf9bcdd24
Auto merge of #22809 - asajeffrey:wpt-add-fullscreen-baseline-reftest, r=asajeffrey
Add a reftest that entering fullscreen mode takes over the window

<!-- Please describe your changes on the following line: -->

Add a baseline reftest for fullscreen that ensures that going fullscreen actually uses the whole window. This uses a pref that requests that fullscreen mode takes over the window rather than the whole screen. The pref doesn't do anything right now, but is a bit of future-proofing for when we do have proper fullscreen.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #22804.
- [X] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22809)
<!-- Reviewable:end -->
2019-02-05 11:48:22 -05:00
Alan Jeffrey
d2862094ec Add reftests for fullscreen mode 2019-02-05 10:04:38 -06:00
bors-servo
581df9da2c
Auto merge of #22806 - ferjm:webrtc.gst.plugins, r=jdm
Update gstreamer binaries for Android with webrtc related plugins

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors

I updated the binaries for Android with the required plugins for WebRTC as suggested [here](https://github.com/servo/servo/pull/22780#discussion_r252767768)

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22806)
<!-- Reviewable:end -->
2019-02-05 10:15:28 -05:00
Simon Sapin
4c2dcff80b Compat with rustc 1.34.0-nightly (f6fac4225 2019-02-03) 2019-02-05 10:56:40 +01:00
WPT Sync Bot
f9b7afc45e Update web-platform-tests to revision fe78f2a1ad48c1e0132634e957369d8d674e4258 2019-02-04 23:30:37 -05:00
bors-servo
871fe9306f
Auto merge of #22786 - georgeroman:update_forked_referrer_policy_tests, r=jdm
Remove forked referrer policy tests

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #22663

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22786)
<!-- Reviewable:end -->
2019-02-04 13:16:16 -05:00
bors-servo
40998d452d
Auto merge of #22819 - servo-wpt-sync:wpt_update_03-02-2019, r=jdm
Sync WPT with upstream (03-02-2019)

Automated downstream sync of changes from upstream as of 03-02-2019.
[no-wpt-sync]

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22819)
<!-- Reviewable:end -->
2019-02-03 23:02:38 -05:00
WPT Sync Bot
02a351684c Update web-platform-tests to revision db527a4944833201557faf740d4717c3ebe4c75f 2019-02-03 22:30:35 -05:00
bors-servo
481662d0a7
Auto merge of #22812 - servo-wpt-sync:wpt_update_02-02-2019, r=jdm
Sync WPT with upstream (02-02-2019)

Automated downstream sync of changes from upstream as of 02-02-2019.
[no-wpt-sync]

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22812)
<!-- Reviewable:end -->
2019-02-03 00:11:33 -05:00
WPT Sync Bot
314da91646 Update web-platform-tests to revision 78c15447152438264b49f4488683f60ee47d068f 2019-02-02 23:01:11 -05:00
bors-servo
007333e123
Auto merge of #22811 - UK992:mach-package-2, r=jdm
Windows: Add more missing dependencies

From https://github.com/servo/servo/pull/21968#issuecomment-459932742
r? @jdm

cc @atouchet

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22811)
<!-- Reviewable:end -->
2019-02-02 09:07:42 -05:00
bors-servo
4e463dec65
Auto merge of #22810 - servo-wpt-sync:wpt_update_01-02-2019, r=jdm
Sync WPT with upstream (01-02-2019)

Automated downstream sync of changes from upstream as of 01-02-2019.
[no-wpt-sync]

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22810)
<!-- Reviewable:end -->
2019-02-02 07:57:53 -05:00
UK992
4c236222c1 Add more GStreamer DLLs 2019-02-02 13:37:39 +01:00
UK992
ac8ac39ef3 Alphabetically sort GStreamer dlls 2019-02-02 13:36:12 +01:00
WPT Sync Bot
71dcf37d55 Update web-platform-tests to revision 0f0b7a7e353421b600ee555bf354d3a98bb603ae 2019-02-01 22:58:23 -05:00
bors-servo
363073568e
Auto merge of #21968 - UK992:mach-package, r=jdm
Windows: Add missing dependencies

Rebased https://github.com/servo/servo/pull/16445 and updated with Gstreamer DLLs.

About msi installer, there is also included gstreamer installer, should be removed and replaced by needed gstreamer DLLs or keep it at is it?

Fixes #16422.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21968)
<!-- Reviewable:end -->
2019-02-01 18:02:59 -05:00
UK992
f374dc3b7d Taskcluster: Install gstreamer-1.0-x86_64-1.14.3.msi 2019-02-01 22:35:53 +01:00
bors-servo
4a6b911908
Auto merge of #22259 - jdm:signal, r=jdm
Make the signal handler exit immediately

This addresses #22240 by immediately exiting, rather than sometimes triggering a SIGBUS by aborting that can be caught recursively.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #22240
- [x] There are tests for these changes

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22259)
<!-- Reviewable:end -->
2019-02-01 12:17:22 -05:00
Josh Matthews
342b9efc3c Upgrade sig dependency. 2019-02-01 12:16:35 -05:00
Fernando Jiménez Moreno
c2e975affb Update gstreamer binaries for Android with webrtc related plugins 2019-02-01 17:10:26 +01:00
George Roman
e6b363df5b Remove forked referrer policy tests 2019-02-01 18:08:45 +02:00
Josh Matthews
17850090a0 Exit the process from the signal handler. 2019-02-01 10:25:33 -05:00
bors-servo
d9b76ef7d0
Auto merge of #22319 - kkpoon:add-redirect-start, r=jdm
Add PerformanceResourceTiming: redirectStart

1. Added `RedirectStart` to `ResourceAttribute` in `net_traits` crate
2. Match the enum in `set_attribute` to record the start time in `ResourceFetchTiming.redirect_start`.
3. In `http_loader.rs::http_fetch`, added the call the context timing on the `RedirectStart`

fix 21256

- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #21256 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22319)
<!-- Reviewable:end -->
2019-02-01 08:26:12 -05:00
kkpoon
d470373e1c Add PerformanceResourceTiming: redirectStart 2019-02-01 14:55:37 +08:00
bors-servo
6b648429f5
Auto merge of #22780 - Manishearth:webrtc, r=jdm
Initial webrtc and getUserMedia DOM support

This is able to reach the point where connections are properly negotiated and ready to exchange streams.

<s>The `toJSON()` stuff doesn't work yet, so most example code will need to be tweaked to manually construct JSON first before sending SDP and ICE messages over websockets. I'll add support for this soon. (This may need webidl tweaks to support `[Default]` and `toJSON()`)</s>

For some reason I haven't yet figured out, connections are one-way, Servo is able to receive streams but the other end doesn't see the streams Servo sends. I don't think this is due to https://github.com/servo/media/issues/191, but that bug is making it harder to test.

This implementation simply drops streams that it receives, without connecting them up to any output elements, since servo-media-player doesn't yet have mediastream support.

Since servo can neither effectively send nor receive streams this implementation isn't useful yet, however it is getting large and I figured I'd get it reviewed and landed early as a base.

r? @jdm

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22780)
<!-- Reviewable:end -->
2019-01-31 12:14:16 -05:00
Fernando Jiménez Moreno
351723e6da Update gstreamer binaries for Android with webrtc related plugins 2019-01-31 18:01:03 +01:00
bors-servo
2b37e5c94d
Auto merge of #22787 - piotr-szpetkowski:issues/22775, r=cybai
Update bool pattern matching into if-else

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #22775

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22787)
<!-- Reviewable:end -->
2019-01-31 10:39:30 -05:00
bors-servo
8a1cfaacb7
Auto merge of #22789 - servo-wpt-sync:wpt_update_30-01-2019, r=jdm
Sync WPT with upstream (30-01-2019)

Automated downstream sync of changes from upstream as of 30-01-2019.
[no-wpt-sync]

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22789)
<!-- Reviewable:end -->
2019-01-30 23:05:05 -05:00
WPT Sync Bot
b56a3b8e69 Update web-platform-tests to revision ac12b3e9488edb436f063b11213e954ae62d5a5e 2019-01-30 22:39:55 -05:00
Piotr Szpetkowski
abd577bfd4
Update bool pattern matching into if-else 2019-01-30 20:54:12 +01:00
Manish Goregaokar
028082929b Update servo-media 2019-01-30 10:41:42 -08:00
bors-servo
65370f17c9
Auto merge of #22771 - MaT1g3R:refactor_follow_hyperlink, r=jdm
Refactor follow_hyperlink and its callers

Now they follow the new spec stated at:
https://html.spec.whatwg.org/multipage/links.html#following-hyperlinks-2

It seems like choosing a browsing context is already done in the
follow_hyperlink method, so I have removed the TODO in
activation_behavior for HTMLAreaElement.

The tests in `tests/wpt/web-platform-tests/html/semantics/links/following-hyperlinks/`
pass in release builds, but still don't pass in dev build,
since the timeout in
`tests/wpt/web-platform-tests/html/semantics/links/following-hyperlinks/activation-behavior.window.js`
seems to be too short for dev builds.

Navigating to error page on failed URL parsing is still not implemented.

There seem to be potential code duplication in activation_behavior
methods for both htmlanchorelement.rs and htmlareaelement.rs, in:

    let referrer_policy = match self.RelList().Contains("noreferrer".into()) {
        true => Some(ReferrerPolicy::NoReferrer),
        false => None,
    };

I didn't pull them out to a separate function since I don't know
where I would put that new function.

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #22761 (GitHub issue number if applicable)

<!-- Either: -->
- [X] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22771)
<!-- Reviewable:end -->
2019-01-30 08:22:46 -05:00
bors-servo
756bd2173a
Auto merge of #22785 - paulrouget:surfaceChange, r=avadacatavra
Implement ServoSurface::onSurfaceChanged

Fix #21860

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22785)
<!-- Reviewable:end -->
2019-01-30 04:27:30 -05:00
Paul Rouget
c146653707 Implement ServoSurface::onSurfaceChanged 2019-01-30 07:40:55 +01:00
Peijun Ma
0bafa61f7c
Implement referrer policy for follow_hyperlink 2019-01-30 00:24:12 -05:00
Peijun Ma
fe7f3ab262
Remove description for step in follow_hyperlink 2019-01-30 00:24:11 -05:00
Peijun Ma
e4ffd16449
Refactor follow_hyperlink and its callers
Now they follow the new spec stated at:
https://html.spec.whatwg.org/multipage/links.html#following-hyperlinks-2

It seems like choosing a browsing context is already done in the
follow_hyperlink method, so I have removed the TODO in
activation_behavior for HTMLAreaElement.

The tests in tests/wpt/web-platform-tests/html/semantics/links/following-hyperlinks/
pass in release builds, but still don't pass in dev build,
since the timeout in
tests/wpt/web-platform-tests/html/semantics/links/following-hyperlinks/activation-behavior.window.js
seems to be too short for dev builds.

Navigating to error page on failed URL parsing is still not implemented.

There seem to be potential code duplication in activation_behavior
methods for both htmlanchorelement.rs and htmlareaelement.rs, in:

    let referrer_policy = match self.RelList().Contains("noreferrer".into()) {
        true => Some(ReferrerPolicy::NoReferrer),
        false => None,
    };

I didn't pull them out to a separate function since I don't know
where I would put that new function.
2019-01-30 00:24:11 -05:00
bors-servo
df892ff51b
Auto merge of #22784 - servo-wpt-sync:wpt_update_29-01-2019, r=jdm
Sync WPT with upstream (29-01-2019)

Automated downstream sync of changes from upstream as of 29-01-2019.
[no-wpt-sync]

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22784)
<!-- Reviewable:end -->
2019-01-30 00:04:34 -05:00
WPT Sync Bot
3033b05605 Update web-platform-tests to revision f26f3ca338953d0c2e8b62c97623f0f0eea430be 2019-01-29 22:36:03 -05:00
Manish Goregaokar
ab04f0429b Add RTCSessionDescription::ToJSON 2019-01-29 11:37:00 -08:00
Manish Goregaokar
0d9f538561 Add RTCIceCandidate::ToJSON 2019-01-29 11:37:00 -08:00