Commit graph

29385 commits

Author SHA1 Message Date
Anthony Ramine
edd3824519 Properly fail in event_play.html 2017-09-29 18:53:10 +02:00
Anthony Ramine
4b2c4aead4 Properly fail in event_pause.html 2017-09-29 18:53:06 +02:00
Anthony Ramine
7b7f66f210 Properly fail in event_order_loadedmetadata_loadeddata.html 2017-09-29 17:58:16 +02:00
Anthony Ramine
60b5b77ccb Properly fail in event_order_canplay_playing.html 2017-09-29 17:55:31 +02:00
Anthony Ramine
026130094d Properly fail in event_order_canplay_canplaythrough.html 2017-09-29 17:12:29 +02:00
Anthony Ramine
59c56de103 Properly fail in event_loadedmetadata.html 2017-09-29 17:05:40 +02:00
Anthony Ramine
9f71ac9155 Properly use test() in networkState_during_progress.html 2017-09-29 16:58:44 +02:00
Anthony Ramine
2b64c3e6c0 Properly use test() in event_order_loadstart_progress.html 2017-09-29 16:55:11 +02:00
Anthony Ramine
7bab9caafd Properly use test() in event_progress.html 2017-09-29 16:51:55 +02:00
bors-servo
8732f6de69 Auto merge of #18675 - servo:DETERMINISTIC-ALL-THE-THINGS, r=bzbarsky
Make more media tests not timeout

<!-- 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/18675)
<!-- Reviewable:end -->
2017-09-29 08:38:51 -05:00
Anthony Ramine
37f5f52049 Properly fail in event_loadedmetadata_noautoplay.html 2017-09-29 15:37:10 +02:00
Anthony Ramine
7e06d2a1be Properly fail in event_loadeddata_noautoplay.html 2017-09-29 15:37:01 +02:00
Anthony Ramine
3185a7917e Fix some shortcomings in event_loadeddata.html
Variable 'v' was undefined in second test, and both tests were missing an onerror event handler.
2017-09-29 15:36:57 +02:00
Anthony Ramine
c0040b27fd Properly fail in event_canplaythrough_noautoplay.html 2017-09-29 15:30:04 +02:00
Anthony Ramine
8a3afe35fe Properly fail in event_canplaythrough.html 2017-09-29 15:29:02 +02:00
Anthony Ramine
4923045353 Properly fail in event_canplay_noautoplay.html 2017-09-29 15:28:03 +02:00
Anthony Ramine
bf3d6948c1 Properly fail in event_canplay.html 2017-09-29 15:27:12 +02:00
Anthony Ramine
0e56b79e78 Properly fail in /html/semantics/embedded-content/media-elements/error-codes/error.html 2017-09-29 14:25:13 +02:00
Anthony Ramine
83488a20f1 Properly fail in audio_loop_base.html 2017-09-29 14:23:14 +02:00
bors-servo
16b6686bbb Auto merge of #18672 - servo:DETERMINISTIC-ALL-THE-THINGS, r=SimonSapin
Fix 3 intermittent tests

