Commit graph

37066 commits

Author SHA1 Message Date
Josh Matthews
335b49e80e Add gst-plugins-bad homebrew formula that enables webrtc. 2019-05-15 14:29:06 -04:00
bors-servo
6f8bb4dd40
Auto merge of #23355 - jdm:mac-taskcluster, r=Manishearth,SimonSapin
Increase number of mac taskcluster WPT jobs

<!-- 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/23355)
<!-- Reviewable:end -->
2019-05-14 09:49:55 -04:00
bors-servo
3f30720bba
Auto merge of #23363 - Darkspirit:https, r=jdm
More https

* Disabled unused legacy TLS.
It will be disabled for Nightly 72 or 73 in 5-7 months and ride the [trains](https://wiki.mozilla.org/Release_Management/Calendar).
https://blog.mozilla.org/security/2018/10/15/removing-old-versions-of-tls/
* Updated MPL license in a few files.
It would be nice if a new version of https://pypi.org/project/servo_tidy/ could be released to update WebRender as well.
* Switched servo-deps.s3.amazonaws.com back to https.
This was recently regressed by 10585be25c and fc28073dfb.
* Made https the default protocol for address bar on desktop.
Press Ctrl+L on the Glutin port and enter `example.com`:
Servo previously assumed you meant `http://example.com/`, now it is `https://example.com/`.

---

- [x] `./mach build --release` does not report any errors
- [x] `./mach test-tidy` does not report any errors

<!-- 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/23363)
<!-- Reviewable:end -->
2019-05-14 08:21:17 -04:00
bors-servo
3ca9d143af
Auto merge of #23374 - jdm:wpt-job-pkgconfig, r=SimonSapin
Fix libffi pkg-config in WPT nightly job.

<!-- 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/23374)
<!-- Reviewable:end -->
2019-05-13 22:29:24 -04:00
bors-servo
fdafc833ae
Auto merge of #23135 - maharsh312:master, r=jdm
Create CanvasRect for OffscreenCanvas

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

Created CanvasRect fot OffscreenCanvas and Updated Testcases

---
<!-- 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
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #___ (GitHub issue number if applicable)

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

<!-- 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/23135)
<!-- Reviewable:end -->
2019-05-13 16:19:57 -04:00
bors-servo
2c28e2b64f
Auto merge of #23347 - Darkspirit:hsts_ca_suffix, r=jdm
Update Public Suffix list, HSTS Preloading list and CA database

