Commit graph

41562 commits

Author SHA1 Message Date
Daniel Alley
2b5e6df966 Update README instructions for Fedora, remove Ubuntu 14.04 workarounds
Fedora 31+ doesn't have python2-virtualenv, so using mach with Python 3
is required.

Ubuntu 14.04 is no longer receiving upstream support.
2020-04-06 14:06:17 -04:00
Daniel Alley
d0890db479 Fix misspelled "get_suported_extensions" function
closes #21122
2020-04-06 13:50:49 -04:00
Alan Jeffrey
21c3cea168 Add troubleshooting for rustup picking the wrong default toolchain 2020-04-06 11:23:03 -05:00
Utsav Oza
2c306227e9 Extract user_agent from global opts 2020-04-06 21:29:58 +05:30
bors-servo
50ea9fc02d
Auto merge of #26119 - servo-wpt-sync:wpt_update_06-04-2020, r=servo-wpt-sync
Sync WPT with upstream (06-04-2020)

Automated downstream sync of changes from upstream as of 06-04-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-04-06 11:04:16 -04:00
WPT Sync Bot
4e37dd1013 Update web-platform-tests to revision d7a573df46aac1ebc338ff993c54a18f2b9ff1a4 2020-04-06 10:41:55 +00:00
Anthony Ramine
88d79fe46d Remove postorder traversal from layout 2020 during styling 2020-04-06 12:40:05 +02:00
Anthony Ramine
e3be136c9b Rename a bunch of style/layout data items
GetLayoutData::get_style_and_layout_data becomes
GetOpaqueStyleAndLayoutData::get_opaque_style_and_layout_data.

GetRawData::get_raw_data becomes GetStyleAndLayoutData::get_style_and_layout_data.

LayoutNode::init_style_and_layout_data becomes
LayoutNode::init_opaque_style_and_layout_data.

LayoutNode::take_style_and_layout_data becomes
LayoutNode::take_opaque_style_and_layout_data.
2020-04-06 12:39:52 +02:00
bors-servo
3df65c02fe
Auto merge of #26113 - servo:layout-2020-rm-random-unsafe-removals-cause-i-am-bored, r=emilio
Drive-by refactoring of some unsafe code in stylo

Some stuff I found while thinking about other things between stylo and layout.

Third commit requires Gecko changes because I removed `From<u32>` for `FontLanguageOverride` and replaced it by the unsafe `FontLanguageOverride::from_u32` method.
2020-04-06 01:40:14 -04:00
Tipowol
8a3bf880e9 Add InRealm argument to Callback trait 2020-04-05 19:54:30 +02:00
bors-servo
1a6f08f698
Auto merge of #26115 - servo-wpt-sync:wpt_update_05-04-2020, r=servo-wpt-sync
Sync WPT with upstream (05-04-2020)

Automated downstream sync of changes from upstream as of 05-04-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-04-05 11:52:50 -04:00
bors-servo
ae49473c25
Auto merge of #26087 - gterzian:allow_service_workers_in_multiprocess, r=jdm
Fix ServiceWorker in multiprocess

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

FIX #15217
FIX #26100

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./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. -->
2020-04-05 11:02:08 -04:00
Gregory Terzian
1e017a7082 allow for a service worker network mediator per origin 2020-04-05 22:43:37 +08:00
Gregory Terzian
db217d5575 allow for a service worker manager per origin 2020-04-05 22:43:40 +08:00
WPT Sync Bot
9bf4e63ec5 Update web-platform-tests to revision 1a83e795e53c50c1306a14a7bb8e3f7ccfa7f89f 2020-04-05 10:55:39 +00:00
bors-servo
406eefb4b1
Auto merge of #26109 - servo-wpt-sync:wpt_update_04-04-2020, r=servo-wpt-sync
Sync WPT with upstream (04-04-2020)

Automated downstream sync of changes from upstream as of 04-04-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-04-04 22:34:05 -04:00
Anthony Ramine
94ee8b34ca Rearrange FontLanguageOverride
Creating one from a u32 should be unsafe because we rely on the fact that the
value is a valid &str.
2020-04-05 01:20:39 +02:00
Anthony Ramine
e7cb736796 Replace ScopedTLS::unsafe_get by ScopedTLS::into_slots
We only ever look at the slots after we are done with the thread pool,
so we don't need to expose any unsafety to inspect the slots.
2020-04-05 01:20:39 +02:00
Anthony Ramine
5d6c5132c1 Don't use transmute to create PaintOrder values
I checked that rustc optimises the code just as well as with the transmute.

