Commit graph

35976 commits

Author SHA1 Message Date
Martin Stransky
424eb94c7f Enable hidden system titlebar by default on Gnome.
This patch implements -moz-gtk-csd-hide-titlebar-by-default media query
to check if the system titlebar should be disabled by default on Linux systems
(it's already disabled on Window/Mac).

It also removes explicit definition of browser.tabs.drawInTitlebar preference on Linux.
When browser.tabs.drawInTitlebar is missing the -moz-gtk-csd-hide-titlebar-by-default
is used to obtain the titlebar state. When browser.tabs.drawInTitlebar is set
in about:config or by Customize menu, the user peference is used instead of the default.

It also fixes a -moz-gtk-csd-available media query,
it was always true regardless the actual system setting.

Differential Revision: https://phabricator.services.mozilla.com/D16036
2019-01-20 14:32:01 +01:00
Noemi Erli
1ae815214a Backed out changeset 009cf5f885ba (bug 1520236) for multiple failures in logical-box-border-color-visited-link-002.html 2019-01-20 14:31:56 +01:00
Mats Palmgren
89e12780b9 style: Implement the border-block/border-inline shorthands.
Bug: 1520396
Reviewed-by: emilio
2019-01-20 14:31:39 +01:00
Mats Palmgren
604ec247f7 style: Implement the border-{block,inline}-{color,style,width} shorthands.
Bug: 1520236
Reviewed-by: emilio
2019-01-20 14:31:20 +01:00
Mats Palmgren
30184370b1 style: Implement the inset-block/inline shorthands.
Bug: 1520229
Reviewed-by: emilio
2019-01-20 14:31:04 +01:00
Emilio Cobos Álvarez
92b58ade2f style: Move cursor to cbindgen.
The only reason it was on style_traits is so that they could use it from some
other crates, but Servo eventually ends up getting the value from an integer, so
may as well pass it around and do that in the end of the process anyway.

Differential Revision: https://phabricator.services.mozilla.com/D16557
2019-01-20 14:30:51 +01:00
Mats Palmgren
88fd730775 style: Implement the margin-block/inline shorthands.
Bug: 1519944
Reviewed-by: emilio
2019-01-20 14:30:36 +01:00
Mats Palmgren
2509c729dc style: Implement the padding-block/inline shorthands.
Bug: 1519847
Reviewed-by: emilio
2019-01-20 14:30:21 +01:00
bors-servo
7c8b3eb94a
Auto merge of #22735 - servo-wpt-sync:wpt_update_19-01-2019, r=jdm
Sync WPT with upstream (19-01-2019)

Automated downstream sync of changes from upstream as of 19-01-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/22735)
<!-- Reviewable:end -->
2019-01-19 22:55:27 -05:00
WPT Sync Bot
e17a773b4e Update web-platform-tests to revision bf71b1f245ce34e447b7bde8ed46694574a63da7 2019-01-19 22:33:07 -05:00
bors-servo
7256d123ff
Auto merge of #22732 - servo-wpt-sync:wpt_update_18-01-2019, r=jdm
Sync WPT with upstream (18-01-2019)

Automated downstream sync of changes from upstream as of 18-01-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/22732)
<!-- Reviewable:end -->
2019-01-18 22:20:31 -05:00
WPT Sync Bot
fd4e600639 Update web-platform-tests to revision a589fd30bc64bb4d40e1d6854e07accca69b8472 2019-01-18 22:11:13 -05:00
bors-servo
81ab255b70
Auto merge of #22722 - servo-wpt-sync:wpt_update_17-01-2019, r=jdm
Sync WPT with upstream (17-01-2019)

Automated downstream sync of changes from upstream as of 17-01-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/22722)
<!-- Reviewable:end -->
2019-01-18 00:08:43 -05:00
bors-servo
42b600458f
Auto merge of #22598 - jdm:update-wr, r=nox
Update webrender

Depends on https://github.com/servo/rust-offscreen-rendering-context/pull/132.