<!-- 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/18672)
<!-- Reviewable:end -->
2017-09-29 02:46:31 -05:00
Anthony Ramine
53e2a4449a Make networkState_during_progress.html deterministic (fixes servo/servo#17954) 2017-09-29 09:41:45 +02:00
Anthony Ramine
abcf91e5c6 Make event_order_loadstart_progress.htm deterministic (fixes servo/servo#18289) 2017-09-29 09:39:53 +02:00
Anthony Ramine
b489d0c159 Make event_progress.html deterministic (fixes servo/servo#18427) 2017-09-29 09:39:47 +02:00
bors-servo
c6f4ced45c Auto merge of #18667 - Manishearth:bindingsup, r=emilio
Update debug bindings for removal of mFrameRefCnt

r=emilio from https://bugzilla.mozilla.org/show_bug.cgi?id=1403808

<!-- 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/18667)
<!-- Reviewable:end -->
2017-09-28 20:15:51 -05:00
bors-servo
5d2ac4aa2e Auto merge of #18668 - bholley:mprotect_diagnostics, r=Manishearth
Add mprotect diagnostics for HashMap crash

https://bugzilla.mozilla.org/show_bug.cgi?id=1403397

<!-- 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/18668)
<!-- Reviewable:end -->
2017-09-28 19:10:46 -05:00
bors-servo
9bf588e76a Auto merge of #18664 - canaltinova:gradient-default-direction, r=emilio
stylo: Don't serialize default position on -moz- prefixed linear gradient

Normally, we should not serialize if the line direction points downwards. Unprefixed and
-webkit- prefixed syntaxes use only Keyword enum for line direction and we check them already.
But -moz- prefixed linear gradients can store position too. Therefore it's stored inside
`LineDirection::MozPosition` and we should check that for consistency between other gradients.

---
<!-- 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 [Bug 1396102](https://bugzilla.mozilla.org/show_bug.cgi?id=1396102)

<!-- 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/18664)
<!-- Reviewable:end -->
2017-09-28 17:07:18 -05:00
Bobby Holley
abd408433f Add a testing API.
This will allow us to verify the entire detection pipeline in real nightly
builds, which will give us confidence that real heap corruption will be
detected and reported properly.

MozReview-Commit-ID: 43Fp2HT8RYy
2017-09-28 15:06:50 -07:00
Bobby Holley
039fe176b9 Protect the hashmaps outside of rebuilds.
MozReview-Commit-ID: KACmfw4pZY2
2017-09-28 15:06:49 -07:00
Bobby Holley
ef042899d2 Round hashglobe allocations up to the nearest page size.
MozReview-Commit-ID: 34KFtcwCkBB
2017-09-28 15:06:48 -07:00
Bobby Holley
98f370130d Semantics for ProtectedHashMap.
MozReview-Commit-ID: K0m65uZi7iw
2017-09-28 14:13:01 -07:00
Bobby Holley
e2c0ca5110 Update bindings.
MozReview-Commit-ID: 8hyaJxfSi9L
2017-09-28 14:12:56 -07:00
Nazım Can Altınova
dfd12d78c6 stylo: Don't serialize default position on -moz- prefixed linear gradient
Normally, we should not serialize if the line direction points downwards. Unprefixed and
-webkit- prefixed syntaxes use only Keyword enum for line direction and we check them already.
But -moz- prefixed linear gradients can store position too. Therefore it's stored inside
`LineDirection::MozPosition` and we should check that for consistency between other gradients.
2017-09-29 00:06:18 +03:00
Manish Goregaokar
b19b9b78db Update debug bindings for removal of mFrameRefCnt 2017-09-28 13:19:51 -07:00
bors-servo
24d75910ae Auto merge of #18666 - emilio:mathml-is-not-fun, r=bholley
style: Avoid creating element data in Servo_ResolvePseudoStyle.

The reason the patch in bug 1402285 doesn't work is that we call this function
multiple times with the same element. This fixes it.

Bug: 1403465
Reviewed-by: bholley
MozReview-Commit-ID: Ko9zirCOzTR

<!-- 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/18666)
<!-- Reviewable:end -->
2017-09-28 15:17:21 -05:00
Emilio Cobos Álvarez
8789b91bd9
style: Avoid creating element data in Servo_ResolvePseudoStyle.
The reason the patch in bug 1402285 doesn't work is that we call this function
multiple times with the same element. This fixes it.

Bug: 1403465
Reviewed-by: bholley
MozReview-Commit-ID: Ko9zirCOzTR
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-09-28 22:16:52 +02:00
bors-servo
ffa03380ca Auto merge of #18580 - MortimerGoro:webgl_active_texture, r=jdm
Associate WebGL textures with texture units

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

Currently `bound_texture_2d` and `bound_texture_cube_map` fields are used to restore texture states and to get the current bindings in GetParams(...). But as soon as active texture is changed all the values can become dirty, leading to broken textures in some demos or invalid getParam(...) call results.

This PR implements the texture binding association with the texture units.

---
<!-- 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: -->
- [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/18580)
<!-- Reviewable:end -->
2017-09-28 14:12:06 -05:00
Imanol Fernandez
b9710a59b5 Associate bound WebGLTextures with texture units. 2017-09-28 18:52:29 +02:00
bors-servo
056c085119 Auto merge of #18663 - servo:ROOT-ALL-THE-THINGS, r=jdm
Make DomRoot<T> a type alias of a more general Root<T> type

