Commit Graph

527941 Commits

Author SHA1 Message Date
n0max
f1a4b689be servo: Merge #16157 - Parse perspective property as non negative and add tests (from n0max:perspective_parse_non_negative); r=emilio
<!-- 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 #15449  (github issue number if applicable).

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

Source-Repo: https://github.com/servo/servo
Source-Revision: b783cacc54e52c468c27fe946dd1909af4561e9f

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 2d2eeb7abf3e355e844b9f31d23536d151badca8
2017-03-29 15:12:07 -05:00
Luca Greco
cd6c87ef1e Bug 1345992 - Fix pageAction icon size on Android. r=kmag
MozReview-Commit-ID: LRECvCvTmEy

--HG--
extra : rebase_source : 61fbadf00e24c3978efe391b782236d07fa232a2
2017-03-16 17:09:27 +01:00
Tom Ritter
6c832ecd7e Bug 1344909 When compiled with MinGW, use only a single core in gmp-clearkey r=cpearce
MozReview-Commit-ID: Ej9avF7TkaL

--HG--
extra : rebase_source : 804988fa70c9cc45bb404793dd1320dbd2bc4ac1
2017-03-23 13:58:54 -05:00
Simon Sapin
a67d00ed06 servo: Merge #16183 - Replace ParsedDeclaration::expand with non-generic method (from servo:expand-diet); r=emilio
... to reduce its code size impact.

https://bugzilla.mozilla.org/show_bug.cgi?id=1351737

Source-Repo: https://github.com/servo/servo
Source-Revision: f3a5ad2f497a13aff0faf7873ce98f0868e56101

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 982e09797171fa3eec5bcd165fe7e5990234de6c
2017-03-29 13:43:06 -05:00
Tom Ritter
57460e3e5e Bug 1344921 relocate initialization (and declaration) of variable to not allow a jump to bypass it r=froydnj
MozReview-Commit-ID: LouiRkuCAqb

--HG--
extra : rebase_source : 4a0006743e894d151c3f67439c57818a460d942c
2017-03-23 14:56:54 -05:00
Kirk Steuber
68f7cb1b36 Bug 1350381 - Change Flash blocking to allow the setting "Ask to Activate" to control CTA of unknown documents. r=qdot
Previously, we operated under the understanding that with Flash blocking activated, non-whitelisted documents would be set to CTA. We are changing that such that now, documents will only be CTA'ed if Flash is set to "Ask to Activate".

Flash blocking will now behave according to the following chart:

User Setting   Flash block   Whitelisted sites   Blacklisted sites    Unlisted sites
"Never ..."    Off           Deny                Deny                 Deny
"Ask ..."      Off           Ask                 Ask                  Ask
"Always ..."   Off           Allow               Allow                Allow
"Never ..."    On            Deny                Deny                 Deny
"Ask ..."      On            Allow               Deny                 Ask
"Always ..."   On            Allow               Deny                 Allow

This patch also completely reworks the flash blocking testing. Test data and most code remains consolidated, but will be run in multiple different tests. This avoids having to extend the timeout for Flash block testing to an extremely long length. The new Flash block testing additionally tests each of the six cases (rows) in the table above.

MozReview-Commit-ID: 5aPGUEiUiCv

--HG--
extra : rebase_source : d5f5711855d108a9a33b9d28aae6e312cc9cb432
2017-03-24 14:15:02 -07:00
Thom Chiovoloni
f189ba9211 Bug 1349703 - (part 3) Delete a test from TPS that was testing that we made the wrong decision during reconciliation r=kitcambridge
MozReview-Commit-ID: KVRcVNJAKfg

--HG--
extra : rebase_source : c37b394f0a97488f783db0b751ea2f5f9c454f8d
2017-03-23 17:18:32 -04:00
Thom Chiovoloni
250adc135f Bug 1349703 - (part 2) Fix intermittent TPS failures caused by failing cleanup by waiting longer before starting r=kitcambridge
MozReview-Commit-ID: D07eRgqHVOu

--HG--
extra : rebase_source : e08a57c3340cfd22bde9009c8cc960859b719eed
2017-03-23 16:34:04 -04:00
Thom Chiovoloni
908a695b92 Bug 1349703 - (part 1) Fix issue where sync would fail misreconcile special folders in fresh syncs r=kitcambridge
MozReview-Commit-ID: Izy9JgMYpom

--HG--
extra : rebase_source : b740e81aafbabae2947fd26888c677065742db96
2017-03-23 16:32:40 -04:00
Kyle Machulis
b640dd363b Bug 1351477 - Remove IsSWFPlayerEnabled function; r=bsmedberg
Since the Shumway project is dead, we no longer register a stream converter for flash files. We can remove this check, as it will always return false.

