Commit Graph

627109 Commits

Author SHA1 Message Date
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
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
Diego Pino Garcia
114e1d1f03 Bug 1436329 - Parse WebIDL "partial dictionary" r=peterv 2018-11-29 01:11:00 +02:00
Razvan Maries
ff46b36ac2 Merge mozilla-inbound to mozilla-central a=merge 2018-12-07 11:29:48 +02:00
Timothy Nikkel
426a7b9984 Bug 1512524. Make all in-tree IsImageFrame checks also check for IsImageControlFrame because that is what they actually want. r=dholbert 2018-12-06 23:24:22 -05:00
Wes Kocher
8b0cd4fafc Bug 1499003 - Update the referenced bug for skipped fennec wpt service-worker tests r=me a=testonly
--HG--
extra : rebase_source : b6c13052bb1e3a6d354a63a4a00139973a10fef4
2018-12-06 14:28:32 -08:00
Adrian Kaczmarek
87b118cac2 Bug 1292878 - Use :root instead of #main-window in browser/base/content/browser.css. r=dao 2018-12-06 22:57:40 +01:00
Daniel Varga
55e327bd73 Merge mozilla-central to mozilla-inbound. a=merge 2018-12-06 23:52:03 +02:00
Nico Grunbaum
4380b01ee3 Bug 1512517 - update WebRTC stat deprecation messages r=jib
Update WebRTC stat deprecation messages which were originally targeting 65, which are now targeting 66.

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

--HG--
extra : moz-landing-system : lando
2018-12-06 21:48:31 +00:00
Chris Manchester
49528bb9e6 Bug 1510714 - Use mozbuild instead of path heuristics to prioritize rust in the compile traversal. r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D13921

--HG--
extra : moz-landing-system : lando
2018-12-06 22:48:11 +00:00
Andreea Pavel
1daccecb89 Backed out changeset a9c528fe96d5 (bug 1512046) for failing devtools/client/webconsole/test/mochitest/browser_webconsole_error_with_grouped_stack.json a CLOSED TREE 2018-12-07 01:03:29 +02:00
Matt Woodrow
ece9805dc5 Bug 1511797 - Allow catch up compositing to continue when we complete frame building. r=sotaro
Differential Revision: https://phabricator.services.mozilla.com/D13953

--HG--
extra : moz-landing-system : lando
2018-12-06 22:19:03 +00:00
Brian Birtles
928d88aabb Bug 1433705 - Rename GetCurrentTime to GetCurrentTimeAsDuration; r=hiro
To avoid having to always work around conflicts with winbase.h.

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

--HG--
extra : moz-landing-system : lando
2018-12-06 22:16:48 +00:00
Daniel Varga
6ba153fa56 Merge mozilla-inbound to mozilla-central. a=merge 2018-12-06 23:41:15 +02:00
Wes Kocher
e698aa1c32 Bug 1499003 - Update the referenced bug for skipped fennec wpt user-timing test r=me a=test-only
--HG--
extra : source : 7e21220c4b7199800ec71dcc19c8c21b67c1461b
2018-12-06 13:32:53 -08:00
Miko Mynttinen
aafa85ee9d Bug 1512251 - Remove unused render only selection code r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D13829

--HG--
extra : moz-landing-system : lando
2018-12-06 19:40:50 +00:00
Brian Birtles
49c3fc1ad2 Bug 1488122 - Factor out type definition for base values hashmap; r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D13935

--HG--
extra : moz-landing-system : lando
2018-12-06 20:57:58 +00:00
Brian Birtles
4646c7c31e Bug 1488122 - Update additive filling animations when the base style changes; r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D13934

--HG--
extra : moz-landing-system : lando
2018-12-06 20:59:50 +00:00
Brian Birtles
7f652e687a Bug 1488122 - Rename KeyframeEffect::mBaseStyleValuesForServo to just mBaseValues; r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D13933

--HG--
extra : moz-landing-system : lando
2018-12-06 20:57:12 +00:00
Brian Birtles
58da991fc3 Bug 1488122 - Add tests for filling effects; r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D13932

