Commit graph

37920 commits

Author SHA1 Message Date
Fernando Jiménez Moreno
ef02196dd8 More detach shadow changes 2019-07-22 17:40:17 +02:00
Fernando Jiménez Moreno
d4be72d386 Naming and minor JS nits fixed 2019-07-22 17:40:17 +02:00
Fernando Jiménez Moreno
36aeae2eae Use formatTime for initial currentTime and duration values 2019-07-22 17:40:16 +02:00
Fernando Jiménez Moreno
04a40138d0 Use Number.isFinite() to check position percentage 2019-07-22 17:40:16 +02:00
Fernando Jiménez Moreno
87bee50c20 Add span for position text node 2019-07-22 17:40:16 +02:00
Fernando Jiménez Moreno
cf9f46ba35 Use template literals for 'formatTime' 2019-07-22 17:40:16 +02:00
Fernando Jiménez Moreno
a8419c4a86 Fix media-controls resources naming 2019-07-22 17:40:16 +02:00
Fernando Jiménez Moreno
1f3c879a85 Detach shadow clean up 2019-07-22 17:40:16 +02:00
Fernando Jiménez Moreno
f8ae394cad Remove extra hash-map lookup unregistering media controls 2019-07-22 17:40:16 +02:00
Fernando Jiménez Moreno
5aba6d5bbb Update test expectations 2019-07-22 17:40:16 +02:00
Fernando Jiménez Moreno
5c39097edd Remove unused ShadowRoot constructor argument 2019-07-22 17:40:16 +02:00
Fernando Jiménez Moreno
1621076af7 Revert change to render media controls breaking inline layout 2019-07-22 17:40:16 +02:00
Fernando Jiménez Moreno
e344203c11 Only allow UA widgets as children of media elements
Do not allow pseudo-elements for replaced elements
2019-07-22 17:40:15 +02:00
Fernando Jiménez Moreno
618f528344 Render audio controls 2019-07-22 17:40:15 +02:00
Fernando Jiménez Moreno
428d3b896c Set initial controls state based on media element state 2019-07-22 17:40:15 +02:00
Fernando Jiménez Moreno
23def72787 Implement method to remove media controls 2019-07-22 17:40:15 +02:00
Fernando Jiménez Moreno
142d42a833 Revert changes to load media styles as UA styles
Revert changes to set chrome url of user agent widget styles
2019-07-22 17:40:15 +02:00
Fernando Jiménez Moreno
82339a9295 Do not try to render controls if they are already rendered 2019-07-22 17:40:15 +02:00
Fernando Jiménez Moreno
3a99c6ba6a Do not render controls until we have metadata 2019-07-22 17:40:15 +02:00
Fernando Jiménez Moreno
f16cf2d6a4 Expose HTMLMediaElement.controls 2019-07-22 17:40:15 +02:00
Fernando Jiménez Moreno
eccf738b09 Switch to dark background and white icons 2019-07-22 17:40:15 +02:00
Fernando Jiménez Moreno
9496dff529 Anchor controls inside bottom of video element 2019-07-22 17:40:14 +02:00
Fernando Jiménez Moreno
8a4d54af0b Add progress percentage as input range 2019-07-22 17:40:14 +02:00
Fernando Jiménez Moreno
aad5b23e2b Use input instead of change for volume control 2019-07-22 17:40:14 +02:00
Fernando Jiménez Moreno
a664449681 Media UI basic functionality 2019-07-22 17:40:14 +02:00
Fernando Jiménez Moreno
1c02fc94a8 Barebones media UI 2019-07-22 17:40:14 +02:00
Fernando Jiménez Moreno
4f6b86f9f5 Render media controls 2019-07-22 17:40:14 +02:00
bors-servo
75275965f0
Auto merge of #23585 - georgeroman:tag_name_selector_for_find_element_wd_commands, r=jdm
Implement tag name selector for FindElement and related WebDriver commands

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

<!-- 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/23585)
<!-- Reviewable:end -->
2019-07-21 09:44:26 -04:00
George Roman
bf6ea64e8c Implement tag name selector for FindElementsFromElement WebDriver command 2019-07-21 15:57:26 +03:00
George Roman
616a81fb27 Implement tag name selector for FindElementFromElement WebDriver command 2019-07-21 15:56:24 +03:00
George Roman
dec73e4cea Implement tag name selector for FindElements WebDriver command 2019-07-21 15:56:23 +03:00
George Roman
7d5b324bda Implement tag name selector for FindElement WebDriver command 2019-07-21 15:55:19 +03:00
bors-servo
4128a38936
Auto merge of #23819 - larsbergstrom:update_windows_readme, r=jdm
Fix Python and gstreamer instructions for Windows

<!-- Please describe your changes on the following line: -->
Improved the README.md to address missing information for bootstrapping a Windows build.

---
<!-- 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
- [x ] These changes do not require tests because README 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. -->

