Commit graph

34802 commits

Author SHA1 Message Date
Josh Matthews
de8fae14b7 android: Do not trigger a composite before Servo has finished compositing. 2018-10-03 03:44:16 +02:00
bors-servo
021a24d5bb
Auto merge of #21851 - paulrouget:maven, r=MortimerGoro
Create a Maven repository on package

This new step will go through all the *release* builds of the servoview AAR, and create a maven repo (just a tree of directories) with the relevant POM files under `target/gradle/servoview/maven`.

For example, after building for armv7 and x86, it looks like this:

```
/Users/paul/git/servo/target/gradle/servoview/maven
└── org
    └── mozilla
        └── servoview
            ├── servoview-armv7
            │   ├── 0.0.1.20181002
            │   │   ├── servoview-armv7-0.0.1.20181002.aar
            │   │   ├── servoview-armv7-0.0.1.20181002.aar.md5
            │   │   ├── servoview-armv7-0.0.1.20181002.aar.sha1
            │   │   ├── servoview-armv7-0.0.1.20181002.pom
            │   │   ├── servoview-armv7-0.0.1.20181002.pom.md5
            │   │   └── servoview-armv7-0.0.1.20181002.pom.sha1
            │   ├── maven-metadata.xml
            │   ├── maven-metadata.xml.md5
            │   └── maven-metadata.xml.sha1
            └── servoview-x86
                ├── 0.0.1.20181002
                │   ├── servoview-x86-0.0.1.20181002.aar
                │   ├── servoview-x86-0.0.1.20181002.aar.md5
                │   ├── servoview-x86-0.0.1.20181002.aar.sha1
                │   ├── servoview-x86-0.0.1.20181002.pom
                │   ├── servoview-x86-0.0.1.20181002.pom.md5
                │   └── servoview-x86-0.0.1.20181002.pom.sha1
                ├── maven-metadata.xml
                ├── maven-metadata.xml.md5
                └── maven-metadata.xml.sha1
```

<!-- 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/21851)
<!-- Reviewable:end -->
2018-10-02 20:58:44 -04:00
Simon Pieters
9b74f0af24 Remove the HTMLTable{Header,Data}CellElement interfaces
Fixes #17222.
2018-10-02 19:23:02 +02:00
bors-servo
74ba683e27
Auto merge of #21826 - servo:jdm-patch-35, r=jdm
Enable fake fillText API in nightly builds.

The [three.js examples](https://threejs.org/examples/) are really useful for checking Servo WebGL support, but if the fillText API is not available they only display a blank screen. I think it's worth lying to web content about this API in order to make it easy to make use of these examples without using local development builds.

<!-- 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/21826)
<!-- Reviewable:end -->
2018-10-02 13:02:15 -04:00
Paul Rouget
54d7788698 Create a Maven repository 2018-10-02 18:16:44 +02:00
Josh Matthews
c3c8aabf80 Enable fake fillText API in all builds. 2018-10-02 14:47:29 +02:00
Anthony Ramine
a3392610c3 Make HTMLCanvasElement::get_size return a Size2D<u32>
The changes keep trickling down.
2018-10-02 14:21:06 +02:00
Anthony Ramine
b8dbf2dddd Implement JSTraceable for Size2D<u32> 2018-10-02 14:21:06 +02:00
Anthony Ramine
426067069c Clean up ToAzurePattern for FillOrStrokeStyle 2018-10-02 14:21:06 +02:00
Anthony Ramine
435d4d9f25 Implement JSTraceable for (A, B, C, D) instead of (T, T, T, T) 2018-10-02 14:21:06 +02:00
Anthony Ramine
99b6091b7a Clean up create_webgl_context 2018-10-02 14:21:06 +02:00
bors-servo
57053e03bb
Auto merge of #21825 - jdm:backtrace-helpers, r=Manishearth
Optional backtraces for JS errors and WebGL errors

This adds two new build-time features to enable useful debugging tools when investigating why JS and WebGL content isn't working. They're optional because they're quite heavyweight.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes do not require tests because they're optional developer features.

<!-- 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/21825)
<!-- Reviewable:end -->
2018-10-02 06:57:38 -04:00
bors-servo
37b978af68
Auto merge of #21830 - paulrouget:com2org, r=SimonSapin
Android: com.mozilla to org.mozilla

We want to be compatible with the GeckoView namespace: https://maven.mozilla.org/maven2?prefix=maven2/org/mozilla/