https://rust.godbolt.org/z/w6UJN4
2020-04-04 20:29:25 +02:00
bors-servo
57fe27a4ef
Auto merge of #26110 - servo:layout-2020-rm-note-dirty-descendant, r=emilio
Kill ServoLayoutElement::note_dirty_descendant
2020-04-04 09:51:19 -04:00
bors-servo
d64f7d427a
Auto merge of #26105 - servo:layout-2020-less-opaque, r=emilio
Make DOM own the style and layout data, in an UnsafeCell
2020-04-04 09:35:34 -04:00
Anthony Ramine
8a0775fc89 Kill ServoLayoutElement::note_dirty_descendant
There is no need to set the dirty descendants flag unsafely from the layout side
for elements with pending restyles, we can do that on the DOM side when draining
the restyles from the Document.
2020-04-04 15:00:04 +02:00
Anthony Ramine
185a402d9c Make DOM own the style and layout data, in an UnsafeCell
The previous Cell was a lie.
2020-04-04 13:10:19 +02:00
Anthony Ramine
516e8e0aa6 Don't expose any AtomicRefCell directly from style traits
This lets us experiment with how we store this data on the DOM side.
2020-04-04 13:08:51 +02:00
Anthony Ramine
4c61baee30 Make OpaqueLayoutAndStyleData just a bit less opaque
It now stores a NonNull<dyn Any>.
2020-04-04 13:08:51 +02:00
WPT Sync Bot
136aa4015b Update web-platform-tests to revision 919ca26d28f02c636d4fa3d4e910a6038f02d993 2020-04-04 10:57:37 +00:00
bors-servo
9972aee81f
Auto merge of #26106 - qrasmont:fix-26088-bhm-opt-in-multiproc, r=gterzian
Check the BHM option before starting it in multi-process mode.

In multi-process mode, if the BHM option is set start with one otherwise don't.

I didn't add a test for this. However if I should I'd be happy to be pointed to where similar tests are done (meaning tests of options yielding the expected state) because I didn't find my way in all those tests.

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

- [ ] There are tests for these changes OR
- [x] These changes do not require tests because they are minor enough to not require one.
2020-04-04 06:41:09 -04:00
Quentin Rasmont
8b9390d68c Check the BHM option before starting it in multi-process mode. 2020-04-04 11:01:33 +02:00
Tipowol
94f08adfc7 Update parse_length to match spec 2020-04-03 21:32:02 +02:00
bors-servo
f7d3d4a447
Auto merge of #26065 - dralley:fix-motionmark, r=cbrewster,SimonSapin
Don't send empty canvases to WebRender

If any dimension of a canvas is 0, don't try to display it as it causes
problems inside webrender.

Minimal test case available here: https://github.com/servo/servo/issues/21411#issuecomment-605226547

