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

775570 Коммитов

Автор SHA1 Сообщение Дата
Lukas Bernhard 463253db7d Bug 1709209 - [wasm] Move SIMD masking out of codegen. r=yury
Differential Revision: https://phabricator.services.mozilla.com/D129314
2021-11-02 19:47:21 +00:00
Matthew Gregan 8f4cbf6d7b Bug 1738768 - Register AudioIPC server threads with Firefox Profiler. r=cubeb-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D130116
2021-11-02 19:42:33 +00:00
Sandor Molnar b1852a9b5e Backed out changeset ea6696688123 (bug 1738909) for causing build bustages. CLOSED TREE 2021-11-02 21:56:00 +02:00
owlishDeveloper dd9d805fa5 Bug 1699845 - Remove cleanup code for app_tmpdir r=geckoview-reviewers,agi,calu
Differential Revision: https://phabricator.services.mozilla.com/D130123
2021-11-02 19:37:33 +00:00
Kirk Steuber 7b6abf3945 Bug 1728536 - Fix --disable-maintenance-service build capability r=nalexander,application-update-reviewers
Building without support for the maintenance service currently does not work because the definitions of EnvHasValue and IsSecureUpdateStatusSucceeded are ifdef'ed out despite being used. This patch fixes this by including those functions, even if compiling without support for the maintenance service.

Differential Revision: https://phabricator.services.mozilla.com/D129722
2021-11-02 19:35:12 +00:00
Harry Twyford 79961d3e61 Bug 1736807 - Use --toolbar-field-icon-fill-attention for login icon and remove login-icon class. r=desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D129446
2021-11-02 19:29:11 +00:00
Jeff Muizelaar 85c2c5cb36 Bug 1738909 - Use upstream CFData::from_arc instead of raw bindings. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D130173
2021-11-02 19:23:36 +00:00
Sebastian Hengst 220b2dbfbb Bug 1738963 - correct early beta variable name guarding preference in StaticPrefs.yaml. r=emilio
The code added in bug 1738616 used `EARLY_BETA_OR_EARLIER` but
`IS_EARLY_BETA_OR_EARLIER` should be used.

Differential Revision: https://phabricator.services.mozilla.com/D130208
2021-11-02 19:11:22 +00:00
Myeongjun Go a2e121e262 Bug 1674220 - [perfdocs] Enumerate Talos tests using PerfDocs r=sparky,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D128037
2021-11-02 19:11:06 +00:00
Agi Sferro f279d8797a Bug 1529082 - Add mochitest variant that runs using AAB test_runner. r=gbrown
This patch adds a new Mochitest variant which installs the test runner app as
AAB.

Differential Revision: https://phabricator.services.mozilla.com/D127324
2021-11-02 18:56:28 +00:00
Agi Sferro d4e0174d2c Bug 1529082 - Use bundletool to install apps as aab packages. r=ahal,owlish
This patch adds a new command line argument --aab which allows users to install
GVE as an AAB.

This will also be used in a future patch to install the test runner as AAB.

Differential Revision: https://phabricator.services.mozilla.com/D127323
2021-11-02 18:56:28 +00:00
Agi Sferro 9c53c0e0fb Bug 1529082 - Use bundletool in CI to install AAB targets. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D127322
2021-11-02 18:56:27 +00:00
Agi Sferro 9abd4ae68d Bug 1529082 - Resolve keyed target in get_mobile_project. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D130193
2021-11-02 18:56:27 +00:00
Agi Sferro dccddb81bc Bug 1529082 - Move TestRunnerActivity to test_runner. r=ahal,owlish
The fact that the test runner app is defined inside the geckoview test package
has always felt like a hack to me. I've mistakenly thought that
TestRunnerActivity was used in GeckoView's junit tests many times (even though
that's not the case).

From what I can see, there's no way to generate an AAB package for androidTest,
so to be able to run Gecko tests as AAB we finally need to define the
TestRunner as an ordinary package instead.

