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

1658 Коммитов

Автор SHA1 Сообщение Дата
Tom Ritter 8aac29e79e Bug 1753876: Initialize gfxVars before using it r=jgilbert
For whatever reason, in Thunderbird's xpcshell tests, gfxVars was not initialized
when we called this function. It is for firefox. Add in Initialization to fix it.

Differential Revision: https://phabricator.services.mozilla.com/D138944
2022-02-17 14:33:03 +00:00
Csoregi Natalia b6d4ea0d7e Merge mozilla-central to autoland. CLOSED TREE 2022-02-16 23:50:23 +02:00
Bob Owen c333e48a0c Bug 1755734: Limit win32k lockdown for content process to Win10 build 16299 or later. r=gcp
Differential Revision: https://phabricator.services.mozilla.com/D138918
2022-02-16 17:42:04 +00:00
Narcis Beleuzu 6146db617b Backed out changeset e1b946a41694 (bug 1617283) for audio related crashes and hangs (bug 1755700, bug 1755717). a=backout 2022-02-16 18:14:02 +02:00
Shazib Summar b8d30e610b Bug 1617283 - Removed COM violations and shifted AudioSession to MTA r=handyman
Differential Revision: https://phabricator.services.mozilla.com/D136377
2022-02-15 22:28:41 +00:00
Butkovits Atila 96d2a50568 Backed out changeset 14ef7c10fef4 (bug 1617283) for causing bustages complaining about Unified_cpp_widget_windows0.obj. CLOSED TREE 2022-02-07 00:24:45 +02:00
Shazib Summar a913da4c47 Bug 1617283 - Removed COM violations and shifted AudioSession to MTA r=handyman
Differential Revision: https://phabricator.services.mozilla.com/D136377
2022-02-06 22:01:29 +00:00
Chris Peterson 4affe0e110 Bug 1744425 - xre: Use nsID::GeneratorUUIDInPlace() instead of the nsUUIDGenerator service. r=mossop
This change is needed to avoid toolkit/components/backgroundtasks/tests/browser/browser_xpcom_graph_wait.js test failures where the nsUUIDGenerator service was loaded during ASan test runs but not non-ASan test runs (due to differences in temp profile directory paths). With this change, the nsUUIDGenerator service is no longer needed in BackgroundTasks.

Using nsID::GenerateUUIDInPlace() also avoids the overhead of instantiating the nsUUIDGenerator service.

Depends on D136992

Differential Revision: https://phabricator.services.mozilla.com/D136993
2022-02-03 04:39:35 +00:00
Tom Ritter 031bff7b2d Bug 1751494 - Add the win32k experiment enrollment prefs and infrastructure r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D136803
2022-02-02 16:33:11 +00:00
Tom Ritter d59df896db Bug 1751494 - Move win32k logic from sandbox to apprunner r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D137324
2022-02-02 16:33:11 +00:00
Jan Alexander Steffens (heftig) 2c6ac8059a Bug 1530052 - Use remoting name for GDK program name and class. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D80371
2022-01-28 10:30:37 +00:00
Norisz Fay 25b92a9ecc Backed out changeset 2d57471cb4b8 (bug 1530052) for causing build bustages CLOSED TREE 2022-01-28 10:40:29 +02:00
Jan Alexander Steffens (heftig) 458ff59930 Bug 1530052 - Use remoting name for GDK program name and class. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D80371
2022-01-28 08:21:20 +00:00
Agi Sferro a6f796c8ac Bug 1751005 - Log when unable to find profile folder. r=mossop
Ordinarily, GeckoView apps are not allowed to set the profile folder, which is
always the default one. Furthermore, app's folders (which include the profile
folder) are private to the app and non-root users are not able to access them
or modify them.

For tests, however, we allow setting the profile folder through a special
config file.

If Gecko is not able to access the profile folder (e.g. because the folder was
deleted by the test but the config file is still present), it will error out,
and fire an Alert dialog to let the user know that the profile folder could not
be accessed.

On GeckoView, we cannot handle this Alert dialog as it's not originating from a
Window.

Before this patch, GeckoView would silently exit without giving a reason.

Given the test-only nature of this problem, we just log a statement and return,
so developers can troubleshoot the problem.

Differential Revision: https://phabricator.services.mozilla.com/D136545
2022-01-26 23:52:49 +00:00
Sandor Molnar 7fafd3cbb5 Backed out changeset 34fce4ae0c3c (bug 1751005) for causing build bustages in toolkit/xre/nsAppRunner CLOSED TREE 2022-01-27 00:09:06 +02:00
Agi Sferro 946f862877 Bug 1751005 - Log when unable to find profile folder. r=mossop
Ordinarily, GeckoView apps are not allowed to set the profile folder, which is
always the default one. Furthermore, app's folders (which include the profile
folder) are private to the app and non-root users are not able to access them
or modify them.