<!-- 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/21830)
<!-- Reviewable:end -->
2018-10-02 02:17:27 -04:00
Paul Rouget
6d543dec28 com.mozilla to org.mozilla 2018-10-02 08:09:35 +02:00
Josh Matthews
06bca43aee script: Optionally store backtraces when throwing DOM exceptions. 2018-10-01 16:04:56 +02:00
bors-servo
057acdca2d
Auto merge of #21828 - servo:jdm-patch-36, r=nox
Warn when using slow WebGL code path.

This will make it more obvious when one source of WebGL performance problems is present.

<!-- 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/21828)
<!-- Reviewable:end -->
2018-10-01 09:26:19 -04:00
bors-servo
29fdf04338
Auto merge of #21840 - servo-wpt-sync:wpt_update_28-09-2018, r=jdm
Sync WPT with upstream (28-09-2018)

Automated downstream sync of changes from upstream as of 28-09-2018.
[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/21840)
<!-- Reviewable:end -->
2018-10-01 08:34:36 -04:00
Josh Matthews
26e1001efd
Remove trailing whitespace. 2018-10-01 13:32:34 +02:00
bors-servo
0dd7ea5f2c
Auto merge of #21848 - servo:jdm-patch-38, r=paulrouget
Remove unnecessary thread specification when flushing GL on Android.

According to [the docs](https://developer.android.com/reference/android/opengl/GLSurfaceView#requestRender()) requestRender can be called from any thread, so we're just introducing unnecessary latency.

<!-- 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/21848)
<!-- Reviewable:end -->
2018-10-01 06:03:39 -04:00
Josh Matthews
5dc80dd07a webgl: Add feature to store backtraces for each WebGL API call for easier debugging. 2018-10-01 10:43:13 +02:00
Josh Matthews
4db25fe581
Remove unnecessary thread specification when flushing GL on Android. 2018-10-01 10:22:12 +02:00
bors-servo
4205ff9c40
Auto merge of #21833 - servo:jdm-patch-37, r=SimonSapin
Fix appveyor build

- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #21832
- [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/21833)
<!-- Reviewable:end -->
2018-10-01 04:14:08 -04:00
bors-servo
4413290de1
Auto merge of #21713 - mandreyel:track-focused-browsing-context, r=cbrewster
Update Constellation to track focused BrowsingContext instead of Pipeline

<!-- Please describe your changes on the following line: -->
I need confirmation as to whether I understand this correctly, but I don't think tracking the focused browsing context instead of the pipeline introduces the benefits described in the issue, because if the focused browsing context is an iframe nested in a document that is being changed, we need to change focus to the browsing context whose current document is being changed, i.e. above the currently focused iframe. Is this correct?

However, I think we may be able to save the slightly expensive iteration over a frame tree (which is needed to check if the currently focused browsing context is nested within the one where the page is being loaded) when the [EDIT] focused browsing is the top-level browsing context, as in this case the load doesn't change the focus. I haven't implemented this as I'm unsure whether this is correct.

---
<!-- 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 #15507 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because because no new behaviour was introduced.

<!-- 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/21713)
<!-- Reviewable:end -->
2018-09-30 17:48:04 -04:00
WPT Sync Bot
7ba3376dde Update web-platform-tests to revision 2df7f9ff620cbdaa2928464892fb1dfb880fd6c6 2018-09-28 22:54:30 -04:00
bors-servo
97e3c5f3a9
Auto merge of #21608 - pyfisch:border-gradients, r=emilio
Improve border images

Respect CSS border-image-width.
Properly support gradients as a border-image-source.

Add a new test and mark two more as passing.

<!-- 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/21608)
<!-- Reviewable:end -->
2018-09-28 16:36:53 -04:00
Pyfisch
60d0c8cd76 Layout: stylistic changes
Additionally if an image border can't be displayed show solid border.
Introduce build_display_list_for_border_image to display border images.
2018-09-28 22:33:02 +02:00
bors-servo
58039c10b0
Auto merge of #21835 - servo:tc-android-arm32, r=jdm
Taskcluster: add Android build

[Example green build](https://tools.taskcluster.net/groups/FyF53cdfSKC39eqB3OAZVQ/tasks/ff23qoM3TzSCHrinmzU7gQ/details), with `servoapp.apk` in public artifacts.

This installs some dependencies within the task for now. I’ll follow up with moving some things like the NDK download to a Docker image, but even as it is the task completes in 17 minutes.

<!-- 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/21835)
<!-- Reviewable:end -->
2018-09-28 12:14:54 -04:00
Simon Sapin
2968572187 Taskcluster: add Android build 2018-09-28 17:26:57 +02:00
Josh Matthews
48a16ac058
Don't use mach wrappers for rustc/cargo smoketests on Windows. 2018-09-28 09:27:53 -04:00
bors-servo
25cc45eec2
Auto merge of #21829 - servo-wpt-sync:wpt_update_27-09-2018, r=jdm
Sync WPT with upstream (27-09-2018)