<!-- 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/18663)
<!-- Reviewable:end -->
2017-09-28 10:45:11 -05:00
bors-servo
2c73736f7d Auto merge of #18660 - upsuper:var-sub-inherit, r=emilio
Don't use inherited custom properties for substitution

<!-- Please describe your changes on the following line: -->
Custom properties from parent node has been considered in early stage of cascading them (in [`custom_properties::cascade`](01adcf69d7/components/style/custom_properties.rs (L461-L469))), and there is nothing in the spec stating that substitution should take inherited values into consideration when the value is invalid in the current node. Actually, there is a web-platform test explicitly checks that inherited value is not taken when the value is computed to invalid.

This would fix [bug 1402217](https://bugzilla.mozilla.org/show_bug.cgi?id=1402217).

---
<!-- 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
- [ ] 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/18660)
<!-- Reviewable:end -->
2017-09-28 09:06:48 -05:00
Anthony Ramine
dee38475b8 Make DomRoot<T> a type alias of a more general Root<T> type
This Root<T> relies on the concept of a stable trace object, which doesn't
move for the whole lifetime of the T value. For safety reasons, T must be 'static.

The only implementor of StableTraceObject for now is Dom<T>.
2017-09-28 15:42:43 +02:00
Xidorn Quan
dba19f53f5 Don't use inherited custom properties for substitution 2017-09-28 19:46:53 +10:00
bors-servo
7574d26476 Auto merge of #18659 - emilio:unship-stuff, r=xidorn
stylo: unship some stuff.

<!-- 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/18659)
<!-- Reviewable:end -->
2017-09-28 03:29:09 -05:00
Emilio Cobos Álvarez
f6a350b725
style: update bindings. 2017-09-28 10:03:58 +02:00
Emilio Cobos Álvarez
0ead078aa0
style: Simplify and remove some more code.
Bug: 1396073
Reviewed-by: xidorn
MozReview-Commit-ID: Ec9pfQw7U6W
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-09-28 09:58:45 +02:00
Emilio Cobos Álvarez
87dc00d54f
style: Remove :-moz-empty-except-children-with-local-name.
<applet> is not a thing anymore, and that selector in our UA sheet will never
match anyway, since an <applet> element will never have the BROKEN state.

Bug: 1396073
Reviewed-by: xidorn
MozReview-Commit-ID: 7UOMKOv55uJ
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-09-28 09:58:19 +02:00
Emilio Cobos Álvarez
abcd92ba9e
style: Hide :-moz-devtools-highlighted from anywhere but UA sheets.
It's always used from a UA sheet already.

Bug: 1396073
Reviewed-by: xidorn
MozReview-Commit-ID: J3poQuTD1C7
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-09-28 09:57:55 +02:00
bors-servo
01adcf69d7 Auto merge of #18658 - canaltinova:font-size-quirk, r=Manishearth
stylo: Handle quirks mode on font base sizes

We should use different font size mapping for quirks mode.

---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix [Bug 1401322](https://bugzilla.mozilla.org/show_bug.cgi?id=1401322)

<!-- 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/18658)
<!-- Reviewable:end -->
2017-09-27 16:56:26 -05:00
Nazım Can Altınova
6ac5e9c3fa stylo: Handle quirks mode on font base sizes 2017-09-28 00:54:30 +03:00
bors-servo
35ad0316f6 Auto merge of #18656 - mystor:bug1403545, r=emilio
Stop allocating in fmt::Write for nsA[C]String

<!-- Please describe your changes on the following line: -->
This is the servo side of gecko bug 1403545 https://bugzilla.mozilla.org/show_bug.cgi?id=1403545. It's fixing a stylo perf regression caused by #18642

It has already been reviewed on the gecko side by froydnj

<!-- 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/18656)
<!-- Reviewable:end -->
2017-09-27 13:00:54 -05:00
Michael Layzell
47df1375c5 Stop allocating in fmt::Write for nsA[C]String 2017-09-27 13:51:02 -04:00