Commit Graph

34354 Commits

Author SHA1 Message Date
Doug Thayer
eb26ea12c2 Bug 1547351 - Factor out RecvEmptyTransaction's core transaction building r=sotaro
This splits out the inner bit of RecvEmptyTransaction to just iterate over
the documents once, rather than iterating over them individually. Originally
I ran into difficulties with this and then left it on the table, but I think
it was enabled by splitting out the epochs in pipeline info by renderroot.

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

--HG--
extra : moz-landing-system : lando
2019-07-15 13:20:31 +00:00
sotaro
6112475e13 Bug 1565463 - Add ImageBorder image key to Tile r=gw
Differential Revision: https://phabricator.services.mozilla.com/D37834

--HG--
extra : moz-landing-system : lando
2019-07-14 21:54:54 +00:00
Kartikaya Gupta
460150b36f Bug 1563541 - Force a paint before reading the APZ test data. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D37983

--HG--
extra : moz-landing-system : lando
2019-07-15 06:39:09 +00:00
Kartikaya Gupta
21482b7733 Bug 1562351 - Do the scrollbar drag in one shot to avoid intermittent failures. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D37981

--HG--
extra : moz-landing-system : lando
2019-07-15 06:44:12 +00:00
Coroiu Cristina
e1d724d2f5 Backed out changeset 3179c40a2a25 (bug 1563233) for wpt failures at webvr/webvr-enabled-by-feature-policy-attribute-redirect-on-load.https.sub.html 2019-07-15 06:29:11 +03:00
thomasmo
f8ab88e23d Bug 1563233 - Update VRManager to consume VRShMem r=kip,daoshengmu
This change replaces and removes code in VRManager that was refactored into the
new VRShMem class.

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

--HG--
extra : moz-landing-system : lando
2019-07-14 13:26:39 +00:00
Jeff Muizelaar
00f87f386d Bug 1564655. blob: Make the recording use absolute coordinates. r=nical
Currently items are painted with a context that has a transform of
-mLayerBounds.TopLeft().  This means that if TopLeft() changes the commands
will be in the wrong place because the -TopLeft() offset is baked into the
recording.

I don't think we've ever needed to support painting without this transformed
baked in so there were some infrastructure changes that needed to be made to
make this possible. Most of the problems come from the use of
gfxContext::GetClipExtents which expose the bounds of the underlying surface.
The biggest of these was fixed by the CreateClippedDrawTarget rewrite. The rest
should be handled by ensuring that the DrawTarget has bounds that are at least
as big as the union of the individual item bounds. i.e. GetClipExtents should
never intersect with bounds of the item.

This change has a couple of parts:

1. Store mLayerBounds.TopLeft() in the recording so that it will be subtracted
during replay

2. Use mLayerBounds as the Rect of the RecordingDrawTarget

3. Don't include mLayerBounds.TopLeft() in the transform during recording.

4. Adjust the dirty rect by recordingOrigin before we use it as a clip so that
it stays in the right place.

5. In PaintContainerItem the bounds parameter of PushLayer is in device space
so we need to account for the shift in the location of device space in the
DrawTargetRecording.

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

--HG--
extra : moz-landing-system : lando
2019-07-14 00:02:03 +00:00
Narcis Beleuzu
83334f37bc Backed out changeset 1740dc9a710c (bug 1563233) for mochitest failures on VRManager.cpp . CLOSED TREE 2019-07-14 00:22:31 +03:00
thomasmo
aaf1d1bfa5 Bug 1563233 - Update VRManager to consume VRShMem r=kip,daoshengmu
This change replaces and removes code in VRManager that was refactored into the
new VRShMem class.

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

--HG--
extra : moz-landing-system : lando
2019-07-13 13:09:03 +00:00
Jeff Muizelaar
81aac9064d Bug 1563770. Always include a visible rect with blob images. r=nical
I suspect we may change things more in the future as we blob's size
just be the visible rect but this is an incremental step in the right
direction.

It also includes some changes to make sure that we always update our
tiles appropriately.

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

--HG--
extra : moz-landing-system : lando
2019-07-13 19:07:05 +00:00
Jan Andre Ikenmeyer
c4f6b66520 Bug 1563859 - Enable WebRender on Linux with Nvidia hardware and Mesa drivers. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D37924

--HG--
extra : moz-landing-system : lando
2019-07-12 20:46:03 +00:00
Kartikaya Gupta
99d5d84df8 Bug 1560312 - Run fission tests without WR as well. r=botond
This also disables the test on Windows 7 because the newly enabled subtests
fail intermittently there. We don't care so much about Windows 7 these days,
and I don't have a local setup to reproduce it, so I didn't investigate the
failure.

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

--HG--
extra : moz-landing-system : lando
2019-07-12 17:13:04 +00:00
Jeff Muizelaar
c0299a4309 Bug 1563775. Include the recording origin in the stream. r=nical
This will let us do the subtraction of the recording origin during
playback instead of during recording.

It will also let us merge recordings that have different origins.

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

--HG--
extra : moz-landing-system : lando
2019-07-12 18:20:29 +00:00
Jeff Muizelaar
ab81cbdb67 Bug 1565580. Apply accidentally dropped review comments.
Differential Revision: https://phabricator.services.mozilla.com/D37901

--HG--
extra : moz-landing-system : lando
2019-07-12 18:16:07 +00:00
Jeff Muizelaar
65dccbec8c Bug 1565620. Preserve initial batching debug state across debug state changes. r=kvark
This lets us run wrench with -no-batch and turn on the profiler.

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

--HG--
extra : moz-landing-system : lando
2019-07-12 18:04:45 +00:00
Jeff Muizelaar
3b81239430 Bug 1565580. Improve blob metadata deserialization code. r=Gankro
This removes duplication and makes it a bit safer by using ConvertFromBytes to
do an unaligned read of the indexOffset.

Also, inner classes can't have template methods. Who knew.

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

--HG--
extra : moz-landing-system : lando
2019-07-12 15:09:01 +00:00
Jonathan Kew
54cbb9d57b Bug 1554208 - patch 6 - Add PSName and FullName support to gfxFT2FontList shared font-list initialization, so that src:local() lookups will work. r=jwatt
Also ensure we consistently use the original-case family name in FontNameCache entries,
and only lowercase it to a "key" for lookup/insertion into the font list. This avoids
failures in test_font_whitelist.html due to inconsistency in whether family names have
been lowercased.

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

--HG--
extra : moz-landing-system : lando
2019-07-12 15:34:30 +00:00
Jonathan Kew
f91a1d3b2a Bug 1554208 - patch 5 - Implement shared-fontlist support in the gfxFT2FontList backend. r=jwatt
This is the main part of the implementation, except that it doesn't handle populating the
local names table (for @font-face src:local() lookups) with Full and PostScript names;
that follows in the next patch.

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

--HG--
extra : moz-landing-system : lando
2019-07-12 15:34:04 +00:00
Jonathan Kew
9f9125a4d0 Bug 1554208 - patch 4 - Make the FontNameCache that we use to store the font list in the startupCache use a more robust and extensible serialization. r=jwatt
I'll need to add a couple of extra fields to the cache records, and realized that the current format
looks really fragile; in theory, it'd break if a font name ever contained a comma or semicolon
(unlikely though that may be). So let's fix it to be a bit more robust before we add to it further.
Using control characters from the C0 range to delimit fields/records, instead of ASCII punctuation,
removes the (tiny) risk of conflict with characters that actually occur in a name, and using
distinct field and record separators means that we can better check that the records we're loading
from the cache actually match the expected format.

(Given that the startup cache gets re-created when the build ID is updated, a change in the format
between versions wasn't going to cause problems for users; their old cache just gets blown away
when upgrading. Still, a little more robustness seems like a good thing.)

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

--HG--
extra : moz-landing-system : lando
2019-07-12 15:33:35 +00:00
Jonathan Kew
01e8403527 Bug 1554208 - patch 3 - Rearrange gfxFT2Fonts code so that FindFonts() does just what it says, and other work is handled by the caller. r=jwatt
This makes the functional structure a bit cleaner, so that it'll be easier to slip in the alternative
codepath for the shared font-list.

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

--HG--
extra : moz-landing-system : lando
2019-07-12 15:33:03 +00:00
Jonathan Kew
2469dbfb9d Bug 1554208 - patch 2 - Remove redundant member-reset code from gfxFT2FontList::FindFonts (already handled by gfxPlatformFontList before this is called). r=jwatt
A bit of cleanup of the existing code, before we start actually implementing new stuff.

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

