Commit graph

816789 commits

Author SHA1 Message Date
Mark Hammond
cf1e2c2545 Bug 1791851 - regenerate uniffi r=teshaq,LougeniaBailey,bdk
Differential Revision: https://phabricator.services.mozilla.com/D157980
2022-10-25 20:03:22 +00:00
Sammy Khamis
0d48542497 Bug 1791851 - Add tabs as a uniffi component r=teshaq,LougeniaBailey,bdk
Differential Revision: https://phabricator.services.mozilla.com/D157979
2022-10-25 20:03:22 +00:00
Sammy Khamis
91b6f8fd65 Bug 1791851 - mach vendor changes for tabs component r=teshaq,LougeniaBailey,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D157978
2022-10-25 20:03:21 +00:00
Jed Davis
f9aff9e98e Bug 1796758 - Don't try to use waitid on OpenBSD. r=nika
OpenBSD, uniquely (as far as I know) of our Unix targets, doesn't
support the function `waitid`, which means that the fix for bug 1793523
broke the build.  However, OpenBSD isn't affected by bug 1793523 because
the crash reporter isn't supported, so it can continue to use `waitpid`.

This patch restores the `waitpid` version of `IsProcessDead` under an
ifdef.  I've tested it locally on Linux (by changing the ifdef), and as
expected it does exhibit bug 1793523 but otherwise seems to work, so it
should work on OpenBSD.

Differential Revision: https://phabricator.services.mozilla.com/D160113
2022-10-25 20:01:52 +00:00
Mark Banner
fc7befc08d Bug 1795322 - Update toolkit modules references in remaining places. r=mossop,zeid,geckoview-reviewers,calu
Differential Revision: https://phabricator.services.mozilla.com/D160036
2022-10-25 19:49:28 +00:00
Mark Banner
faf8655562 Bug 1795322 - Update toolkit modules references in testing code r=gbrown,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D160035
2022-10-25 19:49:28 +00:00
Mark Banner
a23bba4111 Bug 1795322 - Update toolkit modules references in dom code. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D160034
2022-10-25 19:49:27 +00:00
Mark Banner
dc3eac6a6e Bug 1795322 - Update toolkit modules references in toolkit code. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D160033
2022-10-25 19:49:27 +00:00
Mark Banner
4088495edb Bug 1795322 - Update toolkit modules references in places and storage code. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D160032
2022-10-25 19:49:26 +00:00
Mark Banner
97298a7f37 Bug 1795322 - Update toolkit modules references in browser/ code. r=mossop,Gijs,preferences-reviewers,desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D160031
2022-10-25 19:49:26 +00:00
Mark Banner
2fbff5ba3f Bug 1795322 - Update toolkit modules references in enterprise policy code. r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D160030
2022-10-25 19:49:26 +00:00
Mark Banner
5871258371 Bug 1795322 - Update toolkit modules references in telemetry code. r=Dexter
Differential Revision: https://phabricator.services.mozilla.com/D160029
2022-10-25 19:49:25 +00:00
Mark Banner
49bf99096b Bug 1795322 - Update toolkit modules references in update code. r=application-update-reviewers,bytesized
Differential Revision: https://phabricator.services.mozilla.com/D160028
2022-10-25 19:49:25 +00:00
Mark Banner
7efc75ed17 Bug 1795322 - Update toolkit modules references in services code. r=bdk
Differential Revision: https://phabricator.services.mozilla.com/D160027
2022-10-25 19:49:24 +00:00
Mark Banner
6b6069c609 Bug 1795322 - Update toolkit modules references in marionette related code. r=whimboo,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D160026
2022-10-25 19:49:24 +00:00
Mark Banner
e97576127a Bug 1795322 - Update toolkit module references in devtools. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D160025
2022-10-25 19:49:23 +00:00
Sean Feng
4af6892217 Bug 1797365 - Remove deprecated NS_NewPluginDocument r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D160266
2022-10-25 19:48:58 +00:00
Brad Werth
32f71773f4 Bug 1797292: Protect some pointers from null dereference. r=media-playback-reviewers,alwu
Neither the VideoData nor the Image pointer are guaranteed to be created in
VideoData::CreateAndCopyData.

