Commit graph

7042 commits

Author SHA1 Message Date
Gregory Terzian
fee5428316 make auxiliary browsing-context script-closeable 2018-08-11 01:13:11 +02:00
Gregory Terzian
21bf5a3a4b implement opener, disowning 2018-08-11 01:13:11 +02:00
Gregory Terzian
f408b798c4 implement window.open, create auxiliary browsing context 2018-08-11 01:12:55 +02:00
Josh Matthews
b16a6268d9 Fix servodriver server configuration. 2018-08-10 14:45:47 -04:00
WPT Sync Bot
8423a90871 Update web-platform-tests to revision 848ceffad26e92d47ffe790ed8b650906b2c2343 2018-08-10 14:45:43 -04:00
Emilio Cobos Álvarez
689293e4fb
Fix Servo build. 2018-08-08 01:34:35 +02:00
Pyfisch
3d2957c737 Fix unit tests 2018-08-06 22:40:04 +02:00
Paul Rouget
0d9161dd7b WR update 2018-08-06 07:22:24 +02:00
Josh Matthews
03eb7e4dd2 webgl: Emulate some renderbuffer formats in non-GLES. 2018-08-02 02:05:53 -04:00
bors-servo
0051597525
Auto merge of #21158 - ferjm:webaudio, r=manishearth,nox,ferjm
WebAudio API

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

This PR adds basic support for the WebAudio API using [servo-media](https://github.com/servo/media) with GStreamer as the audio backend.

There are still some major stuff to fix like:

- [x] Detach ArrayBuffer during the [AudioBuffer "acquire the content" operation](https://webaudio.github.io/web-audio-api/#acquire-the-content). I am naively using `JS_StealArrayBufferContents()` directly, because it is what Gecko uses, but this should probably be part of the [rust-mozjs](https://github.com/servo/rust-mozjs) [TypedArray](https://github.com/servo/rust-mozjs/blob/master/src/typedarray.rs) API. And, in any case, I am not even sure if that's the proper way to do it. According to the results of the WPTs it may not even be right since [this assertion](https://github.com/servo/rust-mozjs/blob/master/src/typedarray.rs#L285) is failing in some cases. I need to dig more about this.
- [x] Disable the GStreamer dependency on Android. Unfortunately gstreamer-rs requires an NDK version upgrade, so we need to disable this for Android until then. I tried adding [different features to servo-media](https://github.com/servo/media/pull/79), but I am currently hitting [this issue](https://github.com/rust-lang/cargo/issues/1197)

I still need to run servo-tidy, change the servo-media dependency to use the git repo and add/fix some comments and TODOs.

The remaining feature work should be done in future PRs.

Note that most of the failing WPTs are failing because we don't implement the tested features yet (we only implement a few AudioNodes) and we have no OfflineAudioContext support, which most WPTs rely on.

<!-- 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/21158)
<!-- Reviewable:end -->
2018-07-31 09:00:06 -04:00
Anthony Ramine
34d1195af3 Reenable origin-clean-conformance.html 2018-07-31 11:12:46 +02:00
Anthony Ramine
76f23f7d78 Simplify gl.getShaderParameter() (fixes #20562)
The expectation change is due to the shader now using its DOM-side compile status.
It is actually a bug for the shader to think it actually compiled successfully,
but at least it does so consistently now.
2018-07-31 11:12:45 +02:00
Anthony Ramine
a0fc4c9832 Fix program and shader lifetime cycle 2018-07-31 11:12:40 +02:00
Manish Goregaokar
2daf9ff3eb Update wpt expectations 2018-07-30 20:38:25 -07:00
Anthony Ramine
3c0e82d106 Reenable glsl-long-variable-names.html 2018-07-31 00:28:13 +02:00
Anthony Ramine
e2425c9158 Mark many-draw-calls.html as long-running 2018-07-31 00:28:13 +02:00
Anthony Ramine
a7901bb8d1 Fix some patched WebGL tests where the timeout was malformed 2018-07-30 19:51:00 +02:00
Anthony Ramine
1adfc0badb Add bug links to some WebGL expectations 2018-07-30 19:50:59 +02:00
Anthony Ramine
d6673d1eaf Remove outdated WebGL expectations 2018-07-30 19:50:59 +02:00
Fernando Jiménez Moreno
19e4c627a3 Update manifest 2018-07-30 15:12:27 +02:00
Fernando Jiménez Moreno
2dba4142ed Update manifest 2018-07-30 14:24:41 +02:00
Fernando Jiménez Moreno
cf86020ef7 Fix interfaces wpt 2018-07-30 14:23:49 +02:00
Fernando Jiménez Moreno
a12374726d Update WPTs expectations 2018-07-30 14:23:48 +02:00
Fernando Jiménez Moreno
9dda87aa70 Enable WPTs 2018-07-30 14:21:45 +02:00
bors-servo
076198fe80
Auto merge of #21111 - gterzian:implement_document_load_cancellation, r=jdm
Implement document load cancellation

<!-- 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: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #19309 fix #21114 fix #21113 (github issue number if applicable).

<!-- Either: -->
- [ ] 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/21111)
<!-- Reviewable:end -->
2018-07-29 11:14:29 -04:00
Gregory Terzian
31da37fa6c stopping tokenizer if parser is aborted 2018-07-29 16:42:59 +08:00
Gregory Terzian
f2ee941da2 Introduce DOMTracker, cancel eventsource fetch when aborting document load 2018-07-29 16:42:59 +08:00
Gregory Terzian
ff62ca7c01 implement window.stop, improve aborting document load 2018-07-29 16:42:54 +08:00
bors-servo
539f382631
Auto merge of #21249 - jdm:webgl-unit-tests, r=emilio
Allow webgl tests using unit test harness to run to completion.

This is an equivalent change to https://github.com/servo/servo/pull/14962/commits/5af2603ec4f59f2bbabc8aa9d73deed29acf9492 that affects a subset of webgl tests that use a different test harness.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #13662 fix #10656
- [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/21249)
<!-- Reviewable:end -->
2018-07-27 22:39:50 -04:00
Josh Matthews
666ea2060c
Reenable test that should work now. 2018-07-26 10:23:26 -04:00
Josh Matthews
ad1c546973 Allow webgl tests using unit test harness to run to completion. 2018-07-25 17:36:24 -04:00
bors-servo
53382f5a0f
Auto merge of #21232 - servo:jdm-patch-22, r=asajeffrey
Enable MutationObserver by default.

All of the WebIDL APIs are implemented, so we might as well have it enabled by default now. I've filed https://github.com/servo/servo/issues/21233 for the remaining test failures.

<!-- 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/21232)
<!-- Reviewable:end -->
2018-07-25 15:32:43 -04:00
Josh Matthews
5d943c6dbd Enable MutationObserver by default. 2018-07-25 12:28:59 -04:00
Josh Matthews
30f964e489
Fix pyflakes warning. 2018-07-24 18:06:30 -04:00
Josh Matthews
2dff49174c
Adjust import path for WPT tests to accommodate upstream. 2018-07-24 18:00:39 -04:00
bors-servo
65df9cb73a
Auto merge of #21240 - servo:webgl, r=jdm
Properly check for GL object ownership (fixes #21133)

<!-- 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/21240)
<!-- Reviewable:end -->
2018-07-24 11:02:57 -04:00
Anthony Ramine
3179ed59c5 Properly check for GL object ownership (fixes #21133) 2018-07-24 15:05:35 +02:00
Emilio Cobos Álvarez
e1855b3b3b
style: Fix unit tests. 2018-07-24 12:59:55 +02:00
bors-servo
41f9f85040
Auto merge of #21236 - emilio:mutation-observer, r=jdm
script: A couple mutation observer fixes.

I felt like doing Servo stuff while trying to catch Gecko intermittents :)

This fixes most of #21233. I haven't dug into the other test.

<!-- 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/21236)
<!-- Reviewable:end -->
2018-07-23 13:33:45 -04:00
Emilio Cobos Álvarez
39e647de06
script: Fix the logic for mutation observer attributes. 2018-07-23 19:28:29 +02:00
Emilio Cobos Álvarez
e4f978e215
script: Queue a mutation record from CharacterData::append_data. 2018-07-23 19:06:22 +02:00
bors-servo
e80dfd616d
Auto merge of #21230 - servo-wpt-sync:wpt_update_22-07-2018, r=jdm
Sync WPT with upstream (22-07-2018)

