Commit Graph

725773 Commits

Author SHA1 Message Date
Gerald Squelart
a087b2df35 Bug 1663554 - Convert AUTO_PROFILER_TEXT_MARKER_... to new AUTO_PROFILER_MARKER_TEXT - r=gregtatum
The name `AUTO_PROFILER_MARKER_TEXT` is more consistent with the equivalent non-`AUTO` macro, and similarly arguments have been re-ordered to be the same, i.e.: Name, category&options, text.

The different macros with different argument sets can now be collapsed into one macro, and the optional arguments (timing, inner window id, backtrace) can easily be added to the `MarkerOptions` where needed.

As a bonus, a specific start time can optionally be provided at construction time.

Differential Revision: https://phabricator.services.mozilla.com/D89588
2020-09-11 00:42:51 +00:00
Gerald Squelart
b0bf2c2172 Bug 1663554 - Convert PROFILER_ADD_TEXT_MARKER and friends to PROFILER_MARKER_TEXT - r=gregtatum
Mostly mechanical changes, with some work needed to convert the different payloads (with optional timestamps, inner window id, and/or backtrace) to the equivalent MarkerOptions.

Differential Revision: https://phabricator.services.mozilla.com/D89587
2020-09-11 00:41:27 +00:00
Robert Helmer
1a9a2dbf1e Bug 1664265 - check for Pioneer enrollment before re-trying default add-on install r=maxxcrawford
Differential Revision: https://phabricator.services.mozilla.com/D89811
2020-09-10 22:45:48 +00:00
Robert Helmer
e273840d72 Bug 1664265 - remove errant Pioneer debugging from test r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D89807
2020-09-10 18:46:06 +00:00
Sylvestre Ledru
f710f7bdec no bug - doc: Fenix uses different branches depending on the version r=jcristau DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D89369
2020-09-10 18:16:57 +00:00
sotaro
5d9e5a2687 Bug 1654475 - SharedSurface_SurfaceTexture: Only ReleaseTexImage if IsSingleBuffer r=jgilbert
SharedSurface_SurfaceTexture::ProducerReadReleaseImpl() handles java::GeckoSurfaceTexture. But how it work is very confusing. The GeckoSurfaceTexture is not SurfaceTexture of this class's GeckoSurface when current process is content process. SurfaceTexture of this class's GeckoSurface does not exist in this process. It exists in compositor's process. Then GeckoSurfaceTexture in this process is a sync surface that copies back the SurfaceTextrure from compositor's process.

Call ReleaseTexImage() only when Surface is single buffer mode, since it needs to be called only when Surface is single buffer mode.

Differential Revision: https://phabricator.services.mozilla.com/D84477
2020-09-10 17:19:15 +00:00
Brindusan Cristian
c5f2ef7f15 Backed out 5 changesets (bug 1661758) for build bustages on GeckoTextMarker.h.
Backed out changeset 9b086da1f8f1 (bug 1661758)
Backed out changeset 8def1d51ae3d (bug 1661758)
Backed out changeset 17532cdc54ae (bug 1661758)
Backed out changeset be0ea9159b11 (bug 1661758)
Backed out changeset 2ca136e7d279 (bug 1661758)
2020-09-11 02:16:49 +03:00
Narcis Beleuzu
807eb4e6a9 Backed out 3 changesets (bug 1663917) for hazard bustages on cubeb_log.h CLOSED TREE
Backed out changeset efddab14db95 (bug 1663917)
Backed out changeset 5d049e004a9c (bug 1663917)
Backed out changeset f6b10dbb0863 (bug 1663917)
2020-09-11 02:11:45 +03:00
Narcis Beleuzu
6a63e47766 Backed out changeset 0115addd7105 for Android cppunit failure. CLOSED TREE 2020-09-11 01:57:33 +03:00
Narcis Beleuzu
f837964009 Backed out 3 changesets (bug 1661809, bug 1662706, bug 1663417) for SM bustages. CLOSED TREE
Backed out changeset 96e69574f7ee (bug 1662706)
Backed out changeset a584b11a503a (bug 1663417)
Backed out changeset 655ce94f20f3 (bug 1661809)
2020-09-11 01:50:09 +03:00
Narcis Beleuzu
ece3375c66 Backed out 2 changesets (bug 1663857) for failures on browser_pioneer_ui.js. CLOSED TREE
Backed out changeset f1dd8a993206 (bug 1663857)
Backed out changeset 8872cde42a12 (bug 1663857)
2020-09-11 01:12:56 +03:00
Glenn Watson
da37a0a877 Bug 1664084 - Improve glyph rasterization worker thread usage. r=nical
Previously, any time a text run was requested where the number of
glyphs to rasterize was < 8, WR would rasterize those glyphs on
the main backend thread.

