Commit Graph

639558 Commits

Author SHA1 Message Date
Boris Chiou
a47dc39197 Bug 1526850 - Part 3: Use DisplayItemType as the input of AddTransitionsAndAnimationsToLayer. r=hiro
Transform display item may have multiple properties, so it's better to
use display item type as the input.

Also, factor some code out of AddAnimationsForProperty, so we can easier
to extend this for multiple properties.

We will pass a list of layers::Animation to the compositor thread. In
this list, the animations belonging to the same property are grouped together,
so we can easily separate the animations by property and sample the animations
for each property on the compositor thread. (Will do this in Bug 1425837.)

Depends on D19628

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

--HG--
extra : moz-landing-system : lando
2019-03-01 21:13:05 +00:00
Boris Chiou
97ae508f2d Bug 1526850 - Part 2: Let FindAnimationsForCompositor take nsCSSPropertyIDSet. r=hiro
We use DisplayItemType as the input of HasAnimationsForCompositor, and
nsCSSPropertyIDSet as the input of GetAnimationsForCompositor.

The caller of HasAnimationsForCompositor just wants to check if there is
any compositor animation for a display item, so we can replace it by the
display item, and get the properties from this display item.

However, the caller of GetAnimationsForCompositor may use a subset of
transform-like properties for getting scale factors, or use all the
transform-like properties for sending all transform animations to the
compositor thread.

Depends on D19630

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

--HG--
extra : moz-landing-system : lando
2019-03-01 21:13:03 +00:00
Boris Chiou
55287b9a0b Bug 1526850 - Part 1: Add a function which sets RunningOnCompositor by DisplayItemType. r=hiro
FrameLayerBuilder needs to clear this flag by DisplayItemType, so we add
a new function for it.

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

--HG--
extra : moz-landing-system : lando
2019-03-01 21:13:01 +00:00
Mike Hommey
6bfaa82f51 Bug 1531634 - Change how OMNIJAR_NAME is handled for fennec builds. r=nalexander
Fennec has a value of OMNIJAR_NAME that contains a directory, contrary
to other platforms, and relies in post-packaging, pre-unpacking steps to
accommodate with the difference.

With this change, we just make the packaging and unpacking steps aware
of this setup, and make allow them to pack/unpack resources in foo/
under foo/$OMNIJAR_NAME, whether $OMNIJAR_NAME is a file name or a path.

This will, further down the road, allow the packager code to handle jar
logs from PGO instrumentation without munging them.

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

--HG--
extra : moz-landing-system : lando
2019-03-01 21:49:47 +00:00
Mike Hommey
8955f8be1d Bug 1531632 - Initialize environment variables before loading libxul. r=snorp
There are at least two known side effects of initializing it after
loading libxul:
- We can't set LLVM_PROFILE_FILE for the instrumentation part of PGO to
  make the compiler-rt static initializer pick it.
- We can't set MOZ_DEBUG_LINKER to enable the linker debug log (which
  used to work when environment variables were set earlier).

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

--HG--
extra : moz-landing-system : lando
2019-03-01 15:23:57 +00:00
Dorel Luca
779e796798 Backed out 3 changesets (bug 1525570) for mochitest failures in gfx/layers/apz/test/mochitest/test_group_zoom.html | helper_zoom_prevented.html
Backed out changeset ee394d0b085d (bug 1525570)
Backed out changeset 77625f533af6 (bug 1525570)
Backed out changeset cd326f5e4eb8 (bug 1525570)

--HG--
rename : gfx/layers/apz/util/TouchCounter.cpp => gfx/layers/apz/src/TouchCounter.cpp
rename : gfx/layers/apz/util/TouchCounter.h => gfx/layers/apz/src/TouchCounter.h
2019-03-01 23:28:36 +02:00
Jean-Yves Avenard
38ff00ec95 Bug 1530835 - Set frame duration to 0 when out of order frames are seen. r=bryce
WebM specify that timestamp must be monotonically increasing. Unfortunately, this is not always the case.

WebM doesn't have a concept of frame duration, the duration is calculated as being the delta between the next frame's time and the current one. So non-monotonically increasing timestamps would have caused negative duration.

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