Automated downstream sync of changes from upstream as of 27-09-2018.
[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/21829)
<!-- Reviewable:end -->
2018-09-28 09:02:37 -04:00
Josh Matthews
1d988cae8f
Remove intermittent timeout result. 2018-09-28 09:02:22 -04:00
mandreyel
dab49a217f Update Constellation to track focused BrowsingContext instead of Pipeline 2018-09-28 15:01:21 +02:00
bors-servo
80379c8f93
Auto merge of #21827 - ferjm:update.gst.binaries.travis, r=Manishearth
Update gstreamer binaries for Travis. With plugins-base now

<!-- 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/21827)
<!-- Reviewable:end -->
2018-09-28 02:15:02 -04:00
WPT Sync Bot
7295abcc2a Update web-platform-tests to revision 36634cbcf3253dfe8d220990a27ad4eeebf8ec2f 2018-09-27 23:48:13 -04:00
Josh Matthews
e5892989ca
Warn when using slow WebGL code path. 2018-09-27 18:44:02 -04:00
Fernando Jiménez Moreno
fb29a625f4 Update gstreamer binaries for Travis. With plugins-base now 2018-09-27 23:08:06 +02:00
bors-servo
0964d055cd
Auto merge of #21809 - servo:features, r=SimonSapin
Only build ports/servo by default (except Android), add `./mach build --libsimpleservo`

Fixes #21314

<!-- 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/21809)
<!-- Reviewable:end -->
2018-09-27 13:35:09 -04:00
bors-servo
de415e35fc
Auto merge of #21821 - servo:up, r=SimonSapin
Move etc/ci/taskcluster one level up
2018-09-27 12:25:28 -04:00
Simon Sapin
5a48669e90 Move etc/ci/taskcluster one level up 2018-09-27 18:23:37 +02:00
bors-servo
515afac456
Auto merge of #21812 - jdm:useful-output, r=SimonSapin
Provide useful defaults for Android logcat output

These changes integrate the stdout/stderr redirection from 0e80cfbcee/cargo-apk/injected-glue/lib.rs (L240-L303), and set up the default RUST_LOG filters so that useful JS errors and GL errors appear in the logcat output. I have verified that thread panics appear in output as well (without backtraces, sadly) by visiting https://acid3.acidtests.org.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #21637 and fix #21783
- [x] These changes do not require tests because no tests for logcat.

<!-- 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/21812)
<!-- Reviewable:end -->
2018-09-26 12:09:12 -04:00
Josh Matthews
b11f071976 Rewrite android logging to use checked slices. 2018-09-26 11:42:48 -04:00
Josh Matthews
f402dd9ecf Use Rust stdlib threads for android logging. 2018-09-26 11:05:00 -04:00
Josh Matthews
38d3f59170 Add useful logging defaults for debugging web content on android. 2018-09-26 11:04:36 -04:00
Simon Sapin
deeb79669f Only add --manifest-path if not already present 2018-09-26 08:18:58 +02:00
Josh Matthews
854a4bdbf4 Redirect stdout/stderr to logcat. 2018-09-25 15:25:16 -04:00
bors-servo
391d67fa1d
Auto merge of #21759 - jdm:ndkgdb, r=paulrouget
Add mach command to setup remote debugging on Android devices.

This removes any need to fiddle with search paths for source files and makes the experience of remote debugging much less frustrating. I've tried this on a Pixel, Pixel 2, and emulator and successfully set breakpoints and investigated variables on all of them. The APP_ABI changes are necessary to prevent ndk-gdb from thinking that the build is arm64 when it's not.

---
- [x] `./mach build -d` 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/21759)
<!-- Reviewable:end -->
2018-09-25 14:22:13 -04:00
Simon Sapin
4e85f9c186 Build libsimpleservo on CI 2018-09-25 19:21:59 +02:00
Simon Sapin
39079cff8b Only build ports/servo by default (except Android), add ./mach build --libsimpleservo
Fixes #21314
2018-09-25 19:21:59 +02:00
Simon Sapin
6842553923 Fix default-except-unstable build 2018-09-25 19:21:59 +02:00
bors-servo
9ee8890a72
Auto merge of #21506 - ferjm:webaudio.wpts, r=Manishearth
Fix some WebAudio WPTs

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [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/21506)
<!-- Reviewable:end -->
2018-09-25 13:21:37 -04:00