Commit graph

1854 commits

Author SHA1 Message Date
bors-servo
aaca4543fc
Auto merge of #29235 - servo:better-exceptions, r=jdm
Stringify unknown JavaScript objects in global exception handlers

When turning DOM exceptions into `ErrorInfo` always try to stringify
the JavaScript value, even if it's an object that isn't a `DOMException`
or native exception.  This means that exceptions that extend the `Error`
prototype are now stringified. The result is that test output for WPT
global assertion failures is more useful. For instance for the test
include-frames-from-child-same-origin-grandchild.sub.html:

Before:
```
uncaught exception: unknown (can't convert to string)
```

After:
```
uncaught exception: Error: assert_equals: expected 4 but got 3
```
---

<!-- 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] There are tests for these changes.
2023-01-17 17:16:45 +01:00
Martin Robinson
e68ebd2617 Stringify unknown JavaScript objects in global exception handlers
When turning DOM exceptions into `ErrorInfo` always try to stringify
the JavaScript value, even if it's an object that isn't a `DOMException`
or native exception.  This means that exceptions that extend the `Error`
prototype are now stringified. The result is that test output for WPT
global assertion failures is more useful. For instance for the test
include-frames-from-child-same-origin-grandchild.sub.html:

Before:
```
uncaught exception: unknown (can't convert to string)
```

After:
```
uncaught exception: Error: assert_equals: expected 4 but got 3
```
2023-01-12 19:57:51 +01:00
WPT Sync Bot
fb586f68cc Update web-platform-tests to revision b'8ff38c54ff3fab31f862570a38e73755785ba7ee' 2023-01-11 02:40:26 +00:00
WPT Sync Bot
71255b8ef7 Update web-platform-tests to revision b'8e8075e9b5d932def46c3e36f41435baa9726a2f' 2023-01-09 01:36:13 +00:00
WPT Sync Bot
fd56698ec7 Update web-platform-tests to revision b'421155a1c8752a36b465e62f466b18f821190e08' 2023-01-08 01:57:36 +00:00
WPT Sync Bot
fe5988549d Update web-platform-tests to revision b'f6ca9770e448b058b51b46ada9c257acb39c68fb' 2022-12-29 01:37:51 +00:00
WPT Sync Bot
81ce957720 Update web-platform-tests to revision b'2a23f5b2388fc73716c6c4abefbfd6e1cc1cf35d' 2022-12-26 01:35:18 +00:00
WPT Sync Bot
a04daa7e71 Update web-platform-tests to revision b'e64f8298db78f39737eefedf5f59b99ba98d309b' 2022-12-24 01:30:45 +00:00
WPT Sync Bot
4e2c1b7804 Update web-platform-tests to revision b'7c349a39c8b89de423a60c7ef461f9f47f4e5821' 2022-12-19 01:20:21 +00:00
WPT Sync Bot
6337336fab Update web-platform-tests to revision b'4a4653e088039aec186d6dc1d488120d77695c3a' 2022-12-11 01:19:52 +00:00
WPT Sync Bot
274846e69e Update web-platform-tests to revision b'b7c1d80f991820c17aaae0477052c30d7f699eba' 2022-11-30 01:48:52 +00:00
WPT Sync Bot
831ab387a5 Update web-platform-tests to revision b'9be67046d1f0d57d0d4fba089f151ef044572f5d' 2022-11-26 01:29:07 +00:00
WPT Sync Bot
4031d79cea Update web-platform-tests to revision b'4435c35d9085ed2be61e64d0093b8e1b0e7a877b' 2022-11-25 01:25:18 +00:00
bors-servo
901b76297d
Auto merge of #29079 - jdm:sm107, r=jdm
Upgrade to spidermonkey 107