--HG--
extra : moz-landing-system : lando
2019-03-01 18:56:01 +00:00
Boris Zbarsky
ee89dd7bb4 Bug 1531847. Extend the cross-origin tests to test cross-site Window and Location as well. r=annevk
Differential Revision: https://phabricator.services.mozilla.com/D21767

--HG--
extra : moz-landing-system : lando
2019-03-01 20:02:28 +00:00
Felipe Gomes
85cb541ba6 Bug 827976 - Teach leaks.py to ignore the hidden window. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D21089

--HG--
extra : moz-landing-system : lando
2019-03-01 21:07:41 +00:00
Felipe Gomes
190932ad70 Bug 827976 - Test that the hidden window is not loaded before first paint. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D21087

--HG--
extra : moz-landing-system : lando
2019-03-01 21:07:28 +00:00
Felipe Gomes
b9f00633df Bug 827976 - Use an existing window for media telemetry. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D21086

--HG--
extra : moz-landing-system : lando
2019-03-01 21:07:21 +00:00
Felipe Gomes
fe436b6b68 Bug 827976 - Use requestIdleCallback from Timer.jsm instead of from the hidden window. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D21085

--HG--
extra : moz-landing-system : lando
2019-03-01 21:07:13 +00:00
Felipe Gomes
81059534d3 Bug 827976 - Add requestIdleCallback support to Timer.jsm. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D21084

--HG--
extra : moz-landing-system : lando
2019-03-01 21:07:11 +00:00
Felipe Gomes
c15c6e8d12 Bug 827976 - Make Sanitizer.jsm not use the hidden window. r=Gijs
It doesn't need a high precision performance.now() to count minutes. In addition, if there are no windows to be closed, it's not doing anything, so it doesn't need to open a new one.

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

--HG--
extra : moz-landing-system : lando
2019-03-01 21:07:09 +00:00
Felipe Gomes
5d922af02c Bug 827976 - Try to use an existing window first to open preferences. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D21082

--HG--
extra : moz-landing-system : lando
2019-03-01 21:07:02 +00:00
Felipe Gomes
c403f8b002 Bug 827976 - browser-places.js doesn't need to get a reference to the hidden window. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D21080

--HG--
extra : moz-landing-system : lando
2019-03-01 21:07:00 +00:00
Felipe Gomes
c1f177e427 Bug 827976 - Downloads Manager doesn't need a reference to the hidden window. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D21079

--HG--
extra : moz-landing-system : lando
2019-03-01 21:06:58 +00:00
Felipe Gomes
07bc0f448c Bug 827976 - Use a different method to detect if xpcshell tests are running. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D21078

--HG--
extra : moz-landing-system : lando
2019-03-01 21:06:53 +00:00
Felipe Gomes
3dafad00a7 Bug 827976 - Don't trigger the creation of the hidden window on non-Mac platforms from newInstall.js. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D21077

--HG--
extra : moz-landing-system : lando
2019-03-01 21:06:50 +00:00
Felipe Gomes
0335f9445a Bug 827976 - Improve usage of the hidden window for nsXULWindow::Destroy. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D21075

--HG--
extra : moz-landing-system : lando
2019-03-01 21:06:48 +00:00
Felipe Gomes
f499de8e11 Bug 827976 - Don't create the hidden window in nsCCUncollectableMarker.cpp if it doesn't exist. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D21074

--HG--
extra : moz-landing-system : lando
2019-03-01 21:06:45 +00:00
Felipe Gomes
65402f5df4 Bug 827976 - Tablet Mode detection should favor using an existing window instead of the hidden window. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D21073

--HG--
extra : moz-landing-system : lando
2019-03-01 21:05:32 +00:00
Felipe Gomes
6686586c56 Bug 827976 - Create the hidden window after first paint, but before session restore. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D21072

--HG--
extra : moz-landing-system : lando
2019-03-01 21:05:04 +00:00
Felipe Gomes
970e70533a Bug 827976 - Create the hidden window lazily on non-Mac platforms. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D21071

--HG--
extra : moz-landing-system : lando
2019-03-01 21:04:48 +00:00
Julian Descottes
a43cc7d8f9 Bug 1530997 - Record additional extras in devtools.main runtime_connected event;r=daisuke,janerik
Differential Revision: https://phabricator.services.mozilla.com/D21373