* Updated Public Suffix list using ./mach update-pub-domains
* Updated HSTS Preload list using ./mach update-hsts-preload
* Applied tiny format change to etc/cert_generator.sh
* Updated CA [database](https://ccadb-public.secure.force.com/mozilla/IncludedCACertificateReportPEMCSV) using etc/cert_generator.sh. New CAs are:
  * [bug 1442337](https://bugzilla.mozilla.org/show_bug.cgi?id=1442337) emSign ECC Root CA - C3
  * [bug 1442337](https://bugzilla.mozilla.org/show_bug.cgi?id=1442337) emSign ECC Root CA - G3
  * [bug 1442337](https://bugzilla.mozilla.org/show_bug.cgi?id=1442337) emSign Root CA - C1
  * [bug 1442337](https://bugzilla.mozilla.org/show_bug.cgi?id=1442337) emSign Root CA - G1
  * [bug 1464306](https://bugzilla.mozilla.org/show_bug.cgi?id=1464306) Hongkong Post Root CA 3

---

- [x] `./mach test-tidy` does not report any errors

<!-- 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/23347)
<!-- Reviewable:end -->
2019-05-13 14:57:02 -04:00
Maharsh
cbff66928f removed comments 2019-05-13 14:17:12 -04:00
Josh Matthews
4ca139ec1e Ensure libffi pkgconfig is set up for WPT tests. 2019-05-13 12:35:09 -04:00
Josh Matthews
7119bc093f Enable gstreamer debug output on taskcluster. 2019-05-13 12:30:55 -04:00
Josh Matthews
dd18ad29ac Install gstreamer libraries for WPT runner tasks on mac. 2019-05-13 12:29:21 -04:00
Josh Matthews
1b8429f9ce Move two mac WPT jobs to taskcluster. 2019-05-13 12:18:53 -04:00
Josh Matthews
24f4792dee Add third mac builder to taskcluster. 2019-05-13 12:18:20 -04:00
Maharsh
854ba8d514 Borrow Layout Change 2019-05-13 12:04:17 -04:00
Josh Matthews
f147b8d119 Fix libffi pkg-config in WPT nightly job. 2019-05-13 11:45:45 -04:00
Maharsh
65e1f1fb3e Updated Testcases and Formatting 2019-05-11 21:58:15 -04:00
bors-servo
965f57e3f8
Auto merge of #23309 - CYBAI:update-workers, r=nox
Support WorkerOptions for Worker

I'd like to start working on updating SW related codes and I found it will have some algorithms related to module workers. And I found parts of the spec update is related to [fetch a module worker script graph](https://html.spec.whatwg.org/multipage/#fetch-a-module-worker-script-tree), maybe it's worth being a separate PR?

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix part of #23308
- [ ] 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/23309)
<!-- Reviewable:end -->
2019-05-11 03:36:23 -04:00
bors-servo
d9559499b2
Auto merge of #23163 - jdm:smup66, r=asajeffrey
Upgrade to SpiderMonkey 66

<!-- 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/23163)
<!-- Reviewable:end -->
2019-05-10 23:51:12 -04:00
CYBAI
dececad390 Update Worker webidl to support WorkerOptions 2019-05-11 12:14:25 +09:00
Josh Matthews
7c1c1d9af4 Use clang as assembler for magic leap. 2019-05-10 22:47:03 -04:00
Josh Matthews
757d1eb8c9 Update test results. 2019-05-10 22:47:03 -04:00
Josh Matthews
8420b299ca Update CI to use Clang instead of outdated GCC. 2019-05-10 22:47:02 -04:00
Josh Matthews
4328713f71 Update to SpiderMonkey 66. 2019-05-10 22:43:43 -04:00
Josh Matthews
d0d3401361 Use correct android platform version when linking. 2019-05-10 22:43:42 -04:00
Josh Matthews
d84679c715 Remove unused arm32 build. 2019-05-10 22:43:42 -04:00
bors-servo
887f43b65b
Auto merge of #23353 - emilio:gecko-sync, r=emilio
style: Sync changes from mozilla-central.

See each individual commit for details.

<!-- 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/23353)
<!-- Reviewable:end -->
2019-05-10 21:20:50 -04:00
bors-servo
81f750afa7
Auto merge of #23356 - jdm:tc-android-mac, r=jdm
Move android mac build to taskcluster

<!-- 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/23356)
<!-- Reviewable:end -->
2019-05-10 18:26:35 -04:00
bors-servo
b13f7abb16
Auto merge of #23359 - jdm:fix-ffi-tc, r=SimonSapin
Add libffi to pkgconfig's search path.

Fixes #23358.

<!-- 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/23359)
<!-- Reviewable:end -->
2019-05-10 12:22:34 -04:00
bors-servo
623c5d0645
Auto merge of #23322 - pylbrecht:sync.network.fetch, r=jdm
Create performance resource timing entry for synchronous network fetch

<!-- 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 #23150 (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/23322)
<!-- Reviewable:end -->
2019-05-10 10:11:40 -04:00
Jan Andre Ikenmeyer
71fdba13be
Make https the default protocol for address bar on desktop 2019-05-10 15:34:56 +02:00
Jan Andre Ikenmeyer
b23219176d
Switch servo-deps back to https 2019-05-10 15:09:25 +02:00
Jan Andre Ikenmeyer
97deef4e19
Update MPL license to https 2019-05-10 15:03:19 +02:00
Jan Andre Ikenmeyer
25333b6451
Disable TLS 1.0 and 1.1 2019-05-10 14:53:32 +02:00
bors-servo
b604a87003
Auto merge of #23349 - ceyusa:no-clone-data, r=ferjm
No need to clone again the raw data.

Players frame's get_data() already delivers a cloned raw data.

<!-- 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
- [ ] These changes fix #___ (GitHub issue number if applicable)

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because there's not functional 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/23349)
<!-- Reviewable:end -->
2019-05-10 07:43:53 -04:00
Emilio Cobos Álvarez
db2f6aa8ca style: Rustfmt + build fix. 2019-05-10 12:43:06 +02:00
Emilio Cobos Álvarez
f429c28f23 style: Add bindings for ArcSlice and ThinArc, and use them to reduce copies of SVG path data.
As I said over bug 1549593, the eventual goal is to use ArcSlice in all
inherited properties. But this seemed like a good first candidate that doesn't
require me to move around a lot more code, since we were already using cbindgen
for the path commands.

Differential Revision: https://phabricator.services.mozilla.com/D30134
2019-05-10 12:43:05 +02:00
Emilio Cobos Álvarez
0d5c4481b8 style: Introduce ArcSlice, a small wrapper over ThinArc but without an explicit header.
We could make the header PhantomData or something, but then we wouldn't be able
to bind to C++, since C++ doesn't have ZSTs. So add a canary instead to add a
runtime check of stuff being sane.

Differential Revision: https://phabricator.services.mozilla.com/D30133
2019-05-10 12:43:04 +02:00
Emilio Cobos Álvarez
2ed2151b3d style: Move OwnedSlice to style_traits.
Differential Revision: https://phabricator.services.mozilla.com/D30126
2019-05-10 12:43:04 +02:00
Emilio Cobos Álvarez
559235edad style: Use the owned slice type for basic shape polygon coordinates.
This enables destructors for tagged unions in cbindgen, implemented in:

 * https://github.com/eqrion/cbindgen/pull/333

