Commit Graph

602337 Commits

Author SHA1 Message Date
Ciure Andrei
7e70527778 Backed out 1 changesets (bug 1472272) for xpcshell failures test_TelemetrySession.js CLOSED TREE
Backed out changeset bd57c1549f75 (bug 1472272)
2018-06-30 18:27:41 +03:00
Stephen A Pohl
6e2726ff71 Bug 1472272: Allow apps like Thunderbird to switch to the dark theme as well when macOS 10.14+ switches to dark mode. r=dao 2018-06-30 10:39:34 -04:00
Ciure Andrei
2bb107325a Backed out 1 changesets (bug 1472272) for xpcshell failures test_TelemetrySession.js CLOSED TREE
Backed out changeset 7cb1b45d690f (bug 1472272)
2018-06-30 16:19:05 +03:00
Stephen A Pohl
3bc58ff06d Bug 1472272: Allow apps like Thunderbird to switch to the dark theme as well when macOS 10.14+ switches to dark mode. r=dao 2018-06-30 08:35:57 -04:00
Andreea Pavel
c5bb0d1b10 No bug - fix merge conflict mistake r=Aryx on a CLOSED TREE
--HG--
extra : amend_source : 78dc5d2a30fb4208ca64ed8bde4db3fda63cb86b
2018-06-30 13:57:50 +03:00
Andreea Pavel
1bf7ac45bb Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-06-30 13:10:01 +03:00
Andreea Pavel
91a9c110e2 Merge mozilla-inbound to mozilla-central. a=merge 2018-06-30 12:49:32 +03:00
Emilio Cobos Álvarez
c4900d4847 Bug 215083: Fix CreateContinuingFrame to account for non-nsImageLoadingContent image frames. r=heycam
MozReview-Commit-ID: CLx3siPe4Cx
2018-06-30 03:45:12 +02:00
Emilio Cobos Álvarez
df24c5fda6 Bug 215083: Remove sync image request clone. r=tnikkel
MozReview-Commit-ID: 59bXcnxfJTC
2018-06-30 03:45:12 +02:00
Emilio Cobos Álvarez
6d73d28803 Bug 215083: Implement content: url(..) for elements. r=tnikkel,dholbert
Dynamic changes are handled correctly because content property changes already
cause a reframe.

This implements the same bits as Blink / WebKit do (single content item which is
an image, otherwise gets ignored), except for the edge cases where you use this
on an image.

In order to handle the edge cases right, we completely isolate the
nsImageLoadingContent usage based on `mKind`.