--HG--
extra : moz-landing-system : lando
2019-03-01 19:58:23 +00:00
Alexander Surkov
6b134dd1cd Bug 1521306 - Remove toolkit handler binding, r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D21773

--HG--
extra : moz-landing-system : lando
2019-03-01 20:11:43 +00:00
Joel Maher
81c9d98e2f Bug 1456855 - adjust manifests for web-platform tests that now fail with the new linux64 freetype library. r=jgraham
Depends on D21560

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

--HG--
extra : moz-landing-system : lando
2019-02-28 17:47:08 +00:00
Joel Maher
d99950f9a4 Bug 1456855 - adjust manifests for tests that now run with the new linux64 FreeType. r=ahal
Depends on D21559

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

--HG--
extra : moz-landing-system : lando
2019-03-01 20:35:47 +00:00
Joel Maher
ec886c0359 Bug 1456855 - adjust manifests for tests that pass on linux64 with new FreeType. r=gbrown
Depends on D21360

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

--HG--
extra : moz-landing-system : lando
2019-02-28 18:07:52 +00:00
Chris AtLee
d18aa6e3a5 Bug 1456855: Install a newer freetype from Ubuntu bionic (18.04) r=Callek
Differential Revision: https://phabricator.services.mozilla.com/D21360

--HG--
extra : moz-landing-system : lando
2019-03-01 20:56:54 +00:00
Boris Zbarsky
a67e8bcc52 Bug 1531623. Fix webidl identifier conflicts involving typedefs to produce saner exceptions. r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D21647

--HG--
extra : moz-landing-system : lando
2019-03-01 20:38:39 +00:00
Boris Chiou
eedd09df7f Bug 1528960 - Query MacOS system dark mode only on the main browser process or it's the initial query on the child process. r=hiro
Based on the implementation and issues on prefers-reduced-motion, it
seems we have the same issue on the dark mode.

In child processes on MacOSX we don't spin native event loop at all.
Without native event loops, the global preference returned from
`SystemWantsDarkTheme()` doesn't return up-to-date value when the system
setting changed for some reasons.
To workaround this we call `SystemWantsDarkTheme()` only on the parent
process which spins native event loop or when it's the initial query on
the child process. And we give the up-to-date value to the child process
via an IPC call just like other cached values do.

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

--HG--
extra : moz-landing-system : lando
2019-03-01 18:09:19 +00:00
Michael Cooper
836121f55d Bug 1527782 - Cleanup temporary parts of Feature Gates r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D20747

--HG--
extra : moz-landing-system : lando
2019-03-01 18:27:36 +00:00
Iain Ireland
edb38fb6c8 Bug 1531841: Make callVM/tailCallVM infallible in CacheIR compilers r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D21779

--HG--
extra : moz-landing-system : lando
2019-03-01 20:48:28 +00:00
Florian Quèze
8fdb652c2e Bug 1531836 - only look for a window specific icon on the disk if an 'icon' attribute has been specified on the XUL window, r=NeilDeakin.
Differential Revision: https://phabricator.services.mozilla.com/D21753

--HG--
extra : moz-landing-system : lando
2019-03-01 18:32:17 +00:00
Andrew Halberstadt
68820fd64b Bug 1513951 - [mach] Fix error handling bug in config.py r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D21430

--HG--
extra : moz-landing-system : lando
2019-02-28 18:03:47 +00:00
Andrew Halberstadt
bbce8d7a3b Bug 1513951 - [tryselect] Add some documentation for presets r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D21431

--HG--
extra : moz-landing-system : lando
2019-02-28 20:15:24 +00:00
Andrew Halberstadt
30fa8f8a4c Bug 1513951 - [tryselect] Implement in-tree try_presets.yml file r=gbrown
This creates a global preset file at:
tools/tryselect/try_presets.yml

Any presets defined here will be available for everyone to use.

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

--HG--
extra : moz-landing-system : lando
2019-02-28 21:38:26 +00:00
Andrew Halberstadt
b1f7c90d52 Bug 1513951 - [tryselect] Pass preset path into PresetHandler's constructor r=gbrown
This will make it possible to have multiple instances of PresetHandler to
support multiple preset files.

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

--HG--
extra : moz-landing-system : lando
2019-02-28 18:26:03 +00:00
Jason Laster
13dda6d88c Bug 1530441 - Enable eslint locally. r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D21544