MozReview-Commit-ID: CzC7wYmWEFp

--HG--
extra : rebase_source : 24373bc48da66fccb616864a6f03a5fc5d57ba9c
2017-03-28 14:56:20 -07:00
Gregory Szorc
ddb8419a61 Bug 1350437 - Bump image_builder version and hash; r=aki
We recently changed how image compression works (bug 1350447) and
upgraded to Mercurial 4.1.1 (this bug). It's time to roll a new
image_builder Docker image.

This commit updates the version and hash of the image. The image
is already pushed to Docker Hub/Cloud. We just need to whitelist
it and deploy this change.

MozReview-Commit-ID: KQwJZ2OSGlt

--HG--
extra : rebase_source : 23f2686cd85256178b5d89c452aaeabe4e4198db
2017-03-29 09:32:46 -07:00
Gregory Szorc
3a0a044d13 Bug 1350437 - Install Mercurial 4.1.1+; r=dustin
We've been running Mercurial 3.9 in automation for a while. Mercurial
4.1 is out. It has the usual performance improvements and bug fixes,
making it an attractive upgrade. But what really makes it enticing
is support for zstandard compression over the wire protocol. This will
reduce server-side CPU load and make transfers between 4.1+ servers
faster.

So, let's upgrade to Mercurial 4.1.1.

The produced packages are built from the current tip of the
stable Mercurial branch, not exactly 4.1.1. Specifically, they
correspond to revision ed5b25874d99. I did this because there is
a patch in the stable branch that drastically improves performance
on repos with many heads. When 4.1.2 is released in a few days, we
can upgrade to it and do away with the one-off.

MozReview-Commit-ID: 6BPhVheHQXI

--HG--
extra : rebase_source : d72452708fa0397272b79247d9d4844b35e5ee26
2017-03-29 09:17:56 -07:00
Anthony Ramine
ca633f20db servo: Merge #16180 - Make the WebSocket handshake ourselves 🍷 (from nox:tungstenite); r=jdm
HYPE

Source-Repo: https://github.com/servo/servo
Source-Revision: 76a2c9705a34d651a11caac98b4b023c79657368

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 0c635586594e4c0a39544cfbc4a685974a51c7e4
2017-03-29 12:55:38 -05:00
Emilio Cobos Álvarez
d2c6c7feb7 Bug 1351275: Make the pres shell observe style flushes if needed when calling from Servo. r=bholley
MozReview-Commit-ID: 6G0ZtAXBLqX
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>

--HG--
extra : rebase_source : 096c1342be4c7c6c3b546937cd9e1eda342c12ae
2017-03-29 16:13:46 +02:00
Emilio Cobos Álvarez
fc80cf434d Bug 1351275: Move style flush observer logic to nsIPresShell, and align layout observing code. r=bholley
MozReview-Commit-ID: 2oUTNfTS4Ku
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>

--HG--
extra : rebase_source : 97d055e6682cbe81eaf32c365004f194a0ae1935
2017-03-29 15:41:11 +02:00
Emilio Cobos Álvarez
c066af0f0e Bug 1351275: Cleanup nsRefreshDriver observer array handling to avoid walking them twice. r=bholley
MozReview-Commit-ID: Jnwb9HtSjoC
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>

--HG--
extra : rebase_source : 72de9b3f83d77b854ef433be36ff0ab688e47eb0
2017-03-29 15:32:14 +02:00
Bobby Holley
d627b6741e Bug 1350244 - Use threadsafe refcounts for all nsCSSValue arrays. r=heycam
MozReview-Commit-ID: AfEqX8btQnz
2017-03-29 11:05:23 -07:00
Bobby Holley
7522be290d Bug 1350244 - Back out bug 1348606 part 2 (Get rid of CSSVALUE_LIST_FOR_EXTRA_VALUES). r=me
This reverts commit 0ea54a26e3dd1455c148c67d6f8080b01990309b.

MozReview-Commit-ID: 3gVCoPnGtAS
2017-03-29 11:05:22 -07:00
Bobby Holley
2605f19ed7 Bug 1350244 - Back out bug 1348606 part 3 (Inline nsCSSValue::Array::SizeOfIncludingThis). r=me
This reverts commit 0afb8c9034ea1d59d25dac863c9f30430215773a.