--HG--
extra : moz-landing-system : lando
2018-12-06 20:56:44 +00:00
WR Updater Bot
9a22506e3f Bug 1512482 - Update webrender to commit 694726ea7eee67ea3d8c6586aba28e9867e7f8ea (WR PR #3386). r=kats
https://github.com/servo/webrender/pull/3386

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

--HG--
extra : moz-landing-system : lando
2018-12-06 22:07:31 +00:00
Daniel Varga
860ad350dd Merge mozilla-central to autoland. a=merge
--HG--
extra : rebase_source : 8ee1e412347621306f50b7d0dd1d8121ddcd498e
2018-12-06 23:48:46 +02:00
Nicolas Chevobbe
add8a15000 Bug 1512046 - Stop propagation of callstack group click; r=Honza.
This also adds a console test to make sure we don't regress
this in the future.

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

--HG--
extra : moz-landing-system : lando
2018-12-06 20:34:36 +00:00
Dão Gottwald
e54f0d9a0f Bug 1492842 - Implement UrlbarInput up/down key event handling to navigate within the UrlbarView. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D13794

--HG--
extra : moz-landing-system : lando
2018-12-06 21:33:30 +00:00
reimu
f4794a2bfb Bug 1501931 - Enable ESLint for parser/ (manual fixes) r=Standard8,mrbkap
Depends on D11920

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

--HG--
extra : moz-landing-system : lando
2018-12-06 20:30:32 +00:00
reimu
4819e4a0ee Bug 1501931 - Enable ESLint for parser/ (automatic fixes) r=Standard8,mrbkap
Differential Revision: https://phabricator.services.mozilla.com/D11920

--HG--
extra : moz-landing-system : lando
2018-12-06 20:34:29 +00:00
Alex Gaynor
80387730b1 Bug 1512455 - removed some dead code from the IPDL compiler; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D13922

--HG--
extra : moz-landing-system : lando
2018-12-06 20:27:04 +00:00
Andrew Goupil
9aad37834d Bug 1511850 - Simplify @media not all and (-moz-os-version: ...) queries. r=dao 2018-12-06 20:30:09 +01:00
Sylvestre Ledru
d2ca9ab951 Bug 1510458 - Ride along: simplify the declaration (else after a return) r=ahal
Depends on D13709

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

--HG--
extra : moz-landing-system : lando
2018-12-06 18:51:22 +00:00
Sylvestre Ledru
1d186ac794 Bug 1510458 - Ride along: declare import shutil once r=ahal
Depends on D13708

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

--HG--
extra : moz-landing-system : lando
2018-12-06 18:48:59 +00:00
WR Updater Bot
630d4966dd Bug 1512467 - Update webrender to commit 6db2d6c9005cf5888c6b35ca6908449ec591527a (WR PR #3369). r=kats
https://github.com/servo/webrender/pull/3369

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

--HG--
extra : moz-landing-system : lando
2018-12-06 18:14:22 +00:00
Cosmin Sabou
42dba8ce7d Backed out 5 changesets (bug 1511138) for browser chrome failures on browser_selectpopup_colors.js. CLOSED TREE
Backed out changeset 65e99e6399b9 (bug 1511138)
Backed out changeset 5f5d1c50a342 (bug 1511138)
Backed out changeset e03afbff55f3 (bug 1511138)
Backed out changeset d2d3e7a822b5 (bug 1511138)
Backed out changeset e601a2fbd077 (bug 1511138)
2018-12-06 20:14:00 +02:00
matthias
9952037be2 Bug 1512318 - Focused textboxes do not change their border on hover. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D13888

--HG--
extra : moz-landing-system : lando
2018-12-06 17:33:53 +00:00
WR Updater Bot
9f7e0d6686 Bug 1512375 - Update webrender to commit 545126069734895bcf506324542f0e716c32512e (WR PR #3388). r=kats
https://github.com/servo/webrender/pull/3388

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

--HG--
extra : moz-landing-system : lando
2018-12-06 17:08:39 +00:00
Emilio Cobos Álvarez
ab0baa730e Bug 1511138 - Fix lint and OSX-only test failure on a CLOSED TREE. 2018-12-06 11:48:29 -05:00
Andi-Bogdan Postelnicu
fbd9a10021 Bug 1511889 - Update clang-plugin LoadLibraryUsageChecker to use getBeginLoc. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D13726

--HG--
extra : moz-landing-system : lando
2018-12-06 16:34:13 +00:00
Csoregi Natalia
f5599eb934 Merge mozilla-central to mozilla-inbound. CLOSED TREE 2018-12-06 17:43:26 +02:00
Csoregi Natalia
3300dba1b6 Merge autoland to mozilla-central. a=merge 2018-12-06 17:34:31 +02:00
Emilio Cobos Álvarez
242f55927a 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-06 10:33:32 -05:00
Emilio Cobos Álvarez
1b9bdc09c1 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-06 10:33:30 -05:00