Commit graph

41079 commits

Author SHA1 Message Date
bors-servo
0ed0c0d9f0
Auto merge of #26029 - paulrouget:uitask, r=jdm
Set user interactions for tasks

fix #26026

I need help here. Retrieving the interaction flag from the promise handle crashes.

```rust
let interaction = GetPromiseUserInputEventHandlingState(promise);
```

```
Stack trace for thread "ScriptThread PipelineId { namespace_id: PipelineNamespaceId(1), index: PipelineIndex(1) }"
stack backtrace:
   0: backtrace::backtrace::libunwind::trace
             at /Users/paul/.cargo/git/checkouts/backtrace-rs-96ebaf1bcb788384/91a0aa4/src/backtrace/libunwind.rs:86
      backtrace::backtrace::trace_unsynchronized
             at /Users/paul/.cargo/git/checkouts/backtrace-rs-96ebaf1bcb788384/91a0aa4/src/backtrace/mod.rs:66
   1: <servo::backtrace::Print as core::fmt::Debug>::fmt
             at ports/glutin/backtrace.rs:49
   2: <&mut W as core::fmt::Write>::write_fmt
   3: std::io::Write::write_fmt
             at /rustc/45ebd5808afd3df7ba842797c0fcd4447ddf30fb/src/libstd/io/mod.rs:1427
   4: servo::backtrace::print
             at ports/glutin/backtrace.rs:17
   5: servo::install_crash_handler::handler
             at ports/glutin/main2.rs:68
   6: <unknown>
   7: _ZN2JS37GetPromiseUserInputEventHandlingStateENS_6HandleIP8JSObjectEE
             at /Users/paul/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/2392ebc/mozjs/js/src/vm/JSObject.h:106
```
2020-03-26 09:15:00 -04:00
Anthony Ramine
04af32128c Add a 'dom lifetime to GetLayoutData 2020-03-26 13:17:46 +01:00
bors-servo
1c7fba31ed
Auto merge of #26039 - servo-wpt-sync:wpt_update_26-03-2020, r=servo-wpt-sync
Sync WPT with upstream (26-03-2020)

Automated downstream sync of changes from upstream as of 26-03-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-03-26 07:03:16 -04:00
WPT Sync Bot
d23cb97662 Update web-platform-tests to revision 66e7f134c43e83a70edf4028ec4738ddfea28e15 2020-03-26 11:03:03 +00:00
Paul Rouget
5621c887fd Propagate user interacting flag to timers and promises 2020-03-26 08:36:57 +01:00
bors-servo
145c3a5502
Auto merge of #26035 - dralley:test-jquery-py3, r=jdm
Make tests/jquery/run_jquery.py Python3 compatible

Attempt to make it py3 compatible.

Ran the "python-migrate" tool, and did a couple of manual adjustments, which are directly noted with comments below.

re: https://github.com/servo/servo/issues/23607

```
(.env) [dalley@localhost servo]$ python3 ./mach test-jquery
Already up to date.
Testing jQuery on Servo!
	selector
		OK: element - jQuery only
		OK: id
		OK: class - jQuery only
		OK: name
		OK: selectors with comma
		OK: child and adjacent
		OK: attributes
		OK: disconnected nodes
		OK: disconnected nodes - jQuery only
		OK: attributes - jQuery.attr
		OK: jQuery.contains
		OK: jQuery.uniqueSort
		OK: Sizzle cache collides with multiple Sizzles on a page
		FAIL: Iframe dispatch should not affect jQuery (#13936): WAS ok=0 fail=1 total=1 NOW ok=1 fail=0 total=1
	Ran 14 test groups. 1 unexpected results.
	163 tests succeeded of 167 (97.60%)

```

Not sure if the test failure on the last one is an issue.
2020-03-25 15:32:52 -04:00
Daniel Alley
cc18718152 Run py-modernize against tests/jquery/run_jquery.py
Attempt to make it py3 compatible
2020-03-25 15:10:44 -04:00
bors-servo
a9965db69f
Auto merge of #26005 - jdm:hubs-csp, r=nox
Update content-security-policy.

This allows hubs.mozilla.org to load instead of panicking due to unimplemented CSP features.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #24702
- [x] These changes do not require tests because we never enabled the CSP testsuite
2020-03-25 13:33:23 -04:00
Martin Robinson
7cb0069be5 layout_2020: Use ArcRefCell in the fragment tree
This will allow mutability which is useful for things like animations.
2020-03-25 17:57:17 +01:00
bors-servo
2d055cbf6b
Auto merge of #26030 - paulrouget:delayedToaster, r=jdm
UWP: Add a devtools button