Automated downstream sync of changes from upstream as of 22-07-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/21230)
<!-- Reviewable:end -->
2018-07-23 09:00:24 -04:00
WPT Sync Bot
a5af9a106a Update web-platform-tests to revision 3f9178031eec5374c9a7d5709a7e11ba4a1955ed 2018-07-22 22:39:46 -04:00
ergunsh
ae20469636 merge run_wpt.py into run.py 2018-07-22 22:59:59 +03:00
Josh Matthews
c650e6814a Update sync commit. 2018-07-22 12:10:43 -04:00
bors-servo
a97d8b99ef
Auto merge of #21048 - cbrewster:hash_change_history, r=asajeffrey
Track hash changes in session history

<!-- Please describe your changes on the following line: -->
Adds tracking of hash changes in the session history.

---
<!-- 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 #14970 fix #13437 (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/21048)
<!-- Reviewable:end -->
2018-07-21 14:39:25 -04:00
Connor Brewster
61442cce4b Track hash changes in session history
Notify history changed on pushState and scroll to frag
2018-07-21 12:38:51 -06:00
bors-servo
37a73d3bc0
Auto merge of #21213 - servo:android-wpt, r=nox+jgraham
Add some support for WPT tests in an Android emulator through WebDriver

This succeeds on my machine:

`./mach test-wpt --product servodriver --binary etc/run_in_headless_android_emulator.py --binary-arg servo-x86 --binary-arg target/i686-linux-android/release/servo.apk /_mozilla/mozilla/DOMParser.html`

<!-- 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/21213)
<!-- Reviewable:end -->
2018-07-20 18:53:23 -04:00
Simon Sapin
2b5bba6f12 servodriver: increase browser’s init_timeout 2018-07-20 18:13:59 +02:00
bors-servo
1a9943d736
Auto merge of #21216 - Eijebong:parking_lot, r=emilio
Update parking_lot to 0.6

<!-- 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/21216)
<!-- Reviewable:end -->
2018-07-20 10:34:57 -04:00