Differential Revision: https://phabricator.services.mozilla.com/D127320
2021-11-02 18:56:26 +00:00
Agi Sferro 823690869d Bug 1529082 - Add device.install_app_bundle r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D127319
2021-11-02 18:56:26 +00:00
Agi Sferro 9e1b1f9456 Bug 1529082 - Add bundletool to Android's bootstrap r=jmaher
This tool is used to install AAB packages to devices.

AAB is the new package format for Android Apps and will supersede APK.

Differential Revision: https://phabricator.services.mozilla.com/D127318
2021-11-02 18:56:25 +00:00
Agi Sferro 088243109c Bug 1529082 - Locate lib folder within the APK. r=owlish
Before this patch, we would load mozglue using the unqualified
`System.loadLibrary("mozglue")` and then we would try to load all the other
native libraries from the path returned from `nativeLibraryDir`.

Note that since the path is unqualified, we might end up loading a library
that's not inside the APK, potentially a malicious one.

Android App Bundles (or AAB) is a new feature of Android where apps can be
split in multiple APKs (called "splits"). Each APK split contains a functinal
part of the app, e.g. a specific resolution asset folder, all the native
libraries for one CPU architecture etc.

For AAB, `nativeLibraryDir` returns an empty folder as the libraries are
stored, uncompressed, inside one of the APK splits, so GeckoView fails to load
libxul and other libraries when starting up.

The current code also doesn't work for any case where `System.loadLibrary`
fails to load mozglue (we do have code that accounts for that, but I'm not sure
how much of it is funcitonal).

To fix that, we locate the mozglue using code ported from Chromium and use that
to locate all the other native libraries.

Note this still doesn't fix the problem of loading an unqualified mozglue
library, but there's not a lot we can do about that right now (and that's not a
new problem, so we can address it in a separate patch).

Differential Revision: https://phabricator.services.mozilla.com/D122909
2021-11-02 18:56:25 +00:00
Henrik Skupin a11f894d94 Bug 1736323 - [marionette] "WebDriver:NewSession" has to wait for the very first tab to finish loading. r=webdriver-reviewers,jdescottes
If the New Session command doesn't wait for the initial tab
to have finished loading, any other command send right away
could fail because the document could be replaced.

Differential Revision: https://phabricator.services.mozilla.com/D130158
2021-11-02 18:40:32 +00:00
Agi Sferro 58998fbef1 Bug 1715036 - Always detach compositor. r=calu,owlish
Most of our JNI code either holds strong references to Java objects, i.e. the
Gecko Garbage Collector is responsible for clearning the object, or weak
references to Java code, i.e. the Java GC is responsible for clearing the
object.

Some objects, however, are special and need manual care. These objects
implement the `onWeakNonIntrusiveDetach` method, which is manually triggered by
calling `Detach`.

My understanding is that these objects need to be cleared from either the Java
side (when the GC destroys the GeckoSession) or from the C++ side, when the
window associated to a GeckoSession is closed.

This is done to avoid holding off to a window for longer than necessary, since
it's very expensive to do so.

The intermittent subject of this bug was caused by us not clearing the
Compositor object when the window closes on the Gecko side, letting the Java
side call `syncPauseCompositor` on a dead JNI object.

This is the before code of the Compositor's `onWeakNonIntrusiveDetach`:

```
  void OnWeakNonIntrusiveDetach(already_AddRefed<Runnable> aDisposer) {
    RefPtr<Runnable> disposer = aDisposer;
    if (RefPtr<nsThread> uiThread = GetAndroidUiThread()) {
      // ...
      uiThread->Dispatch(NS_NewRunnableFunction(
          "LayerViewSupport::OnWeakNonIntrusiveDetach",
          [compositor, disposer = std::move(disposer),
           results = &mCapturePixelsResults, window = mWindow]() mutable {
            if (auto accWindow = window.Access()) {
	      // ...
              compositor->OnCompositorDetached();
            }

            disposer->Run();
          }));
    }
```

As you can see from the above, the `OnCompositorDetached` method, which informs
the Java layer that the compositor should not be called anymore, was only
invoked when `window.Access()` returns successfully, i.e.  when we have a
window that is alive.