For tests, however, we allow setting the profile folder through a special
config file.

If Gecko is not able to access the profile folder (e.g. because the folder was
deleted by the test but the config file is still present), it will error out,
and fire an Alert dialog to let the user know that the profile folder could not
be accessed.

On GeckoView, we cannot handle this Alert dialog as it's not originating from a
Window.

Before this patch, GeckoView would silently exit without giving a reason.

Given the test-only nature of this problem, we just log a statement and return,
so developers can troubleshoot the problem.

Differential Revision: https://phabricator.services.mozilla.com/D136545
2022-01-26 20:53:08 +00:00
Chris H-C fc501df764 Bug 1750626 - Don't do Telemetry IO Reporting on Android r=janerik
The results are only shared via "main" pings which Android has never sent.

Differential Revision: https://phabricator.services.mozilla.com/D136956
2022-01-26 14:28:10 +00:00
Sandor Molnar 3cb4e3cb77 Backed out changeset 35d9b501bd7a (bug 1751005) for causing build bustages in nsAppRunner. CLOSED TREE 2022-01-21 20:59:29 +02:00
Agi Sferro 500cc7e00b Bug 1751005 - Log when unable to find profile folder. r=mossop
Ordinarily, GeckoView apps are not allowed to set the profile folder, which is
always the default one. Furthermore, app's folders (which include the profile
folder) are private to the app and non-root users are not able to access them
or modify them.

For tests, however, we allow setting the profile folder through a special
config file.

If Gecko is not able to access the profile folder (e.g. because the folder was
deleted by the test but the config file is still present), it will error out,
and fire an Alert dialog to let the user know that the profile folder could not
be accessed.

On GeckoView, we cannot handle this Alert dialog as it's not originating from a
Window.

Before this patch, GeckoView would silently exit without giving a reason.

Given the test-only nature of this problem, we just log a statement and return,
so developers can troubleshoot the problem.

Differential Revision: https://phabricator.services.mozilla.com/D136545
2022-01-21 16:44:38 +00:00
Emilio Cobos Álvarez 4ac84fa922 Bug 1749174 - Enable wayland on supported environments by default on Nightly / Early Beta. r=stransky,jrmuizel,aosmond
There are pros and cons of doing this. Pros are:

 * Both Fedora and Ubuntu ship this by default. I haven't run the
   numbers but my guess is that with those two distros the amount of
   users on Wayland will probably be greater than the amount of users on
   XWayland.

 * Wayland touchscreen support, and a bunch of other features that
   XWayland doesn't have (I'm probably missing a bunch).

Cons that come to mind are:

 * The main one is that we're still testing X11 on automation, though it
   is my understanding that Martin has Wayland tests running on the
   Fedora automation. I'd understand if we'd want to defer this until we
   have Wayland tests running on the Mozilla automation (bug 1725245),
   though arguably that hasn't stopped us from shipping X11+EGL (though
   arguably a smaller change, too).

 * I think the other annoyance of Wayland is the lack of proper PiP
   support (bug 1621261): Right now users need to right-click on the PiP
   Window.

There (most likely) will be others pros and cons (and if we can't come
up with others this patch should allow us to gather more feedback in
Nightly / early-beta). Thoughts?

Differential Revision: https://phabricator.services.mozilla.com/D135456
2022-01-19 18:25:05 +00:00
Alexandre Lissy 161f130b0a Bug 1731890 - Adding Utility process with basic sandbox r=agi,nika,bobowen
Differential Revision: https://phabricator.services.mozilla.com/D126297
2022-01-12 20:52:58 +00:00
Jan-Erik Rediger 4595f32325 Bug 1749394 - Remove now-expired validation metrics. r=chutten
They served their purpose of validation Gecko integration.
In followups we do some proper migration.

Differential Revision: https://phabricator.services.mozilla.com/D135593
2022-01-11 15:55:02 +00:00
Emilio Cobos Álvarez 636196a020 Bug 1749174 - Make the wayland-enabled check easier to follow. r=stransky
This shouldn't change behavior.

Differential Revision: https://phabricator.services.mozilla.com/D135457
2022-01-09 21:54:38 +00:00
Mike Hommey 0c6e290483 Bug 1747180 - Remove unused nsIXULRuntime.{isReleaseOrBeta,isOfficialBranding}. r=Gijs
They were superseded by AppConstants.{RELEASE_OR_BETA,MOZ_OFFICIAL_BRANDING}.

