730986 Commits

Author SHA1 Message Date
Aaron Klotz
d9f179782b Bug 1650118: Part 3 - Update tests; r=geckoview-reviewers,agi,perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D90932
2020-10-19 16:54:08 +00:00
Aaron Klotz
9291057e69 Bug 1650118: Part 2 - Update GVE; r=agi
Differential Revision: https://phabricator.services.mozilla.com/D90930
2020-10-19 16:53:57 +00:00
Aaron Klotz
1709d6e45f Bug 1650118: Part 1 - Remove non-e10s mode from GeckoView; r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D90929
2020-10-19 17:08:28 +00:00
Kartikaya Gupta
57da32766a Bug 1671284 - Don't drop APZ requests that have changed the zoom but not the scroll. r=botond
The APZCCallbackHelper code would only enter the codepath to set the presShell
resolution if the repaint request had a scroll position update. This seems silly
because really we care about whether or not the async zoom changed. The included
test exposes this silliness by demonstrating how the presShell resolution can
get stuck at an incorrect value because the necessary repaint requests get
ignored.

The patch now allows the SetResolutionAndScaleTo codepath to be entered if
there is an async zoom on the repaint request, so that we make sure to update
the presShell resolution even if the scroll position hasn't changed.

Differential Revision: https://phabricator.services.mozilla.com/D93687
2020-10-19 20:43:56 +00:00
Kartikaya Gupta
5e52615ca3 Bug 1671284 - Refactor zoom-out helpers to allow custom touch sequences. r=botond
Instead of a having a yield-style pinchZoomOutTouchSequenceAtCenter function
and a async pinchZoomOutWithTouchAtCenter wrapper around it, we now have an
general async wrapper synthesizeNativeTouchAndWaitForTransformEnd around the
main touch synthesization function, with pinchZoomOutWithTouchAtCenter being
a helper that uses it with a specific touch sequence.

In particular this allows reusing this code with other custom touch sequences,
which will happen in the next patch.

Differential Revision: https://phabricator.services.mozilla.com/D93686
2020-10-19 18:32:54 +00:00
Kartikaya Gupta
53fd0d393c Bug 1671284 - Reduce callers of pinchZoomOutTouchSequenceAtCenter. r=botond
I want to refactor a couple of the pinch utilities so I need to migrate this
code to stop using pinchZoomOutTouchSequenceAtCenter, and use
pinchZoomOutWithTouchAtCenter instead. As a bonus this migrates the test from
being a continuation-style to async/await-style.

Differential Revision: https://phabricator.services.mozilla.com/D93685
2020-10-19 18:22:30 +00:00
Mike Hommey
fcd16177c6 Bug 1671424 - Move configure execution from client.mk to mach configure. r=firefox-build-system-reviewers,rstewart
`mach configure` currently runs the equivalent to `make -f client.mk`.
This is history, and essentially does the following:
- Create `configure` and `js/src/configure` from `configure.in` and
`js/src/configure.in` respectively.
- Create the objdir.
- Run `configure` from the objdir.

