Граф коммитов

627289 Коммитов

Автор SHA1 Сообщение Дата
Jeff Muizelaar 9d405dded3 Bug 1510725 - Add a pref to enable picture caching in WebRender. r=kats 2018-12-07 11:37:58 -05:00
Mihai Tabara c7c629cecb Bug 1466714 - fix locale_prefix in declarative artifacts manifests. r=sfraser a=release 2018-12-07 10:18:27 -05:00
Yuri 5232656d44 Bug 469990: Allow command line arguments to be handed off from a new Firefox/Thunderbird process to an existing one when necessary. r=spohl 2018-12-07 09:33:40 -05:00
Emilio Cobos Álvarez 5b5bf2110c Bug 1511811 - Revendor rust dependencies.
--HG--
rename : third_party/rust/darling_core/src/macros.rs => third_party/rust/darling_core/src/macros_private.rs
2018-12-07 09:00:57 -05:00
Bastien Orivel e648c4dee9 Bug 1511811 - Update syn and related dependencies. r=emilio 2018-12-07 09:00:20 -05:00
Michael Ratcliffe 6eb26453a5 Bug 1511334 - Add tests to disable/re-enable and delete/bring flexbox and grid patch r=gl
https://treeherder.mozilla.org/#/jobs?repo=try&revision=228d738caf1403aaa5e62b2348af2e57fb4a06a6

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

--HG--
extra : moz-landing-system : lando
2018-12-07 07:09:35 +00:00
Andrei Lazar 8e83a68e66 Bug 1501024 WifiScanner should use ApplicationContext r=JanH
Fixed lint warning regarding memory leak inside WifiManager constructor.

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

--HG--
extra : moz-landing-system : lando
2018-12-07 18:54:56 +00:00
Denis Palmeiro 1fdd1df655 Bug 1503251 - Keep payload values in the dictionary if they are still alive. r=djvj
If the JS::ResetTraceLogger() routine is called, then keep track of existing event payloads and keep their existence alive instead of clearing them.  This data can still be referred to in another profiler session and can therefore cause to dangling pointers if we free them.

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

--HG--
extra : moz-landing-system : lando
2018-12-07 17:42:39 +00:00
rdalal d959b424c4 Bug 1504038 - Fix preference name styling on OS X on about:studies r=mythmon,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D13877

--HG--
extra : moz-landing-system : lando
2018-12-07 16:35:38 +00:00
Jon Coppeard 8dfb6bd957 Bug 1509923 - Check weak map marking state in debug builds and when enabled with a zeal mode r=sfink 2018-12-06 16:27:21 -05:00
Daniel Varga 5d3de7487c Merge mozilla-central to mozilla-inbound. a=merge 2018-12-08 11:50:00 +02:00
Johann Hofmann 43432ff2a6 Bug 1506996 - Hardcode colors in the content blocking shield animation to avoid animating context properties. r=jaws,sfoster 2018-12-07 17:28:32 -05:00
Noemi Erli a5c0369219 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-12-08 00:18:17 +02:00
Marc Fisher 7d5611d802 bug 1483996: geckodriver: add --marionette-host flag; r=ato 2018-12-07 21:38:49 +00:00
Emilio Cobos Álvarez 0b0dd2d95f Bug 1512328 - Use cbindgen for a couple more CSS properties. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D13886
2018-12-07 15:06:07 -05:00
Emilio Cobos Álvarez a73c2d572b Bug 1511138 - Fix getComputedStyle usage of SelectChild. r=mconley
I missed the failure in browser_selectpopup_colors.js since it doesn't run on
Linux. Fix the getComputedStyle usage in that code by using
getDefaultComputedStyle, which is what it really wants.

Also, do a bit of cleanup while at it: uaBackgroundColor was unused, and uaColor
was wrong (we don't override the ua color of the <option> element, it just
inherits, so it's the same as the <select> color, and that's what we were
comparing it against anyway).

Differential Revision: https://phabricator.services.mozilla.com/D13956
2018-12-07 14:24:49 -05:00
Emilio Cobos Álvarez 1d7963c67b Bug 1511138 - Improve performance of LightweightThemeConsumer when setting properties, and also avoid _sanitizeCSSColor from getting fooled. r=jaws
This probably deserves a comment as of why it belongs to this bug.

This patch series caused a single, reproducible timeout on
browser_ext_themes_toolbars.js, where the transitionend event it awaits for
stops triggering.

I got fascinated by it and I decided to poke around it in rr instead of just
removing the await line, and here's what's going on.

In the previous implementation of _sanitizeCSSColor, we were not flushing style
because of the optimization bug 1363805 introduced (which wasn't supposed to
deal with out-of-document elements, but it accidentally did so).

