Commit graph

9347 commits

Author SHA1 Message Date
bors-servo
c8d0548824
Auto merge of #27255 - avr1254:master, r=jdm
Implemented HTMLFormElement.relList

<!-- Please describe your changes on the following line: -->
Updated the tests to reflect addition of rel and relList for HTMLFormElement, as well as porting those code snippets from HTMLAnchorElement.

---
<!-- 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 #27252  (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. -->
2020-07-14 12:49:13 -04:00
Arjun Ramachandrula
00f69dd50f Ported Rel, SetRel, and RelList from HTMLAnchorElement into HTMLForElement
Updated tests to reflect rel and relList in HTMLFormElement

Added AttrValue as style

Added attr

Updated outstanding test cases

Fixed formatting. Hopefully this time works

Implemented HTMLFormElement.relList
2020-07-14 12:37:57 -04:00
Josh Matthews
2acd295ea6 dom: Implement Navigator.languages. 2020-07-14 11:50:59 -04:00
WPT Sync Bot
8d9615fa41 Update web-platform-tests to revision 9f039866171222befc3c77beaae994829554bdf5 2020-07-14 10:56:09 +00:00
WPT Sync Bot
f2d9c37be9 Update web-platform-tests to revision e4be48985c4770ea68d2474a080290be4986f8a0 2020-07-13 10:26:43 +00:00
WPT Sync Bot
0640476cc1 Update web-platform-tests to revision 29ccbdbf25c92cf783a1c3a804d723382fb6a50a 2020-07-12 10:23:20 +00:00
Josh Matthews
fd37b94731
Update 2020 flexbox failure. 2020-07-11 12:13:23 -04:00
Josh Matthews
e2c2968923
Add 2020 MQL failure. 2020-07-11 12:10:41 -04:00
WPT Sync Bot
1a3fdf7a13 Update web-platform-tests to revision e91d7d8c9a1f14438e44000dcd05ce6e658e4ae5 2020-07-11 10:36:48 +00:00
bors-servo
a77a1f7bf4
Auto merge of #27235 - asajeffrey:webxr-sessionavailable, r=jdm
Add a sessionavailable event that allows content to enter an XR session without a user gesture

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

This allows servo to implement immersive web apps. https://immersive-web.github.io/webxr/#application-launch

---
<!-- 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 do not require tests because I'm not sure we should have a WPT for something this non-standard.

<!-- 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-07-10 18:14:10 -04:00
Alan Jeffrey
a6da5dccd1 Added a test for sessionavailable 2020-07-10 17:13:08 -05:00
Josh Matthews
f84d03b070 Merge loading and updating manifest states when syncing. 2020-07-10 13:46:05 -04:00
Josh Matthews
aec3ce801b
Add missing test path for manifest during WPT syncing. 2020-07-10 10:40:52 -04:00
Josh Matthews
63528f6fdf dom: Generate iterator symbol for interfaces with indexed getters. 2020-07-09 23:22:48 -04:00
Josh Matthews
aa80f91399 dom: Use pref macro for IDL conditional guards. 2020-07-09 23:22:48 -04:00
Josh Matthews
76198e40a8 net: Replace ws-rs with async-tungstenite. 2020-07-08 10:33:17 -04:00
WPT Sync Bot
e447ba9856 Update web-platform-tests to revision e3698c7bb3c309df69134e9bc0a375f00535e226 2020-07-07 10:52:27 +00:00
bors-servo
22a7522a04
Auto merge of #27168 - jdm:gl-fake-context-lost, r=Manishearth
Add stub isContextLost API.

We don't support losing contexts yet, so it's not lying to say that the context is never lost.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #27116
- [x] There are tests for these changes
2020-07-06 14:56:50 -04:00
WPT Sync Bot
1bc0233011 Update web-platform-tests to revision aef9da08fe2fa0b9fa473e2e126cb3cf29fae43e 2020-07-06 10:47:57 +00:00
Maxim Tsoy
7fd903c214 Remove invalid event on a form element 2020-07-05 00:12:08 +02:00
WPT Sync Bot
091d6893e5 Update web-platform-tests to revision ac402deb6e9d1a35976009d3ecd5d709bbdd89c7 2020-07-04 10:42:29 +00: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
bors-servo
026760a17b
Auto merge of #27169 - alarsyo:mach-test-cargo-target-dir, r=jdm
Mach test cargo target dir

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

<!-- Either: -->
- [X] These changes do not require tests because they're about tooling

<!-- 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 change allows launching tests this way:

```sh
CARGO_TARGET_DIR=other-dir ./mach test-wpt ...
```

The build and check commands already check for the presence of the `CARGO_TARGET_DIR` variable, but that wasn't the case for wpt tests. This resulted in an error about the `servo` executable not being found in `target/debug/servo`.
2020-07-03 23:30:40 -04:00
Antoine Martin
9f224c41f7 Use CARGO_TARGET_DIR in tests 2020-07-04 01:01:25 +02:00
Josh Matthews
795560ad52 webgl: Add stub isContextLost API. 2020-07-03 14:47:06 -04:00
Antoine Martin
36fbbea2b5 Return Option for Window's layout channel 2020-07-03 20:00:26 +02:00
bors-servo
8800452e34
Auto merge of #27104 - utsavoza:ugo/issue-27030/28-06-2020, r=gterzian
Update referrer computation

