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

725937 Коммитов

Автор SHA1 Сообщение Дата
Eitan Isaacson 237178d7dd Bug 1661758 - Part 3: Implement AXTextMarkerRangeForUIElement. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D89065
2020-09-11 05:07:52 +00:00
Eitan Isaacson 1959904dc6 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-11 05:07:48 +00:00
Eitan Isaacson e3872eb448 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-11 05:07:46 +00:00
Chris Peterson 118723ea09 Bug 1664100 - Replace MOZ_MUST_USE with [[nodiscard]] in caps. r=ckerschb
The MOZ_MUST_USE macro is defined as clang's and gcc's nonstandard __attribute__((warn_unused_result)). Now that we compile as C++17 by default (bug 1560664), we can replace MOZ_MUST_USE with C++17's standard [[nodiscard]] attribute.

The [[nodiscard]] attribute must precede a function declaration's declaration specifiers (like static, extern, inline, or virtual). The __attribute__((warn_unused_result)) attribute does not have this order restriction.

Differential Revision: https://phabricator.services.mozilla.com/D89697
2020-09-10 14:36:15 +00:00
Cosmin Sabou 598ffecbd5 Backed out changeset 16d4d1f1a447 (bug 1664105) for linux webrender tidy bustage. CLOSED TREE 2020-09-11 08:13:57 +03:00
Cosmin Sabou 914580f435 Backed out changeset 0f6ea0586a34 (bug 1663938) for causing Bug 1664326. 2020-09-11 08:12:30 +03:00
sotaro 872ccfe115 Bug 1649088 - Add SharedSurface support with AHardwareBuffer support on android r=jgilbert
AHardwareBuffer could remove several limitations of android::SurfaceTexture.

File descriptor usage of current implementation is not efficient. It is going to be addressed by Bug 1663381.

Differential Revision: https://phabricator.services.mozilla.com/D89232
2020-09-11 03:11:45 +00:00
Nicholas Nethercote cc286890ec Bug 1664105 - Upgrade `ron` to 0.6.2. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D89698
2020-09-10 14:31:34 +00:00
J.C. Jones 0b80ebcbcb Bug 1664298 - Upgrade authenticator-rs to v0.3.0 r=kjacobs
https://github.com/mozilla/authenticator-rs/releases/tag/v0.3.0

Major changes:

 * Move to Rust 2018 edition #125
 * Remove dependency on boxfnonce #121
 * Reworked error handling #130
 * Added a higher-level AuthenticatorService that can use multiple backends #123
 * Changed the C API to use the new AuthenticatorService #123
 * Added a Status channel for backends #122
 * Now obtaining HID report sizes from the descriptors #12
 * Add authenticator USB and Firmware details to the C API #93

Differential Revision: https://phabricator.services.mozilla.com/D89823
2020-09-10 23:49:02 +00:00
Jonathan Watt 4c42148980 Bug 1664339. Stop incrementing the legacy printing UI telemetry counts when the new printing UI is in use. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D89846
2020-09-11 01:18:28 +00:00
Emily McDonough 4ee073b552 Bug 1664172 - Remove the MOZ_RELEASE_ASSERT on the CUPS dinfo r=emilio
Add a separate field to CUPSPrinterInfo to track if we attempted to fetch the
printer info before.

This should be safe, as all the CUPS calls internally check for a null-dinfo
and we will detect the error at that point.

Differential Revision: https://phabricator.services.mozilla.com/D89847
2020-09-11 00:36:17 +00:00
Jonathan Watt bace57115a Bug 1664332. Derive the prepopulated filename for save-to-PDF via the system print dialog from the document title. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D89838
2020-09-11 01:08:55 +00:00
Punam Dahiya 744a5e4c1e Bug 1659150 - Remove about:welcome trailhead, full page and ReturnToAMO templates r=perftest-reviewers,Mardak,mkaply,nanj,sparky
Differential Revision: https://phabricator.services.mozilla.com/D89077
2020-09-11 00:31:11 +00:00
Gerald Squelart 2ac895ec86 Bug 1664122 - Clearer MarkerOptions accessors - r=gregtatum
`MarkerOptions::Set()` returns the same reference type as the object it's invoked on, i.e.: & -> &, and && -> &&.

`MarkerOptions::NAME()` now always returns a reference to a `const` member, so it's clear it cannot be modified (even if the object at hand is not `const`).
`MarkerOptions::NAMERef()` must be used when non-`const` access is needed.

Differential Revision: https://phabricator.services.mozilla.com/D89715
2020-09-11 00:44:18 +00:00
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