Normally, a Compositor object always has a window associated to it, as there's
a strong link between the GeckoSession and the Compositor object on the Java
side.

There are, however, some edge cases (mostly during shutdown) where the Java
code holds a reference to the Compositor but not the GeckoSession. In those
cases, we would fail the following check

```
if (auto accWindow = window.Access()) {
```

And fail to call `OnCompositorDetached`.

We don't really need the window to call `OnCompositorDetached`, as explained
above, so we can just move the call outside the `if` statement to fix this
problem.

Differential Revision: https://phabricator.services.mozilla.com/D130101
2021-11-02 18:28:12 +00:00
Agi Sferro 4d6d26edcd Bug 1736433 - Close File Descriptors when disconnecting from a busy service. r=calu,owlish
Failing to close the File Descriptors causes a shutdown hang, as the main
process is not able to detect when the child process dies because we're leaking
the File Descriptors.

Differential Revision: https://phabricator.services.mozilla.com/D128938
2021-11-02 18:17:41 +00:00
Agi Sferro 28a487cbb8 Bug 1736433 - Make sure process is not alive when running xpcshell-test. r=jmaher
Sometimes we try to start a process that already exists and that causes a very
confusing error (the test times out but there's no indicastion as to why).

This patch makes it so that we will first try to kill the existing zombie
process and then, if we fail to do so, throw an error.

Differential Revision: https://phabricator.services.mozilla.com/D128937
2021-11-02 18:17:41 +00:00
Agi Sferro c99bb166a5 Bug 1736433 - Add test name to xpcshell-test logs on Android. r=ahal,jmaher
xpcshell-test runs up to 10 concurrent tests and the logs are all interleaved.
This patch adds the test name to every log statement to let developers know
what test is causing the log line to appear in the logs.

Differential Revision: https://phabricator.services.mozilla.com/D128936
2021-11-02 18:17:40 +00:00
Agi Sferro 6825be4e35 Bug 1736433 - Keep log of launch failures in GeckoProcessManager. r=owlish
This patch refactors `GeckoProcessManager`. Before this patch, we would pass
all arguments needed to start a process in every method call, together with the
previous error (if present).

This patch groups the arguments in a class `StartInfo` and keeps the failure
information separately in a list of exceptions that can be used to generate a
log in case of failure.

This patch also fixes two problems:

- We were calling `detachFd` right after connecting to a process, which is
  incorrect when the binding fails, as we still need a reference to the File
  Descriptor to retry the connection. After the patch, we will call detach only
  at the end when we either have established a connection or we have given up.

- We were taking ownership of the File Descriptors from Gecko. This is
  incorrect because Gecko owns them already and calling `close` accidentally
  will crash the app. We now `dup` them instead, using
  `ParcelFileDescriptor.from`.  This also means that the call to `detachFd` is
  now a call to `close`.

Differential Revision: https://phabricator.services.mozilla.com/D128935
2021-11-02 18:17:40 +00:00
Agi Sferro a1ec46fb8c Bug 1736433 - Don't use unneeded Integer.valueOf. r=calu,owlish
The argument is already an `int` so we don't need to call `valueOf`.

Differential Revision: https://phabricator.services.mozilla.com/D128934
2021-11-02 18:17:39 +00:00
Agi Sferro 09be856797 Bug 1736433 - Add InitInfo::builder. r=owlish
This patch adds a builder for InitInfo and allows us to define its members as
final.

This is especially useful for File Descriptors which are all of the same type,
and could be easily swapped in method calls.

Differential Revision: https://phabricator.services.mozilla.com/D128933
2021-11-02 18:17:39 +00:00
Agi Sferro 1b309951d6 Bug 1736433 - Add GeckoResult::finally_. r=owlish,calu
This method is called regardless of whether the GeckoResult completes
successfully or not.

Differential Revision: https://phabricator.services.mozilla.com/D128932
2021-11-02 18:17:38 +00:00
Harry Twyford 6cd788487b Bug 1525788 - Support sending Handoff. r=mstange,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D129406
2021-11-02 18:08:08 +00:00
Emilio Cobos Álvarez c308704902 Bug 1738614 - Remove other Widget* colors. r=mstange
These are only used for frameset painting and the non-e10s <select>
dropdown focus codepath. We have other more appropriate standard
colors for this.

Differential Revision: https://phabricator.services.mozilla.com/D129992
2021-11-02 18:08:07 +00:00
Emilio Cobos Álvarez 923cf5df84 Bug 1738614 - Remove TextForeground/Background system colors. r=mstange
Same thing, there's nor reason these should be different from other
CSS-exposed colors.

Differential Revision: https://phabricator.services.mozilla.com/D129991
2021-11-02 18:08:07 +00:00
Emilio Cobos Álvarez ac14d7e42d Bug 1738614 - Remove WindowBackground/Foreground system colors. r=mstange
There's no reason for these to be different to the CSS-exposed
Window/WindowText.

Differential Revision: https://phabricator.services.mozilla.com/D129990
2021-11-02 18:08:07 +00:00
raquelvargas 0aadb60b82 Bug 1738229 - Stop using the second argument to ChromeUtils.import in various files in browser. r=Standard8,webcompat-reviewers,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D129842
2021-11-02 17:21:07 +00:00
Emilio Cobos Álvarez 270e255624 Bug 1738947 - Fix path to virtualenv.py. r=mhentges
It was moved in bug 1732948.

Differential Revision: https://phabricator.services.mozilla.com/D130195
2021-11-02 17:19:45 +00:00
David Parks 08989409e1 Bug 1661127: Cache Windows IVirtualDesktopManager::GetWindowDesktopId value r=cmartin
GetWindowDesktopId is a slow function and is called on the UI thread during WM_CLOSE message handing (as part of SessionStore). This was causing Windows to assume we are stalled and it abandons some messages, namely future WM_CLOSE messages sent for other windows during a "Close All Windows" operation.

In this patch, GetWorkspaceId uses a cached value for GetWindowDesktopId (if available) but also queues an update for that cache value if one isn't already in progress. Since SessionStore already regularly calls GetWorkspaceId in response to window moves, this keeps the value fresh in plases where it might change. (The SessionStore architecture is designed that way because Windows does not notify the application if the user moves the window to another virtual desktop.)

Differential Revision: https://phabricator.services.mozilla.com/D128955
2021-11-02 17:18:23 +00:00
Evgenia Kotovich aa58ef9939 Bug 1432412 - Re-implement browser_copy_folder_tree.js. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D128868
2021-11-02 17:05:35 +00:00
Mathieu Leplatre acb2745374 Bug 1738284 - Update CFR docs to use the Remote Settings DEV server r=nanj DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D130186
2021-11-02 16:54:52 +00:00
Julien Cristau 9a9cb9820a Bug 1738908 - remove esr78 references. r=releng-reviewers,mtabara DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D130178
2021-11-02 16:47:50 +00:00
Kershaw Chang 34f9cb2633 Bug 1727180 - Call XRE_InitCommandLine for xpcshell, r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D124890
2021-11-02 16:01:10 +00:00
Agi Sferro 69c7fc95b8 Bug 1733423 - Implement getAllLoginsAsync. r=calu,owlish
This patch adds a new API onLoginFetch() which will be called when Gecko needs
access to all logins saved on the device (as opposed to just logins for a
domain).

Differential Revision: https://phabricator.services.mozilla.com/D129862
2021-11-02 15:59:54 +00:00
Iulian Moraru bcd7d6fd66 Backed out 23 changesets (bug 1729455) for causing multiple build bustages. CLOSED TREE
Backed out changeset eb27a22d5419 (bug 1729455)
Backed out changeset 0744d68b8c94 (bug 1729455)
Backed out changeset 052a33acc2e4 (bug 1729455)
Backed out changeset 6911243d9ae0 (bug 1729455)
Backed out changeset 0473c7cfd344 (bug 1729455)
Backed out changeset 9b44714d7fce (bug 1729455)
Backed out changeset b04e243f4ab5 (bug 1729455)
Backed out changeset d112b90b7c05 (bug 1729455)
Backed out changeset 40008e4f1c1f (bug 1729455)
Backed out changeset 5a3ecc96a699 (bug 1729455)
Backed out changeset 3e8ac168ee3d (bug 1729455)
Backed out changeset 0cfae6f33c35 (bug 1729455)
Backed out changeset e8d24be16e22 (bug 1729455)
Backed out changeset eb07a028bc43 (bug 1729455)
Backed out changeset 11637120b0cc (bug 1729455)
Backed out changeset 7f7c9f002087 (bug 1729455)
Backed out changeset 080188fa01cf (bug 1729455)
Backed out changeset f058fbb8662e (bug 1729455)
Backed out changeset 907da0f267fd (bug 1729455)
Backed out changeset 8e036b0931e3 (bug 1729455)
Backed out changeset cfcd4d853484 (bug 1729455)
Backed out changeset 99267b6d193f (bug 1729455)
Backed out changeset a2cee9ad6c6c (bug 1729455)
2021-11-02 18:10:53 +02:00
Heitor Neiva 8760285b99 Bug 527670 - Fix download failure handling on UV async downloader r=aki DONTBUILD
Removing the unlinking shouldn't be a problem, only possible side effect would be removing the partially downloaded file

Differential Revision: https://phabricator.services.mozilla.com/D130132
2021-11-02 15:45:11 +00:00
Iulian Moraru 4008be6b81 Backed out 10 changesets (bug 1529581) for causing bp-hybrid build bustages on TestPacer. CLOSED TREE
Backed out changeset e7b7072ac90c (bug 1529581)
Backed out changeset 3c5d719c54db (bug 1529581)
Backed out changeset 39e2b3143ecd (bug 1529581)
Backed out changeset bd2122ea3cc3 (bug 1529581)
Backed out changeset 033cc341ad2e (bug 1529581)
Backed out changeset 8a8ee5055c0d (bug 1529581)
Backed out changeset 8c204db3e91d (bug 1529581)
Backed out changeset 142d94304c86 (bug 1529581)
Backed out changeset ac180bf89fd0 (bug 1529581)
Backed out changeset d0640f52161d (bug 1529581)
2021-11-02 17:53:17 +02:00
Emilio Cobos Álvarez 6108460974 Bug 1738265 - Add a negative margin to popups to account for the shadow added in bug 1738084. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D129817
2021-11-02 15:07:29 +00:00
Robert Mader e8ada91b1c Bug 1736761 - Do not try to initialize GBM on Nvidia < 495, r=gfx-reviewers,jgilbert
It causes unnecessary error messages - and we do have the blocklist
already, so make use of it.

Differential Revision: https://phabricator.services.mozilla.com/D130133
2021-11-02 15:05:59 +00:00
Niklas Baumgardner dd68c1b4ef Bug 1725249 - Update telemetry notification emails to use screenshots-dev@ alias. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D130056
2021-11-02 14:53:17 +00:00
Niklas Baumgardner aa8f9e907b Bug 1649915 - Save screenshots as PNG instead of JPG. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D130096
2021-11-02 14:50:48 +00:00
Glowreeyah ce77d16f97 Bug 1738301 - Update the link to mercurial bundle documentation. r=mhentges
Differential Revision: https://phabricator.services.mozilla.com/D130169
2021-11-02 14:49:46 +00:00
Andreas Pehrson 6b1d2082ae Bug 1529581 - Make VideoFrameConverter serve frames though a MediaEventSource. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D129660
2021-11-02 14:36:01 +00:00
Andreas Pehrson 41e3a2f0dd Bug 1529581 - Make VideoFrameConverter use the new Pacer. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D129659
2021-11-02 14:36:00 +00:00
Andreas Pehrson fea88876ab Bug 1529581 - Improve VideoFrameConverter logging and dispatch assertions. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D129658
2021-11-02 14:36:00 +00:00
Andreas Pehrson 228822f035 Bug 1529581 - Don't let time go backwards in VideoFrameConverter. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D129657
2021-11-02 14:36:00 +00:00