However, this pattern (along with skipping glyphs in the text run
that are already cached) meant that we will often see frames where
almost all of the glyph raster work gets done on the main thread,
even when there are a large number of glyphs to rasterize.

This patch introduces a batching system. Any time a batch of 8
glyphs for a given font instance are queued, they are dispatched
to a worker thread. At the end of the glyph request phase, any
pending glyphs are also sent to worker threads, if there is a
significant amount of work to do, or done on the main thread if
there are only a few glyphs left.

During profiling of a number of common pages, this appears to drop
the mean and median frame building time by a small amount, but drop
the worst case frame building times by significant amounts (often
several ms).

Differential Revision: https://phabricator.services.mozilla.com/D89692
2020-09-10 13:27:59 +00:00
Agi Sferro
68bde3475c Bug 1659073 - Implement confirmRepost on Mobile. r=owlish,snorp
Differential Revision: https://phabricator.services.mozilla.com/D89658
2020-09-10 22:28:17 +00:00
Agi Sferro
c978775400 Bug 1659073 - Add confirmRepost to nsIPromptCollection. r=pbz,smaug
Differential Revision: https://phabricator.services.mozilla.com/D89657
2020-09-10 22:28:15 +00:00
Eitan Isaacson
f3a7f78787 Bug 1661758 - Part 5: Test AXUIElementForTextMarker and AXTextMarkerRangeForUIElement. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D89067
2020-09-10 21:52:37 +00:00
Eitan Isaacson
debfb84ee9 Bug 1661758 - Part 4: Implement AXUIElementForTextMarker. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D89066
2020-09-10 21:52:35 +00:00
Eitan Isaacson
0ced3240bb Bug 1661758 - Part 3: Implement AXTextMarkerRangeForUIElement. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D89065
2020-09-10 21:52:28 +00:00
Eitan Isaacson
f613d9f64e Bug 1661758 - Part 2: Introduce sync IPDL methods for getting leaf at offset. r=morgan,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D89064
2020-09-10 21:52:20 +00:00
Eitan Isaacson
d0576060fa Bug 1661758 - Part 1: Introduce sync IPDL methods for getting text range of child. r=morgan,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D89063
2020-09-10 21:52:13 +00:00
Julian Descottes
a66edac6cb Bug 1663941 - Do not call onAvailable if cached server resources are empty r=ochameau
Depends on D89609

Differential Revision: https://phabricator.services.mozilla.com/D89611
2020-09-10 20:52:39 +00:00
Julian Descottes
4512e67b05 Bug 1663941 - Do not call ResourceWatcher onAvailable callback with empty arrays of ressources r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D89609
2020-09-09 15:03:21 +00:00
Dragana Damjanovic
05c4dcd62f Bug 1650388 - Send 0RTT data. r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D87231
2020-09-10 20:48:56 +00:00
Dragana Damjanovic
368bae162a Bug 1650388 - Cache and use resumption tokens. r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D87230
2020-09-10 20:48:56 +00:00
Nika Layzell
3b0aed3acd Bug 1661364 - Part 6: Give the recycled process background process priority, r=kmag,jesup
Differential Revision: https://phabricator.services.mozilla.com/D89485
2020-09-10 13:28:24 +00:00
Nika Layzell
24c29bccbb Bug 1661364 - Part 5: Remove MarkAsTroubled, r=kmag
This method has no implementation, and is unused.