The `configure` script is, nowadays, only really used as a means to set
OLD_CONFIGURE (and also for people who want to run `configure`,
literally, as in the `configure; make` workflow). `mach configure`
actually doesn't need it. Neither does recursing into `js/src` require
`js/src/configure`, since bug 1520340 (and now as of bug 1669633, we
don't even recurse).

Because configure.py can actually derive OLD_CONFIGURE on its own
(except for `js/src/configure`, but `mach configure` doesn't run that),
we don't really need `configure` for `mach configure`.

So all in all, we're at a point in history where it's straightforward to
just initiate configure.py from mach configure, so we just do that.

And in the hypothetical case where the `mach configure` code is somehow
running in python2, we get the mach virtualenv python3 and use it to
execute `configure.py`.

Differential Revision: https://phabricator.services.mozilla.com/D93741
2020-10-19 16:24:34 +00:00
Ting-Yu Lin
112694d3a0 Bug 1672007 - Remove dead DEBUG_REFLOW code. r=emilio
For future archaeologist: `eReflowReason` used in `nsAdaptorPrintReason`
was originally defined in nsHTMLReflowState.h (today's ReflowInput.h),
and was removed in Bug 300030
31f1898810

Differential Revision: https://phabricator.services.mozilla.com/D94042
2020-10-19 18:59:25 +00:00
Narcis Beleuzu
1fa351142a Backed out 1 changesets (bug 1671289) for wrench bustages on profiler.rs . CLOSED TREE
Backed out changeset db80ac24d32f (bug 1671289)
2020-10-19 23:58:05 +03:00
Harry Twyford
b19f066d1c Bug 1671803 - Add localized names for Baidu and Yandex to WEB_ENGINE_NAMES. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D94012
2020-10-19 18:33:51 +00:00
Nicolas Silva
b5e41f1e7e Bug 1671289 - Improve WebRender's integrated profiler. r=gw
In a (large-ish) nutshell:

 - Consolidate all counters under a single type.
 - Counters are all arranged in an array and referred to via index.
 - All counters can be displayed as average+max (float/int), graph, and change indicator.
 - Specify what to show and in what form via a pref.
 - All counters and visualizations support not having values every frame.
 - GPU time queries visualization is easier to read relative to the frame budget:
  - If the maximum value is under 16ms, the right side of the graph is fixed at 16ms.
  - If the maximum value is above 16ms, draw a vertical bar at 16ms.
 - Added a few new profile counters:
  - Total frame CPU time (from API send to the end of GPU command submission).
  - Visibility, Prepare, Batching and Glyph resolve times.

The main change is how profile counters are represented. Instead of having different types for different visualizations, every counter is represented the same way, tracking average/max values over half a ms and optionally recording a graph over a number of frames. Counters are stored in a vector and referred to via index (See constants at the top of profiler.rs).
The main motivation for this storage is to facilitate adding counters without having to think too much about where to store them and how to pass them to the renderer.

The profiler's UI is defined by a string with with a single syntax:
 - Comma separated list of tokens (leading and trailing spaces ignored), which can be:
  - A counter name:
   - If prefixed with a '#' character, the counter is shown as a graph.
   - If prefixed with a '*' character, the counter is shown as a change indicator
   - By default (counter name without prefix), the counter is shown as average and max over half a second.
  - A preset name:
   - A preset is a builtin UI string in the same syntax that can be nested in the main UI string.
   - Presets are defined towards the top of profiler.rs and can also refer to other presets.
  - An empty token adds a  bit of vertical space.
  - A '|' token begins a new column.
  - A '_' token begins a new row.

Differential Revision: https://phabricator.services.mozilla.com/D93603
2020-10-19 20:07:54 +00:00
Gijs Kruitbosch
265eb412ec Bug 1667787 - fix saving webp images served with jpeg extensions without content-disposition information, r=mak
This changes two bits of Firefox that, together with the mime service, end up
very confused over webp + jpeg.

1) it changes contentAreaUtils.js' getDefaultExtension that if it gets an image
mimetype as the content type, it should ignore the URL. It doesn't have full channel
info so it can't really do better anyway. This fixes the context menu's "save image as..."
case.
2) it changes the external helper app service to do a few things slightly differently:
a. If we're told not to get an extension out of a URL, really don't. Don't just get the
   filename and then get it from there anyway...
b. If we've got a suggested filename, and a primary extension for the mimetype,
   and the extension on the file is not one of the known extensions for the mimetype,
   replace it with the primary extension.
This fixes the link case.

It also adds tests for both of these mechanisms as well as "save image as."

Differential Revision: https://phabricator.services.mozilla.com/D92306
2020-10-19 16:14:13 +00:00
Alaa Emad
d5eb873b78 Bug 1671320 - Rename test_bug1151663.html to test_group_scrollframe_activation.html r=botond
Differential Revision: https://phabricator.services.mozilla.com/D93895
2020-10-19 19:43:23 +00:00
Emily McDonough
7e322dcc03 Bug 1671707 - Remove extra argument from createDefaultSettings calls r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D93861
2020-10-19 19:05:28 +00:00
Agi Sferro
005c753e3f Bug 1665068 - Preserve layers for inactive GV windows. r=jnicol,snorp
Differential Revision: https://phabricator.services.mozilla.com/D93816
2020-10-19 18:28:49 +00:00
Agi Sferro
3e1940c90e Bug 1665068 - Set default clear color according to theme. r=snorp
This also makes it so we don't set a cover automatically anymore, this avoids a
flash when an app sets a session immediately after removing the old session (AC
does this).

Additionally, this also helps with a startup flash, when it's too early for
GeckoView to know whether the app's theme is light or dark.

Differential Revision: https://phabricator.services.mozilla.com/D93815
2020-10-19 18:29:15 +00:00
Agi Sferro
45bd733bd8 Bug 1665068 - Set a default background in SurfaceViewWrapper. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D93814
2020-10-19 18:29:23 +00:00
Narcis Beleuzu
d54df1cd36 Backed out 12 changesets (bug 1626278) for mochitest leakchecks . CLOSED TREE
Backed out changeset eeed6ebfc444 (bug 1626278)
Backed out changeset cc2023032191 (bug 1626278)
Backed out changeset 15f89d2c5981 (bug 1626278)
Backed out changeset 1227d9db743d (bug 1626278)
Backed out changeset d91d9eb46983 (bug 1626278)
Backed out changeset 5861d6340ee8 (bug 1626278)
Backed out changeset 1cf19408d522 (bug 1626278)
Backed out changeset 90cf750aba51 (bug 1626278)
Backed out changeset 991bc13ae061 (bug 1626278)
Backed out changeset 8432bc08676e (bug 1626278)
Backed out changeset 5c0c76832287 (bug 1626278)
Backed out changeset 2f57fa13df7e (bug 1626278)
2020-10-19 22:58:59 +03:00
Narcis Beleuzu
1e5c5c405a Backed out 7 changesets (bug 1661304) for xpcshell failures on test_UserInteraction_annotations.js. CLOSED TREE
Backed out changeset 10459893968e (bug 1661304)
Backed out changeset 234f7dd34c95 (bug 1661304)
Backed out changeset e1954838e36f (bug 1661304)
Backed out changeset 6f0f76bb873d (bug 1661304)
Backed out changeset 5186bba48ce7 (bug 1661304)
Backed out changeset 442ce3a64bab (bug 1661304)
Backed out changeset 88b46f9a789e (bug 1661304)
2020-10-19 21:39:07 +03:00
Narcis Beleuzu
8945877156 Backed out 1 changesets (bug 727668) for bc failures on browser_aboutNewTab_bookmarksToolbar.js . CLOSED TREE
Backed out changeset 5b6a14b4e16e (bug 727668)
2020-10-19 21:19:17 +03:00
Mike Conley
5bdc893fa8 Bug 1661304 - Add an initial UserInteraction for tab opening. r=Gijs,data-review=chutten
Differential Revision: https://phabricator.services.mozilla.com/D88896
2020-10-19 17:43:09 +00:00
Mike Conley
aaf06239d9 Bug 1661304 - Allow UserInteractions to clobber one another. r=chutten,dthayer
Differential Revision: https://phabricator.services.mozilla.com/D93590
2020-10-19 17:42:51 +00:00
Mike Conley
f4b73ffaff Bug 1661304 - Adding running() method to UserInteraction. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D93589
2020-10-19 17:42:28 +00:00
Mike Conley
39c88bb8d6 Bug 1661304 - Add tests for UserInteractions infrastructure. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D92810
2020-10-19 17:42:10 +00:00
Mike Conley
d47ad5f8f1 Bug 1661304 - Introduce UserInteractions as things that can be defined statically at build-time. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D88684
2020-10-19 17:41:49 +00:00
Mike Conley
69c8c5891d Bug 1661304 - Add an interface for front-end code to annotate background hang reports. r=dthayer,chutten,smaug
Differential Revision: https://phabricator.services.mozilla.com/D88309
2020-10-19 17:41:15 +00:00
Mike Conley
5f8f62eb7d Bug 1661304 - Make BHR annotations an array of key value pairs when submitted to Telemetry. r=dthayer
Differential Revision: https://phabricator.services.mozilla.com/D92809
2020-10-19 17:45:30 +00:00
Dzmitry Malyshau
5668f013a9 Bug 1622846 - WebGPU new mapping API r=webidl,jgilbert,smaug
This PR updates wgpu to 64ae59072d
It has a number of things (API updates, correctness fixes, etc), but the biggest part is the new mapping API.

Differential Revision: https://phabricator.services.mozilla.com/D92636
2020-10-19 17:19:12 +00:00
Alex Henrie
a1acf45525 Bug 1671749 - Remove workaround for MinGW from nsAuthSSPI destructor. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D93874
2020-10-19 14:44:44 +00:00
Jared Wein
6a6ed34746 Bug 1597084 - Set the image attribute on the bookmark-items in the toolbar when creating them to prevent flickering of the default favicon. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D93301
2020-10-19 16:52:32 +00:00
Emilio Cobos Álvarez
b44389f911 Bug 1671959 - Fix shift-reloading from the devtools toolbox. r=jdescottes
Not quite sure how to test it, didn't find an existing test to extend
off-hand.

Differential Revision: https://phabricator.services.mozilla.com/D94033
2020-10-19 16:34:36 +00:00
Jared Wein
0e83701c0c Bug 727668 - Show bookmarks toolbar on the new tab page. r=Gijs,fluent-reviewers
This adds the ability to force the bookmarks toolbar to appear on all pages. The checkbox in the toolbar context menu will reflect if the toolbar will appear outside of the newtab page. The toolbar will always appear on the newtab page. Profiles that already had the toolbar showing will have a migration to keep their experience unchanged.

Differential Revision: https://phabricator.services.mozilla.com/D89222
2020-10-19 16:38:17 +00:00
Cosmin Sabou
bd6a3d3f6e Backed out 2 changesets (bug 1669696, bug 1670008) for bc failures on browser_print_margins.js CLOSED TREE
Backed out changeset 0b5292f5309d (bug 1670008)
Backed out changeset 5b2a95a6e071 (bug 1669696)
2020-10-19 20:31:20 +03:00
Cosmin Sabou
a4f27b590d Backed out changeset 73e461c6ee8d (bug 1671803) for bc failures on browser_tabToSearch.js. 2020-10-19 20:25:35 +03:00
Agi Sferro
05a773c6fe Bug 1671578 - Overload Loader.equals.
Differential Revision: https://phabricator.services.mozilla.com/D93812
2020-10-19 17:09:25 +00:00
Cosmin Sabou
a2f526ddc3 Backed out changeset 55a5da81f312 (bug 1671578) for linting opt failures. 2020-10-19 20:21:13 +03:00
Jeff Muizelaar
2909b283eb Bug 1671967 - Rely on mCTFont being set. r=lsalzman
Now that we always use CTFontDrawGlyphs we can just
rely on having a CTFont.

Differential Revision: https://phabricator.services.mozilla.com/D94032
2020-10-19 16:29:47 +00:00
Gijs Kruitbosch
08117c68af Bug 1671952 - turn off the 2020h2 bookmarks pref on non-nightly, r=jaws
Depends on D94030

Differential Revision: https://phabricator.services.mozilla.com/D94031
2020-10-19 16:16:38 +00:00
Gijs Kruitbosch
1eb312de26 Bug 1671587 - fix perma-fail of test_Chrome_bookmarks.js when the 2020h2 pref gets flipped, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D94030
2020-10-19 16:16:21 +00:00
Harry Twyford
cd454d0141 Bug 1671803 - Add localized names for Baidu and Yandex to WEB_ENGINE_NAMES. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D94012
2020-10-19 15:05:09 +00:00
Dorel Luca
9ca588da3e Backed out changeset 13bb2d007f1f (bug 1622846) for Build bustage on android. CLOSED TREE 2020-10-19 19:28:27 +03:00
Bryce Seager van Dyk
8449f6d2b3 Bug 1671477 - Add profile markers and logs to help diagnose failures in WMF decoding. r=alwu
We have reports of VPx WMF failures in the wild causing performance issues, but
it can be hard to detect these failures. Having explicit markers in the profiler
with more information will make it easier to see if users are running into these
issues if they can provide profiles. I've also added logs to enrich cases where
we will use logging to debug.

Driveby fix a comment that says we're asserting when we no longer are.

Differential Revision: https://phabricator.services.mozilla.com/D93672
2020-10-19 14:41:11 +00:00
Dorel Luca
b77a4cd190 Backed out changeset b64cb312c05b (bug 1671477) for Build bustage on Android. CLOSED TREE 2020-10-19 19:23:29 +03:00
Dorel Luca
34a1c4ee15 Backed out changeset 802898bbe773 (bug 1671477) wrong bug number, changes belong to another bug. 2020-10-19 19:16:31 +03:00
Jeff Muizelaar
0440c26f3d Bug 1671963 - Always use CTFontDrawGlyphs. r=lsalzman
CTFontDrawGlyphs has been around since 10.7

Differential Revision: https://phabricator.services.mozilla.com/D94029
2020-10-19 15:59:02 +00:00
Agi Sferro
678f696c20 Bug 1671578 - Overload Loader.equals. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D93812
2020-10-19 15:46:56 +00:00
Agi Sferro
640b96f85b Bug 1671571 - Don't pass null headers in Loader. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D93811
2020-10-19 15:45:17 +00:00
Andreas Pehrson
8b6f27b098 Bug 1582294 - Implement MediaStreamTrackSource::HasAlpha for HTMLCanvasElement sources. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D92900
2020-10-16 19:20:20 +00:00
Andreas Pehrson
d1aeaca86a Bug 1582294 - Implement MediaStreamTrackSource::HasAlpha for MediaDecoder sources. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D92899
2020-10-19 15:35:29 +00:00
Andreas Pehrson
d5227f851c Bug 1582294 - Set up HTMLMediaElement to convey video track alpha channel when playing a MediaStream. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D92898
2020-10-19 15:35:13 +00:00