fix #26027

Shows the toaster when the button is clicked, instead of showing the toaster at startup.
2020-03-25 10:47:51 -04:00
bors-servo
998f9d1906
Auto merge of #26028 - servo-wpt-sync:wpt_update_25-03-2020, r=jdm
Sync WPT with upstream (25-03-2020)

Automated downstream sync of changes from upstream as of 25-03-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-03-25 10:34:20 -04:00
Josh Matthews
19216627d3 Update content-security-policy. 2020-03-25 09:11:09 -04:00
Josh Matthews
abc6fbf6bd
Add missing failure. 2020-03-25 09:06:07 -04:00
Paul Rouget
a707432b00 Add a devtools button 2020-03-25 13:23:10 +01:00
WPT Sync Bot
916ba6ef4d Update web-platform-tests to revision eb12303bec1d47bbe91ebf011d17d81ec6fce68d 2020-03-25 11:04:48 +00:00
bors-servo
6ca767d7f9
Auto merge of #26011 - paulrouget:vslog.submods, r=jdm
UWP: include submodule logs

<!-- 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 #25997 (GitHub issue number if applicable)
2020-03-24 09:18:14 -04:00
bors-servo
4f5110f34f
Auto merge of #26021 - paulrouget:revertFillText, r=jdm
Revert fillText()

Sadly, fillText crashes our HoloLens demos. See https://github.com/servo/servo/issues/26015

/cc @kaiakz
2020-03-24 08:14:24 -04:00
bors-servo
d5e5414be3
Auto merge of #26022 - servo-wpt-sync:wpt_update_24-03-2020, r=servo-wpt-sync
Sync WPT with upstream (24-03-2020)

Automated downstream sync of changes from upstream as of 24-03-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-03-24 07:02:04 -04:00
WPT Sync Bot
1d6ba62c8f Update web-platform-tests to revision 10adbd6b133f1ccf77a27ed51ffd3e7a00a499ee 2020-03-24 11:01:51 +00:00
Paul Rouget
40f6cd87d4 Revert "Add a simple implementation of CanvasRenderingContext2d.fillText"
Windows crash: https://github.com/servo/servo/issues/26015
2020-03-24 10:35:52 +01:00
Paul Rouget
5ca122a938 UWP: include submodule logs 2020-03-24 10:28:28 +01:00
bors-servo
ecef8994e0
Auto merge of #25913 - servo:jdm-patch-41, r=paulrouget
Update curl package for Windows CI.

This should fix #25912.
2020-03-24 02:28:29 -04:00
bors-servo
8b4d7c41ae
Auto merge of #26017 - humancalico:remove_legacy, r=jdm
Removed createTouch and createTouchList

<!-- 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 #25978
<!-- 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. -->
2020-03-24 01:38:31 -04:00
bors-servo
d1c76edecf
Auto merge of #25365 - MeFisto94:autolaunch-vcvars, r=jdm
Launch vcvarsall.bat for the recognized VS Installation Directory from python instead of making mach.bat try that on hardcoded paths.

Move the Execution of vcvars (which sets up the environment for visual studio tools) from mach.bat to python, so that ./mach works under mozilla-build and that #25300 can be used.

---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #25360 #25336
- [X] These changes do not require tests because changes to build infra
2020-03-23 20:55:25 -04:00
Akshat Agarwal
2e1009da75 Removed createTouch and createTouchList 2020-03-24 03:41:42 +05:30
bors-servo
fcb99ae017
Auto merge of #26016 - servo:jdm-patch-36, r=SimonSapin
Force alert message to its own line.