Differential Revision: https://phabricator.services.mozilla.com/D134470
2021-12-22 21:25:31 +00:00
Nick Alexander d21d507036 Bug 1737117 - Only process updates only for `--backgroundtask backgroundupdate`. r=bytesized
The aim is to avoid background tasks causing unexpected updates, as
happened when we tried to migrate `pingsender` to a Gecko background
task in Bug 1734262.  This commit makes it so that we only process
updates for the `backgroundupdate` task (and the test-only
`shouldprocessupdates` task).

Differential Revision: https://phabricator.services.mozilla.com/D133557
2021-12-14 07:00:59 +00:00
Nick Alexander 33b7a096e7 Bug 1737117 - Pre: Add a reason to "should process updates at startup" logic. r=bytesized
I've elected to rename the function from `Should...` to
`ShouldNot...`, but not to rename the various test files.  The
functionality under test is both "should" and "should not", so I think
the churn of renaming is not justified.

This rearranges the deck chairs to accommodate testing the new
functionality in the next commit.

Differential Revision: https://phabricator.services.mozilla.com/D133556
2021-12-14 07:00:59 +00:00
Butkovits Atila 0a28019a1d Backed out 2 changesets (bug 1737117) for causing bustages at nsAppRunner.cpp. CLOSED TREE
Backed out changeset b78709bc0d0c (bug 1737117)
Backed out changeset b3be1a6a5e3f (bug 1737117)
2021-12-14 06:30:49 +02:00
Nick Alexander 8aa425f55b Bug 1737117 - Only process updates only for `--backgroundtask backgroundupdate`. r=bytesized
The aim is to avoid background tasks causing unexpected updates, as
happened when we tried to migrate `pingsender` to a Gecko background
task in Bug 1734262.  This commit makes it so that we only process
updates for the `backgroundupdate` task (and the test-only
`shouldprocessupdates` task).

Differential Revision: https://phabricator.services.mozilla.com/D133557
2021-12-14 03:44:14 +00:00
Nick Alexander 61521bf00c Bug 1737117 - Pre: Add a reason to "should process updates at startup" logic. r=bytesized
I've elected to rename the function from `Should...` to
`ShouldNot...`, but not to rename the various test files.  The
functionality under test is both "should" and "should not", so I think
the churn of renaming is not justified.

This rearranges the deck chairs to accommodate testing the new
functionality in the next commit.

Differential Revision: https://phabricator.services.mozilla.com/D133556
2021-12-14 03:44:14 +00:00
Nika Layzell 490e62e602 Bug 1732358 - Part 2: Add the ability to force-disable fission with an environment variable, r=ahal,fluent-reviewers,flod,mccr8
This is required to replace the existing MOZ_FORCE_ENABLE_FISSION environment
variables in environments which use that. In the future we'll want to stop
passing any environment variable when not passing a flag to `./mach run`
however that will require changes to the default test behaviour in bug 1744091.

Differential Revision: https://phabricator.services.mozilla.com/D133006
2021-12-13 20:28:33 +00:00
Emilio Cobos Álvarez 8c9d1b38e8 Bug 1741900 - Ensure color-scheme is initialized in a couple callers which might not have initialized LookAndFeel yet. r=mhowell
The previous patch would be a better fix, but it causes some xpcshell
crashes on Linux which I haven't figured out yet (because initializing
LookAndFeel initializes gfxPlatform).

This should be less risky and still fix the bug.

Differential Revision: https://phabricator.services.mozilla.com/D132011
2021-11-24 16:50:38 +00:00
Ben Hearsum 62b77fa25e Bug 1738375: Annotate crash reports with Windows app package name and publisher. r=gsvelto
Depends on D130187

Differential Revision: https://phabricator.services.mozilla.com/D130188
2021-11-19 14:51:47 +00:00
Alexandre Lissy 60d10601bb Bug 1726804 - Refactor definition and usage of GECKO_PROCESS_TYPE() r=nika,firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D121388
2021-11-19 14:02:55 +00:00
Alexandru Michis 2cb5b32d02 Backed out 2 changesets (bug 1726804) for causing sm bustages in geckoprocesstypes.
CLOSED TREE

Backed out changeset bf7f73fd1921 (bug 1726804)
Backed out changeset c9936f7534cb (bug 1726804)
2021-11-19 11:40:59 +02:00
Alexandre Lissy b71c7b7255 Bug 1726804 - Refactor definition and usage of GECKO_PROCESS_TYPE() r=nika,firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D121388
2021-11-19 08:33:42 +00:00
Nick Alexander 7fb2980a43 Bug 1697875 - Annotate headless and backgroundtask mode in crash reports. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D129882
2021-11-18 20:56:28 +00:00
Emilio Cobos Álvarez e97b882edc Bug 1739539 - Rename titlebar pref and add migration from old pref. r=mconley
Something like this ought to do?