Differential Revision: https://phabricator.services.mozilla.com/D160247
2022-10-25 19:04:34 +00:00
Itiel
8d45186ac0 Bug 1790232 - Use subviewbutton for the Protections popup buttons and cleanup some CSS r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D157045
2022-10-25 19:02:45 +00:00
Iulian Moraru
e9c1b0b23a Backed out changeset bc3f9439cf22 (bug 1695309) for causing multiple xpcshell failures. CLOSED TREE 2022-10-25 22:36:25 +03:00
Iulian Moraru
4f4e6e1160 Backed out 2 changesets (bug 1792203) for causing gtest failures.
Backed out changeset d9048386628e (bug 1792203)
Backed out changeset 119c65339140 (bug 1792203)
2022-10-25 22:35:35 +03:00
Mozilla Releng Treescript
83f6e26e38 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
fi -> 826abb0c37deea73e4599b563d68e5c55551036c
fy-NL -> e2d12d548ea7537c3b9b3673476a125555e0bbdb
he -> 90ce925ed27f1c4ab6d8c62e455550aac41d4226
it -> c8ba1714bd6abd6f5fc5929fb9eea008baa7d896
nb-NO -> e87ecac60d14340cf2aa86e98eb88cd589fe9c96
nl -> 0e98929c813e75e9a9fc9ce195c6e2c8c21505ab
2022-10-25 19:04:56 +00:00
Barret Rennie
794cfa52ff Bug 1695309 - Replace CommonUtils.{read,write}JSON with IOUtils.{read,write}JSON r=Gijs,markh
Differential Revision: https://phabricator.services.mozilla.com/D159962
2022-10-25 18:41:26 +00:00
stransky
fda76755db Bug 1797309 [Wayland] Use correct popup to calculate parent position for wl_subsurface popups r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D160223
2022-10-25 18:36:51 +00:00
Kirk Steuber
82778c33c2 Bug 1727820 - Add a state check to all current update mochitests r=bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D159309
2022-10-25 18:10:24 +00:00
Kirk Steuber
509c6f875c Bug 1727820 - Add testing for AppUpdater.stop r=bhearsum
`AppUpdater.stop()` is not currently well tested, and the new implementation relies on throwing exceptions. It's important that these exceptions be properly caught to ensure that we don't end up handling the exception as an internal error or not handling it properly at all.

Differential Revision: https://phabricator.services.mozilla.com/D159308
2022-10-25 18:10:23 +00:00
Kirk Steuber
40c6d99de3 Bug 1727820 - Add test for combining update check requests r=bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D159307
2022-10-25 18:10:23 +00:00
Kirk Steuber
7b47c8b368 Bug 1727820 - Fix tests broken by the previous patch stack r=bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D159306
2022-10-25 18:10:22 +00:00
Kirk Steuber
9aa484ee7c Bug 1727820 - Check isDownloading before calling cleanupDownloadingUpdate r=bhearsum
We should be careful about calling `cleanupDownloadingUpdate`. We currently call it sometimes when `AUS.downloadUpdate` fails without checking whether we are already downloading an update. We don't want to mess up a download that is already in-progress just because a subsequent call to `downloadUpdate` failed.

It may have been necessary in the past to clean up if `downloadUpdate` failed in order to prevent leaving bits of downloading update state around. But now we don't set that state until the download has actually started, so some of those cleanup instances just aren't necessary anymore. We only really need to clean up if we might be resuming a download, in which case those bits of state will be lying around and ought to be cleaned up on failure.

Differential Revision: https://phabricator.services.mozilla.com/D159305
2022-10-25 18:10:22 +00:00
Kirk Steuber
726cce18f6 Bug 1727820 - Add logging to all UpdateService state transitions r=bhearsum
The Update Service stores information about the current update state in the status file and in the state properties of both downloadingUpdate and readyUpdate. It's important that we log changes to this information in order to better be able to debug tests and user issues.