--HG--
extra : moz-landing-system : lando
2019-03-01 20:26:48 +00:00
Kartikaya Gupta
885a3e0d5e Bug 1525570 - Add a test for preventDefault on pinch zooms. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D21421

--HG--
extra : moz-landing-system : lando
2019-02-28 18:40:45 +00:00
Kartikaya Gupta
9e38acbf5a Bug 1525570 - Propagate preventDefault from first to subsequent touchstarts. r=botond
Other mobile browsers disallow browser-based pinch zooming when the
first touchstart is preventDefaulted, even if the second one is not. We
allowed pinch zooming in that scenario. This patch makes it so that if
the first touchstart is preventDefaulted, then subsequent touchstart
events are also preventDefaulted, which brings our behaviour in line
with that of other browsers.

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

--HG--
extra : moz-landing-system : lando
2019-03-01 20:18:00 +00:00
Kartikaya Gupta
b8f269fdda Bug 1525570 - Move TouchCounter to apz/util/ and allow counting WidgetTouchEvent too. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D21577

--HG--
rename : gfx/layers/apz/src/TouchCounter.cpp => gfx/layers/apz/util/TouchCounter.cpp
rename : gfx/layers/apz/src/TouchCounter.h => gfx/layers/apz/util/TouchCounter.h
extra : moz-landing-system : lando
2019-03-01 20:17:58 +00:00
Botond Ballo
83a64ce389 Bug 1519621 - Make sure ScrollToRestoredPosition() restores both the layout and visual scroll positions. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D18367

--HG--
extra : moz-landing-system : lando
2019-03-01 20:18:35 +00:00
Logan Smyth
6a327e3d2b Bug 1531874 - Add a no-op event-breakpoint API. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D21764

--HG--
extra : moz-landing-system : lando
2019-03-01 19:47:25 +00:00
Bryce Van Dyk
79377d1363 Bug 1504060 - Log instead of asserting that webm samples do not have timestamps > segment druation. r=alwu
We're able to hit this assertion in the wild due to bad muxers. As such, replace
the assert with a log. If a sample has a time stamp > the segment duration, use
that instead of the duration for calculating our next time stamp. Use an
explicit int64_t type in the signature for our next time stamp calculation
as the logging explicitly expects an int64_t (makes it harder to change the
types involved and footgunning by having a wrong formatter in the logs).

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

--HG--
extra : moz-landing-system : lando
2019-03-01 18:20:00 +00:00
Alexander Surkov
ce9fbb5584 Bug 1531877 - deattach autocomplete popup from popup binding, r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D21765

--HG--
extra : moz-landing-system : lando
2019-03-01 19:46:21 +00:00
Tom Prince
ffdd3d2a3c Bug 1531592: [taskgraph] Ensure that treeherder platform has the correct format; r=dustin
A recent change caused the treeherder platform for several jobs to have an extra `/` in it.
This add a check to ensure that the platform is formatted correctly, and fixes the tasks
with the incorrect format.

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

--HG--
extra : moz-landing-system : lando
2019-03-01 19:44:29 +00:00
Aaron Klotz
0d71623b50 Bug 1531030: Use MOZ_DISABLE_POISON_IO_INTERPOSER to disable PoisonIOInterposer when it is unsafe to initialize; r=erahm
If we are running a background thread in the launcher process to log failures,
then allowing the main thread to proceed with monkeypatching system calls is a
Bad Idea. This patch gives us an environment variable that, when set, indicates
that it is unsafe for PoisonIOInterposer to run.

This scenario is an uncommon one, but one that we must account for nonetheless.

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

--HG--
extra : moz-landing-system : lando
2019-03-01 19:34:54 +00:00
Geoff Brown
e612be8f27 Bug 1482231 - Increase test chunks for geckoview-junit to avoid intermittent timeouts; r=jmaher
Increase test chunks for Android 4.3 /opt and /debug and ccov geckoview-junit.
Most chunks run in 20 to 30 minutes with this change:
https://treeherder.mozilla.org/#/jobs?repo=try&tier=1%2C2%2C3&revision=a952f0dde8b508d8f87867757d98ca2642cbd48c

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

--HG--
extra : moz-landing-system : lando
2019-03-01 19:19:01 +00:00