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

720767 Коммитов

Автор SHA1 Сообщение Дата
Jeremy Ir 20235b390f Bug 1531609 part 1 - Rename overflow:-moz-hidden-unscrollable to overflow:clip. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D73716
2020-08-01 01:56:58 +00:00
Mats Palmgren 21b713c1f1 Bug 1635473 - [css-overflow] Make viewport propagation for 'overflow:-moz-hidden-unscrollable' compatible with the spec for 'clip'. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D84171
2020-08-01 02:00:23 +00:00
Botond Ballo 918a678966 Bug 1656628 - Avoid calling setTimeout(undefined) in synthesizeNativeWheelAndWaitForWheelEvent(). r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D85645
2020-07-31 23:55:28 +00:00
Dan Mosedale 9c37db93a5 Bug 1655825 - Remove "Use system theme" text from about:welcome, r=pdahiya,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D85351
2020-08-01 01:16:50 +00:00
Markus Stange cbf4ac0e8a Bug 1656331 - Create a TickReasons bitfield and add the tick reasons to the RefreshDriverTick profiler marker. r=smaug
Example profile: https://share.firefox.dev/2P7QpqL

Differential Revision: https://phabricator.services.mozilla.com/D85458
2020-07-31 23:06:10 +00:00
Markus Stange 7f8346ef73 Bug 1656331 - Capture a cause callstack in EnsureTimerStarted() and insert the RefreshDriverTick marker in a different place. r=smaug
We can have markers with empty cause stacks, if we keep the timer running
without calling EnsureTimerStarted() again.

Differential Revision: https://phabricator.services.mozilla.com/D85457
2020-07-31 23:04:54 +00:00
Markus Stange 34b668de52 Bug 1656331 - Factor out nsRefreshDriver::HasReasonToTick() and ShouldKeepTimerRunningWhileWaitingForFirstContentfulPaint(). r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D85456
2020-07-31 23:04:30 +00:00
Chris Liu 89c666046b Bug 1494838 - Add a profiler marker with a cause stack for paints (view manager flushes). r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D85455
2020-08-01 00:55:57 +00:00
Markus Stange a2b3d3f84d Bug 1655580 - Stop leaking surfaces that were captured with RequestScreenPixels. r=geckoview-reviewers,agi
FlipScreenPixels was heap-allocating and leaking a ScopedMap object, which kept
the surface alive.

Instead, we want to keep the surface alive just long enough to copy its data
into a Java Bitmap object. This copy needs to be done on the C++ side so that
we're sure that it happens while the surface data exists. After that, the Java
code can hold on to the resulting Bitmap object as long as it wants, since the
Bitmap then owns its own data.

The ScreenshotBuilder GeckoView API allows users to specify the bitmap object
that will be used. So rather than creating a new Bitmap object in the C++ code,
we pass the target bitmap into the C++ code that performs the copy.