--HG--
extra : moz-landing-system : lando
2019-07-12 15:32:35 +00:00
Jonathan Kew
21b4c1cf5a Bug 1554208 - patch 1 - Add missing checks for shared charmap. r=jwatt
This isn't really specific to the FT2 fontlist, it's a general fixup that I noticed while
working on this. (The missing checks aren't crucial, but mean that we might re-read a cmap
when we shouldn't need to.)

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

--HG--
extra : moz-landing-system : lando
2019-07-12 15:32:05 +00:00
Mihai Alexandru Michis
fb4bad51c9 Backed out 2 changesets (bug 1547351) for causing bustages in nsTArray.h CLOSED TREE
Backed out changeset 46c9b479034f (bug 1547351)
Backed out changeset 4689b2870416 (bug 1547351)
2019-07-12 17:37:24 +03:00
Alexis Beingessner
6126cdbed2 Bug 1547351 - Automatically set content process render root r=kats
This implements the idea of automatically setting a content proc's
render root based on the render root enclosing the iframe that
points to it. There was a bit of cleanup in here that was a bit
tricky to extract from the core patch revolving around how we
use the Api(...) helper. This was to avoid the situation where
we use the Api(...) helper before our render root is initialized,
when we don't actually have to. I.e., when we just want the root
WebRenderAPI in all cases.

An alternative to this approach could be to fully built out the
WebRender transactions and just queue those up to be sent. However,
transaction building has various side effects which are committed
before the transaction is actually sent, so we would have to build
out some scheme for deferring those as well. This seemed simpler.

Patch primarily written by :dthayer

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

--HG--
extra : moz-landing-system : lando
2019-07-12 14:14:22 +00:00
Doug Thayer
ea4cbb8501 Bug 1547351 - Factor out RecvEmptyTransaction's core transaction building r=sotaro
This splits out the inner bit of RecvEmptyTransaction to just iterate over
the documents once, rather than iterating over them individually. Originally
I ran into difficulties with this and then left it on the table, but I think
it was enabled by splitting out the epochs in pipeline info by renderroot.

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

--HG--
extra : moz-landing-system : lando
2019-07-12 14:14:22 +00:00
Jeff Muizelaar
b2c74a942a Bug 1565566. blob: Improve convert_from_bytes. r=Gankro
This minimizes regret by requiring T: Copy and switches
to read_unaligned() because the pointer can be unaligned.

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

--HG--
extra : moz-landing-system : lando
2019-07-12 13:36:17 +00:00
Nicolas Silva
db54fa27c5 Bug 1559688 - Clip tile dirty rects to the tile's total rect. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D37841

--HG--
extra : moz-landing-system : lando
2019-07-12 12:04:57 +00:00
Daniel Varga
cf2048abd6 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2019-07-12 13:03:23 +03:00
Daniel Varga
883bfd385e Merge mozilla-inbound to mozilla-central. a=merge 2019-07-12 12:58:03 +03:00
Gurzau Raul
09c2a7cb24 Backed out 2 changesets (bug 1547351) for build bustages at WebRenderBridgeParent.cpp on a CLOSED TREE.
Backed out changeset b294575c279c (bug 1547351)
Backed out changeset 69260373f95c (bug 1547351)
2019-07-12 06:47:35 +03:00
Dan Glastonbury
be87d8ce17 Bug 1550640 - P4: Remove bincode. r=Gankro
Differential Revision: https://phabricator.services.mozilla.com/D32783

--HG--
extra : moz-landing-system : lando
2019-07-12 06:12:33 +00:00
Dan Glastonbury
866dcdad61 Bug 1550640 - P3: Replace bincode with peek-poke. r=Gankro
Replace `serde`-derived `bincode` with custom binary
serialization/deserialization that generates more efficient code at rustc
`opt-level = 2`.

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

--HG--
extra : moz-landing-system : lando
2019-07-12 06:12:31 +00:00
Coroiu Cristina
e6daafc804 Backed out 2 changesets (bug 1547351) for build bustage at gfx/layers/wr/WebRenderBridgeParent.cpp on a CLOSED TREE
Backed out changeset af34904f00c7 (bug 1547351)
Backed out changeset 94db0d98be90 (bug 1547351)
2019-07-12 08:40:27 +03:00
Alexis Beingessner
bc15a4daa5 Bug 1547351 - Automatically set content process render root r=kats
This implements the idea of automatically setting a content proc's
render root based on the render root enclosing the iframe that
points to it. There was a bit of cleanup in here that was a bit
tricky to extract from the core patch revolving around how we
use the Api(...) helper. This was to avoid the situation where
we use the Api(...) helper before our render root is initialized,
when we don't actually have to. I.e., when we just want the root
WebRenderAPI in all cases.

An alternative to this approach could be to fully built out the
WebRender transactions and just queue those up to be sent. However,
transaction building has various side effects which are committed
before the transaction is actually sent, so we would have to build
out some scheme for deferring those as well. This seemed simpler.

Patch primarily written by :dthayer

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

--HG--
extra : moz-landing-system : lando
2019-07-12 05:14:05 +00:00
Doug Thayer
418a24f2d6 Bug 1547351 - Factor out RecvEmptyTransaction's core transaction building r=sotaro
This splits out the inner bit of RecvEmptyTransaction to just iterate over
the documents once, rather than iterating over them individually. Originally
I ran into difficulties with this and then left it on the table, but I think
it was enabled by splitting out the epochs in pipeline info by renderroot.

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

--HG--
extra : moz-landing-system : lando
2019-07-12 05:14:05 +00:00
Alexis Beingessner
7d0ec2c7ed Bug 1547351 - Automatically set content process render root r=kats
This implements the idea of automatically setting a content proc's
render root based on the render root enclosing the iframe that
points to it. There was a bit of cleanup in here that was a bit
tricky to extract from the core patch revolving around how we
use the Api(...) helper. This was to avoid the situation where
we use the Api(...) helper before our render root is initialized,
when we don't actually have to. I.e., when we just want the root
WebRenderAPI in all cases.

An alternative to this approach could be to fully built out the
WebRender transactions and just queue those up to be sent. However,
transaction building has various side effects which are committed
before the transaction is actually sent, so we would have to build
out some scheme for deferring those as well. This seemed simpler.

Patch primarily written by :dthayer

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

--HG--
extra : moz-landing-system : lando
2019-07-12 03:19:28 +00:00
Doug Thayer
b4d356d721 Bug 1547351 - Factor out RecvEmptyTransaction's core transaction building r=sotaro
This splits out the inner bit of RecvEmptyTransaction to just iterate over
the documents once, rather than iterating over them individually. Originally
I ran into difficulties with this and then left it on the table, but I think
it was enabled by splitting out the epochs in pipeline info by renderroot.

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

--HG--
extra : moz-landing-system : lando
2019-07-12 03:19:28 +00:00
Bogdan Tara
4b7c4bf220 Backed out 2 changesets (bug 1550640) for webrender bustages CLOSED TREE
Backed out changeset 00e5a40ee249 (bug 1550640)
Backed out changeset 46c850f36c6f (bug 1550640)
2019-07-12 06:26:05 +03:00
Dan Glastonbury
be054e6278 Bug 1550640 - P4: Remove bincode. r=Gankro
Differential Revision: https://phabricator.services.mozilla.com/D32783

--HG--
extra : moz-landing-system : lando
2019-07-12 02:47:25 +00:00
Dan Glastonbury
c7d8e015b8 Bug 1550640 - P3: Replace bincode with peek-poke. r=Gankro
Replace `serde`-derived `bincode` with custom binary
serialization/deserialization that generates more efficient code at rustc
`opt-level = 2`.

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

--HG--
extra : moz-landing-system : lando
2019-07-12 02:47:23 +00:00
thomasmo
eb4b31835a Bug 1565295 - Create Command Line Handler for FxR on desktop r=mossop
This change introduces the stubs for nsFxrCommandLineHandler,
which will support launching Firefox Reality on Desktop.

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

--HG--
extra : moz-landing-system : lando
2019-07-11 21:01:04 +00:00
Gurzau Raul
3697df8022 Backed out 2 changesets (bug 1550640) for webrenderer bustages on a CLOSED TREE.
Backed out changeset 2dcbe1372a05 (bug 1550640)
Backed out changeset 84db3a9838a5 (bug 1550640)
2019-07-12 04:56:07 +03:00
Dan Glastonbury
3401662ae8 Bug 1550640 - P4: Remove bincode. r=Gankro
Differential Revision: https://phabricator.services.mozilla.com/D32783

--HG--
extra : moz-landing-system : lando
2019-07-12 01:28:29 +00:00
Dan Glastonbury
f020cdec9b Bug 1550640 - P3: Replace bincode with peek-poke. r=Gankro
Replace `serde`-derived `bincode` with custom binary
serialization/deserialization that generates more efficient code at rustc
`opt-level = 2`.

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

--HG--
extra : moz-landing-system : lando
2019-07-12 01:28:22 +00:00
Matt Woodrow
17a41fa774 Bug 1562616 - Don't fail to create a GPUVideoTextureHost if the dependent texture isn't available, since that crashes the compositor. r=sotaro
Depends on D37781

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

--HG--
extra : moz-landing-system : lando
2019-07-12 00:39:49 +00:00
Matt Woodrow
1a69639421 Bug 1562722 - Don't apply the background color to anything except the root document when using CrossProcessPaint. r=rhunt
Differential Revision: https://phabricator.services.mozilla.com/D37679

--HG--
extra : moz-landing-system : lando
2019-07-11 14:01:15 +00:00
Csoregi Natalia
fcccd2b6b0 Merge mozilla-central to autoland. CLOSED TREE 2019-07-12 02:06:45 +03:00
Csoregi Natalia
d7d499fe52 Merge inbound to mozilla-central. a=merge 2019-07-12 02:00:51 +03:00
Csoregi Natalia
b798889d4a Backed out changeset 5c4b8d62324c (bug 1563775) for reftest crashes. a=backout 2019-07-12 01:17:41 +03:00
Csoregi Natalia
20e91a0890 Backed out changeset 5c88b35cc6f5 (bug 1563770) for causing bug 1565231. a=backout 2019-07-11 23:14:01 +03:00
Brindusan Cristian
73b4ae530d Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-07-11 19:23:36 +03:00
Brindusan Cristian
dd497969eb Merge autoland to mozilla-central. a=merge 2019-07-11 19:20:00 +03:00
Brindusan Cristian
fd86c6d641 Backed out changeset cb1d78b00e25 (bug 1563775) on request from jrmuizel for causing Bug 1565231. a=backout 2019-07-11 17:40:51 +03:00
sotaro
f8e55ff471 Bug 1563432 - Remove ID3D11Device::GetDeviceRemovedReason() call from RenderCompositorANGLE::BeginFrame() r=nical
Differential Revision: https://phabricator.services.mozilla.com/D36866

--HG--
extra : moz-landing-system : lando
2019-07-11 09:41:38 +00:00
Jonathan Kew
83fc5b8ada Bug 1565234 - Remove redundant override that exactly matches the base class implementation, and make GetFontFamilyList non-virtual. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D37731

--HG--
extra : moz-landing-system : lando
2019-07-11 15:28:22 +00:00
Jeff Muizelaar
e146f6712d Bug 1563775. Include the recording origin in the stream. r=nical a=reland
This will let us do the subtraction of the recording origin during
playback instead of during recording.

It will also let us merge recordings that have different origins.

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

--HG--
extra : source : cb1d78b00e25dd7fcfec86216c7a83c85ce9a982
extra : histedit_source : 68a31189f05998ba3b8a29a624d7ebe37636c4d9
2019-07-10 14:01:34 +00:00
Cosmin Sabou
60a8cce828 Merge mozilla-central to autoland.
--HG--
rename : gfx/wr/wrench/reftests/filters/filter-flood-ref.yaml => gfx/wr/wrench/reftests/filters/svg-filter-flood-ref.yaml
rename : gfx/wr/wrench/reftests/filters/filter-flood.yaml => gfx/wr/wrench/reftests/filters/svg-filter-flood.yaml
2019-07-11 07:06:41 +03:00
Cosmin Sabou
4b4656bd47 Merge autoland to mozilla-central. a=merge 2019-07-11 07:02:15 +03:00
arthur.iakab
973b98aac6 Backed out changeset 0aea246d01bb (bug 928150) for causing build bustages on DOMMatrix.h CLOSED TREEE 2019-07-11 06:31:59 +03:00
Kagami Sascha Rosylight
b65864cf84 Bug 928150: Implement canvas getTransform() and setTransform() r=bzbarsky
Adds getTransform() and setTransform() to CanvasRenderingContext2D.

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

--HG--
extra : moz-landing-system : lando
2019-07-11 02:43:46 +00:00
Jeff Muizelaar
3e4eb446aa Bug 1563770. Always include a visible rect with blob images. r=nical
I suspect we may change things more in the future as we blob's size
just be the visible rect but this is an incremental step in the right
direction.

It also includes some changes to make sure that we always update our
tiles appropriately.

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

--HG--
extra : moz-landing-system : lando
2019-07-11 02:32:35 +00:00
Connor Brewster
3f078809f7 Bug 1555483 - Part 5: Add wrench reftests for SVG filters and update test expectations r=gw
Differential Revision: https://phabricator.services.mozilla.com/D35742

--HG--
rename : gfx/wr/wrench/reftests/filters/filter-flood-ref.yaml => gfx/wr/wrench/reftests/filters/svg-filter-flood-ref.yaml
rename : gfx/wr/wrench/reftests/filters/filter-flood.yaml => gfx/wr/wrench/reftests/filters/svg-filter-flood.yaml
extra : moz-landing-system : lando
2019-07-10 22:37:48 +00:00
Connor Brewster
65b65c54ba Bug 1555483 - Part 4: Sanitize filter primitives r=gw
Differential Revision: https://phabricator.services.mozilla.com/D35741

--HG--
extra : moz-landing-system : lando
2019-07-10 22:37:44 +00:00
Connor Brewster
76b9b0a883 Bug 1555483 - Part 3: Add SVG render task and shader r=gw
The SVG task supports the pre-existing SVG filters along with Blend.

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

--HG--
extra : moz-landing-system : lando
2019-07-10 22:37:30 +00:00
Connor Brewster
532a3f2aa6 Bug 1555483 - Part 2: Add SVG filter picture composite mode r=gw
Differential Revision: https://phabricator.services.mozilla.com/D34088

--HG--
extra : moz-landing-system : lando
2019-07-10 22:36:32 +00:00
Connor Brewster
3efce98819 Bug 1555483 - Part 1: Add SVG filter primitive display item. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D34087

--HG--
extra : moz-landing-system : lando
2019-07-10 22:36:25 +00:00
arthur.iakab
de10ead929 Merge autoland to mozilla-central. a=merge 2019-07-11 00:49:58 +03:00
Noemi Erli
7ac279ac4a Backed out 5 changesets (bug 1555483) for causing wrench bustages CLOSED TREE
Backed out changeset 8149efc1f813 (bug 1555483)
Backed out changeset 917f800e4e43 (bug 1555483)
Backed out changeset 418839320ab5 (bug 1555483)
Backed out changeset 134a51a0e034 (bug 1555483)
Backed out changeset 7c43dc769da7 (bug 1555483)

--HG--
rename : gfx/wr/wrench/reftests/filters/svg-filter-flood-ref.yaml => gfx/wr/wrench/reftests/filters/filter-flood-ref.yaml
rename : gfx/wr/wrench/reftests/filters/svg-filter-flood.yaml => gfx/wr/wrench/reftests/filters/filter-flood.yaml
2019-07-10 23:27:36 +03:00
Kartikaya Gupta
bc26232cbc Bug 1563178 - Properly manage the renderRoot variable during the APZ tree walk. r=botond
The APZ tree walk is recursive but the render root was not being updated when
walking up out of a subtree with a different render root. This changes the
code to use a stack and push/pop the render root for subtrees as we enter
and exit the subtrees as part of the tree walk.

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

--HG--
extra : moz-landing-system : lando
2019-07-10 19:54:08 +00:00
arthur.iakab
07744843fd Backed out changeset 40010303c474 (bug 1500465) on request of christina_ for causing OOM crashes in automation. a=backout 2019-07-10 22:14:41 +03:00
Kartikaya Gupta
b12ed5e8f3 Bug 1559389 - Clean up renderroot-finding methods. r=Gankro
Only the parent process ever respects the renderroot attribute, so we can
add some extra early-exit checks for this. This also adds a bit of safety
for the next patch, to avoid inadvertently exposing renderroot stuff to
web content.

Also, the GetRenderRootForElement function is only ever called by the
GetRenderRootForFrame function, so let's scope it down to avoid doing
unnecessary work.

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

--HG--
extra : moz-landing-system : lando
2019-07-10 16:54:11 +00:00
Nicholas Nethercote
fb9371f1b2 Bug 1552126 - Convert layers.componentalpha.enabled to a non-Skip pref. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D37372

--HG--
extra : moz-landing-system : lando
2019-07-10 22:32:43 +00:00
Daosheng Mu
4af2697693 Bug 1565000 - Add logs for VR process manager to check if gpu child is null. r=kip
Differential Revision: https://phabricator.services.mozilla.com/D37613

--HG--
extra : moz-landing-system : lando
2019-07-10 22:02:45 +00:00
Connor Brewster
2b84406608 Bug 1555483 - Part 5: Add wrench reftests for SVG filters and update test expectations r=gw
Differential Revision: https://phabricator.services.mozilla.com/D35742

--HG--
rename : gfx/wr/wrench/reftests/filters/filter-flood-ref.yaml => gfx/wr/wrench/reftests/filters/svg-filter-flood-ref.yaml
rename : gfx/wr/wrench/reftests/filters/filter-flood.yaml => gfx/wr/wrench/reftests/filters/svg-filter-flood.yaml
extra : moz-landing-system : lando
2019-07-10 02:17:17 +00:00
Connor Brewster
8e86f00687 Bug 1555483 - Part 4: Sanitize filter primitives r=gw
Differential Revision: https://phabricator.services.mozilla.com/D35741

--HG--
extra : moz-landing-system : lando
2019-07-10 02:17:19 +00:00
Connor Brewster
31021a43ce Bug 1555483 - Part 3: Add SVG render task and shader r=gw
The SVG task supports the pre-existing SVG filters along with Blend.

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

--HG--
extra : moz-landing-system : lando
2019-07-10 02:17:21 +00:00
Connor Brewster
2a21b2e853 Bug 1555483 - Part 2: Add SVG filter picture composite mode r=gw
Differential Revision: https://phabricator.services.mozilla.com/D34088

--HG--
extra : moz-landing-system : lando
2019-07-10 02:17:23 +00:00
Connor Brewster
4f98a810a8 Bug 1555483 - Part 1: Add SVG filter primitive display item. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D34087

--HG--
extra : moz-landing-system : lando
2019-07-10 02:17:25 +00:00
Csoregi Natalia
35c91265f9 Merge mozilla-central to mozilla-inbound. CLOSED TREE 2019-07-12 02:09:04 +03:00
Jeff Gilbert
a4edc05171 No bug - clang-format dom/canvas, gfx/[gl,layers,webrender_bindings]. 2019-07-11 15:36:44 -07:00
Brendan Dahl
28dcf95b41 Bug 1557371 - Part 2 - Load all XUL crashtests with chrome privilege. r=dbaron
386947-1.xul, now has one assertion since we take a different code
path with chrome URL's and XBL files. The assertion is triggered since the
binding is invalid.

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

--HG--
extra : moz-landing-system : lando
2019-07-09 19:40:42 +00:00
Jamie Nicol
191dd4f438 Bug 1535146 - Attempt to load non-startup shaders from disk cache when required. r=bholley
On startup some program binaries are loaded from disk into an
in-memory cache. When we call create_program() we check if the
required program is present in this cache, and if so we call
glProgramBinary(). This is done early on so that the driver can
perform any necessary work in the background.

There may however be binaries in the disk cache that have not yet been
loaded in to memory, in order not to slow down startup. This change
makes it so that we attempt to load missing binaries from disk during
link_program(). The reason we do not do this in create_program() is
because that would result in loading all shaders from disk during
startup, which we want to avoid. Loading these shaders may therefore
take slightly longer than if they'd been loaded at startup, but will
still be much faster than recompiling them from scratch, and startup
will remain quick.

If loading the shaders on startup had previously timed out, then we do
not attempt to load shaders on demand as the disk is probably too slow
for that to be useful.

Depends on D33954

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

--HG--
extra : moz-landing-system : lando
2019-07-09 16:09:15 +00:00
Kartikaya Gupta
3b899521fe Bug 1564919 - Fix and re-enable test_group_touchevents-3.html on GeckoView. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D37616

--HG--
extra : moz-landing-system : lando
2019-07-10 19:54:20 +00:00
Kagami Sascha Rosylight
8d91017fdb Bug 928150: Implement canvas getTransform() and setTransform() r=bzbarsky
Adds getTransform() and setTransform() to CanvasRenderingContext2D.

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

--HG--
extra : moz-landing-system : lando
2019-07-11 06:14:58 +00:00
Jamie Nicol
c9c015cbff Bug 1535146 - Use a whitelist to decide which shaders to load from disk on startup. r=bholley
Webrender caches the program binaries of shaders used within the first
ten frames, so that on next startup it can load them from disk rather
than having to recompile them.

Previously it would load all binaries found in the disk cache on
startup, and when saving to the cache it would delete any existing
binaries that weren't used.

This changes it so that unused binaries are not deleted. The disk
space this requires is insignificant, but as the cache grows loading
all the shaders on startup can get expensive. To solve that we write a
whitelist of the shaders used during startup, and only load those
during the next startup.

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

--HG--
extra : moz-landing-system : lando
2019-07-09 10:20:04 +00:00
Kartikaya Gupta
9e9344cf19 Bug 1564947 - Split the WR builder dump index into a RenderRootArray. r=Gankro
Depends on D37589

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

--HG--
extra : moz-landing-system : lando
2019-07-10 17:26:59 +00:00
Ryan Hunt
27bd25767f Bug 1561395 - Move drawSnapshot API to WindowGlobalParent and allow specifying the whole viewport as a rect. r=mattwoodrow,nika
Differential Revision: https://phabricator.services.mozilla.com/D35842

--HG--
extra : moz-landing-system : lando
2019-07-10 16:45:46 +00:00
Connor Brewster
205d3b8e05 Bug 1564677 - Disable border/no-aa.yaml on Android emulator
Differential Revision: https://phabricator.services.mozilla.com/D37518

--HG--
extra : moz-landing-system : lando
2019-07-10 03:49:30 +00:00
Dorel Luca
9dcd722ccc Backed out 5 changesets (bug 1555483) for Wrench failure in sdcard/wrench/reftests/border/no-aa.yaml
Backed out changeset 244b23c635c5 (bug 1555483)
Backed out changeset 4d4f45f7f1d1 (bug 1555483)
Backed out changeset 5618213e2196 (bug 1555483)
Backed out changeset d6169482c913 (bug 1555483)
Backed out changeset 3a1e5a56759b (bug 1555483)

--HG--
rename : gfx/wr/wrench/reftests/filters/svg-filter-flood-ref.yaml => gfx/wr/wrench/reftests/filters/filter-flood-ref.yaml
rename : gfx/wr/wrench/reftests/filters/svg-filter-flood.yaml => gfx/wr/wrench/reftests/filters/filter-flood.yaml
2019-07-10 05:12:26 +03:00
Connor Brewster
24bb8d2a5c Bug 1555483 - Part 5: Add wrench reftests for SVG filters and update test expectations r=gw
Differential Revision: https://phabricator.services.mozilla.com/D35742

--HG--
rename : gfx/wr/wrench/reftests/filters/filter-flood-ref.yaml => gfx/wr/wrench/reftests/filters/svg-filter-flood-ref.yaml
rename : gfx/wr/wrench/reftests/filters/filter-flood.yaml => gfx/wr/wrench/reftests/filters/svg-filter-flood.yaml
extra : moz-landing-system : lando
2019-07-08 23:46:39 +00:00
Connor Brewster
cc92cb66fa Bug 1555483 - Part 4: Sanitize filter primitives r=gw
Differential Revision: https://phabricator.services.mozilla.com/D35741

--HG--
extra : moz-landing-system : lando
2019-07-08 22:33:25 +00:00
Connor Brewster
94b32299f8 Bug 1555483 - Part 3: Add SVG render task and shader r=gw
The SVG task supports the pre-existing SVG filters along with Blend.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 22:33:18 +00:00
Connor Brewster
cc5163e0bb Bug 1555483 - Part 2: Add SVG filter picture composite mode r=gw
Differential Revision: https://phabricator.services.mozilla.com/D34088

--HG--
extra : moz-landing-system : lando
2019-07-08 22:32:59 +00:00
Connor Brewster
f48188d4e6 Bug 1555483 - Part 1: Add SVG filter primitive display item. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D34087

--HG--
extra : moz-landing-system : lando
2019-07-08 22:32:52 +00:00
Jan Beich
85cb23c958 Bug 1562497 - Build PuppetSession on Tier3 as VRService depends on it. r=daoshengmu
Differential Revision: https://phabricator.services.mozilla.com/D36811

--HG--
extra : moz-landing-system : lando
2019-07-04 07:41:57 +00:00
Barret Rennie
cb1609a60d Bug 1289211 - Rename InfallibleTArray to nsTArray in gfx/ r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D36958

--HG--
extra : moz-landing-system : lando
2019-07-10 05:25:54 +00:00
Barret Rennie
942eaabecc Bug 1289211 - Rename InfallibleTArray to nsTArray in gfx/webrender_bindings/ r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D36957

--HG--
extra : moz-landing-system : lando
2019-07-10 03:30:18 +00:00
Barret Rennie
420c8e890a Bug 1289211 - Rename InfallibleTArray to nsTArray in gfx/vr/ r=kip
Differential Revision: https://phabricator.services.mozilla.com/D36956

--HG--
extra : moz-landing-system : lando
2019-07-10 03:29:57 +00:00
Barret Rennie
06f829cc25 Bug 1289211 - Rename InfallibleTArray to nsTArray in gfx/thebes/ r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D36955

--HG--
extra : moz-landing-system : lando
2019-07-10 03:29:40 +00:00
Barret Rennie
1b8605ad11 Bug 1289211 - Rename InfallibleTArray to nsTArray in gfx/layers/ r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D36954

--HG--
extra : moz-landing-system : lando
2019-07-10 04:47:53 +00:00
Barret Rennie
fcbeacbb8c Bug 1289211 - Rename InfallibleTArray to nsTArray in gfx/ipc/ r=kats
Differential Revision: https://phabricator.services.mozilla.com/D36953

--HG--
extra : moz-landing-system : lando
2019-07-10 03:29:05 +00:00
Kartikaya Gupta
97683b0ae0 Bug 1564209 - Add more paint/flushing logging for APZ mochitests. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D37420

--HG--
extra : moz-landing-system : lando
2019-07-10 15:46:39 +00:00
Christina Cheung
ed9f06efec Bug 1500465 - Measure touch scroll latency and connect to telemetry. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D36246

--HG--
extra : moz-landing-system : lando
2019-07-09 20:55:15 +00:00
Jeff Muizelaar
11eb687f56 Bug 1564907. Add AMD Navi GPUs to WebRender qualified device list. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D37569

--HG--
extra : moz-landing-system : lando
2019-07-10 15:02:40 +00:00
Josh Matthews
c95bb0f221 Bug 1564448 - Workaround bugs in old ANGLE versions. r=jrmuizel
[import_pr] From https://github.com/servo/webrender/pull/3696

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

--HG--
extra : moz-landing-system : lando
2019-07-10 14:20:40 +00:00
Andreea Pavel
0f343bbb5a Backed out changeset 29b1742d1d3b (bug 1563770) WR bustages on a CLOSED TREE 2019-07-10 17:17:01 +03:00
Jeff Muizelaar
3cc5f09011 Bug 1563775. Include the recording origin in the stream. r=nical
This will let us do the subtraction of the recording origin during
playback instead of during recording.

It will also let us merge recordings that have different origins.

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

--HG--
extra : moz-landing-system : lando
2019-07-10 14:01:34 +00:00
Jeff Muizelaar
ea2bfdae47 Bug 1563770. Always include a visible rect with blob images. r=nical
I suspect we may change things more in the future as we blob's size
just be the visible rect but this is an incremental step in the right
direction.

It also includes some changes to make sure that we always update our
tiles appropriately.

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

--HG--
extra : moz-landing-system : lando
2019-07-10 13:55:09 +00:00
Jeff Muizelaar
bcd10ea75c Bug 1561743. DrawTargetRecording IntRect. r=nical
This lets us record at arbitratry offsets. Without it gfxContext::GetClip()
would break because it uses DrawTarget::GetRect() as the initial rect that it
intersects subsequent clips with. We also can't just use a DrawTargetOffset
because that applies a transform to the inner DrawTarget and will impact the
recorded commands.

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

--HG--
extra : moz-landing-system : lando
2019-07-10 13:49:08 +00:00
Jonas Platte
c26d1cfea9 Bug 1563588 - Update glutin to 0.19, winit to 0.18 r=nical
From https://github.com/servo/webrender/pull/3690

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

--HG--
extra : moz-landing-system : lando
2019-07-10 11:12:08 +00:00
sotaro
9950199432 Bug 1564720 - Fallback from WebRender when EGLSurface creation failed in RenderCompositorEGL::BeginFrame() r=nical
Differential Revision: https://phabricator.services.mozilla.com/D37520

--HG--
extra : moz-landing-system : lando
2019-07-10 11:14:40 +00:00
sotaro
12f2b4cc03 Bug 1564667 - Add error log to TextureHost::Create() r=nical
Differential Revision: https://phabricator.services.mozilla.com/D37519

--HG--
extra : moz-landing-system : lando
2019-07-10 11:12:41 +00:00
Kartikaya Gupta
c518bac110 Bug 1550023 - Don't allow the qualified pref to disable WR for already released populations. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D37085

--HG--
extra : moz-landing-system : lando
2019-07-10 11:27:02 +00:00
Kartikaya Gupta
346c65b29c Bug 1550023 - Qualify whitelisted Intel cards up to WUXGA screen size for Windows in release 69. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D37428

--HG--
extra : moz-landing-system : lando
2019-07-10 11:26:50 +00:00
Kartikaya Gupta
1ed20be5bc Bug 1550023 - Move variable into function. r=jrmuizel
It doesn't need to be an argument since it's not used by the caller.

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

--HG--
extra : moz-landing-system : lando
2019-07-10 11:26:43 +00:00
Oana Pop Rus
1a5e831b42 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-07-11 13:00:34 +03:00
Nicolas Silva
e3c0e8bbd0 Bug 1557208 - Eagerly clear remaining documents during shutdown. r=sotaro
Differential Revision: https://phabricator.services.mozilla.com/D36576

--HG--
extra : rebase_source : 96d80421358242d86d6194389de32b927b6234fe
extra : source : d4421f90b64b1398e4a095d7476d03283c44ec97
2019-07-01 20:31:59 +02:00
Nicolas Silva
a8b0d6f029 Bug 1557208 - Block the caller during RenderBackend shutdown. r=sotaro
--HG--
extra : rebase_source : 4f7177b6732c0ba7192a70896b7e0f8bf4586474
extra : source : 0a8860887ee53b1ef6d9f0ea8f03f246f913395d
2019-07-11 09:50:50 +02:00
Nicolas Silva
b32c2e1cd0 Bug 1557208 - Deallocate thread pool handles during RenderThread sync shutdown. r=sotaro
--HG--
extra : rebase_source : f373ba053d7f79c67aa34c93fe20fe7359d79386
extra : source : e7f3a4b3f5dcdbb1052e387a74fd14e4fcb225a7
2019-07-01 17:24:32 +02:00
Kartikaya Gupta
7273c8f048 Bug 1564460 - Tweak commit message editing when importing PR from github. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D37434

--HG--
extra : moz-landing-system : lando
2019-07-09 16:35:32 +00:00
Gurzau Raul
1e8901d20d Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-07-09 12:57:07 +03:00
Gurzau Raul
40ef220809 Merge inbound to mozilla-central. a=merge 2019-07-09 12:53:21 +03:00
Kris Maglione
e879a812cc Bug 1563632: Fix font restyle races better. r=bustage,test-only
--HG--
extra : rebase_source : b2cace3ce67741869db6a891b9ec39213de60b2e
2019-07-08 22:02:31 -07:00
Narcis Beleuzu
aebbfd69ea Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-07-09 06:53:54 +03:00
Narcis Beleuzu
59c3fccd33 Merge inbound to mozilla-central. a=merge 2019-07-09 06:45:48 +03:00
Narcis Beleuzu
4b16f12a07 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-07-09 06:51:10 +03:00
Nicholas Nethercote
abf15f999d Bug 1560530 - Split StaticPrefs_accessibility.h from StaticPrefs.h. r=froydnj
This implements the machinery for the splitting of static prefs headers, and
uses it for a single header. #includes are used in such a way that the amount
of boilerplate for each static prefs header file is minimal.

Future patches will split the remaining prefs into more header files.

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

--HG--
rename : modules/libpref/StaticPrefs.h => modules/libpref/StaticPrefsBase.h
rename : modules/libpref/StaticPrefs.h => modules/libpref/init/StaticPrefListBegin.h
extra : moz-landing-system : lando
2019-07-08 23:40:39 +00:00
Daosheng Mu
ecf2505849 Bug 1562679 - Checking if OpenVR vrinput() is null when doing initialization. r=kip
Differential Revision: https://phabricator.services.mozilla.com/D37312

--HG--
extra : moz-landing-system : lando
2019-07-08 22:24:00 +00:00
Brindusan Cristian
094a24980d Backed out 6 changesets (bug 1554208) for reftest failures at font-sans-serif.html and geckoview failures at AccessibilityTest.testMoveByLine. CLOSED TREE
Backed out changeset 14b2c3daeaf0 (bug 1554208)
Backed out changeset 7bd8be02631a (bug 1554208)
Backed out changeset 3e6c11ef906c (bug 1554208)
Backed out changeset f72e750ec20d (bug 1554208)
Backed out changeset 3e824f3e3c9c (bug 1554208)
Backed out changeset b610a6988076 (bug 1554208)
2019-07-09 01:07:08 +03:00
Andrew Osmond
e501ee889d Bug 1409773 - Use WebRender instead of fallback for border raster images. r=jrmuizel
Before this patch, we would use fallback for all border images. Now for
all but vector images we will use the WebRender border images
primitives. Vector images are an exception because the fallback is
clever in that it upscales the vector image and clips to only draw the
region it requires. This avoids artifacting but to do something similar
for WebRender as it is currently defined, we would increase our CPU and
memory footprint as we would need to produce the entire vector image
upscaled, not just the parts we need. In the future we should change
WebRender to accept different image resources for each of the segments.

Differential Revision: https://phabricator.services.mozilla.com/D37093
2019-07-08 12:54:44 -04:00
Kris Maglione
f51c85258c Bug 1564001: Fix font restyle races in a different way. r=bustage,test-only
--HG--
extra : rebase_source : e43a7e0f3d099df10ace5a87138cc05932510f69
2019-07-08 10:33:58 -07:00
sotaro
1d84883e80 Bug 1562847 - Disable double buffering with compositor when device reset happens r=nical,bas
When double buffering is enable with compositor, DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL is used without DirectComposition. There are some devices that swap chain with DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL does not work well. In this case, device reset happens very often. To avoid the situation, the double buffering needs to be disabled when device reset happens.

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

--HG--
extra : moz-landing-system : lando
2019-07-09 06:37:45 +00:00
Sebastian Hengst
3134e9d91c Backed out 3 changesets (bug 1541557) for failures in SpecialPowersObserverAPI.js. a=backout CLOSED TREE
Backed out changeset 5b91c8869f42 (bug 1541557)
Backed out changeset a636725ad217 (bug 1541557)
Backed out changeset 7e6657f88b76 (bug 1561150)

--HG--
rename : testing/specialpowers/content/MozillaLogger.js => testing/mochitest/tests/SimpleTest/MozillaLogger.js
rename : testing/specialpowers/content/specialpowersAPI.js => testing/specialpowers/content/SpecialPowersAPI.jsm
rename : testing/specialpowers/content/SpecialPowersObserverAPI.js => testing/specialpowers/content/SpecialPowersAPIParent.jsm
rename : testing/specialpowers/content/specialpowers.js => testing/specialpowers/content/SpecialPowersChild.jsm
rename : testing/specialpowers/content/SpecialPowersObserver.jsm => testing/specialpowers/content/SpecialPowersParent.jsm
extra : amend_source : 158c9e896d32778e71f4fd343227f531d693e511
2019-07-08 14:38:45 +02:00
Sebastian Hengst
515d14403f Backed out 34 changesets (bug 1561150, bug 1541557, bug 1561724, bug 1561999, bug 1558298, bug 1561061, bug 1532795, bug 1560400, bug 1561122) for beta simulation failures (bug 1563905, bug 1564001). a=backout
Backed out changeset 210d6d52e8b0 (bug 1541557)
Backed out changeset 3115db154c45 (bug 1561122)
Backed out changeset b42748878b6e (bug 1561122)
Backed out changeset 266160ca8e9d (bug 1561999)
Backed out changeset 00e935828f41 (bug 1561724)
Backed out changeset 4aaf4882780d (bug 1561150)
Backed out changeset 6644e38a6692 (bug 1561150)
Backed out changeset 72cd895b1613 (bug 1561061)
Backed out changeset f0bac27bad8a (bug 1560400)
Backed out changeset 95da39224eab (bug 1560400)
Backed out changeset 3fe4d4942fd2 (bug 1532795)
Backed out changeset 23e90c6fec2b (bug 1532795)
Backed out changeset a7f093fbef06 (bug 1532795)
Backed out changeset c873f0eb94be (bug 1532795)
Backed out changeset cf359a8ec753 (bug 1532795)
Backed out changeset f2c260cae4b5 (bug 1541557)
Backed out changeset 054a0b7aa81d (bug 1541557)
Backed out changeset f808ec45ff9c (bug 1541557)
Backed out changeset 1025eeef0954 (bug 1541557)
Backed out changeset fe88b250e418 (bug 1541557)
Backed out changeset 6680278c231b (bug 1541557)
Backed out changeset 255735c1ff63 (bug 1541557)
Backed out changeset 51969e1c9c44 (bug 1558298)
Backed out changeset d12525990565 (bug 1558298)
Backed out changeset ef4ec8f0f886 (bug 1558298)
Backed out changeset 45a9599d9641 (bug 1558298)
Backed out changeset 4ccecdba1c34 (bug 1558298)
Backed out changeset 0e91fc9541c2 (bug 1558298)
Backed out changeset edd1cc6badf7 (bug 1558298)
Backed out changeset ba24251835fb (bug 1558298)
Backed out changeset ca88016511bb (bug 1558298)
Backed out changeset c95e6e599836 (bug 1558298)
Backed out changeset 9b1a9d802434 (bug 1558298)
Backed out changeset f859e4de0007 (bug 1558298)

--HG--
rename : testing/mochitest/tests/SimpleTest/MozillaLogger.js => testing/specialpowers/content/MozillaLogger.js
rename : testing/specialpowers/content/SpecialPowersParent.jsm => testing/specialpowers/content/SpecialPowersObserver.jsm
rename : testing/specialpowers/content/SpecialPowersAPIParent.jsm => testing/specialpowers/content/SpecialPowersObserverAPI.js
rename : testing/specialpowers/content/SpecialPowersChild.jsm => testing/specialpowers/content/specialpowers.js
rename : testing/specialpowers/content/SpecialPowersAPI.jsm => testing/specialpowers/content/specialpowersAPI.js
extra : rebase_source : 223d2e49710b016c9973765d402c61692004518e
extra : amend_source : ec773fe82334e6da536bb21e83a994a5f2d03091
2019-07-08 10:37:28 +02:00
Jeff Gilbert
e10bec305a Bug 1443181 - If ANGLE D3D11 disabled, ask for D3D9 explicitly. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D37351

--HG--
extra : moz-landing-system : lando
2019-07-09 04:58:03 +00:00
sotaro
45350055b1 Bug 1531898 - Don't trigger composites on out-of-viewport native texture image updates r=gw
Differential Revision: https://phabricator.services.mozilla.com/D34314

--HG--
extra : moz-landing-system : lando
2019-07-09 02:34:37 +00:00
Dzmitry Malyshau
6104350440 Bug 1548339 - WR: Remove the color/alpha feature in cs_scale shader r=jrmuizel
this makes the shader simpler at no cost

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

--HG--
extra : moz-landing-system : lando
2019-07-05 21:11:44 +00:00
Sylvestre Ledru
131d0c6a02 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-07-06 08:18:28 +00:00
Robert Mader
46c9b36d04 Bug 1563035 - Webrender assumes that an EGL context uses GLES (but it can be GL, too). r=jgilbert 2019-07-03 16:38:00 +03:00
Dzmitry Malyshau
e7e86f1bd8 Bug 1563993 - WR chase into clips r=jrmuizel
it's very helpful to see the list of clips and the way they affect a chased primitive
Example:
```
    building clip chain instance with local rect TypedRect(1561.0×1968.0 at (-300.0,-300.0))
        clip Rectangle(3840.0×1874.0, Clip) at (0.0,0.0) in space SpatialNodeIndex(1)
        flags (empty), resulted in Partial
        clip Rectangle(3840.0×1874.0, Clip) at (0.0,0.0) in space SpatialNodeIndex(2)
        flags (empty), resulted in Partial
```

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

--HG--
extra : moz-landing-system : lando
2019-07-08 13:09:38 +00:00
Daosheng Mu
5b5df637b1 Bug 1564203 - Clear VR external shared memory when recreating a new VR process. r=kip
Differential Revision: https://phabricator.services.mozilla.com/D37332

--HG--
extra : moz-landing-system : lando
2019-07-08 23:07:42 +00:00
Jonathan Kew
da0f34be06 Bug 1554208 - patch 6 - Add PSName and FullName support to gfxFT2FontList shared font-list initialization, so that src:local() lookups will work. r=jwatt
And with this, all tests pass on tryserver when the shared list is enabled.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 19:47:17 +00:00
Jonathan Kew
d45e85e785 Bug 1554208 - patch 5 - Implement shared-fontlist support in the gfxFT2FontList backend. r=jwatt
This is the main part of the implementation, except that it doesn't handle populating the
local names table (for @font-face src:local() lookups) with Full and PostScript names;
that follows in the next patch.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 19:47:03 +00:00
Jonathan Kew
7a6bb0577c Bug 1554208 - patch 4 - Make the FontNameCache that we use to store the font list in the startupCache use a more robust and extensible serialization. r=jwatt
I'll need to add a couple of extra fields to the cache records, and realized that the current format
looks really fragile; in theory, it'd break if a font name ever contained a comma or semicolon
(unlikely though that may be). So let's fix it to be a bit more robust before we add to it further.
Using control characters from the C0 range to delimit fields/records, instead of ASCII punctuation,
removes the (tiny) risk of conflict with characters that actually occur in a name, and using
distinct field and record separators means that we can better check that the records we're loading
from the cache actually match the expected format.

(Given that the startup cache gets re-created when the build ID is updated, a change in the format
between versions wasn't going to cause problems for users; their old cache just gets blown away
when upgrading. Still, a little more robustness seems like a good thing.)

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

--HG--
extra : moz-landing-system : lando
2019-07-08 19:46:44 +00:00
Jonathan Kew
920998b64e Bug 1554208 - patch 3 - Rearrange gfxFT2Fonts code so that FindFonts() does just what it says, and other work is handled by the caller. r=jwatt
This makes the functional structure a bit cleaner, so that it'll be easier to slip in the alternative
codepath for the shared font-list.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 19:46:30 +00:00
Jonathan Kew
8b058ab5a1 Bug 1554208 - patch 2 - Remove redundant member-reset code from gfxFT2FontList::FindFonts (already handled by gfxPlatformFontList before this is called). r=jwatt
A bit of cleanup of the existing code, before we start actually implementing new stuff.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 19:46:16 +00:00
Jonathan Kew
192c1d4cb4 Bug 1554208 - patch 1 - Add missing checks for shared charmap. r=jwatt
This isn't really specific to the FT2 fontlist, it's a general fixup that I noticed while
working on this. (The missing checks aren't crucial, but mean that we might re-read a cmap
when we shouldn't need to.)

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

--HG--
extra : moz-landing-system : lando
2019-07-08 19:46:01 +00:00
Jonathan Kew
1e08aef182 Bug 1560437 - Ignore font.system.whitelist if no whitelisted fonts are found. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D35499

--HG--
extra : moz-landing-system : lando
2019-06-30 01:35:29 +00:00
Jonathan Kew
4650cbd942 Bug 1559044 - Improve criteria for deciding whether to kick off download of a @font-face resource, so that we don't defer resources that will actually be needed. r=heycam
The original patch in bug 1422530 checked whether we're currently hiding a given piece of text
because we're waiting for a resource to download, and used this as a signal that we should not
initiate another download.

However, that's not really a good criterion to use when we're doing font selection for a given
character, both because it's an indirect signal -- whether painting the text is suppressed will
depend on timing and the font-display property -- and because it doesn't consider whether any
resource that's already being downloaded will actually be relevant for the specific character
we're trying to display.

So this patch instead checks for a relevant in-progress load earlier in the font list during
the specific FindFontForChar call, so that when unicode-range is used to split a font across
multiple subsets, an in-progress load for one subset won't make us defer the downloads of other
subsets if they are also needed for the characters present in the text.

With this, the repeated blinking no longer happens on the site here, as loading of all the
required font subsets is initiated early.

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

--HG--
extra : moz-landing-system : lando
2019-07-03 15:14:24 +00:00
Brindusan Cristian
602d5f12fe Backed out the patch disabling the test, changeset 1f905d44de1c (bug 1516298) as requested by kats on the ticket. 2019-07-08 22:32:51 +03:00
Kartikaya Gupta
1d2cb8902f Bug 1550023 - Allow WR on a subset of Intel to ride into early beta on Windows. r=jrmuizel
This uses positive-but-empty #if conditions with else clauses rather than
inverted conditions for better readability and documentation.

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

--HG--
extra : moz-landing-system : lando
2019-07-05 22:08:13 +00:00
Mihai Alexandru Michis
b66ea3d7c7 Bug 1516298 - Disable test_group_touchevents.html for frequent failures on android r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D37252

--HG--
extra : moz-landing-system : lando
2019-07-08 13:44:44 +00:00
Sylvestre Ledru
fc2eb5393c Bug 1562642 - Part 2 - Add missing MPL2 headers r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D37146

--HG--
extra : moz-landing-system : lando
2019-07-08 09:27:47 +00:00
Andreea Pavel
a0eedef06a Backed out changeset f1b593ede263 (bug 1563993) for wrench bustages on a CLOSED TREE 2019-07-08 05:11:23 +03:00
Dzmitry Malyshau
ffc66bad70 Bug 1563993 - WR chase into clips r=jrmuizel
it's very helpful to see the list of clips and the way they affect a chased primitive
Example:
```
    building clip chain instance with local rect TypedRect(1561.0×1968.0 at (-300.0,-300.0))
        clip Rectangle(3840.0×1874.0, Clip) at (0.0,0.0) in space SpatialNodeIndex(1)
        flags (empty), resulted in Partial
        clip Rectangle(3840.0×1874.0, Clip) at (0.0,0.0) in space SpatialNodeIndex(2)
        flags (empty), resulted in Partial
```

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

--HG--
extra : moz-landing-system : lando
2019-07-08 01:48:54 +00:00
Chris AtLee
a0d3d64841 Bug 1559975: Fix python2/3 compat in gfx/ r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D35337

--HG--
extra : moz-landing-system : lando
2019-07-05 14:28:55 +00:00
Kartikaya Gupta
c8cff9effe Bug 1563311 - Remove uses of MOZ_BUILD_WEBRENDER. r=aosmond
This removes support for building Firefox/Gecko without WebRender.

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

--HG--
extra : moz-landing-system : lando
2019-07-05 11:05:17 +00:00
Victor Porof
e974a88416 Bug 1561435 - Reposition comments in gfx/, r=kats
# ignore-this-changeset

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

--HG--
extra : source : 5916248cb30fcc3043885cac46672e1ac4233c6e
extra : intermediate-source : 90a97d97e45bdd105317ef4db9540d97dfa15ac1
2019-06-26 16:02:07 +02:00
Victor Porof
85064fe4c3 Bug 1561435 - Format gfx/, a=automatic-formatting
# ignore-this-changeset

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

--HG--
extra : source : 00faaa954cecb534fa97f4e87de61635c8c526bc
2019-07-05 10:46:28 +02:00
Kartikaya Gupta
ec2096ed3f Bug 1525314 - Update reftest annotations for WebRender on GeckoView. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D36798

--HG--
extra : moz-landing-system : lando
2019-07-04 21:57:48 +00:00
Kartikaya Gupta
b4060b7612 Bug 1525314 - Skip assertion intermittently failing on Android. r=aosmond
Depends on D36796

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

--HG--
extra : moz-landing-system : lando
2019-07-04 21:35:02 +00:00
Kartikaya Gupta
e997669828 Bug 1525314 - Disable tile markers on Android as they seem to crash a lot. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D36794

--HG--
extra : moz-landing-system : lando
2019-07-04 21:35:06 +00:00
Razvan Maries
960e4c47d4 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2019-07-05 00:43:53 +03:00
Razvan Maries
daed363fd7 Merge mozilla-inbound to mozilla-central a=merge 2019-07-05 00:40:17 +03:00
Coroiu Cristina
3983fddf6d Backed out 6 changesets (bug 1525314) for reftest failures at reftests/svg/filters/css-filters/saturate-zero.html om a CLOSED TREE
Backed out changeset 0ed2509b7191 (bug 1525314)
Backed out changeset af72d1c4c107 (bug 1525314)
Backed out changeset ab21a3ff4ae4 (bug 1525314)
Backed out changeset 02399933ac4b (bug 1525314)
Backed out changeset 95790a07a93c (bug 1525314)
Backed out changeset 28f52fd3934e (bug 1525314)
2019-07-05 00:29:12 +03:00
Kartikaya Gupta
61ff199d59 Bug 1563264 - More early-exits to reduce nesting and maybe increase clarity. r=jrmuizel
Depends on D36779

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

--HG--
extra : moz-landing-system : lando
2019-07-04 18:54:44 +00:00
Kartikaya Gupta
a93c3f45a0 Bug 1563264 - Extract conditions for each graphics vendor; no functional change. r=jrmuizel
Depends on D36778

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

--HG--
extra : moz-landing-system : lando
2019-07-04 18:48:39 +00:00
Csoregi Natalia
0c754625a9 Merge mozilla-central to mozilla-inbound. CLOSED TREE 2019-07-04 12:54:22 +03:00
Oana Pop Rus
2ad74ef9f7 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-07-04 06:38:21 +03:00
Narcis Beleuzu
7f1d384198 Backed out changeset 9554ac45236f (bug 1528937) for bc failures on helper_fission_tap.html . CLOSED TREE 2019-07-04 01:10:55 +03:00
Kris Maglione
e5690b95d7 Bug 1541557: Follow-up: Temporarily disable test_font_whitelist in debug/ASan for frequent failures. r=bustage 2019-07-03 13:10:17 -07:00
Kartikaya Gupta
bc8b223993 Bug 1563264 - Add early-exit conditions to reduce nesting; no functional change. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D36778

--HG--
extra : moz-landing-system : lando
2019-07-03 18:32:35 +00:00
Kartikaya Gupta
c08a0b6539 Bug 1525314 - Update reftest annotations for WebRender on GeckoView. r=gbrown
Depends on D36797

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

--HG--
extra : moz-landing-system : lando
2019-07-03 17:13:33 +00:00
Kartikaya Gupta
90b331cafa Bug 1525314 - Skip assertion intermittently failing on Android. r=aosmond
Depends on D36796

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

--HG--
extra : moz-landing-system : lando
2019-07-04 18:39:08 +00:00
Kartikaya Gupta
4b784c8f1a Bug 1525314 - Disable tile markers on Android as they seem to crash a lot. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D36794

--HG--
extra : moz-landing-system : lando
2019-07-03 21:53:59 +00:00
Lee Salzman
f97c9e191d Bug 1562886 - Avoid noinline on GCC with skcms to work around compiler error. r=me 2019-07-03 15:52:39 -04:00
Dzmitry Malyshau
f3630e279f Bug 1546818 - Change WR text transform to be relative to the surface raster node r=gw
a follow-up to D36603 that switches the base space from the surface node to the raster node.

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

--HG--
extra : moz-landing-system : lando
2019-07-04 14:54:36 +00:00
Jonathan Kew
947857981c Bug 1562733 - Properly transform DetailedGlyph offsets when rendering vertical (rotated) text through webrender. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D36795

--HG--
extra : moz-landing-system : lando
2019-07-04 11:58:35 +00:00
Hiroyuki Ikezoe
c9de23aa09 Bug 1562757 - Call ScrollToVisual for the pres shell of the given scrollable frame in ScrollToShowRect. r=botond
We should also check IsRootContentDocumentCrossProcess instead of
IsRootContentDocument there, it will be fixed in bug 1562505.

The test case in this commit is almost copied-n-pasted from
helper_scroll_into_view_bug1516056.html.

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

--HG--
extra : moz-landing-system : lando
2019-07-04 08:48:47 +00:00
Dzmitry Malyshau
a29869406b Bug 1546818 - WR text local transform fix r=gw
Change the glyph transform computation to be relative to the surface node.

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

--HG--
extra : moz-landing-system : lando
2019-07-03 18:59:42 +00:00
Dzmitry Malyshau
8f5b101ef6 Bug 1562989 - Fix WR frameID checks to not trigger on replay r=gw
Differential Revision: https://phabricator.services.mozilla.com/D36650

--HG--
extra : moz-landing-system : lando
2019-07-03 01:35:39 +00:00
Henri Sivonen
338d2f1b30 Bug 1528937 - Test that taps are transformed correctly for out-of-process iframes. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D36743

--HG--
extra : moz-landing-system : lando
2019-07-03 18:05:39 +00:00
Jeff Gilbert
c01f565a55 Bug 1560736 - MakeCurrent after GeckoSurfaceTexture::DestroyUnused. r=snorp
Seems like GeckoSurfaceTexture::DestroyUnused can change the current
context.

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

--HG--
extra : moz-landing-system : lando
2019-07-03 14:15:17 +00:00
thomasmo
5f5804e41b Bug 1562777 - Refactor ShMem code from VR classes into separate class r=kip
This change brings the related ShMem code from VRManager and VRService into a
new class, VRShMem. This is to support future work where this ShMem will be used
for other efforts. Having this code in the same class will enable it to be more
easily shared in these efforts.
Until the new class replaces the code in VRManager and VRService, it can be
exercised and validated with two instances of vrtesthost, with the -testmgr and
-testsvc parameters.

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

--HG--
extra : moz-landing-system : lando
2019-07-03 15:50:28 +00:00
Chris Liu
3b18b22680 Bug 1563042 - Expose recording start time in composition recorder output r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D36671

--HG--
extra : moz-landing-system : lando
2019-07-03 20:08:12 +00:00
Jeff Muizelaar
ca49b31c2a Bug 1561235. Check the type of the PathBuilder instead of the DrawTarget. r=mstange
The draw target might give us a different type.

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

--HG--
extra : moz-landing-system : lando
2019-07-03 20:13:44 +00:00
Daosheng Mu
8ed8b572cb Bug 1559843 - Replace VR code endling to LF. r=kip
Differential Revision: https://phabricator.services.mozilla.com/D36673

--HG--
extra : moz-landing-system : lando
2019-07-02 23:40:27 +00:00
Nicholas Nethercote
510b8223fb Bug 1562810 - Rename some static pref functions. r=KrisWright
Now that all static pref getters use snake_case, these renamings make sense:
- Getfoo_bar_bazPrefName() -> GetPrefName_foo_bar_baz()
- Getfoo_bar_bazPrefDefault() -> GetPrefDefault_foo_bar_baz()

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

--HG--
extra : moz-landing-system : lando
2019-07-02 22:32:09 +00:00
Glenn Watson
6b55adc20e Bug 1562788 - Add support for benchmarking llvmpipe and swiftshader in wrench. r=nical
* Add a script for running wrench under various software rasterizers.
* Add support to wrench for non-blocking event loop.
* Add support to wrench for selecting GL/ES rendering API.
* Update x11 bindings for wrench, to fix a release only crash.

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

--HG--
extra : moz-landing-system : lando
2019-07-02 21:52:16 +00:00
Andreea Pavel
468f91f972 Backed out changeset 9c6775d713e8 (bug 1562788) for webrender lint tidy bustage on a CLOSED TREE 2019-07-03 00:43:26 +03:00
Glenn Watson
861fa49918 Bug 1562788 - Add support for benchmarking llvmpipe and swiftshader in wrench. r=nical
* Add a script for running wrench under various software rasterizers.
* Add support to wrench for non-blocking event loop.
* Add support to wrench for selecting GL/ES rendering API.
* Update x11 bindings for wrench, to fix a release only crash.

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

--HG--
extra : moz-landing-system : lando
2019-07-02 17:15:18 +00:00
Dzmitry Malyshau
3ad5ab9386 Bug 1562892 - WR capture native fonts as raw r=lsalzman
we save the native fonts by their full path now. On macOS, there is no
such thing as a full filesystem path for a CGFont (or at least we don't track it),
so loading a capture falls back to the old logic of using the dummy font.

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

--HG--
extra : moz-landing-system : lando
2019-07-02 15:50:28 +00:00
Jeff Gilbert
406b3a60f1 Bug 1562812 - For powerPreference:Default, only keep dGPU active for consistently active contexts. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D36565

--HG--
extra : moz-landing-system : lando
2019-07-02 16:45:22 +00:00
Kartikaya Gupta
25911f6baa Bug 1560149 - Add some documentation for document splitting. r=dthayer
Differential Revision: https://phabricator.services.mozilla.com/D36210

--HG--
extra : moz-landing-system : lando
2019-07-02 00:53:07 +00:00
Kris Maglione
3e44c16cf9 Bug 1541557: Part 5 - Update callers of ChromeScript.sendSyncMessage to use sendQuery instead. r=nika
Since JSWindowActors don't have direct access to synchronous messaging,
ChromeScript callers are going to need to migrate to asynchronous messaging
and queries instead.

Since there's no comparable API to sendQuery for frame message managers, this
patch adds a stub that uses synchronous messaging, but makes the API appear
asynchronous, and migrates callers to use it instead of direct synchronous
messaging. This will be replaced with a true synchronous API in the actor
migration.

Fortunately, most of the time, this actually leads to simpler code. The
`sendQuery` API doesn't have the odd return value semantics of
`sendSyncMessage`, and can usually just be used as a drop-in replacement. Many
of the `sendSyncMessage` callers don't actually use the result, and can just
be changed to `sendAsyncMessage`. And many of the existing async messaging
users can be changed to just use `sendQuery` rather than sending messages and
adding response listeners.

However, the APZ code is an exception. It relies on intricate properties of
the event loop, and doesn't have an easy way to slot in promise handlers, so I
migrated it to using sync messaging via process message managers instead.

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

--HG--
extra : rebase_source : d5707e87f293a831a5cf2e0b0a7e977090267f78
extra : source : 75ebd6fce136ab3bd0e591c2b8b2d06d3b5bf923
2019-06-12 12:40:51 -07:00
Kris Maglione
f70e67ad2d Bug 1541557: Part 4 - Stop relying on synchronous preference getters/setters. r=nika
The SpecialPowers set*Pref/get*Pref APIs currently use synchronous messaging
to set and get preference values from the parent process. Aside from directly
affecting callers of those APIs, it also affects callers of `pushPrefEnv`,
which is meant to be asynchronous, but is in practice usually synchronous due
to the synchronous messaging it uses.

This patch updates the getPref APIs to use the in-process preference service
(which most callers are expecting anyway), and also updates the callers of
the setPref and pushPrefEnv APIs to await the result if they're relying on it
taking effect immediately.

Unfortunately, there are some corner cases in tests that appear to only work
because of the quirks of the current sync messaging approach. The synchronous
setPref APIs, for instance, trigger preference changes in the parent
instantly, but don't update the values in the child until we've returned to
the event loop and had a chance to process the notifications from the parent.
The differnce in timing leads some tests to fail in strange ways, which this
patch works around by just adding timeouts.

There should be follow-ups for test owners to fix the flakiness.

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

--HG--
extra : rebase_source : 941298157e7c82f420cf50ce057154ce9b85301c
extra : source : 189dc8a359815e059a4a217f788d183260bb2bfe
2019-06-13 09:34:39 -07:00
Kartikaya Gupta
2e99e47063 Bug 1560149 - Followup to fix some typos. r=me 2019-07-03 13:56:36 -04:00
Lee Salzman
93c478a9ca Bug 1555838 - More polyutil fixes. r=rhunt
Differential Revision: https://phabricator.services.mozilla.com/D33688

--HG--
extra : moz-landing-system : lando
2019-06-05 16:57:20 +00:00
Jeff Muizelaar
3fada47065 Bug 1561305. Eliminate unused viewport_tiles field. r=nical
Differential Revision: https://phabricator.services.mozilla.com/D35807

--HG--
extra : moz-landing-system : lando
2019-07-01 07:28:41 +00:00
Jeff Muizelaar
d14beb98f4 Bug 1561303. Add some asserts for the surface size. r=nical
This is the first piece of the blob-recoord series. Adding
some checks to ensure things stay sane.

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

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