Differential Revision: https://phabricator.services.mozilla.com/D159304
2022-10-25 18:10:22 +00:00
Kirk Steuber
0b65cecc7b Bug 1727820 - Implement nsIApplicationUpdateService's state tracking feature r=bhearsum
Also change some of the implementation of UpdateService to use the new currentState API.

This patch also fixes and cleans up a few things that are only tangentially related. Most notably, `_postUpdateProcessing` does a better job of handling the situation where Firefox starts while updating/staging is still in-progress. And `refreshUpdateStatus` does a better job of handling unexpected error situations like the updater binary crashing.

Differential Revision: https://phabricator.services.mozilla.com/D159303
2022-10-25 18:10:21 +00:00
Kirk Steuber
edd4998dd1 Bug 1727820 - Implement nsIUpdateChecker API change r=bhearsum
Note that, for the most part, this isn't meant to change behavior. It is just meant to eliminate race conditions and fix some bugs. However, a tiny bit of behavior has been changed.

Previously, the fallback error codes used to potentially populate nsIUpdate.statusText were 200 in Checker.onError (corresponding to "Update XML file malformed") and 404 in Checker.onLoad (corresponding to "Update XML file not found"). These really seem backwards to me. Especially in the Checker.onLoad case, where we basically use that as the fallback if we fail to parse the update XML. So the codes have effectively been reversed in this patch.

Differential Revision: https://phabricator.services.mozilla.com/D159302
2022-10-25 18:10:21 +00:00
Kirk Steuber
065730ec74 Bug 1727820 - Make sure the background updater stops AppUpdater when it is done with it r=bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D159301
2022-10-25 18:10:20 +00:00
Kirk Steuber
e01ad19c87 Bug 1727820 - Change urlbar related code to accomodate update API changes r=bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D159300
2022-10-25 18:10:20 +00:00
Kirk Steuber
b743ac7241 Bug 1727820 - Change aboutDialog-appUpdater to accomodate changes to AppUpdater r=bhearsum
In a previous patch in this stack, AppUpdater was changed to remove the checkForUpdates function. This change updates aboutDialog-appUpdater to accomodate this change.

It was probably incorrect for this function to be called previously. Calling into checkForUpdates() is functionally similar to calling into check(), except that checks are bypassed that probably shouldn't be bypassed.

Differential Revision: https://phabricator.services.mozilla.com/D159299
2022-10-25 18:10:20 +00:00
Kirk Steuber
efdc464082 Bug 1727820 - Make AppUpdater accomodate API changes and remove race conditions r=bhearsum
This ended up being a nearly total rewrite of AppUpdater, but I think that the changes are worth it.
The flow is much more linear which makes it easier to follow and reason about.
The API is made much more formal by making most methods and members private.
Many potential race conditions have been removed.
Many more potential errors thrown can now be caught by the try/catch that wraps `AppUpdater.check`, causing those errors to show the "Internal Error" message rather than causing the update interface to just freeze.
Cancelling an in-progress update check works more reliably.

This patch does not change AppUpdater consumers to accomodate these changes. That will come later in the patch stack.

Differential Revision: https://phabricator.services.mozilla.com/D159298
2022-10-25 18:10:19 +00:00
Kirk Steuber
ed79ce0ded Bug 1727820 - Change RestartOnLastWindowClosed to use new update state interface rather than constantly tracking update state internally r=bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D159297
2022-10-25 18:10:19 +00:00
Kirk Steuber
cdc5269c81 Bug 1727820 - Change consumers and implementation of AUS.downloadUpdate r=bhearsum
This patch updates all consumers of nsIApplicationUpdateService.downloadUpdate to accomodate the changes made to that API earlier in the stack.

It also updates the implementation to match that API.

Differential Revision: https://phabricator.services.mozilla.com/D159296
2022-10-25 18:10:18 +00:00
Kirk Steuber
2fcc679554 Bug 1727820 - Change nsIUpdateChecker consumers to use the new interface r=bhearsum
This patch misses one notable nsIUpdateChecker consumer: AppUpdater. This patch stack makes major changes to AppUpdater, so those changes will be made in their own patch later in this patch stack.