In any case, the fact that we were not flushing style in _sanitizeCSSColor
caused us to flush style sometime later when the lwtheme attribute was already
set up, and thus the selector in here matched:

  https://searchfox.org/mozilla-central/rev/cfaa5a1d48d6bc6552199e73004ecb05d0a9c921/browser/themes/shared/browser.inc.css#40

And thus caused the transition rule to apply at a time where the
background-color change happened.

Now we were flushing on getComputedStyle on every call, and in the most
inefficient way possible (changing a custom property on the root before each
property change, which causes us to restyle the whole document to propagate it
down to all descendants).

Furthermore, we were flushing style at a time where the lwtheme attribute
change had not yet happened, and thus when the background-color changed, there
was no transition rule applicable, and the transition didn't fire.

This patch changes LightweightThemeConsumer to avoid restyling the whole
document over and over.

Also, while at it I realized that you could fool the sanitizer with !important
in an experiment stylesheet or with other !important rule in the page really.
It's not clear why you'd do that, but it may be worth to just making that
function completely sound, so I did that and added a test for it.

Differential Revision: https://phabricator.services.mozilla.com/D13716
2018-12-07 14:23:35 -05:00
Emilio Cobos Álvarez c9a4b595f3 Bug 1511138 - Fix LightweightThemeConsumer's use of getComputedStyle. r=jaws,mconley
See D13472 for spec quotes and such. Other browsers don't allow
getting computed styles in disconnected subtrees and we agreed to follow suit
(it does make sense because when you're not on the flat tree it's not defined
what you're supposed to inherit from, specially in presence of Shadow DOM).

Also, it allows the style system to rely on the DOM being in a sane state.

Differential Revision: https://phabricator.services.mozilla.com/D13551
2018-12-07 14:23:33 -05:00
Emilio Cobos Álvarez 6729b2a1c2 Bug 1511138 - Fix / update tests. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D13550
2018-12-07 14:23:31 -05:00
Emilio Cobos Álvarez 5cf44383eb Bug 1511138 - Never return styles for disconnected elements. r=smaug
https://drafts.csswg.org/cssom/#dom-window-getcomputedstyle says:

> If elt is connected, part of the flat tree, and its shadow-including root...

WebKit and Blink already do this, and we do it already except for cross-document
situations, where we can end up with a PresShell even if GetPresShellForContent
returns null.

The style system should be able to rely on ShadowRoots having a non-null shadow
host.

Differential Revision: https://phabricator.services.mozilla.com/D13472
2018-12-07 14:23:29 -05:00
Daniel Holbert b7eb50f8ed backout 5d2f9b45ad97 and 54649cf34d98 (bug 1337655), to reenable -moz prefixed CSS gradient syntax on Nightly.
(Backing out due to webcompat fallout.)

--HG--
extra : rebase_source : 677626d413b8c6c385b12f0872cadd052780930d
2018-12-07 13:43:59 -05:00
arthur.iakab 168846ee68 Backed out 5 changesets (bug 1511138) for causing eslint failure on SelectChild.jsm CLOSED TREE
Backed out changeset daee82295b3c (bug 1511138)
Backed out changeset d23c9c3e1566 (bug 1511138)
Backed out changeset a99600391704 (bug 1511138)
Backed out changeset 4ef293b90887 (bug 1511138)
Backed out changeset 4df286b234b3 (bug 1511138)
2018-12-07 20:55:24 +02:00
Emilio Cobos Álvarez ca9c4ff03a Bug 1511138 - Fix getComputedStyle usage of SelectChild. r=jaws,mconley
I missed the failure in browser_selectpopup_colors.js since it doesn't run on
Linux. Fix the getComputedStyle usage in that code by using
getDefaultComputedStyle, which is what it really wants.

Also, do a bit of cleanup while at it: uaBackgroundColor was unused, and uaColor
was wrong (we don't override the ua color of the <option> element, it just
inherits, so it's the same as the <select> color, and that's what we were
comparing it against anyway).

Differential Revision: https://phabricator.services.mozilla.com/D13956
2018-12-07 13:01:06 -05:00
Emilio Cobos Álvarez e94c3c6180 Bug 1511138 - Improve performance of LightweightThemeConsumer when setting properties, and also avoid _sanitizeCSSColor from getting fooled. r=jaws
This probably deserves a comment as of why it belongs to this bug.

This patch series caused a single, reproducible timeout on
browser_ext_themes_toolbars.js, where the transitionend event it awaits for
stops triggering.

I got fascinated by it and I decided to poke around it in rr instead of just
removing the await line, and here's what's going on.

In the previous implementation of _sanitizeCSSColor, we were not flushing style
because of the optimization bug 1363805 introduced (which wasn't supposed to
deal with out-of-document elements, but it accidentally did so).

In any case, the fact that we were not flushing style in _sanitizeCSSColor
caused us to flush style sometime later when the lwtheme attribute was already
set up, and thus the selector in here matched:

  https://searchfox.org/mozilla-central/rev/cfaa5a1d48d6bc6552199e73004ecb05d0a9c921/browser/themes/shared/browser.inc.css#40

And thus caused the transition rule to apply at a time where the
background-color change happened.

Now we were flushing on getComputedStyle on every call, and in the most
inefficient way possible (changing a custom property on the root before each
property change, which causes us to restyle the whole document to propagate it
down to all descendants).

Furthermore, we were flushing style at a time where the lwtheme attribute
change had not yet happened, and thus when the background-color changed, there
was no transition rule applicable, and the transition didn't fire.

This patch changes LightweightThemeConsumer to avoid restyling the whole
document over and over.

Also, while at it I realized that you could fool the sanitizer with !important
in an experiment stylesheet or with other !important rule in the page really.
It's not clear why you'd do that, but it may be worth to just making that
function completely sound, so I did that and added a test for it.

Differential Revision: https://phabricator.services.mozilla.com/D13716
2018-12-07 13:01:04 -05:00
Emilio Cobos Álvarez f4b8cf19fc Bug 1511138 - Fix LightweightThemeConsumer's use of getComputedStyle. r=jaws,mconley
See D13472 for spec quotes and such. Other browsers don't allow
getting computed styles in disconnected subtrees and we agreed to follow suit
(it does make sense because when you're not on the flat tree it's not defined
what you're supposed to inherit from, specially in presence of Shadow DOM).

Also, it allows the style system to rely on the DOM being in a sane state.

Differential Revision: https://phabricator.services.mozilla.com/D13551
2018-12-07 13:01:03 -05:00
Emilio Cobos Álvarez 3767b3a6d1 Bug 1511138 - Fix / update tests. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D13550
2018-12-07 13:01:01 -05:00
Emilio Cobos Álvarez 581a15722e Bug 1511138 - Never return styles for disconnected elements. r=smaug
https://drafts.csswg.org/cssom/#dom-window-getcomputedstyle says:

> If elt is connected, part of the flat tree, and its shadow-including root...

WebKit and Blink already do this, and we do it already except for cross-document
situations, where we can end up with a PresShell even if GetPresShellForContent
returns null.

The style system should be able to rely on ShadowRoots having a non-null shadow
host.

Differential Revision: https://phabricator.services.mozilla.com/D13472
2018-12-07 13:00:59 -05:00
J.C. Jones 6acf3fd2e1 Bug 1501587 - land NSS NSS_3_41_RTM UPGRADE_NSS_RELEASE, r=me
--HG--
extra : rebase_source : 7c7b9976c26f93c2f318c66759f6b046e2fec032
extra : amend_source : 8e1020cacbc9456a2eeaab7e2af5dde3db693bfa
2018-12-07 17:01:03 +00:00
Luca Greco 79cc29fa6e Bug 1512419 - Screenshots' contextMenu entry should be available on webpage in reader mode. r=_6a68
Depends on D13907

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

--HG--
extra : moz-landing-system : lando
2018-12-06 18:23:40 +00:00
Luca Greco 5555f4c1cc Bug 1512421 - contextMenus documentUrlPatterns should allow unrestricted schemes on privileged mozilla addons. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D13907

--HG--
extra : moz-landing-system : lando
2018-12-07 16:46:32 +00:00
Jan de Mooij eb4bf3347b Bug 1512417 - Pass |this| as second argument to Cu.import calls in Promise-backend.js to fix an issue with same-compartment realms. r=kmag
With same-compartment-realms, the Cu.import native is a cross-realm function so
we switch to its realm and ended up defining things on the wrong global.

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

--HG--
extra : moz-landing-system : lando
2018-12-06 21:59:09 +00:00
Brian Birtles 1a15db9fdd Bug 1512678 - Simplify handling of previousBaseStyles in KeyframeEffect::EnsureBaseStyles; r=hiro
This should avoid a sometimes unnecessary heaps allocation and also avoids the
possibility of having a "none" previousBaseStyles.

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

--HG--
extra : moz-landing-system : lando
2018-12-07 17:28:29 +00:00
Ciure Andrei 22c96f2cb4 Backed out 4 changesets (bug 1510853) for TelemetryHistogramEnums.h build bustages CLOSED TREE
Backed out changeset 80baa7b09930 (bug 1510853)
Backed out changeset d1ef6db7fc28 (bug 1510853)
Backed out changeset ae190948ad73 (bug 1510853)
Backed out changeset 0ade0aa77b2f (bug 1510853)
2018-12-07 19:38:47 +02:00
Matt Woodrow c90b5f66d6 Bug 1510853 - Add CONTENT_FRAME_TIME_REASON. r=jrmuizel, data-review=chutten
MozReview-Commit-ID: 9RV9ZkHXZTR

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

--HG--
extra : moz-landing-system : lando
2018-12-07 17:02:58 +00:00
Matt Woodrow e553ae49ac Bug 1510853 - Make VsyncId available to compositor. r=jrmuizel
MozReview-Commit-ID: 8wBDg39R4nZ

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

--HG--
extra : moz-landing-system : lando
2018-12-07 17:06:09 +00:00
Matt Woodrow 6c3cd9bd00 Bug 1510853 - Introduce VsyncId and VsyncEvent for identifying vsyncs without timestamp comparisons. r=jrmuizel
MozReview-Commit-ID: 6TO6hYOdJYo

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

--HG--
extra : moz-landing-system : lando
2018-12-07 17:06:11 +00:00
Matt Woodrow a2ea26e1f9 Bug 1510853 - Make TransactionId usable for other 64bit identifiers. r=jrmuizel
MozReview-Commit-ID: 9qX9A7ZGWS8

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

--HG--
extra : moz-landing-system : lando
2018-12-07 17:06:07 +00:00
Daisuke Akatsuka a9e8a601b4 Bug 1506513: Add worker mock test. r=jdescottes
Depends on D13970

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

--HG--
extra : moz-landing-system : lando
2018-12-07 16:27:47 +00:00
Daisuke Akatsuka 5e124e657d Bug 1506513: Use clientWrapper instead of client. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D13970

--HG--
extra : moz-landing-system : lando
2018-12-07 14:11:39 +00:00
Mark Banner bcc710f22a Bug 1511799 - Enable valid-jsdoc, require-jsdoc (classes) and var-only-at-top-level for browser/components/search. r=adw
Depends on D11656

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

--HG--
extra : moz-landing-system : lando
2018-12-07 15:33:53 +00:00
Tim Nguyen d3ce1d7179 Bug 1509629 - Clean up add-ons manager 'Contribute' button styling. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D12818

--HG--
extra : moz-landing-system : lando
2018-12-07 15:12:00 +00:00
Jared Wein 4f380956c6 Bug 1512309 - Set the month of the date object through the Date constructor instead of the UTC time. r=MattN
The UTC time was generating incorrect months when the browser was used in a timezone that has a negative UTC offset. The value returned from Date.UTC was then parsed by new Date() which was converted to the local timezone. Date.UTC(1970, 0, 1) would return a time of 0 which would then become December 1969.

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

--HG--
extra : moz-landing-system : lando
2018-12-07 14:12:53 +00:00
John Lin 9249bf1d0a Bug 1495053 - p3: implement MediaDrmCDMProxy::SetServerCertificate(). r=cpearce
Differential Revision: https://phabricator.services.mozilla.com/D7792

--HG--
extra : moz-landing-system : lando
2018-12-07 14:44:34 +00:00
John Lin 356abac240 Bug 1495053 - p2: add setServerCertificate() to Java/JNI proxy classes. r=cpearce
Differential Revision: https://phabricator.services.mozilla.com/D7791

--HG--
extra : moz-landing-system : lando
2018-12-07 14:44:10 +00:00
John Lin b691f2d917 Bug 1495053 - p1: support setting server certificate in MediaDrm bridge. r=cpearce
Differential Revision: https://phabricator.services.mozilla.com/D7790

--HG--
extra : moz-landing-system : lando
2018-12-07 14:43:33 +00:00
Dão Gottwald 38c1a64250 Bug 1512159 - Fix hiding of minimize and restore buttons in tablet mode. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D13800

--HG--
extra : moz-landing-system : lando
2018-12-07 14:37:35 +00:00
Jason Orendorff 20d0366a50 Bug 1493260 - Revise the SMDOC comment in js/src/jit/Bailouts.h. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D13742

--HG--
extra : moz-landing-system : lando
2018-12-07 14:40:20 +00:00
John Lin eb4a57903b Bug 1510424 - fix AAC and FLAC EME support configuration. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D13135

--HG--
extra : moz-landing-system : lando
2018-12-07 14:40:50 +00:00
Ciure Andrei 60a7065bec Backed out 3 changesets (bug 1512286)for breaking test because of missing option CLOSED TREE
Backed out changeset cd601d93d9f3 (bug 1512286)
Backed out changeset 929fe0acd506 (bug 1512286)
Backed out changeset e1b3f3624b87 (bug 1512286)
2018-12-07 16:51:59 +02:00
Dão Gottwald 0e42390444 Bug 1511905 - Fix window controls' hover and active colors in light titlebars on Windows 10. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D13752

--HG--
extra : moz-landing-system : lando
2018-12-07 02:34:12 +00:00