Differential Revision: https://phabricator.services.mozilla.com/D88629
2020-09-08 18:35:44 +00:00
Nika Layzell
5851505c99 Bug 1661364 - Part 4: Disable process recycling when prealloc is disabled, r=kmag,jesup
Various tests disable process preallocation in order to get "stable" process
counts for testing purposes. In order to keep this behaviour, we need to disable
and shut down the recycled E10S process whenever the preallocator is disabled.

This is accomplished by having the preallocator expose its enabled status to
ContentParent, and by having the preallocator trigger ContentParent shutdown
when it is disabled.

This also has the benefit of hooking the recycler back into memory pressure
notifications, meaning it will be shut down if not in use when a memory pressure
event occurs.

Differential Revision: https://phabricator.services.mozilla.com/D88628
2020-09-08 20:56:22 +00:00
Nika Layzell
15199373b5 Bug 1661364 - Part 3: Add a MaybeBeginShutDown method, r=kmag,jesup
This helper method abstracts over the common tasks performed in every normal
shutdown codepath. This will be useful for making process recycling respect
preallocation being disabled.

Differential Revision: https://phabricator.services.mozilla.com/D88627
2020-09-08 18:35:39 +00:00
Nika Layzell
74af6d97df Bug 1661364 - Part 2: Don't recycle web processes with Fission enabled, r=kmag,jesup
It is uncommon to have long-lived "web" processes when Fission is enabled, so in
general we probably don't want to be performing content process recycling.

We also skip recycling web processes when E10s is disabled, as the process
preallocator would be disabled in that case, so recycling processes can lead to
mochitest-chrome test failures.

Differential Revision: https://phabricator.services.mozilla.com/D88626
2020-09-08 18:35:37 +00:00
Nika Layzell
23445d16af Bug 1661364 - Part 1: Don't remove recycled content processes from the pool, r=kmag,jesup
Previously, we would use the PreallocatedProcessManager to handle recycled
"web" content processes, which would remove them from the pool and try to make
them act like "prealloc" content processes.

Unlike true preallocated content processes, we can end up having content loaded
in recycled "web" content processes, such as due to a new pop-up being created
at an inconvenient time during process teardown. The complexity around this
semi-prealloc state caused some assertion failures in other related code.

This new approach doesn't remove the recycled process from the process selection
pool. Instead, after process selection decides to spawn a new "web" process, a
pointer to the specific "recycled" content process is fetched and returned by
the process selection algorithm before asking the preallocator.

This new approach should have similar behaviour, but avoids some of the pitfalls
caused by removing the entry from the process selection pool after it has begun
hosting content.

Differential Revision: https://phabricator.services.mozilla.com/D88625
2020-09-09 19:15:51 +00:00
Nika Layzell
da8cbf8277 Bug 1660342 - Add more assertions around host state, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D87928
2020-09-08 18:35:27 +00:00
Narcis Beleuzu
34b6fefd99 Backed out changeset 657830ceac83 (bug 1663537) for causing Bug 1664064. CLOSED TREE 2020-09-10 23:42:15 +03:00
Narcis Beleuzu
69a21ed2df Backed out 2 changesets (bug 1663003) for bustages on nsWindow.cpp . CLOSED TREE
Backed out changeset 50a87c4ddf15 (bug 1663003)
Backed out changeset c3035ba4d8fc (bug 1663003)
2020-09-10 23:40:09 +03:00
Scott
aff2c781e1 Bug 1663028 - Fix busted Pocket button tags and delete. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D89291
2020-09-10 19:44:10 +00:00
Tomislav Jovanovic
c99e9821ef Bug 1636508 - Add options to select captureTab area and scale r=robwu,geckoview-reviewers,agi
Also fix test for HiDPI monitors, and refactor it to remove duplicate code for captureVisibleTab.