Differential Revision: https://phabricator.services.mozilla.com/D159295
2022-10-25 18:10:18 +00:00
Kirk Steuber
73a9c6f276 Bug 1727820 - Rename disabledByPolicy to disabled r=bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D159432
2022-10-25 18:10:17 +00:00
Kirk Steuber
0c7a243525 Bug 1727820 - Change Application Update APIs to facilitate removal of race conditions r=bhearsum
Broadly speaking, this patch makes 4 API changes:
 1. nsIUpdateChecker is substantially changed to accomodate (a) it being a singleton service that can potentially make multiple update checks at once, and (b) communicating the results of the update check via JS promises rather than callback functions.
 2. nsIApplicationUpdateService has had functionality added to allow consumers to check the current update state.
 3. nsIApplicationUpdateService now exposes disabledByPolicy, which was already being used externally in an inappropriate way.
 4. nsIApplicationUpdateService.downloadUpdate is made asynchronous and has its (long-unnecessary) background argument removed

The codebase previously seemed a bit mixed up at times regarding whether the update checker was a singleton or whether a new one would be constructed every time it was needed. This patch makes the answer more definitive by definitively making it a singleton service.

Note that this patch changes the interface definitions only. The changes to API consumers and implementation will come later in this patch stack.

Differential Revision: https://phabricator.services.mozilla.com/D159294
2022-10-25 18:10:17 +00:00
Kirk Steuber
3c464787a7 Bug 1727820 - Make UpdateService, UpdateManager, and UpdateServiceStub singletons r=bhearsum
I'm surprised to see that these weren't already marked as singletons. We definitely should never make duplicates of them.

Differential Revision: https://phabricator.services.mozilla.com/D159293
2022-10-25 18:10:17 +00:00
Jamie Nicol
10ee72b43f Bug 1797347 - Limit OOP webgl to nightly-only on android. r=gfx-reviewers,lsalzman
It's causing bug 1794237. Rather than disable it altogether, let's
just hold it back to nightly. Hopefully that way we'll eventually get
a bug report with a URL to help us actually fix the crash.

Differential Revision: https://phabricator.services.mozilla.com/D160253
2022-10-25 17:59:35 +00:00
Lee Salzman
8b2b4a62ba Bug 1793887 - Limit the size of stroked path uploads. r=aosmond
If we have stroked paths whose bounds cover a lot of screen area, that can lead
to a lot of empty area in the interior that bloats the path cache textures up
with unused pixels that still need to be uploaded. Try to avoid this by not
trying to accelerate paths with the path cache that take up a large amount
of screen area.

Differential Revision: https://phabricator.services.mozilla.com/D160023
2022-10-25 17:46:22 +00:00
Lee Salzman
1ca676e9e2 Bug 1797099 - Ensure the SurfacePattern transform is invertible. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D160091
2022-10-25 17:42:05 +00:00
Geoff Brown
80e9f2b640 Bug 1797104 - Dump crash report after desktop gtest timeouts; r=jmaher
Following a gtest timeout, signal the process to generate a minidump, then
dump the crash report to the test log, just like the existing timeout
handling for mochitest, reftest, etc.
This makes no changes for Android; it was already working.

Differential Revision: https://phabricator.services.mozilla.com/D160249
2022-10-25 17:41:07 +00:00
Ting-Yu Lin
d0b5d62f69 Bug 1797009 - Use PushTruncatedLine() once more. r=layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D160171
2022-10-25 17:28:28 +00:00
Dennis Schubert
db2cf07ec5 Bug 1776676 - Ship v107.0.0 of the WebCompat System Addon. r=webcompat-reviewers,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D160231
2022-10-25 17:07:36 +00:00
Katherine Patenio
2fa06b5917 Bug 1796571 - version bump for activist bold and dreamer bold colorways. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D160093
2022-10-25 16:57:52 +00:00
Tom Ritter
7e0e285f5f Bug 1797145: Disable Spectre Mitigations for the privileged Mozilla processesr r=nika
Also add in a Process Name conditional for them.

Differential Revision: https://phabricator.services.mozilla.com/D160107
2022-10-25 16:34:23 +00:00