---
<!-- 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
- [ ] `./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. -->
2020-04-03 13:57:33 -04:00
bors-servo
7ba88247ba
Auto merge of #26102 - servo:rdp, r=paulrouget
Add support for requersting RDP access from generic-worker

Fixes https://github.com/servo/servo/issues/26082

Depends on:

* [x] https://github.com/mozilla/community-tc-config/pull/252
* [x] https://github.com/servo/taskcluster-config/pull/24
* [x] https://github.com/servo/saltfs/pull/997
* [ ] https://github.com/mozilla/treeherder/pull/6265 (for relevant tasks to show up in https://treeherder.mozilla.org/#/jobs?repo=servo-try)
2020-04-03 12:16:12 -04:00
Daniel Alley
61fb84d6a0 Don't send empty canvases to WebRender
If any dimension of a canvas is 0, don't try to render it as it causes
problems inside webrender.
2020-04-03 11:34:04 -04:00
bors-servo
e23fbd25e6
Auto merge of #26101 - servo-wpt-sync:wpt_update_03-04-2020, r=jdm
Sync WPT with upstream (03-04-2020)

Automated downstream sync of changes from upstream as of 03-04-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-04-03 10:45:09 -04:00
Josh Matthews
e1af489ea2
Create element-replacement-on-replaced-element.tentative.html.ini 2020-04-03 10:30:01 -04:00
Simon Sapin
5b546dc3c0 Request RDP access from generic-worker for try=windows-rdp 2020-04-03 16:28:49 +02:00
WPT Sync Bot
018bc3f219 Update web-platform-tests to revision c063a8c9acc637e3bd72b719b46e6f2fb627da4a 2020-04-03 11:08:23 +00:00
bors-servo
e66ab111a6
Auto merge of #26094 - servo-wpt-sync:wpt_update_02-04-2020, r=jdm
Sync WPT with upstream (02-04-2020)

Automated downstream sync of changes from upstream as of 02-04-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-04-02 12:13:04 -04:00
Josh Matthews
65fd97cce9
Add mac-only failure. 2020-04-02 10:57:34 -04:00
bors-servo
a651bad838
Auto merge of #25447 - teapotd:form-validation, r=jdm
Form constraint validation

It's almost done, there are few things remaining:

- ~Range underflow, range overflow and step mismatch implementation require #25405~
- ~There are some test failures due to missing DOM parts (#25003)~
- ~`pattern` attribute uses JS regexp syntax. Currently I used regex crate, but it's probably incompatible. Should we use SpiderMonkey's regexp via jsapi?~
- Currently validation errors are reported using `println!`. Are there any better options?
- ~["While the user interface is representing input that the user agent cannot convert to punycode, the control is suffering from bad input."](https://html.spec.whatwg.org/multipage/#e-mail-state-(type%3Demail)%3Asuffering-from-bad-input)~

r? @jdm

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #11444
- [x] There are tests for these changes
2020-04-02 08:07:30 -04:00
WPT Sync Bot
6b740f0283 Update web-platform-tests to revision 6366ae15c2bc2314adca4321357c68bb468fec98 2020-04-02 11:05:54 +00:00
teapotd
779552ee7d Form constraints validation 2020-04-02 10:16:46 +02:00
bors-servo
e47e884cc7
Auto merge of #26093 - jdm:webxrup, r=jdm
Update webxr.

This brings in an openxr improvement that is necesary for testing prerelease HoloLens images.
2020-04-01 23:54:53 -04:00
bors-servo
b895ccbec4
Auto merge of #26086 - jdm:mozjs-jitspew, r=Manishearth
Support SpiderMonkey jitspew.

This enables developers to diagnose JIT performance issues on desktop and on device by following the steps at https://github.com/servo/servo/wiki/Diagnosing-SpiderMonkey-JIT-issues.
2020-04-01 23:38:13 -04:00
Josh Matthews
ba58df680d Update webxr. 2020-04-01 22:25:35 -04:00
bors-servo
7dcd83f488
Auto merge of #26084 - servo-wpt-sync:wpt_update_01-04-2020, r=servo-wpt-sync
Sync WPT with upstream (01-04-2020)

Automated downstream sync of changes from upstream as of 01-04-2020.
[no-wpt-sync]
r? @servo-wpt-sync
2020-04-01 21:57:58 -04:00
bors-servo
c3d1c28b42
Auto merge of #26085 - utsavoza:ugo/docs/01-04-2020, r=jdm
Use a valid debug option in the example command in the Debugging guide.

<!-- Please describe your changes on the following line: -->
The debug option `dump-layer-tree` used seems maybe irrelevant to the example command, but using one from the existing debug options helps to simply copy/paste the command and see what the example is trying to demonstrate.

---
<!-- 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 are doc changes exclusively.

<!-- 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-04-01 16:04:28 -04:00
bors-servo
516279e24f
Auto merge of #26074 - jdm:transition-fix, r=SimonSapin
Avoid infinitely looping CSS transitions.

This change addresses the long-standing issue of CSS transitions not ending appropriately. It does not fundamentally change the way we process transitions/animations.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #20379
- [x] There are tests for these changes
2020-04-01 15:19:15 -04:00
Josh Matthews
2bb6ab4567 Avoid infinitely looping CSS transitions. 2020-04-01 12:13:52 -04:00
bors-servo
af1ebe79ef
Auto merge of #26083 - servo:layout-2020-more-cleanups, r=jdm
More layout cleanups from the introduction of a lifetime in LayoutDom<T>

What can I say, the follow-up fixes just kept coming to my door one by one, I couldn't just tell them to go away.
2020-04-01 12:05:16 -04:00
Josh Matthews
689b32c6e4 Support SpiderMonkey jitspew. 2020-04-01 11:32:53 -04:00