Differential Revision: https://phabricator.services.mozilla.com/D89128
2020-09-10 19:38:17 +00:00
Tooru Fujisawa
cfd0790e49 Bug 1664281 - Start encoding in GlobalHelperThreadState::finishSingleParseTask with !useOffThreadParseGlobal. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D89815
2020-09-10 19:32:19 +00:00
Peter Van der Beken
cca834e53b Bug 1664274 - Call SetDocCurrentStateObj for session history in the parent too. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D89812
2020-09-10 19:30:13 +00:00
Narcis Beleuzu
57fd870466 Backed out 3 changesets (bug 1308104) for bustages on nsHttp.cpp . CLOSED TREE
Backed out changeset e78791b93526 (bug 1308104)
Backed out changeset b5c1875c11c7 (bug 1308104)
Backed out changeset 9c8433be706e (bug 1308104)
2020-09-10 22:43:25 +03:00
Sylvestre Ledru
0c82b83c43 no bug - doc: Fenix uses different branches depending on the version r=jcristau DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D89369
2020-09-10 18:16:57 +00:00
Jon Coppeard
81469e4b50 Bug 1663938 - Assert that the collector doesn't trigger barriers during marking r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D89638
2020-09-10 18:10:00 +00:00
Tom Schuster
da1586ecfc Bug 1649010 - Only set MainThread thread name on non-Linux platforms. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D89799
2020-09-10 17:28:56 +00:00
Nicklas Boman
5dce2c0da6 Bug 1308104 - Replace PL_strchr with a safer Gecko string class or function commandlines/ r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D89325
2020-09-10 17:38:30 +00:00
Nicklas Boman
eb33e0f63f Bug 1308104 - Replace PL_strchr with a safer Gecko string class or function netwerk/ r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D89326
2020-09-10 17:38:42 +00:00
Nicklas Boman
7576762235 Bug 1308104 - Replace PL_strchr with a safer Gecko string class or function layout/ r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D89327
2020-09-10 17:38:55 +00:00
stransky
a891034cec Bug 1663003 [Linux/EGL] Use GLX to find X Visual for EGL as a workaround for https://gitlab.freedesktop.org/mesa/mesa/-/issues/149, r=jgilbert
Depends on D89720

Differential Revision: https://phabricator.services.mozilla.com/D89721
2020-09-10 17:47:29 +00:00
stransky
f49660886e Bug 1663003 [Linux/EGL] When we can't find EGLConfig with actual XVisual, use the first suitable one, r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D89720
2020-09-10 17:47:37 +00:00
Emilio Cobos Álvarez
c921f4ff34 Bug 1664227 - The default page margin should be at least the unwriteable section, but not added on top. r=jwatt
We were adding the unwriteable to the default margin. I was going to
consider not painting the headers / footers if they overlapped with the
content box of the page, but turns out our default configuration
overlaps slightly at the bottom, so I just punted on that.

Users can remove the headers / footers quite easily anyhow.

Differential Revision: https://phabricator.services.mozilla.com/D89794
2020-09-10 18:03:04 +00:00
Emilio Cobos Álvarez
61f701951d Bug 1664227 - Grab the print settings in nsPageSequenceFrame::Init. r=jwatt
We should always have sane print settings by then. This avoids other
confusing checks elsewhere.

Depends on D89792

Differential Revision: https://phabricator.services.mozilla.com/D89793
2020-09-10 17:39:59 +00:00
Emilio Cobos Álvarez
b3dd3eae20 Bug 1664227 - Remove some useless nullchecks in nsPageFrame.cpp. r=jwatt
They're dereferenced without checking below, so checking here is just
confusing.

Differential Revision: https://phabricator.services.mozilla.com/D89792
2020-09-10 17:35:53 +00:00
Barret Rennie
2db5a81fea Bug 1663963 - Remove expired scroll anchor adjustment telemetry r=rhunt
Differential Revision: https://phabricator.services.mozilla.com/D89650
2020-09-10 00:52:39 +00:00
Alessio Placitelli
447da79e49 Bug 1663857 - Ensure pioneer pings are properly routed to the study tables. r=rhelmer,amiyaguchi
Depends on D89718

Differential Revision: https://phabricator.services.mozilla.com/D89798
2020-09-10 17:25:24 +00:00