Blink's and WebKit's behavior there makes no sense and it's erratic, what I
implemented is consistent (we apply to images as long as they don't generate a
box, and we don't look at alt text or broken icons), though I'll update to
whatever the WG decides in https://github.com/w3c/csswg-drafts/issues/2831 /
https://github.com/w3c/csswg-drafts/issues/2832.

I don't think it matters in terms of web compat in any case.

MozReview-Commit-ID: JUurhC60hWr
2018-06-30 03:45:13 +02:00
Andrew Osmond
b13b2abe4f Bug 1472145 - Part 2. Add telemetry to track how frequently WebP images are used. r=tnikkel data-r=chutten
This patch adds three telemetry scalars to track how WebP is used. All
of these scalars are updated when we do the MIME type confirmation for
an imgRequest when the first data comes in. We know at this point we
decided to load the given content, so there should be minimal false
positives for data the browser loaded but never displayed.

The first two scalars are merely whether or not WebP was observed. One
is for probes, which are tiny WebP images suggested by the Google WebP
FAQ to probe for different aspects of WebP support (lossy, animated,
etc). We want to count this separately as actual WebP content that the
website wishes us to display. Probes will give a measure of how many
users visit websites that probe for WebP support, and content will give
a measure of how many websites don't care and just give us WebP images
regardless.

The third scalar is intended to give a relative measure of how many WebP
images we are being served relative to all other image types. We expect
the ratio to be small, but it would be good to confirm this from the
data.
2018-06-29 20:30:08 -04:00
Andrew Osmond
c7ece5c2e5 Bug 1472145 - Part 1. Add support for identifying the WebP images MIME type. r=tnikkel 2018-06-29 20:30:05 -04:00
André Bargull
e09a53c18a Bug 1471788: Apply ToNumber conversion even when the typed array write is out-of-bounds. r=evilpie
--HG--
extra : rebase_source : 9c1cc0307b8c1800f99e0884975ecd935b0e5a5d
2018-06-29 13:46:04 -07:00
Mats Palmgren
e9805c3053 Bug 1470260 part 2 - Make RefreshDriverTimer ref-counted and hold a strong ref on it on the stack when nsRefreshDriver::Tick can be reached. r=emilio 2018-06-30 01:08:54 +02:00
Mats Palmgren
050942c49c Bug 1470260 part 1 - Ensure that 'this' stays alive for the duration of the TickRefreshDriver call. r=emilio 2018-06-30 01:08:54 +02:00
Olli Pettay
2e00f64ed1 Bug 1419661, if ExtendedDOMSlots are used before slots, use FatSlots to have fewer allocations, r=mrbkap 2018-06-30 01:30:37 +03:00
Calixte Denizet
264c53b6fe Bug 1472146 - Disable warnings-as-errors on macosx64 and win64 code coverage builds to avoid false positives. r=marco
Reviewers: marco

Reviewed By: marco

Bug #: 1472146

Differential Revision: https://phabricator.services.mozilla.com/D1877

--HG--
extra : amend_source : a4af8b6c06139f5147cd837619ecfc9bb454737d
2018-06-30 01:17:03 +03:00
Calixte Denizet
9aabc7f563 Bug 1471882 - Fix build bustage on nsCodeCoverage.cpp r=marco
Summary:
- Add explicit keyword on ProcessCount ctor
- Fix an unused variable in a loop

Reviewers: marco

Reviewed By: marco

Bug #: 1471882

Differential Revision: https://phabricator.services.mozilla.com/D1864

--HG--
extra : rebase_source : be0ae98ba0b54fc626b6857336c59d114be1e6f3
2018-06-30 01:14:21 +03:00
Michael Ratcliffe
b441397dbd Bug 1466880 - Track toolbox session id in event telemetry probes r=yulia
MozReview-Commit-ID: SC6Vm4Qn7n

--HG--
extra : rebase_source : 64f03f765a8060a3478b50e25f248286cdab8e3f
2018-06-29 16:36:24 +01:00
whirish
d559e21e1d Removed histogram from Histograms.json (Bug 1472163) r=Gijs
MozReview-Commit-ID: 7qP17zMhcQR

--HG--
extra : rebase_source : 6a2aa569a8f7a771a3b1d7db2aed7dff234a9c45
2018-06-29 18:41:08 -07:00
jgilbert@mozilla.com
1527dfb596 Bug 1472402 - -MG for clang-cl breaks missing-include error reporting. - r=froydnj
MozReview-Commit-ID: EhtNTZcXBrt

--HG--
extra : rebase_source : 900afc0e4cfd0dde1c0f4f3ec883e879a295567c
2018-06-29 20:18:08 -07:00
Emilio Cobos Álvarez
f73f11f891 No bug - Remove stray newline. r=me
MozReview-Commit-ID: 4oTHDBjMJHp
2018-06-30 17:19:50 +02:00
Emilio Cobos Álvarez
f36a3eac08 Bug 1472443: Serialize content properties using Servo. r=xidorn
... and cleanup unused keywords / getters using the scripts in
layout/style/tools

Differential Revision: https://phabricator.services.mozilla.com/D1901

MozReview-Commit-ID: BRUGcje7X0q
2018-06-30 17:14:12 +02:00
Emilio Cobos Álvarez
fac54cd7df Bug 1472443: Make StyleContentType an enum class. r=xidorn
Most of it is automated by:

  %s/eStyleContentType_/StyleContentType::/g
  %s/nsStyleContentType/StyleContentType/g

But I removed some parentheses by hand.

Differential Revision: https://phabricator.services.mozilla.com/D1900

MozReview-Commit-ID: 3IcirjIYX5p
2018-06-30 17:13:07 +02:00
Emilio Cobos Álvarez
295eb31aba Bug 1116638: Update more expectations for new tests added. r=me
MozReview-Commit-ID: D3nYC5fsBNb
2018-06-30 17:11:13 +02:00
Emilio Cobos Álvarez
97cf1e0c02 Bug 1116638: Expose logical props in computed style. r=xidorn
Differential Revision: https://phabricator.services.mozilla.com/D1862

--HG--
extra : moz-landing-system : lando
2018-06-30 13:45:43 +00:00
Emilio Cobos Álvarez
8f2668dd6e Bug 1472389: test content: url() pagination path. r=dholbert
With a bonus pseudo-element test as well :)