The PR updates the request's referrer computation in consideration with the recent changes in [w3c/webappsec-referrer-policy#135](https://github.com/w3c/webappsec-referrer-policy/pull/135).

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #27030 and fix #14505
- [x] There are tests for these changes
2020-07-03 11:39:07 -04:00
Josh Matthews
ba2986d694
Remove intermittent crash. 2020-07-03 09:48:12 -04:00
WPT Sync Bot
514f2c90c9 Update web-platform-tests to revision 67a169be0bd98bfdb645a8218fdfb0bc2efe0f18 2020-07-03 10:59:27 +00:00
bors-servo
4504eebdc3
Auto merge of #27143 - Manishearth:streamnodes, r=ferjm
Implement MediaStreamAudioDestinationNode, MediaStreamAudioSourceNode, MediaStreamTrackAudioSourceNode

Progress in https://github.com/servo/servo/issues/26097

This is a draft since we need the data channels stuff to land first

(also I need to make sure we're passing WPT)
2020-07-03 01:48:52 -04:00
Manish Goregaokar
3b3e2e0e38 Add loopback html test 2020-07-02 22:47:29 -07:00
Manish Goregaokar
19f5edf194 Update WPT 2020-07-02 22:47:29 -07:00
bors-servo
4d60fd8ea9
Auto merge of #27150 - servo-wpt-sync:wpt_update_02-07-2020, r=jdm
Sync WPT with upstream (02-07-2020)

Automated downstream sync of changes from upstream as of 02-07-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-07-02 11:00:58 -04:00
bors-servo
3bc4a935f8
Auto merge of #27100 - muodov:master, r=gterzian
Implement HTMLFormElement.requestSubmit()

<!-- Please describe your changes on the following line: -->
This PR contains an implementation of [HTMLFormElement.requestSubmit()](https://html.spec.whatwg.org/multipage/forms.html#dom-form-requestsubmit)

This is literally my first hundred lines of Rust code, so if I crossed a few sacred lines here and there, please go easy on me :)

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

<!-- Either: -->
- [x] [WPT tests](https://github.com/servo/servo/blob/master/tests/wpt/web-platform-tests/html/semantics/forms/the-form-element/form-requestsubmit.html) for these changes
There are two tests that still fail because we don't support `:invalid` CSS selector (see #10781). I verified that they pass if you change them to not use `:invalid`. Should be unlocked by #26729.

<!-- 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-07-02 09:54:47 -04:00
Josh Matthews
5cb6107495
Remove 2020 failure. 2020-07-02 09:03:06 -04:00
WPT Sync Bot
c80439a8ff Update web-platform-tests to revision 99a09c73e7f1d7b19ec4be2eb8ce2d3bebf52245 2020-07-02 10:54:07 +00:00
Maxim Tsoy
8194da2752 Implement HTMLFormElement.requestSubmit()Also includes a fix for reentrant form submission behavior 2020-07-02 12:33:21 +02:00
Utsav Oza
dd57641987 Propagate referrer policy during about:srcdoc page load 2020-07-02 14:29:27 +05:30
Utsav Oza
310821d3b0 Update referrer computation
Update unit tests for determine_requests_referrer

Update wpt metadata

Add missing spec links
2020-07-02 14:29:26 +05:30
Josh Matthews
d1718301c5
Add 2020 flexbox failure. 2020-07-01 11:55:53 -04:00
WPT Sync Bot
b435224233 Update web-platform-tests to revision b89d7ff93b5076d389404f2a062b83e73754307f 2020-07-01 11:14:37 +00:00
bors-servo
ee46561b78
Auto merge of #27127 - servo-wpt-sync:wpt_update_30-06-2020, r=jdm
Sync WPT with upstream (30-06-2020)

Automated downstream sync of changes from upstream as of 30-06-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-06-30 17:22:43 -04:00
Josh Matthews
bbf540dc27
Add 2020 timeout. 2020-06-30 14:11:59 -04:00
bors-servo
4b034ede46
Auto merge of #26752 - ferjm:datachannel, r=Manishearth
WebRTC data channels support

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #26212

This depends on https://github.com/servo/media/pull/350 and contains the basic pieces to make a  simple test like https://ferjm.github.io/samples/src/content/datachannel/basic/ work
2020-06-30 13:53:32 -04:00
Fernando Jiménez Moreno
27f439a71c Hide interfaces behind webrtc pref 2020-06-30 15:58:39 +02:00
Fernando Jiménez Moreno
a4f1bc2efc Update test expectations 2020-06-30 15:19:40 +02:00
WPT Sync Bot
f397fef6e3 Update web-platform-tests to revision 1cb9daef513ee0c7e82a6689a6248946d0c580c0 2020-06-30 10:42:53 +00:00
Paul Rouget
7653c6c9fc update keyboard-types crate 2020-06-29 10:27:54 +02:00
WPT Sync Bot
f0b9f552c9 Update web-platform-tests to revision c1518503b6d1a94bdd5bf6426b8279293b2325d2 2020-06-28 10:40:48 +00:00
Josh Matthews
0ab8826995
Add expected linux failure. 2020-06-27 11:16:20 -04:00