<!-- 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/22598)
<!-- Reviewable:end -->
2019-01-17 22:45:44 -05:00
Josh Matthews
878f020013 Ensure that resized GL contexts do not destroy their resources while in use by WR. 2019-01-17 22:44:41 -05:00
WPT Sync Bot
02c1eed999 Update web-platform-tests to revision 74bae78af4b95a2f0ca3a81df9c7fe3143f24bbc 2019-01-17 22:34:16 -05:00
Josh Matthews
85c1c5ad13 Delete texture when taking a screenshot, not a buffer. 2019-01-17 17:52:36 -05:00
Josh Matthews
9f855ae847 Update webrender. 2019-01-17 17:52:35 -05:00
bors-servo
fb95f9df9c
Auto merge of #22353 - jdm:runtime-parent, r=nox
Update rust-mozjs

These changes adjust our uses of the rust-mozjs APIs to accommodate the changes in https://github.com/servo/rust-mozjs/pull/450.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #22342.
- [x] There are tests for these changes

<!-- 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/22353)
<!-- Reviewable:end -->
2019-01-17 15:57:30 -05:00
bors-servo
866fd55ded
Auto merge of #22692 - ferjm:buffering, r=ceyusa
Media cache and buffering support

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

<!-- 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/22692)
<!-- Reviewable:end -->
2019-01-17 11:46:48 -05:00
bors-servo
0b5ca81f41
Auto merge of #22708 - Manishearth:android-click, r=paulrouget
Stop catching Android click events

Servo already can simulate clicks from multiple tap events

fixes https://github.com/servo/servo/issues/22702

r? @paulrouget

<!-- 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/22708)
<!-- Reviewable:end -->
2019-01-17 04:04:57 -05:00
Fernando Jiménez Moreno
4b23c631ea No need to share a reference for HTMLMediaElement played TimeRange 2019-01-17 10:01:38 +01:00
Fernando Jiménez Moreno
f5581a78ab Add media cache and implement HTMLMediaElement.buffering 2019-01-17 10:01:38 +01:00
bors-servo
c558db9737
Auto merge of #22711 - servo-wpt-sync:wpt_update_16-01-2019, r=jdm
Sync WPT with upstream (16-01-2019)

Automated downstream sync of changes from upstream as of 16-01-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/22711)
<!-- Reviewable:end -->
2019-01-16 22:50:02 -05:00
WPT Sync Bot
2966715d10 Update web-platform-tests to revision 2ade7dc478df87727880d849a76ee4b5be058f63 2019-01-16 22:36:41 -05:00
Manish Goregaokar
82f81fb9fd Stop catching Android click events
Servo already can simulate clicks from multiple tap events

fixes https://github.com/servo/servo/issues/22702
2019-01-16 18:23:07 -05:00
bors-servo
7c043f1bd8
Auto merge of #22703 - servo:bump, r=SimonSapin
Remove a bunch of winapi 0.2 crates

<!-- 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/22703)
<!-- Reviewable:end -->
2019-01-16 11:54:23 -05:00
bors-servo
09cdcab500
Auto merge of #22495 - maharsh312:master, r=jdm
OffscreenCanvas API

<!-- Please describe your changes on the following line: -->
Initial Steps for OffscreenCanvas API are done in this commit.

r? @jdm
---
<!-- 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 #14627 (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/22495)
<!-- Reviewable:end -->
2019-01-16 10:22:09 -05:00
bors-servo
cbd9ac045c
Auto merge of #22704 - learning:learning-patch-windows-troubleshooting, r=paulrouget
Add Windows troubleshooting

<!-- Please describe your changes on the following line: -->
Add Windows troubleshooting, about mach cannot run on a case-sensitive file system on Windows 10 v1803+

---
<!-- 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 it just some text for `README.md`

<!-- 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/22704)
<!-- Reviewable:end -->
2019-01-16 08:46:18 -05:00
Anthony Ramine
600ce022dd Make Servo components use winapi 0.3 2019-01-16 14:29:53 +01:00
Yongning Liang
c9271cb634
Add Windows troubleshooting
Add Windows troubleshooting, about mach cannot run on a case-sensitive file system on Windows 10 v1803+
2019-01-16 21:08:19 +08:00
bors-servo
3919002cc7
Auto merge of #22701 - servo-wpt-sync:wpt_update_15-01-2019, r=nox
Sync WPT with upstream (15-01-2019)