MozReview-Commit-ID: IAOnqb5K3J7
2017-03-29 11:05:20 -07:00
Bobby Holley
1dbaa10ad8 Bug 1350244 - Back out bug 1348606 part 4 (Turn nsCSSValue::Array into a macro). r=me
This reverts commit a9d5006f7fb8c2b774c5ac65876c071a4d4d2c3e.

MozReview-Commit-ID: 4pjeyYyHaq3
2017-03-29 11:05:18 -07:00
Bobby Holley
be7a7ceab0 Bug 1350244 - Back out bug 1348606 part 5 (Use a threadsafe array for counters). r=me
This reverts commit 07301f1c3f71b36dbe2345e8faa9bc6d643cfc97.

MozReview-Commit-ID: 8tLjUhki2C1
2017-03-29 11:05:17 -07:00
Bobby Holley
38abb05315 servo: Merge #16163 - stylo: Remove ThreadSafeArray (from bholley:revert_threadsafe_array); r=bholley
See https://bugzilla.mozilla.org/show_bug.cgi?id=1350244

This reverts https://bugzilla.mozilla.org/show_bug.cgi?id=1348606

Source-Repo: https://github.com/servo/servo
Source-Revision: a54e4f33eee1a3600beda89e5699dd7b9aecd59a

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : ccad2db5e4bf33349690243a37636180a7052f20
2017-03-29 12:16:35 -05:00
Nevin Chen
f5182bc344 Bug 1295675 - Allow app level preferences. r=mkaply,sebastian
MozReview-Commit-ID: yv97PSkL5n

--HG--
extra : rebase_source : 6231b68a2d8e9a734f639006cf48939f3087a9aa
2017-03-23 10:57:20 +08:00
Andrew Swan
d95986248a Bug 1350773 Remove max_version from webextension update tests r=rhelmer
MozReview-Commit-ID: 1kJZou0PHlg

--HG--
extra : rebase_source : 771a359c147b466049138eb10b86d14f09e6a53c
2017-03-28 12:20:51 -07:00
Jared Wein
ea4c7c16b9 Bug 1350670 - Extend the MutationObserver to cover attributes in case the page sets styles through style, class, ID or other attributes. r=mossop
MozReview-Commit-ID: 3tYjbqH9zYb

--HG--
extra : rebase_source : ae593c3f8ac627ebb058d5f486d5b34ea2f63c9e
2017-03-29 12:47:13 -04:00
Gijs Kruitbosch
7c4e46f7ce Bug 1350325 - back out changeset 195972ebe7a1 and 27346172ee35 (bug 1325591 and bug 1332807) for causing worse problems for the default theme, r=ralin
MozReview-Commit-ID: 8h7La5T418t

--HG--
extra : rebase_source : 2928158c77660066140fc1b801816aa0d2414cb0
extra : source : c77724bf934039c7d7b11e2eb78de19b8d1b809a
2017-03-29 17:13:53 +01:00
Boris Chiou
f4b25f840f Bug 1336769 - Enable crashtests, 1272475-1.html and 1272475-2.html. r=heycam
MozReview-Commit-ID: 5o4ayOHRm4S

--HG--
extra : rebase_source : 0a7f73c1eeddbb7270783de67593f84cc1c5b8ab
2017-03-27 16:25:48 +08:00
Bobby Holley
491b0baa3d Bug 1350441 - Clear servo data when tearing down frames for DestroyFramesFor. r=heycam
MozReview-Commit-ID: DWwu8FqSjdj
2017-03-29 09:27:24 -07:00
Bobby Holley
e76c016430 Bug 1350441 - Make ServoRestyleManager::ClearServoDataFromSubtree a bit smarter. r=heycam
There's no reason to traverse the entire subtree if we encounter an unstyled section.

MozReview-Commit-ID: 7WeMTI73wR9
2017-03-29 09:27:24 -07:00
Bobby Holley
2617d3c41a Bug 341102 - Update test expectations. r=me
MozReview-Commit-ID: 8FNOXog4duD
2017-03-29 09:27:24 -07:00
Gregory Szorc
0bba998825 Bug 1351031 - Fix flake8 failures in taskcluster/docker; r=me
These are trivial, whitespace only fixups. Self reviewing.
2017-03-29 09:25:06 -07:00
Shih-Chiang Chien
500ffabe47 Bug 1351558 - make sure PHttpChannel destroy procedure will only be done once. r=dragana
MozReview-Commit-ID: 34RIiNpwmea

--HG--
extra : rebase_source : cb08c78d5f4af3a79aa2d5b0e4a6d911b2e4c499
2017-03-29 17:34:12 +08:00
Shih-Chiang Chien
61d37d2376 Bug 1351558 - double check mIPCOpen flag before we send IPC message. r=dragana.
MozReview-Commit-ID: 3CqA3e4frd8