Differential Revision: https://phabricator.services.mozilla.com/D130858
2021-11-10 21:17:32 +00:00
Butkovits Atila 43d18f9b44 Merge autoland to mozilla-central. a=merge 2021-11-04 06:49:50 +02:00
Agi Sferro 8c6612b46b Bug 1738966 - Pass in argc, argv in GreOmniPath. r=kershaw,valentin
A call to InitCommandLine was added in Bug 1727180 where gArgc and gArgv are
not defined.

The same bug also re-enabled some tests that appeared to pass (but really they
were just silently crashing), this patch fixes that too.

Differential Revision: https://phabricator.services.mozilla.com/D130223
2021-11-03 16:31:06 +00:00
Jan-Erik Rediger 6bc7261a9b Bug 1732928 - Mirror gecko.{version, build_id} metrics from EXTRACT to native Glean. r=chutten,jrmuizel
With Glean enabled on Android we can move metrics from Geckoview Streaming[1]
into proper native Glean metrics.
For now we introduce new expiring metrics to allow validation with real data.
We rely on GIFFT to mirror these back into legacy Telemetry probes, from
where they will be pushed down the EXTRACT delegate.
In analysis we will be able to check that the values match as expected.

[1]: https://firefox-source-docs.mozilla.org/toolkit/components/telemetry/start/report-gecko-telemetry-in-glean.html

Differential Revision: https://phabricator.services.mozilla.com/D126801
2021-10-22 08:53:29 +00:00
Emilio Cobos Álvarez f317384568 Bug 1736518 - Make browser.tabs.drawInTitlebar a tri-state. r=stransky,Gijs
To more properly support Linux having a different default at runtime.

Expose the resolved value in appinfo for convenience, and use it in the
front-end as needed.

Differential Revision: https://phabricator.services.mozilla.com/D129004
2021-10-21 09:07:12 +00:00
Nick Alexander bf2b677248 Bug 1736876 - Stop migrating profiles into App Package builds. r=agashlin
The product experience migrating a profile when a non-MSIX Firefox is
running is not ideal, so we're going to always start with a fresh
profile for simplicity.

This is a straight backout of the "meat" of Bug 1709969 - Migrate from
an existing profile when running from an app package for the first
time, namely `hg backout -r 5136d2f684012dc3d586dcb10374f8c6eda8b6d7`.
The changes from follow-up Bug 1723298 (correcting test failures on
devedition), namely revision a4bca433c8f7003a90fda61248f38d9b389c394e,
were manually reverted and the test files deleted.

Differential Revision: https://phabricator.services.mozilla.com/D129066
2021-10-20 21:54:07 +00:00
Emilio Cobos Álvarez a884350674 Bug 1670480 - Add an "auto" theme for devtools which follows the browser's color scheme. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D128093
2021-10-12 09:25:05 +00:00
Iulian Moraru 64193785d4 Backed out 3 changesets (bug 1724509) for causing marionette failures. CLOSED TREE
Backed out changeset d47ffc49daff (bug 1724509)
Backed out changeset b267592b49db (bug 1724509)
Backed out changeset b34151a18850 (bug 1724509)
2021-10-06 03:57:57 +03:00
Kris Maglione ae64ce0a26 Bug 1724509: Part 3 - Remove long-dead binary component fastload cache invalidation code. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D122030
2021-10-05 19:06:45 +00:00
Kris Maglione 18ef3e62db Bug 1724509: Part 1 - Annotate crash report with last-startup-was-crash and startup cache status. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D122028
2021-10-05 19:06:43 +00:00
Stephen A Pohl 002ae77528 Bug 1732969: Start prompting to install every time that we detect that we're running from a .dmg disk image on macOS, not only on first run. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D126829
2021-09-28 20:26:33 +00:00
Jonathan Watt 35b9ff13be Bug 516362 p4. Enable detection of run-from-.dmg and prompt to install and relaunch. r=mstange
Depends on D122686

Differential Revision: https://phabricator.services.mozilla.com/D122687
2021-08-30 21:15:05 +00:00
Marian-Vasile Laza f89210cf82 Backed out 4 changesets (bug 516362) for causing mochitest bc failures on browser_all_files_referenced.js. CLOSED TREE
Backed out changeset 12f1b1fee451 (bug 516362)
Backed out changeset eb8885d5cd62 (bug 516362)
Backed out changeset 723ec69bb57e (bug 516362)
Backed out changeset 1e2f80bda8b4 (bug 516362)
2021-08-30 21:53:04 +03:00
Jonathan Watt 1a15ac67cf Bug 516362 p4. Enable detection of run-from-.dmg and prompt to install and relaunch. r=mstange
Depends on D122686

Differential Revision: https://phabricator.services.mozilla.com/D122687
2021-08-30 17:51:54 +00:00