Automated downstream sync of changes from upstream as of 15-01-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/22701)
<!-- Reviewable:end -->
2019-01-16 07:18:45 -05:00
Anthony Ramine
bd0b191d84 Update time to 0.1.42 2019-01-16 12:44:25 +01:00
Maharsh
0f17273276 Initial Steps OffScreenCanvas API 2019-01-15 22:45:34 -05:00
WPT Sync Bot
372e03fe64 Update web-platform-tests to revision 0f31ab1b094596062154092307bb9ff8e6122533 2019-01-15 22:08:50 -05:00
bors-servo
7400219adf
Auto merge of #22697 - jdm:user-script, r=asajeffrey
Don't panic when executing userscripts

- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #22685
- [x] These changes do not require tests because there is no automation for testing userscripts.

<!-- 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/22697)
<!-- Reviewable:end -->
2019-01-15 19:12:46 -05:00
bors-servo
96ad6710b1
Auto merge of #22693 - servo:rustup, r=SimonSapin
Update Rust to 1.33.0-nightly (03acbd71c 2019-01-14)

<!-- 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/22693)
<!-- Reviewable:end -->
2019-01-15 17:58:27 -05:00
Anthony Ramine
1bd29f1cfd Update Rust to 1.33.0-nightly (03acbd71c 2019-01-14) 2019-01-15 23:09:18 +01:00
bors-servo
4f45eea125
Auto merge of #22616 - jdm:google-decode, r=nox
Fix brotli decoding

This replaces our current decoding setup by https://github.com/seanmonstar/reqwest/blob/master/src/async_impl/decoder.rs, and integrates brotli and deflate decoding to maintain our existing support.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #22228
- [x] There are tests for these changes

<!-- 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/22616)
<!-- Reviewable:end -->
2019-01-15 16:06:35 -05:00
Josh Matthews
6404a0ef53 Redesign network response decoding to avoid creating decoders before some content is present. 2019-01-15 16:04:45 -05:00
Josh Matthews
66c2e42ed9 Pass a filename when executing user scripts. 2019-01-15 15:22:13 -05:00
Josh Matthews
18cfb9378d Delay user script execution until DOM is stable. 2019-01-15 15:20:25 -05:00
Josh Matthews
367014a4ea Reintroduce parent runtimes for worker threads. 2019-01-15 14:00:13 -05:00
Josh Matthews
644101e1e4 Update to new JS runtime creation APIs. 2019-01-15 14:00:05 -05:00
bors-servo
fde83f733d
Auto merge of #22690 - shanavas786:skip-gstreamer-dir, r=jdm
Exclude gstreamer from tidiness check

<!-- 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: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [x] These changes fix ##22689

<!-- Either: -->
- [x] These changes do not require 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/22690)
<!-- Reviewable:end -->
2019-01-15 12:12:55 -05:00
bors-servo
a6c7fc426c
Auto merge of #22687 - servo-wpt-sync:wpt_update_14-01-2019, r=jdm
Sync WPT with upstream (14-01-2019)

Automated downstream sync of changes from upstream as of 14-01-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/22687)
<!-- Reviewable:end -->
2019-01-15 08:49:58 -05:00
Josh Matthews
c2a9a60df2
Remove intermittent crash. 2019-01-15 08:49:41 -05:00
Shanavas M
de766ca3c0 Exclude gstreamer from tidiness check 2019-01-15 18:13:56 +05:30
WPT Sync Bot
13bbfdb3eb Update web-platform-tests to revision 192193581b6912818a0e3f2408f40f033a451a79 2019-01-14 22:19:47 -05:00
bors-servo
2e439fa7cb
Auto merge of #22396 - jdm:no-spam-iframe-size, r=asajeffrey
Reduce unnecessary iframe size messages

This should be an improvement on pages that include iframes, since we currently run two layout jobs for every display-oriented layout request. When building the display list, we send a message to the constellation that includes the sizes of all iframes present, and the constellation sends resize messages to the script thread. This results in a mouse event on the outer page causing all frames to be re-laid out even if no changes occurred to the iframe sizes, which is ridiculous.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #22394
- [x] These changes do not require tests because there is no way to test this internal detail.

<!-- 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/22396)
<!-- Reviewable:end -->
2019-01-14 19:12:59 -05:00