Differential Revision: https://phabricator.services.mozilla.com/D1896

--HG--
extra : moz-landing-system : lando
2018-06-30 03:07:27 +00:00
Jan-Erik Rediger
fbe9242dc3 Bug 1466518 - Store current timestamp as profile directory scan date in a scalar. r=chutten
Depends on D1577

MozReview-Commit-ID: ADAXwJlIVQN

Differential Revision: https://phabricator.services.mozilla.com/D1578

--HG--
extra : moz-landing-system : lando
2018-06-30 12:00:20 +00:00
Andreea Pavel
b9443039cd Merge mozilla-central to autoland. a=fix-uplift 2018-06-30 14:46:22 +03:00
Tiberius Oros
681ee1ca9b Backed out changeset d2afa568a6ba (bug 1466518) for linting opt failure on a CLOSED TREE 2018-06-30 13:32:58 +03:00
Emilio Cobos Álvarez
e45edf9ebc Bug 215083: Account for subclasses in the next-in-flow assertion. r=me a=fix-uplift
MozReview-Commit-ID: 2E8Fm4Lxnf8

--HG--
extra : source : c3983769db6d28b2af6f4f7d1dee2f4ed4aa887a
extra : amend_source : 94001c14b0f333814e099fc0a8c57d120bb6feaf
2018-06-30 04:40:31 +02:00
Benjamin Bouvier
5e7e1c50d9 Bug 1472202: Stop running SM(msan) until it's fixed; r=Callek
--HG--
extra : rebase_source : 9455a89c7b1efe73fb96ac2a23dac7715c033b74
extra : amend_source : 4a43ac13ff3fc062f5e20fc65de8997d7641c011
2018-06-29 17:21:19 +02:00
Benjamin Bouvier
f82eacce97 Bug 1450261: Implement Val, a rooted LitVal; r=luke, r=jonco
--HG--
extra : rebase_source : 010cd8dafd03402487cc80f30ff67a607895fe75
2018-06-29 16:43:20 +02:00
Jan-Erik Rediger
db3e703558 Bug 1466518 - Store current timestamp as profile directory scan date in a scalar. r=chutten
Depends on D1577

MozReview-Commit-ID: ADAXwJlIVQN

Differential Revision: https://phabricator.services.mozilla.com/D1578

--HG--
extra : moz-landing-system : lando
2018-06-29 13:12:43 +00:00
Jeff Walden
80abb71067 Bug 1472066 - Add some helper functions to enable (once the non-integral Utf8Unit code unit type lands, soon) dealing with Utf8Unit as the type of UTF-8 source code in addition to char16_t for UTF-16 source code. r=arai
--HG--
extra : rebase_source : 1f050dd6c0cb07a8b5d8bc257eb42ec78d699a33
2018-06-28 20:17:17 -07:00
Jeff Walden
2f902e38d0 Bug 1472066 - Specialize TokenStreamCharsBase::fillCharBufferWithTemplateStringContents for char16_t now that its alternative UTF-8 implementation will have to function a bit differently to write data into a char16_t charBuffer. r=arai
--HG--
extra : rebase_source : 8c6e13e16777abc910aaf46d4654ae03e88f32fa
2018-06-28 20:14:27 -07:00
Cameron McCormack
48fe6dbe69 Bug 1472065 - Initialize mSheet and mParentRule in css::Rule's constructor. r=xidorn
MozReview-Commit-ID: JI3cMiJaH3x

--HG--
extra : rebase_source : 3f45a63c8817df9550c5c638ad5b978421fa051c
2018-06-29 12:56:09 +10:00
Gurzau Raul
a5fae08102 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-07-02 00:52:31 +03:00
Martin Stransky
1f770d80e5 Bug 1467128 - [Wayland] Get VSync from Gtk/Wayland, r=lsalzman
VSync on Wayland is a bit tricky as we can get only "last VSync" event signal with
CLOCK_MONOTONIC timestamp or none (if application is hidden/minimized).

