Commit graph

622 commits

Author SHA1 Message Date
Toshihito Kikuchi
916fbe8459 Bug 1743427 - Enable pre-spawn CIG for socket process. r=bobowen
Since socket process can be launched before `GeckoDependentInitialize`,
we cache the install directory in `InitSignedPolicyRulesToBypassCig`
instead of using `sBinDir`.

This patch moves `GetInstallDirectory` to WinHeaderOnlyUtils.h to reuse
and removes `WinUtils::GetModuleFullPath` that is unused.

Differential Revision: https://phabricator.services.mozilla.com/D133596
2021-12-27 02:40:14 +00:00
Mike Hommey
fce6eb7d83 Bug 1747165 - Replace TK_FLAGS/TK_LIBS with MOZ_GTK3_FLAGS/MOZ_GTK3_LIBS. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D134464
2021-12-23 20:29:07 +00:00
Cristian Tuns
e1e31e01f2 Backed out 2 changesets (bug 1747165) for causing nightly blockers(bustages) a=backout
Backed out changeset 4b1ab0915c94 (bug 1747165)
Backed out changeset 96043d814772 (bug 1747165)
2021-12-23 08:00:54 -05:00
Mike Hommey
b55194a16f Bug 1747165 - Replace TK_FLAGS/TK_LIBS with MOZ_GTK3_FLAGS/MOZ_GTK3_LIBS. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D134464
2021-12-22 23:56:24 +00:00
Toshihito Kikuchi
5bb452d7f6 Bug 1743783 - Ignore extra command options when taking a screenshot. r=mossop
`HeadlessShell.handleCmdLineArgs` needs to skip arguments starting with a hyphen
to search for a URL.

This patch also fixes a problem that `nsNativeAppSupportWin::CheckConsole` did
not remove processed command options.

Differential Revision: https://phabricator.services.mozilla.com/D132987
2021-12-16 16:16:16 +00:00
Barret Rennie
9e1cd98548 Bug 1745355 - Remove osfile.jsm from browser/components/shell r=bdahl
Differential Revision: https://phabricator.services.mozilla.com/D133514
2021-12-14 21:00:28 +00:00
Nick Alexander
93c6fe08a4 Bug 1743914 - Part 3: Telemetry for when Firefox is the default handler. r=chutten,mhowell
This only records whether Firefox is the default PDF handler for now.
But it will accommodate additional file types and protocols in the
future, should they be desired.

This is Windows 10+ only, since we really only care about PDF handling
defaults where Edgium is the OS default.