This successfully loads servo.org and google.com on macOS, so that means it's time for tests!
2022-11-23 10:05:42 -05:00
Josh Matthews
b5c142f692 Update test results. 2022-11-23 10:04:52 -05:00
WPT Sync Bot
22c54a8ce0 Update web-platform-tests to revision b'e89b6eb4952b217c1a7b6540b0fe2613b0b09c54' 2022-11-21 01:23:19 +00:00
WPT Sync Bot
8f33a04929 Update web-platform-tests to revision b'e89b6eb4952b217c1a7b6540b0fe2613b0b09c54' 2022-11-20 01:27:11 +00:00
WPT Sync Bot
a1db4c746d Update web-platform-tests to revision b'099ab08227717e000b444ff560e93f96b49e05d7' 2022-11-17 01:25:16 +00:00
WPT Sync Bot
de009ea427 Update web-platform-tests to revision b'f7c921b0bcddaf3865eb4c36788ce0db61750035' 2022-11-15 01:23:14 +00:00
WPT Sync Bot
57b85533c2 Update web-platform-tests to revision b'a6e9e432ca1b26cdf30b08f9de038b85a215361d' 2022-11-13 01:34:32 +00:00
WPT Sync Bot
1c047e9418 Update web-platform-tests to revision b'a6e9e432ca1b26cdf30b08f9de038b85a215361d' 2022-11-12 01:33:42 +00:00
WPT Sync Bot
9ed042224a Update web-platform-tests to revision b'0802d8bd01e17178d9cd2355e6fbaf3c098e7953' 2022-11-11 01:34:11 +00:00
WPT Sync Bot
df68c4e5d1 Update web-platform-tests to revision b'b728032f59a396243864b0f8584e7211e3632005' 2022-11-10 01:27:28 +00:00
WPT Sync Bot
58e8ee674b Update web-platform-tests to revision b'468d01bbd84da2babf265c6af46947be68713440' 2022-01-17 16:30:29 +09:00
yvt
7cda260fcb test: update expectations 2021-07-09 22:34:36 +09:00
Vincent Ricard
a627dde0d0 Port some code to Python3 2021-02-18 09:35:46 -05:00
Josh Matthews
f73370088b Update WPT results. 2021-02-18 09:35:46 -05:00
WPT Sync Bot
353491d14a Update web-platform-tests to revision 026cb8c5c7f63871853f21b053f49940be780146 2021-01-26 10:42:35 +00:00
WPT Sync Bot
9320df4683 Update web-platform-tests to revision 35077458592d7cf9349840211759aa85f20cd20c 2021-01-24 10:46:36 +00:00
Jonathan Kingston
80902ee716 Update test expected outcomes 2020-11-25 18:58:19 +00:00
Jonathan Kingston
35eaf65974 Moving bluetooth tests to https. 2020-11-25 18:30:50 +00:00
WPT Sync Bot
bbe2a877b1 Update web-platform-tests to revision e77eef74c0b20028b8d86260ef81ffe1f9688027 2020-11-02 10:44:01 +00:00
WPT Sync Bot
c985ec123e Update web-platform-tests to revision 36a5c51e57ac8808bbaf52dd495783fd926b7547 2020-11-01 10:22:55 +00:00
WPT Sync Bot
a3410e195f Update web-platform-tests to revision 3cc9e82a7c1a53423097f3d581d4bfc185f56d18 2020-08-08 10:39:34 +00:00
WPT Sync Bot
92d17be4fe Update web-platform-tests to revision 5fe9625d7445a6b88640f830d90dd5489c4bda05 2020-08-06 10:31:21 +00:00
Alan Jeffrey
c4dd171dfb Add XRLayerEvent 2020-08-05 18:07:54 -05:00
WPT Sync Bot
f1ca6b4be4 Update web-platform-tests to revision ad99a9e949c6006cc0f609501de77a0edb1e593a 2020-08-05 10:31:54 +00:00
Alan Jeffrey
a2fa556315 Add tests for layer creation failing 2020-08-04 15:41:51 -05:00
bors-servo
286793c2d2
Auto merge of #27487 - asajeffrey:webxr-update-webidl, r=Manishearth,jdm
WebXR Layers update WebIDL

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

Updates the WebXR Layers WebIDL. Implements the "update the pending layers state" algorithm from the layer spec.

---
<!-- 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] There are updated 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. -->
2020-08-04 09:55:05 -04:00
Alan Jeffrey
9e55c87f63 Updated wpt 2020-08-04 08:53:35 -05:00
WPT Sync Bot
60e5c9a277 Update web-platform-tests to revision 43899f53083e4e6285d7a55d66745d8f6518950d 2020-08-01 10:36:19 +00:00
WPT Sync Bot
2863a4690c Update web-platform-tests to revision 237fce47cec56baeb64392506c0c21c0c9615e18 2020-07-15 11:17:31 +00:00
Josh Matthews
e6cdfddea6 dom: Hide debugging extension methods behind a pref. 2020-07-14 22:39:59 -04:00
Alan Jeffrey
a6da5dccd1 Added a test for sessionavailable 2020-07-10 17:13:08 -05:00
bors-servo
8916a42180
Auto merge of #27163 - alarsyo:23053-layout-queries-disconnected-frames-panic, r=jdm
Return Option for Window's layout channel

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

`Window::layout_chan()` now returns an `Option<Sender<Msg>>`, returning `None` if the window is dead.

FIX #26969
FIX #26429
FIX #21208
FIX #19092
FIX #22559
FIX #22584
FIX #22652

---
<!-- 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 #23053

<!-- 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. -->

This is my first contribution, I'm trying to figure things out!

This fix passes the test case shown in #23053, however I don't know what the behavior should be in `Document` and `ScriptThread` if `Window::is_alive()` is false : simply ignore it, don't do anything ? Or is this something that should not happen now that we return false in `Window::force_reflow()` ?

I'm not sure about the directory where the test case should go, any advice?
2020-07-04 01:30:27 -04:00
Antoine Martin
36fbbea2b5 Return Option for Window's layout channel 2020-07-03 20:00:26 +02:00
Manish Goregaokar
19f5edf194 Update WPT 2020-07-02 22:47:29 -07:00
bors-servo
6659e9004d
Auto merge of #27032 - mrobinson:fractional-iteration, r=jdm
animations: Finish support for fractional iteration counts

This change also improves support for creating animations with negative
delays, as that is necessary to test support for fractional iteration
lengths.

Fixes: #14858

<!-- 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 #14858
- [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. -->
2020-06-24 15:54:27 -04:00
Martin Robinson
954b5177f0 animations: Finish support for fractional iteration counts
This change also improves support for creating animations with negative
delays, as that is necessary to test support for fractional iteration
lengths.

This change also adjusts existing Servo animation tests which assumed
that advancing to the exact moment of the end of the animation would be
considered "before the end." With this change, this moment is "after the
end."

Fixes: #14858
2020-06-24 17:19:25 +02:00
bors-servo
1dc41b3277
Auto merge of #26983 - jdm:websocket-panic, r=nox
Silently ignore failures to queue websocket tasks

- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #26977
- [x] There are tests for these changes
2020-06-22 08:15:48 -04:00