--HG--
extra : rebase_source : 813fe86a8721ca3735aee211ba48c0a9d88d0d1b
2017-03-29 16:34:15 +08:00
Gregory Szorc
c2e3800988 Bug 1350447 - Use lower compression level for level 1 tasks; r=dustin
A few commits ago, we bumped up the default zstandard compression level
from 3 to 10 when we switched to multi-threaded compression. Even with
multiple threads, this was a bit slower.

For images that will be built once and read multiple times, it is
worthwhile to burn extra CPU once and produce a small image. However,
for other tasks where the number of reads is limited, it isn't
worth it to use this extra CPU. This commit uses the SCM level as
a proxy for "optimize for speed." If the task is associated with level
1 (a try push), we lower the compression level and optimize for
speed. Otherwise, we keep the higher compression level and
optimize for image size.

Credit goes to Jonas for this terrific idea.

MozReview-Commit-ID: Hui97KsZpgw

--HG--
extra : rebase_source : 5a98e554166b51b8caa62b38d82e91c7b9fcb7ab
2017-03-28 18:40:20 -07:00
Gregory Szorc
2e80374019 Bug 1350447 - Use --no-install-recommends in image_builder; r=dustin
Using --no-install-recommends prevents installation of unwanted
packages and helps reduce image bloat. Using it in image_builder
reduces the image size from ~212.5 MB to ~203.6 MB. Not the
biggest savings. But savings nonetheless.

I kept python-pip separate because using --no-install-recommends with
it fails to pull in setuptools, gcc, and other packages required for
building Python packages. Since these packages are only needed
for generating the Docker image, I didn't feel like teasing out
the actual dependencies. It takes a little longer to install
temporary packages and build the image. But the end result should
mostly be the same.

MozReview-Commit-ID: EVURGKFuWzb

--HG--
extra : rebase_source : e1f953079480c6d898569dc7e14dc97890d4f41e
2017-03-28 16:49:43 -07:00
Gregory Szorc
3eb3ce1bf0 Bug 1350447 - Use python-zstandard for Docker image compression; r=dustin
The goal of this change is to switch to python-zstandard for Docker
image compression so we can employ multi-threaded compression. This will
cut down the wall time it takes to compress images, decreasing end-to-end
times.

In order to use python-zstandard, I needed to write a Python script
for doing the compression. Since I was writing a Python script, I
figured I'd move Docker image downloading to that script as well.
This way, the raw Docker image never hits disk: it is streamed straight
from Docker into a zstandard compressor and that output is written to
disk. For large images, this will eliminate a few gigabytes of disk
writes.

The one extra complication about this I don't care for is you need a
special Python package to teach the "requests" package how to download
from UNIX domain sockets.

MozReview-Commit-ID: EufaRzR6A4Y

--HG--
extra : rebase_source : 2143bfee729bdc075c3a87a1e607eff2f0c164d2
2017-03-28 16:19:24 -07:00
Andrew McCreight
7367aeb120 Bug 1350690 - Add main thread assertion to nsSystemInfo::Init(). r=froydnj
MozReview-Commit-ID: JtlOXqCtJ8Y

--HG--
extra : rebase_source : 99f4d098d4af35c4bbd27e0f99a1a8edff399d32
2017-03-27 08:03:01 -07:00
J. Ryan Stinnett
1cb189a564 Bug 1351537 - devtools-source-map v0.3.0: Update bundle from GitHub. r=jdescottes
MozReview-Commit-ID: 1W9OXHs5pHq

--HG--
extra : rebase_source : a3bc710a0d57816f6a07303c232361d4c60ceac6
2017-03-28 23:07:17 -05:00
Josh Matthews
f5ddcf5148 servo: Merge #16176 - Halve number of processes for test runs (from servo:jdm-patch-1); r=mbrubeck
Let's see if this makes the intermittent failure situation improve!

Source-Repo: https://github.com/servo/servo
Source-Revision: 3345b83fb370536a354ce82bb3493576f873d822

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 28e701d2b61b6e40a11cf781d2f5e105e069076a
2017-03-29 09:54:12 -05:00
Mike Conley
09404adfdd Bug 1280079 - Make sure browser_privatebrowsing_newtab_from_popup.js accounts for initial browser remoteness flip when opening popup. r=mossop
During the test, we open a new window which loads a URL, and have code to wait for that
initial browser to complete the load. For the initial browser, there is (when we open
a remote-able URL), the remoteness of that initial browser flips from non-remote to
remote. Sometimes, due to messaging / timing, the initial browser will send a message
saying that a load completed for the initial about:blank before the URL we actually
want is loaded. This causes the test to continue, and attempt to click on an element
that isn't actually on the page yet.