Differential Revision: https://phabricator.services.mozilla.com/D132659
2021-12-12 03:52:57 +00:00
Nick Alexander
91010d4d41 Bug 1743914 - Part 2: Allow to experiment with setting Firefox as default PDF handler on Windows 10+. r=mhowell,Mardak
This adds a `setDefaultPDFHandler` that extends the existing
`setDefaultBrowserUserChoice` to also set Firefox as the default PDF
handler when setting Firefox as the default browser.  (Since this uses
User Choice, it's Windows 10+ only.)

Differential Revision: https://phabricator.services.mozilla.com/D132660
2021-12-12 03:52:56 +00:00
Butkovits Atila
5c71755e40 Backed out 3 changesets (bug 1743914) for causing failures at browser_setDefaultPDFHandler.js. CLOSED TREE
Backed out changeset 01e19b8ec15b (bug 1743914)
Backed out changeset c46d66869d03 (bug 1743914)
Backed out changeset 57d0f8824e35 (bug 1743914)
2021-12-11 10:48:19 +02:00
Nick Alexander
7ed0417539 Bug 1743914 - Part 3: Telemetry for when Firefox is the default handler. r=chutten,mhowell
This only records whether Firefox is the default PDF handler for now.
But it will accommodate additional file types and protocols in the
future, should they be desired.

This is Windows 10+ only, since we really only care about PDF handling
defaults where Edgium is the OS default.

Differential Revision: https://phabricator.services.mozilla.com/D132659
2021-12-11 06:25:57 +00:00
Nick Alexander
2b59a70e77 Bug 1743914 - Part 2: Allow to experiment with setting Firefox as default PDF handler on Windows 10+. r=mhowell,Mardak
This adds a `setDefaultPDFHandler` that extends the existing
`setDefaultBrowserUserChoice` to also set Firefox as the default PDF
handler when setting Firefox as the default browser.  (Since this uses
User Choice, it's Windows 10+ only.)

Differential Revision: https://phabricator.services.mozilla.com/D132660
2021-12-11 06:25:57 +00:00
Narcis Beleuzu
66356e92dc Backed out 3 changesets (bug 1743914) for bc failures on browser_setDefaultPDFHandler.js
Backed out changeset 088401e43bd4 (bug 1743914)
Backed out changeset 7cb74ac80d41 (bug 1743914)
Backed out changeset 20713ede0c08 (bug 1743914)
2021-12-11 03:28:02 +02:00
Nick Alexander
5f31cda44e Bug 1743914 - Part 3: Telemetry for when Firefox is the default handler. r=chutten,mhowell
This only records whether Firefox is the default PDF handler for now.
But it will accommodate additional file types and protocols in the
future, should they be desired.

This is Windows 10+ only, since we really only care about PDF handling
defaults where Edgium is the OS default.

Differential Revision: https://phabricator.services.mozilla.com/D132659
2021-12-11 00:02:40 +00:00
Nick Alexander
530bcdf73a Bug 1743914 - Part 2: Allow to experiment with setting Firefox as default PDF handler on Windows 10+. r=mhowell,Mardak
This adds a `setDefaultPDFHandler` that extends the existing
`setDefaultBrowserUserChoice` to also set Firefox as the default PDF
handler when setting Firefox as the default browser.  (Since this uses
User Choice, it's Windows 10+ only.)

Differential Revision: https://phabricator.services.mozilla.com/D132660
2021-12-11 00:02:39 +00:00
Andrei Oprea
ef300c52d4 Bug 1738286 - New schema and enrollment flow for rollouts r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D129835
2021-12-09 17:58:18 +00:00
Niklas Baumgardner
49c7deeea0 Bug 1731687 - Remove browser-doctype.inc. r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D127136
2021-09-30 20:01:03 +00:00
Geoff Brown
019c21f335 Bug 1730213 - Explicitly skip tests under browser/ on android; r=ahal
These tests are excluded from android test runs in moz.build. Including
an explicit annotation in each manifest avoids scheduling confusion.
browser-chrome and plain-chrome tests in browser/ are of no concern,
since those test types are never scheduled on android.

Differential Revision: https://phabricator.services.mozilla.com/D125266
2021-09-13 15:22:27 +00:00
Mark Banner
11bfa90d06 Bug 1602940 - Automated replacements to use Services.uuid. r=Gijs,necko-reviewers,preferences-reviewers,kershaw
Depends on D124391

Differential Revision: https://phabricator.services.mozilla.com/D124392
2021-09-06 09:53:52 +00:00
Adam Gashlin
7fa6c2befd Bug 1722086 - Part 2: Centralize check for minimum Windows build. r=bytesized
This allows the check from bug 1719189 to be used by the WDBA without
duplication, and keeps it close to the rest of the UserChoice logic.

Differential Revision: https://phabricator.services.mozilla.com/D121559
2021-08-03 22:49:20 +00:00
Andrei Oprea
a66714326b Bug 1716736 - Add schema validation for experiment enrollments in tests r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D118367
2021-07-26 14:48:22 +00:00
Dorel Luca
5a8b32e3c6 Backed out changeset e7dffca31fa7 (bug 1716736) for Browser-chrome failures in browser/components/shell/test/browser_setDefaultBrowser.js. CLOSED TREE 2021-07-26 14:08:51 +03:00
Andrei Oprea
9ae9067efe Bug 1716736 - Add schema validation for experiment enrollments in tests r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D118367
2021-07-26 09:43:28 +00:00
Sandor Molnar
1fb5cc9576 Backed out changeset e5cfc59f9063 (bug 1716736) for causing bc failures in browser_setDefaultBrowser. CLOSED TREE 2021-07-26 01:17:51 +03:00
Andrei Oprea
cb62f517d4 Bug 1716736 - Add schema validation for experiment enrollments in tests r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D118367
2021-07-25 21:01:16 +00:00
Adam Gashlin
7b21c41dfe Bug 1710137 - Don't run helper to set default from a package. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D114662
2021-07-13 20:31:25 +00:00
Adam Gashlin
593d81e560 Bug 1719189 - Only set UserChoice on build 15063 and later. r=bytesized
Differential Revision: https://phabricator.services.mozilla.com/D119343
2021-07-08 17:34:26 +00:00
Molly Howell
cade0ddd2c Bug 1709671 - Remove redundant ProgID check from IsDefaultBrowser. r=agashlin
Also switch to removing the quotes and command-line parameters from the command
string obtained from the registry before comparing it to our path, instead of
*adding* those things to our path, to make the comparison more reliable.

Differential Revision: https://phabricator.services.mozilla.com/D114383
2021-07-07 17:33:06 +00:00
Ed Lee
469e83e010 Bug 1694259 - Allow experimenting with 1-click default vs settings-dialog-ful flow r=andreio
Switch pref check to NimbusFeature.getVariable with updated manifest for fallback pref.

Differential Revision: https://phabricator.services.mozilla.com/D118760
2021-06-25 21:53:26 +00:00
Ed Lee
2b631a483e Bug 1716884 - Allow experimenting with disabling Keep in Dock / Pin to taskbar r=andreio
Add new NimbusFeature.shellService that is available at startup, e.g., for default browser prompt.

Differential Revision: https://phabricator.services.mozilla.com/D118092
2021-06-17 23:44:38 +00:00
Adam Gashlin
25b5f25e18 Bug 1703578 - Part 4: Record setAsDefaultUserChoice() result telemetry. r=bytesized
Depends on D113428

Differential Revision: https://phabricator.services.mozilla.com/D113429
2021-06-17 18:06:35 +00:00
Adam Gashlin
00133ca183 Bug 1703578 - Part 3: Invoke WDBA to set UserChoice. r=bytesized
Depends on D113427

Differential Revision: https://phabricator.services.mozilla.com/D113428
2021-06-17 18:06:35 +00:00
Adam Gashlin
858729153b Bug 1703578 - Part 1: Generate and check UserChoice hash. r=bytesized
Differential Revision: https://phabricator.services.mozilla.com/D113426
2021-06-17 18:06:34 +00:00
Ed Lee
a70a1dd61a Bug 1699842 - Keep Firefox in Dock for macOS where windows would Pin without showing images r=pdahiya,flod
Update ShellService to also check mac pinned but only from the main process, so have AboutWelcomeChild request pinned for use in getDefaults and prepareContent. Remove windows images and consolidate back to single shared css without spacers and instead use margin: auto with logo that is no longer fixed. Split out pin strings to own screen/section and use PLATFORM. Add macOS default prompt message without touching existing windows one.

Differential Revision: https://phabricator.services.mozilla.com/D115967
2021-05-28 11:04:22 +00:00
Valentin Gosu
b9a978d201 Bug 1599713 - Implement IsCurrentAppOSDefaultForProtocol on Linux (GTK) r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D113951
2021-05-27 06:42:56 +00:00
Adam Gashlin
b10ae14e9a Backed out 4 changesets (Bug 1703578). r=bytesized
Differential Revision: https://phabricator.services.mozilla.com/D114553
2021-05-06 22:35:23 +00:00
Adam Gashlin
c8dd66788d Bug 1703578 - Part 4: Record setAsDefaultUserChoice() result telemetry. r=bytesized
Differential Revision: https://phabricator.services.mozilla.com/D113429
2021-05-06 15:03:48 +00:00
Adam Gashlin
89d8792194 Bug 1703578 - Part 3: Invoke WDBA to set UserChoice. r=bytesized
Differential Revision: https://phabricator.services.mozilla.com/D113428
2021-05-06 15:03:48 +00:00
Adam Gashlin
aed9c0fcd9 Bug 1703578 - Part 1: Generate and check UserChoice hash. r=bytesized
Differential Revision: https://phabricator.services.mozilla.com/D113426
2021-05-06 15:03:47 +00:00
Brendan Dahl
ca9b1fd3a9 Bug 1701449 - Disable headless screenshot tests for tsan builds. r=decoder
Tests are failing during shutdown with tsan enabled.

Differential Revision: https://phabricator.services.mozilla.com/D113028
2021-04-21 21:21:04 +00:00
Emilio Cobos Álvarez
2677f1390e Bug 1706299 - Remove nsIImageToPixBuf. r=stransky
It's just useless indirection.

Differential Revision: https://phabricator.services.mozilla.com/D112705
2021-04-21 09:29:51 +00:00
Andrei Oprea
459f8ef74c Bug 1702000 - Add pin to taskbar action to the primary button r=andreio
Share needPin and pin methods from ShellService and reuse from default prompt, upgrade dialog and special message actions. Use these to show "primary" vs "default" in the prompt.

Differential Revision: https://phabricator.services.mozilla.com/D111244
2021-04-14 15:09:34 +00:00
smolnar
f3478d8e96 Backed out changeset d39717cd014e (bug 1702000) for causing mochitest bc failures in browser_aboutNewTab_defaultBrowserNotification. CLOSED TREE 2021-04-14 15:27:51 +03:00
Andrei Oprea
04ea21b82b Bug 1702000 - Add pin to taskbar action to the primary button r=andreio
Share needPin and pin methods from ShellService and reuse from default prompt, upgrade dialog and special message actions. Use these to show "primary" vs "default" in the prompt.

Differential Revision: https://phabricator.services.mozilla.com/D111244
2021-04-14 10:24:19 +00:00
Olivier Tilloy
17b5edfc93 Bug 1701182 - Prepend SNAP-specific prefix to shm path. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D110269
2021-04-09 14:41:31 +00:00
Butkovits Atila
c6955ce4d0 Backed out changeset caf472555c8a (bug 1701182) for causing failure on test_snap_empty.js. CLOSED TREE 2021-04-08 05:26:26 +03:00
Olivier Tilloy
7b5c4d8ee0 Bug 1701182 - Prepend SNAP-specific prefix to shm path. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D110269
2021-04-07 20:55:42 +00:00
Andreea Pavel
e86d10c304 Backed out changeset c83c9af968f8 (bug 1701182) for build bustages at system_wrappers/gdk/gdk.h on a CLOSED TREE 2021-03-31 19:33:47 +03:00
Olivier Tilloy
45068bf782 Bug 1701182 - Prepend SNAP-specific prefix to shm path. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D110269
2021-03-31 15:52:07 +00:00
Dorel Luca
f0985635c0 Backed out changeset 627da64827ab (bug 1701182) for build bustages in gecko/browser/components/shell/nsGNOMEShellService.cpp. CLOSED TREE 2021-03-30 21:32:39 +03:00
Olivier Tilloy
24c53bd998 Bug 1701182 - Prepend SNAP-specific prefix to shm path. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D110269
2021-03-30 18:03:30 +00:00