Which allow us to properly generate a destructor for the cbindgen-generated
StyleBasicShape (which now contains an OwnedSlice).

For now, we still use the glue code to go from Box<BasicShape> to
UniquePtr<BasicShape>. But that will change in the future when we generate even
more stuff and remove all the glue.

I could add support for copy-constructor generation to cbindgen for tagged
enums, but I'm not sure if it'll end up being needed, and copy-constructing
unions in C++ is always very tricky.

Differential Revision: https://phabricator.services.mozilla.com/D29769
2019-05-10 12:43:03 +02:00
Emilio Cobos Álvarez
330bccd659 style: Add an owned slice type which cbindgen can understand.
Passing these by value won't be ok of course, but that's fine.

I plan to combine this with https://github.com/eqrion/cbindgen/pull/333 to
actually be able to share representation for ~all the things, this is just the
first bit.

Box<T>, Atom and Arc<T> will be much easier since cbindgen can understand them
without issues.

It's boxed slices the only ones I should need something like this. I could avoid
it if I rely on Rust's internal representation, which we can per [1], but then I
need to teach cbindgen all about slices, which is generally hard, I think.

[1]: https://github.com/rust-lang/unsafe-code-guidelines/blob/master/reference/src/layout/pointers.md

Differential Revision: https://phabricator.services.mozilla.com/D29768
2019-05-10 12:43:02 +02:00
Emilio Cobos Álvarez
4b761848a0 style: Remove unnecessary mut usage. 2019-05-10 12:43:01 +02:00
Cameron McCormack
ca756a8550 style: Implement -webkit-line-clamp.
Differential Revision: https://phabricator.services.mozilla.com/D20115
2019-05-10 12:43:00 +02:00
Emilio Cobos Álvarez
81e706469d style: Fix an assertion that doesn't account for alignment padding.
I'm hitting this when trying to add bindings for box shadows, which are 32-bit
aligned.

Differential Revision: https://phabricator.services.mozilla.com/D30353
2019-05-10 12:42:59 +02:00
Emilio Cobos Álvarez
99b97737fe style: Don't panic when creating empty ThinArcs.
The change from [T; 1] to [T; 0] shouldn't change behavior since they have the
right alignment and we never poke at that particular array, but feels more
correct to avoid creating types that point to uninitialized data or outside of
their allocation, now that we allow empty slices.

Differential Revision: https://phabricator.services.mozilla.com/D30352
2019-05-10 12:42:58 +02:00
Emilio Cobos Álvarez
dd6252e34f style: Don't report errors for properties for which we've parsed another value in the same declaration block.
I thought a bit about how to test it and it's not particularly great.
test_css_parse_error_smoketest.html is great to assert that something _gets_
reported, but not that it doesn't :)

Differential Revision: https://phabricator.services.mozilla.com/D30201
2019-05-10 12:42:57 +02:00
Emilio Cobos Álvarez
02210264e7 style: Centralize a bit invalid value error reporting.
Also, buffer the errors, since we're going to want to look at the whole
declaration block to skip reporting them.

This shouldn't change behavior, just moves some work to the caller, and defers a
bit the work so that it happens only when error reporting is enabled.

Differential Revision: https://phabricator.services.mozilla.com/D30200
2019-05-10 12:42:56 +02:00
Emilio Cobos Álvarez
29cecf65b8 style: Use PhantomData<T> in servo_arc.
See https://github.com/rust-lang/rust/pull/60594#issuecomment-489966933

Differential Revision: https://phabricator.services.mozilla.com/D30169
2019-05-10 12:42:55 +02:00
Emilio Cobos Álvarez
1fba297bbc style: ThinArc should use NonNull.
If only for parallelism with Arc<>.

Differential Revision: https://phabricator.services.mozilla.com/D30131
2019-05-10 12:42:53 +02:00
bors-servo
b1b47d8046
Auto merge of #22856 - jdm:angle, r=paulrouget
Add optional ANGLE support to glutin port

Supporting ANGLE in Servo has two important benefits:
* we can actually run Servo instances on our Windows CI machines, which gives us more confidence that we're not breaking it
* we can continue to use OpenGL on devices like the Hololens, rather than creating platform-specific graphical backends

<!-- 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/22856)
<!-- Reviewable:end -->
2019-05-10 00:04:20 -04:00
Josh Matthews
e050e4fee4 Add libffi to pkgconfig's search path. 2019-05-09 22:59:48 -04:00
Maharsh
1de8ddd89c Changes for sender reciever 2019-05-09 21:54:48 -04:00