This should avoid timeouts in WPT caused by output that looks like:
```
 │ 0:00:00.542631465 10817 0x7f9ccc161630 WARN                 playbin gstplaybin2.c:4663:autoplug_select_cb:<playbin> Could not activate sink oss4sink
  │ ALSA lib confmisc.c:767:(parse_card) ALERT: RESULT: ["/html/semantics/embedded-content/media-elements/event_pause_noautoplay.html",0,null,null,[["audio events - pause",0,null,null],["video events - pause",0,null,null],["calling play() then pause() on non-autoplay audio should trigger pause event",0,null,null],["calling play() then pause() on non-autoplay video should trigger pause event",0,null,null]]]
  │ cannot find card '0'
```
2020-03-23 14:14:15 -04:00
bors-servo
acd14672e1
Auto merge of #25888 - ferjm:text.decoration.2020, r=nox
Partial text decoration support for layout 2020

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #25166
- [X] There are tests for these changes
2020-03-23 11:18:18 -04:00
Josh Matthews
132cee59fe
Add missing test result. 2020-03-23 11:16:46 -04:00
Josh Matthews
b1a0c52f9c
Add missing test result. 2020-03-23 11:16:27 -04:00
Josh Matthews
1035d2f8d5
Revert incorrect test result change. 2020-03-23 11:15:02 -04:00
Josh Matthews
2aa415a3ff
Force alert message to its own line. 2020-03-23 11:08:42 -04:00
bors-servo
191f6c41a0
Auto merge of #26014 - servo-wpt-sync:wpt_update_23-03-2020, r=servo-wpt-sync
Sync WPT with upstream (23-03-2020)

Automated downstream sync of changes from upstream as of 23-03-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-03-23 09:58:27 -04:00
bors-servo
8bd3429069
Auto merge of #26012 - mrobinson:scrolling-overflow-cb, r=nox
layout_2020: Use the containing block more when calculating scrolling overflow

When calculating scrolling overflow calculation we cannot currently use
the actual containing block in all cases. This change increases the
amount that we do use the containing block.

<!-- 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
- [ ] These changes fix #___ (GitHub issue number if applicable)

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because they should not change behavior.

<!-- 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-03-23 08:36:56 -04:00
WPT Sync Bot
84075d3b6e Update web-platform-tests to revision 38792095c98039542ed3a3f0d2eb384b576f6cb7 2020-03-23 10:48:48 +00:00
Fernando Jiménez Moreno
eea7eb4e4f Update test expectations with text-decoration support 2020-03-23 11:13:10 +01:00
Fernando Jiménez Moreno
17948f3b39 Propagate text decoration where needed 2020-03-23 11:13:10 +01:00
Fernando Jiménez Moreno
83fc9943d3 Do not use buggy text_decorations_in_effect 2020-03-23 11:10:44 +01:00
Fernando Jiménez Moreno
689b413bde Add support for text-decoration-style 2020-03-23 11:10:44 +01:00
Fernando Jiménez Moreno
928bd0d1d2 Add support for text-decoration-color 2020-03-23 11:10:44 +01:00
Fernando Jiménez Moreno
107af9e769 Render text-decoration: line-through on layout 2020 2020-03-23 11:10:44 +01:00
Fernando Jiménez Moreno
c87a4dd788 Remove unnecessary fragment rect clone 2020-03-23 11:10:44 +01:00
Fernando Jiménez Moreno
4fd5484e1a Render text-decoration: overline on layout 2020 2020-03-23 11:10:44 +01:00
Fernando Jiménez Moreno
48517bd61a Render text-decoration: underline on layout 2020 2020-03-23 11:10:44 +01:00
Fernando Jiménez Moreno
e3b97730fe Enable text-decoration on layout 2020 2020-03-23 11:10:44 +01:00
Fernando Jiménez Moreno
e3c8597ccb Store required font metrics on TextFragment 2020-03-23 11:10:44 +01:00
Fernando Jiménez Moreno
74d9fec9cf Enable text-decoration tests 2020-03-23 11:10:43 +01:00
Martin Robinson
811c08c5a5 layout_2020: Use the containing block more when calculating scrolling overflow
When calculating scrolling overflow calculation we cannot currently use
the actual containing block in all cases. This change increases the
amount that we do use the containing block.
2020-03-23 10:08:04 +01:00
bors-servo
19d6b7b380
Auto merge of #26008 - servo-wpt-sync:wpt_update_21-03-2020, r=jdm
Sync WPT with upstream (21-03-2020)

Automated downstream sync of changes from upstream as of 21-03-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-03-21 12:11:36 -04:00
Josh Matthews
283259f68d
Add failing layout-2020 result. 2020-03-21 12:11:04 -04:00
bors-servo
67b433648c
Auto merge of #25624 - lyuyuan:issue-8576, r=jdm
Add trait DomObjectWrap to provide WRAP function

<!-- 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
- [ ] These changes fix #8576 (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. -->
2020-03-21 11:06:26 -04:00