<!-- 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/23819)
<!-- Reviewable:end -->
2019-07-21 00:22:47 -04:00
Lars Bergstrom
c04d32da13 Fix Python and gstreamer instructions for Windows 2019-07-20 19:44:35 -05:00
bors-servo
510ffde3f1
Auto merge of #23808 - georgeroman:fix_wdspec_setup_errors, r=jdm
Add a HOST_FILE env variable and fix the wdspec setup errors that it causes

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

<!-- 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/23808)
<!-- Reviewable:end -->
2019-07-20 20:35:35 -04:00
bors-servo
d34bde34f1
Auto merge of #23815 - servo-wpt-sync:wpt_update_20-07-2019, r=servo-wpt-sync
Sync WPT with upstream (20-07-2019)

Automated downstream sync of changes from upstream as of 20-07-2019.
[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/23815)
<!-- Reviewable:end -->
2019-07-20 15:39:04 -04:00
WPT Sync Bot
dc1f7ba3ec Update web-platform-tests to revision 6fa9de7201cd41564d02c3edd62365aeb40e171b 2019-07-20 14:47:24 +00:00
George Roman
1c4a35e22b Add a HOST_FILE env variable and fix the wdspec setup errors that it causes 2019-07-20 17:06:50 +03:00
bors-servo
410c3f0260
Auto merge of #23812 - tdelacour:ISSUE-21257, r=jdm
ISSUE-21257: set redirectEnd on PerformanceResourceTiming

<!-- Please describe your changes on the following line: -->
Added the appropriate attribute and setters. Included a Timer struct with a `Drop` function to set this value to zero in error cases. Set the value to `responseEnd` on success. Eliminated tests that now pass.

---
<!-- 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 #21257 (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/23812)
<!-- Reviewable:end -->
2019-07-20 08:49:06 -04:00
bors-servo
60f1ffc5a7
Auto merge of #23801 - paulrouget:alert, r=jdm
Expose javascript:window.alert() to libsimpleservo

<!-- 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/23801)
<!-- Reviewable:end -->
2019-07-19 21:18:42 -04:00
bors-servo
1128f40f4e
Auto merge of #23797 - asajeffrey:webxr-framebuffer, r=Manishearth
Added framebuffer and related attributes to XRWebGLLayer

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

Implement the `framebuffer` attribute of `XRWebGLLayer`.

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

<!-- 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/23797)
<!-- Reviewable:end -->
2019-07-19 18:40:44 -04:00
bors-servo
bb6265b99b
Auto merge of #23783 - angelortiz1007:winrt-servo, r=jdm
Add source module to UWP logging output

Updated  support/hololens/Servo.cpp to use url: google.com

New debug output:
```
RUST: DEBUG - html5ever::tokenizer - got characters None
RUST: DEBUG - script::script_thread - Processing event FromConstellation(ConstellationControlMsg::NavigationResponse).
RUST: DEBUG - html5ever::tokenizer - processing in state RawData(ScriptData)
```

---
<!-- 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 #23755
- [x] These changes do not require tests because we can't automatically test logging output.

<!-- 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/23783)
<!-- Reviewable:end -->
2019-07-19 16:25:48 -04:00
Thomas Delacour
18178fa107
ISSUE-21257: set redirectEnd on PerformanceResourceTiming 2019-07-19 21:36:24 +02:00
bors-servo
31a654893a
Auto merge of #23810 - servo-wpt-sync:wpt_update_19-07-2019, r=servo-wpt-sync
Sync WPT with upstream (19-07-2019)

Automated downstream sync of changes from upstream as of 19-07-2019.
[no-wpt-sync]
2019-07-19 10:54:47 -04:00
WPT Sync Bot
7be3e2f06b Update web-platform-tests to revision 6340a70e8df5e850ea44436b54105f59dd5aa22e 2019-07-19 14:54:30 +00:00
Paul Rouget
3a374b3455 Expose javascript:window.alert() to libsimpleservo 2019-07-19 16:49:26 +02:00
bors-servo
5788e8c050
Auto merge of #23804 - Manishearth:transform-tests, r=asajeffrey
Improve xrRigidTransform_constructor test

It contained an incorrect test attempting to construct a transform that throws. Added tests that check that it throws appropriately.

has r+ from https://github.com/servo/servo/pull/23803, created new PR
due to bug in 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/23804)
<!-- Reviewable:end -->
2019-07-18 21:34:03 -04:00
Alan Jeffrey
23f15c94ef Decoupled DOMErrorName from legacy error codes 2019-07-18 17:16:10 -05:00
Alan Jeffrey
c08ef4cb23 Dead code elimination 2019-07-18 17:16:09 -05:00
Alan Jeffrey
f2766cf6f3 Added wpt webxr tests for XR layer's viewports and framebuffer 2019-07-18 17:16:08 -05:00