That means we should draw a next frame at "last Vsync + frame delay" time and also
approximate next VSync event when we don't get any.

MozReview-Commit-ID: FI3Z4nkmDNK

--HG--
extra : rebase_source : 8a0f6148990cf4e7ad26ff287eadff87cb0215fc
2018-06-29 13:15:41 +02:00
Jeff Walden
e249f558aa Bug 1472031 - Add SourceUnits::matchHexDigits and remove SourceUnits::peekCodeUnits used for the same ends (but that also performed a needless copy). r=arai
--HG--
extra : rebase_source : bad3e97ead1b4d72dd39420bfc96614913464d62
2018-06-28 16:08:53 -07:00
Jeff Walden
76990b22f2 Bug 1472031 - Avoid copying potential directives in TokenStreamSpecific::getDirective. r=arai
--HG--
extra : rebase_source : d6386e0fe99a2fe9050d25952426205779b8ee2e
2018-06-28 15:39:14 -07:00
Jeff Walden
75148cb5d5 Bug 1472031 - Implement a SourceUnits::remaining() function exposing how many code units are left. r=arai
--HG--
extra : rebase_source : a0e1e6add04478f6dda4407943772683f77fad24
2018-06-28 15:34:12 -07:00
Jeff Walden
4ec8af2179 Bug 1472031 - Define TokenStreamAnyChars::updateFlagsForEOL inline in the header, for simplicity. r=arai
--HG--
extra : rebase_source : 970066032cae253d5b816f188d03b23025d28729
2018-06-28 15:33:29 -07:00
Jeff Walden
4f9aef7e10 Bug 1472031 - Rename atomizeChars to atomizeSourceChars to clarify it's only for atomizing directly from source text. r=arai
--HG--
extra : rebase_source : 0a666084c0695aac7ac994c2b96d0f699965657c
2018-06-28 15:32:41 -07:00
Jeff Walden
7ed2b26ceb Bug 1472031 - Introduce a drainCharBufferIntoAtom function to clear charBuffer and create an atom from the chars that were in it. r=arai
--HG--
extra : rebase_source : bd8f3114f8704b7a266ccf21d4c110fe28ab77f1
2018-06-28 15:31:13 -07:00
Jeff Walden
da3129de0b Bug 1467336 - Change a bunch of 'character' nomenclature in token stream code to 'code unit', completing the transition from tokenizing by UTF-16 'character' to tokenizinng by UTF-8/16 code unit. (There are straggling places where algorithms will need to be specialized for UTF-8, or functions will need to move within the TokenStream* hierarchy to permit such; but what is in the tree now universally acts on code units first, full code points second.) r=arai
--HG--
extra : rebase_source : 06fa722d16b801f9db7f38110756d8a8f62b6617
2018-06-28 02:30:08 -07:00
Jeff Walden
8d4d43a2d1 Bug 1467336 - Remove GeneralTokenStreamChars::{,un}getChar now that they're unused. r=arai
--HG--
extra : rebase_source : 908ffc7370dafe00bb6266ec5817b40bb353d93f
2018-06-28 02:27:50 -07:00
Jeff Walden
3da23e1993 Bug 1471465 - Fix some issues with ungetting LineTerminatorSequence in certain places. r=arai
--HG--
extra : rebase_source : 82a7a98fc500d26be67363c45f91662887b12091
2018-06-27 13:26:14 -07:00
Jeff Walden
69afaf684f Bug 1471464 - Make getNonAsciiCodePoint, getFullAsciiCodePoint, and isAsciiCodePoint all take |int32_t| and not |CharT|, because they're all passed |int32_t| from |getCodeUnit()| or a code point-getting mechanism. r=arai
--HG--
extra : rebase_source : 2582f93ab5c048bb0df42563331a450423529e3c
2018-06-27 13:26:13 -07:00
Jeff Walden
9d4fe70e96 Bug 1471463 - Move TokenStreamCharsBase::tokenbuf and related functions into a new TokenStreamCharsShared base class, make the character type always char16_t, and rename it/them to 'charBuffer' for clarity. r=arai
--HG--
extra : rebase_source : ac4e81db943a1f69a8caa0722d4239b4fb5dc1c1
2018-06-27 13:25:57 -07:00