This modification allows us to wait for the initial browser to actually load the page
that we care about before proceeding.

I also changed some of the assertion messages to actually reflect what's being asserted,
as opposed to reflecting what is being revealed if the assertion fails.

MozReview-Commit-ID: 608SaA1nCVs

--HG--
extra : rebase_source : 0662d166e10de5036c40b278554ff5b3dd11de04
extra : source : 4255a184eac6d037763deb9319df652abf5f703b
2017-03-23 13:49:41 -04:00
Daosheng Mu
22ebee8da0 Bug 1305892 - Support Oculus Touch Haptic Feedback; r=kip
MozReview-Commit-ID: 7V931IAcbbx

--HG--
extra : rebase_source : 3423aa7a99b79293783cb1572f8ad3d7a257c7c7
2017-03-29 17:58:11 +08:00
Ralph Giles
3a4bd0aae6 Bug 1351031 - Update rust-build container. r=mshal
Update rust-build docker image source to v0.4.3. This includes
some recent to how verification and taskcluster work to maintain
working scripts, and some changes for the newer cargo-building-
cargo build system, which aren't sufficient for bootstrapping.

MozReview-Commit-ID: 4IdbKVvco8m

--HG--
extra : rebase_source : f3cd2b7e8429648072ac02df5e8d4659c675f2ae
2017-03-27 14:02:44 -07:00
Ralph Giles
e734305b80 Bug 1351031 - Update builders to rust 1.16.0. r=mshal
Repacks of upstream builds.

For release notes see https://blog.rust-lang.org/2017/03/16/Rust-1.16.html or
https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1160-2017-03-16

MozReview-Commit-ID: 9dHGKGSbelG

--HG--
extra : rebase_source : 0fb93f9d7cc6e663f3c7eb662e29f4f0061244db
2017-03-27 13:39:15 -07:00
Emilio Cobos Álvarez
b6611188f1 Bug 1350140: more test expectation updates. r=heycam
MozReview-Commit-ID: 26ngAQoHC9T

--HG--
extra : rebase_source : 127b6a10f3f8e896cdf353305aa9d2ee8eab5ccb
2017-03-28 15:01:34 +02:00
Emilio Cobos Álvarez
4b0d6c2248 Bug 1350140: Flush the overflow changed tracker when done with restyles. r=heycam
MozReview-Commit-ID: 6ENzvvxCok5

--HG--
extra : rebase_source : 5145b2761258de58d208b1d958e83e324723faaf
2017-03-27 22:55:20 +02:00
Emilio Cobos Álvarez
138c319bc2 Bug 1350140: Avoid dumb copy-constructor. r=heycam
MozReview-Commit-ID: CoCbXXYTfH4

--HG--
extra : rebase_source : 080bda25b112094d1bf4c3915054c23aadcd35e5
2017-03-26 19:06:12 +02:00
Emilio Cobos Álvarez
1ac50d323b Bug 1350140: Fix computation of border and outline-width when the border or outline style change. r=heycam
MozReview-Commit-ID: FjMS47YNNX8

--HG--
extra : rebase_source : 2a90f20a838d151f3ff8fedc00843aa7956cdbbc
2017-03-24 20:19:14 +01:00
Emilio Cobos Álvarez
55e9a2ee3f Bug 1350140: Update test expectations. r=emilio
MozReview-Commit-ID: 4ZTM0r5KJfn

--HG--
extra : rebase_source : 139db22ea2b38d796c6d99707818a897104e091e
2017-03-24 09:25:12 +01:00
Emilio Cobos Álvarez
3ed9e13ba8 Bug 1350140: stylo: Implement all the remaining state pseudo-classes. r=heycam
Also implements :link, :visited, and :any-link more efficiently, and stops
matching :-moz-read-only in everything that is not read-write, which is kind of
dumb, and probably creates some artifacts.

MozReview-Commit-ID: 6BQqi7nAWdT

--HG--
extra : rebase_source : 39dc6b481b3a92942dc3732990d8b9040d8e6d84
2017-03-24 00:45:07 +01:00
Gian-Carlo Pascutto
2285dea6a3 Bug 1347358 - Add a Cleanup() function for profile locks. r=glandium
MozReview-Commit-ID: GYQeUuzWPOV

--HG--
extra : rebase_source : 1c031180cb7e31cbeff205de583bd37a3c13945c
2017-03-23 18:02:10 +01:00