As a drive-by fix, this patch eliminates another copy at the start of
FlipScreenPixels by replacing a call to `gfx::CreateDataSourceSurfaceFromData`
(which copies) with a call to `gfx::Factory::CreateWrappingDataSourceSurface`
(which doesn't copy).
It would be nice if we could eliminate another copy here, by performing the flip
during the copy into the Bitmap object. But I don't think there's a way to do
that. Also, for optimal performance, we probably want to get an AHardwareBuffer
object from the compositor and wrap that into a Bitmap.

Furthermore, the patch adds a check that makes sure the draw target was created
successfully before accessing it (throwing an exception if not).

Differential Revision: https://phabricator.services.mozilla.com/D85490
2020-07-31 23:03:50 +00:00
Jeff Gilbert fa50c42c4b Bug 1656034 - Add UnderlyingValue() to mfbt. - r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D85495
2020-07-31 23:04:44 +00:00
Andreea Pavel cae88d4491 Backed out 2 changesets (bug 1650502) for failing android at test_frame_reconstruction.html on a CLOSED TREE
Backed out changeset 9b300d20df23 (bug 1650502)
Backed out changeset 1e87d4186672 (bug 1650502)
2020-08-01 02:54:36 +03:00
Andreea Pavel 742a9ce46c Backed out 6 changesets (bug 1653392, bug 1648868, bug 1649202) for breaking bc at browser_modal_print.js on a CLOSED TREE
Backed out changeset e6f8429bae89 (bug 1649202)
Backed out changeset 5360afed1eba (bug 1649202)
Backed out changeset d3b3387338f8 (bug 1649202)
Backed out changeset 98b1c160e065 (bug 1653392)
Backed out changeset 5c984392950a (bug 1648868)
Backed out changeset fa8732ebff70 (bug 1648868)
2020-08-01 02:25:16 +03:00
Andreea Pavel 7b5d8cd64c Backed out 1 changesets (bug 1654248) for failures at PeerConnectionImpl.cpp on a CLOSED TREE
Backed out changeset e51e334b08cd (bug 1654248)
2020-08-01 02:08:08 +03:00
Butkovits Atila 2704c94f2a Backed out changeset 4ba66dd08e1e (bug 1655580) as requested by mstange. CLOSED TREE 2020-08-01 01:37:24 +03:00
Steven MacLeod 6ceacee1c3 Bug 1646567 - fix nsDocShell::HasUnloadedParent to work for OOP frames. r=nika
With fission enabled, walking the docshell tree to find unloaded
parents would stop at the first OOP parent. Instead we now walk
the `BrowsingContext`/`WindowContext` tree. To still check parents
which are OOP, we take advantage of the fact that a parent
`WindowContext` will no longer be the current `WindowContext` if
the parent was unloaded. For in process docshell's we additionally
check the docshell directly.

Differential Revision: https://phabricator.services.mozilla.com/D85328
2020-07-31 19:58:09 +00:00
Emilio Cobos Álvarez 865d72310e Bug 1656596 - Add another missing null-check in our printing code. r=nordzilla
This code needs fuzzing desperately...

Differential Revision: https://phabricator.services.mozilla.com/D85631
2020-07-31 21:53:02 +00:00
Markus Stange 60d55ce831 Bug 1655580 - Stop leaking surfaces that were captured with RequestScreenPixels. r=geckoview-reviewers,agi
FlipScreenPixels was heap-allocating and leaking a ScopedMap object, which kept
the surface alive.

Instead, we want to keep the surface alive just long enough to copy its data
into a Java Bitmap object. This copy needs to be done on the C++ side so that
we're sure that it happens while the surface data exists. After that, the Java
code can hold on to the resulting Bitmap object as long as it wants, since the
Bitmap then owns its own data.

The ScreenshotBuilder GeckoView API allows users to specify the bitmap object
that will be used. So rather than creating a new Bitmap object in the C++ code,
we pass the target bitmap into the C++ code that performs the copy.

As a drive-by fix, this patch eliminates another copy at the start of
FlipScreenPixels by replacing a call to `gfx::CreateDataSourceSurfaceFromData`
(which copies) with a call to `gfx::Factory::CreateWrappingDataSourceSurface`
(which doesn't copy).
It would be nice if we could eliminate another copy here, by performing the flip
during the copy into the Bitmap object. But I don't think there's a way to do
that. Also, for optimal performance, we probably want to get an AHardwareBuffer
object from the compositor and wrap that into a Bitmap.

Furthermore, the patch adds a check that makes sure the draw target was created
successfully before accessing it (throwing an exception if not).

Differential Revision: https://phabricator.services.mozilla.com/D85490
2020-07-31 21:28:27 +00:00
Emilio Cobos Álvarez 1c6be9d4fb Bug 1655859 - Unship ::-moz-focus-outer in all channels. r=boris
It was disabled on nightly in bug 1636998. It does nothing anymore.

There's no regression known and I'm hoping we can get rid of it.

Differential Revision: https://phabricator.services.mozilla.com/D85208
2020-07-31 21:14:58 +00:00
Hiroyuki Ikezoe 45a645cd20 Bug 1656421 - Use the viewport frame size for the clip rect if there is no root scroll frame. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D85548
2020-07-31 18:15:32 +00:00
Hiroyuki Ikezoe e1d98926a8 Bug 1656419 - Check whether the given animation and the animation stored in mPartialPrerenderedAnimations are in the same EffectSet instead of just comparing the animation instances. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D85535
2020-07-31 21:06:42 +00:00
Mark Banner cc5b4191c8 Bug 1656215 - Add a MozParam option to allow passing the current date as part of the search url. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D85606
2020-07-31 20:46:24 +00:00
Mark Striemer 80909ebab9 Bug 1649202 - Part 3: Use the current printerName for previews r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D85506
2020-07-31 20:24:27 +00:00
Mark Striemer 9667b0a515 Bug 1649202 - Part 2: Cleanup print preview code, only run one update at a time r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D85505
2020-07-31 20:26:19 +00:00
Mark Striemer e6d2ab46b8 Bug 1649202 - Part 1: Include a print preview in modal print dialog r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D84838
2020-07-31 19:58:29 +00:00
Mark Striemer c15a32e650 Bug 1653392 - Basic tab modal print UI test r=emalysz,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D84245
2020-07-31 20:16:33 +00:00
Mark Striemer 5655ce5053 Bug 1648868 - Part 2: Move modal print UI into a tab modal r=Gijs
This should be migrated to TabDialogBox (bug 1650795) when it's ready in bug 1653317.

Differential Revision: https://phabricator.services.mozilla.com/D84244
2020-07-31 19:57:46 +00:00
Mark Striemer 5e2b93c4cc Bug 1648868 - Part 1: Cleanup SubDialog for tab-level usage r=emalysz
Ensure all listeners that are added are cleaned up correctly.
Add an option to remove the overlay when closed and add a promise for when
the dialog is set up.

Differential Revision: https://phabricator.services.mozilla.com/D85307
2020-07-31 19:57:16 +00:00
Jan-Ivar Bruaroey 6507521605 Bug 1654248 - Fix missing telemetry reporting of WEBRTC_CALL_DURATION, and stop counting renegotiations in WEBRTC_CALL_COUNT_2. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D85042
2020-07-31 20:33:08 +00:00
Emilio Cobos Álvarez 1ade3ecd63 Bug 1650502 - Plumb whether an async APZ animation is in progress via RepaintRequest. r=botond
And store that information in the scroll frame for the purposes of
avoiding scroll anchoring and scroll restoration.

Differential Revision: https://phabricator.services.mozilla.com/D85157
2020-07-31 20:33:01 +00:00
Emilio Cobos Álvarez b4a86b28fd Bug 1650502 - Miscellaneous cleanups in AsyncPanZoomController. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D85156
2020-07-30 09:02:11 +00:00
Butkovits Atila 64a8612aa9 Backed out changeset 562a834a3692 (bug 1656349) for build bustages at BackgroundParentImpl. CLOSED TREE 2020-08-01 01:02:44 +03:00
Joel Maher abf17d06e7 Bug 1643689 - disable 1st round of manifest scheduling. r=aryx
disable 1st round of manifest scheduling

Differential Revision: https://phabricator.services.mozilla.com/D85621
2020-07-31 20:15:34 +00:00
Joel Maher 0d05d91906 Bug 1652881 - filter out remaining debug tasks on beta/release. r=Callek
filter out remaining debug tasks on beta/release.

Differential Revision: https://phabricator.services.mozilla.com/D85511
2020-07-31 20:10:37 +00:00
Geoff Brown d4f33f633f Bug 1656410 - Fix py3 sort failure in test-info report --show-manifests; r=bc
Differential Revision: https://phabricator.services.mozilla.com/D85619
2020-07-31 18:52:29 +00:00
Chris Martin 583e1cc437 Bug 1656349 - Refactor the IPC lifetimes for the PGamepadEventChannel object r=daoshengmu
Change the GamepadEventChannel so it is fully-initialized by the IPC
constuctor and needs no separate "init" message, and so its completely
destroyed by the ActorDestroy() message so it needs no "cleanup" message.

This simplifies the object lifetime, as well as unifies the IPC error vs
clean shutdown paths.

Differential Revision: https://phabricator.services.mozilla.com/D85481
2020-07-31 19:40:55 +00:00
Kartikaya Gupta 140d36fd23 Bug 1655238 - Add a test. r=botond
Depends on D85453

Differential Revision: https://phabricator.services.mozilla.com/D85604
2020-07-31 18:53:59 +00:00
Kartikaya Gupta 6b1ec87be3 Bug 1655238 - Only cancel existing APZ animations on mousedown when the mousedown lands on a scrollthumb. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D85453
2020-07-31 15:36:24 +00:00
Kartikaya Gupta 76f03a451f Bug 1655238 - Add a hit-scrollthumb flag to the TargetConfirmationFlags. r=botond
Instead of setting the mTargetConfirmed flag to false in APZCTreeManager when
potentially starting a drag block, let the input block creation do it a little
bit later. This change ensures that the InputQueue ReciveInputEvent methods
have access to the mHitScrollthumb flag, and so can make better decisions.

Differential Revision: https://phabricator.services.mozilla.com/D85452
2020-07-31 19:26:20 +00:00
Jim Blandy f11d8f45ac Bug 1656395: Have wrench create a Tracy zone for each reftest. r=gw
This adds a use of the tracy-rs `profile_scope!` macro to
`ReftestHarness::run_reftest`.

Depends on D85509

Differential Revision: https://phabricator.services.mozilla.com/D85510
2020-07-31 01:12:15 +00:00
Jim Blandy 4dfc74a41f Bug 1656395: Update to tracy-rs 0.1.2. r=gw
This version of `tracy-rs` adds the `text:` option to the `profile_scope!`
macro.

Differential Revision: https://phabricator.services.mozilla.com/D85509
2020-07-31 01:11:49 +00:00
Jamie Nicol ed5fae5cec Bug 1655278 - Stop forcing a composite when we have fallen 2 vsync intervals behind. r=kats
Currently on Android when CompositorVsyncScheduler detects that we requested a
composite more than 2 vsync intervals ago it forces an immediate composite. This
is a relic from times when vsync observation occured on the main thread, and
Fennec was single-process. (The logic being that if the main thread was busy and
it would be better to composite immediately rather than wait for the vsync
notification.)

Neither of these conditions are true nowadays, and geckoview should be no worse
than desktop platforms in this regard, so let's remove this code.

Depends on D85611

Differential Revision: https://phabricator.services.mozilla.com/D85612
2020-07-31 17:53:27 +00:00
Jamie Nicol afb4f3c9f1 Bug 1655278 - Ensure AndroidVsyncSource::Display::mVsyncDuration is initialized before CompositorBridgeParent. r=kats
When a CompositorBridgeParent is initialized it reads the vsync duration from
the AndroidVsyncSource::Display instance. The vsync duration is currently
initialized in AndroidVsyncSource::EnableVsync(). Since bug 1617750 landed,
which makes the hidden window lazily loaded, the first tab's
CompositorBridgeParent is being initialized before vsync is enabled, meaning it
reads a value of zero.

Instead, initialize mVsyncDuration in the AndroidVsyncSource::Display
constructor.

Differential Revision: https://phabricator.services.mozilla.com/D85611
2020-07-31 17:49:10 +00:00
Butkovits Atila cc95b93cba Backed out 3 changesets (bug 1635473, bug 1531609) for reftest failures. CLOSED TREE
Backed out changeset 1e7b32808be8 (bug 1531609)
Backed out changeset e64a61869cdb (bug 1531609)
Backed out changeset 6da37d7f6dd3 (bug 1635473)
2020-07-31 23:56:54 +03:00
Andreea Pavel 08426f2f10 Backed out 11 changesets (bug 1655465) for breaking SM builds on a CLOSED TREE
Backed out changeset 6567d54b63c8 (bug 1655465)
Backed out changeset a5491d62d560 (bug 1655465)
Backed out changeset 5ead4048955f (bug 1655465)
Backed out changeset 8b030b7d13ab (bug 1655465)
Backed out changeset 1682c7ee28f9 (bug 1655465)
Backed out changeset 7527a8726d9c (bug 1655465)
Backed out changeset 367207c1cece (bug 1655465)
Backed out changeset bc2378fcaf0f (bug 1655465)
Backed out changeset 66ff72ea169b (bug 1655465)
Backed out changeset 737e3a6415de (bug 1655465)
Backed out changeset 4dbe80f41370 (bug 1655465)
2020-07-31 22:37:34 +03:00
sachin a1654899f8 Bug 1654056: Rename app-link tests to VIEW and home_activity to MAIN r=acreskey,sparky,tarek
Rename app-link tests to VIEW and home_activity to MAIN

Differential Revision: https://phabricator.services.mozilla.com/D84400
2020-07-31 18:54:27 +00:00
Bob Clary 423b921dc2 Bug 1653094 - Ignore some properties in BaseScript when collecting decorated methods. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D85581
2020-07-31 18:56:17 +00:00
Razvan Caliman 8a93c20985 Bug 1656477 - Do not react to cached DOCUMENT_EVENT resources in Changes panel. r=daisuke
This patch is borrowing a change that's coming with D85239 to fix the issue that the Changes panel shows as empty when it should show changes tracked in the background (before the Changes panel is opened).

The reason, as identified in D85239, is that the Changes panel reacts to `DOCUMENT_EVENT` resources which are cached in the resource watcher. The Changes panel thinks that the document is reloading so it clears all the changes that were collected. The result in an empty Changes panel.

The screenshot below shows the resource types and the order in which they arrive:
{F2382929}

Differential Revision: https://phabricator.services.mozilla.com/D85603
2020-07-31 17:06:33 +00:00
André Bargull d3747b425a Bug 1655465 - Part 11: Change JSOp::FunctionProto to JSOp::BuiltinObject. r=jandem
Callers to `GetBuiltinPrototype()` rely on inlining the function itself plus
optimising the object access, so that the property value is directly seen as a
constant in the compiler. By changing `GetBuiltinPrototype()` and
`GetBuiltinConstructor()` to be directly translated into a JSOp, we can avoid
heavily relying on the compiler to optimise these two functions.

The new opcode replaces the existing JSOp::FunctionProto opcode. It doesn't
use JSProtoKey directly in order to help jsparagus (bug 1622530), but instead
uses its own set of mapping from enum values to built-in prototypes and
constructors.

This change also resolves bug 1377264.

Differential Revision: https://phabricator.services.mozilla.com/D84991
2020-07-31 14:44:18 +00:00
André Bargull 2c24a584d1 Bug 1655465 - Part 10: Support StringSplitString in CacheIR and Warp. r=jandem
Drive-by change:
- Make `intrinsic_StringSplitString` a static function.

Differential Revision: https://phabricator.services.mozilla.com/D84989
2020-07-31 14:09:44 +00:00
André Bargull 9dc65d7e38 Bug 1655465 - Part 9: Avoid MToString on string-typed inputs in Warp. r=jandem
Warp can't currently fold away `MToString`, as a workaround handle the already
string case in WarpBuilder.

Differential Revision: https://phabricator.services.mozilla.com/D84988
2020-07-31 14:07:58 +00:00