Commit Graph

50 Commits

Author SHA1 Message Date
Robin Steuber
058a179fc5 Bug 1875502 - Add UpdateManager.updateInstalledAtStartup r=nalexander,application-update-reviewers,firefox-desktop-core-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D209127
2024-05-15 17:06:18 +00:00
Barret Rennie
0633e0cca7 Bug 1883673 - Remove majorRelease2022 Nimbus feature r=aminomancer,omc-reviewers,win-reviewers,gstoll,pbz,firefox-desktop-core-reviewers
This feature is no longer intended for experimentation and some of the things
it controls are no longer in product.

Differential Revision: https://phabricator.services.mozilla.com/D204514
2024-04-24 20:15:19 +00:00
Iulian Moraru
b2f394db04 Backed out changeset 89b76affef99 (bug 1883673) for causing multiple bc failures. CLOSED TREE 2024-04-22 22:12:59 +03:00
Barret Rennie
b288396795 Bug 1883673 - Remove majorRelease2022 Nimbus feature r=aminomancer,omc-reviewers,win-reviewers,gstoll,pbz,firefox-desktop-core-reviewers
This feature is no longer intended for experimentation and some of the things
it controls are no longer in product.

Differential Revision: https://phabricator.services.mozilla.com/D204514
2024-04-22 17:57:31 +00:00
Nipun Shukla
9685265c6b Bug 1889232 - Removed firefox-bridge and firefox-private-bridge protocol creation r=mhughes,Gijs,firefox-desktop-core-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D206419
2024-04-18 15:18:04 +00:00
Iulian Moraru
ccfe6fc0fd Backed out changeset 977027e73ec0 (bug 1889232) for causing windows mass failures. 2024-04-18 01:13:29 +03:00
Nipun Shukla
fea56e6d13 Bug 1889232 - Removed firefox-bridge and firefox-private-bridge protocol creation r=mhughes,Gijs,firefox-desktop-core-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D206419
2024-04-17 19:13:22 +00:00
Nicholas Rishel
6cad030b59 Bug 1890066 - Pre: Allow Messaging System system notifications processing when Firefox is invoked by the Notification Server via Remote Settings. r=nalexander,mconley
Differential Revision: https://phabricator.services.mozilla.com/D207096
2024-04-11 17:13:02 +00:00
Dave Townsend
a0c83bc943 Bug 1864896: Autofix unused function arguments (browser). r=webcompat-reviewers,mconley,fxview-reviewers,desktop-theme-reviewers,omc-reviewers,migration-reviewers,twisniewski,aminomancer,dao,sclements,firefox-desktop-core-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D203005
2024-03-19 09:36:35 +00:00
Nicholas Rishel
43e7950cea Bug 1883476 - Part 3: Remove dead launched from WDBA telemetry. r=nalexander
Backed out changeset 5d6127a9b7ed.

Differential Revision: https://phabricator.services.mozilla.com/D203516
2024-03-08 19:27:23 +00:00
Cosmin Sabou
3ef7b06b98 Backed out 3 changesets (bug 1883476, bug 1826375) for causing windows build bustages. CLOSED TREE
Backed out changeset bc8bdcfbcd9c (bug 1883476)
Backed out changeset 7d6333da6d31 (bug 1826375)
Backed out changeset f5f32253c79c (bug 1826375)
2024-03-07 03:08:10 +02:00
Nicholas Rishel
63699f5d56 Bug 1883476 - Part 3: Remove dead launched from WDBA telemetry. r=nalexander
Backed out changeset 5d6127a9b7ed.

Differential Revision: https://phabricator.services.mozilla.com/D203516
2024-03-07 00:14:06 +00:00
hanna alemu
9dcb4145a7 Bug 1868097 - Whats New Page nimbus tooling r=omc-reviewers,aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D200392
2024-03-06 14:36:14 +00:00
Mike Conley
3f6bc7d41c Bug 1877545 - Add a probe for whether or not a pre-existing profile existed when initting FirstStartup. data-review=jhirsch, r=rhelmer
Differential Revision: https://phabricator.services.mozilla.com/D201286
2024-03-05 20:24:15 +00:00
Michael Hughes
a9151787eb Bug 1880368 - change firefox and firefox-private protocols to firefox-bridge and firefox-private-bridge protocols r=nshukla,mossop
Differential Revision: https://phabricator.services.mozilla.com/D201879
2024-02-29 19:03:17 +00:00
Mike Conley
ac894f13da Bug 1749345 - Skip FirstStartup initting if a previous profile exists. r=nalexander,rhelmer,aminomancer
The thinking here being that if a previous profile exists, then the
--first-startup argument is probably be passed because the user is
reinstalling on a system that still has (or once had) the browser
already installed on it. In that case, we're going to use that
pre-existing profile, and we don't need to do the FirstStartup
things, since they're primarily for systems where a new profile
is being created after install.

Differential Revision: https://phabricator.services.mozilla.com/D199763
2024-02-02 15:12:11 +00:00
Iulian Moraru
43ff48d5cb Backed out changeset f6de722199b9 (bug 1749345) backout on mconley's request. CLOSED TREE 2024-01-31 17:57:48 +02:00
Mike Conley
9c56382a61 Bug 1749345 - Skip FirstStartup initting if a previous profile exists. r=nalexander,rhelmer
The thinking here being that if a previous profile exists, then the
--first-startup argument is probably be passed because the user is
reinstalling on a system that still has (or once had) the browser
already installed on it. In that case, we're going to use that
pre-existing profile, and we don't need to do the FirstStartup
things, since they're primarily for systems where a new profile
is being created after install.

Differential Revision: https://phabricator.services.mozilla.com/D199763
2024-01-30 21:08:15 +00:00
Chris H-C
21bebbca45 Bug 1876445 - Remove early-event instrumentation r=perry.mcmanis
Differential Revision: https://phabricator.services.mozilla.com/D199739
2024-01-26 21:38:06 +00:00
Nipun Shukla
ea48983d7c Bug 1873223 - Modified firefox and firefox-private protocol handler behavior r=Gijs,mhughes
Differential Revision: https://phabricator.services.mozilla.com/D197836
2024-01-22 21:59:04 +00:00
Mike Hommey
a1aa51a183 Bug 1639461 - Remove last(?) remnants of the -remote command line flag. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D197315
2024-01-09 02:40:04 +00:00
Michael Hughes
5ea9a03802 Bug 1863980 - [msix] Make ShellService.setDefaultBrowser async. r=nalexander,mconley,dmose,omc-reviewers
This commit includes the changes to call into the new asynchronous code to set the browser as default, using powershell.

While here, we add more logging to this interaction to allow easier
debugging with QA.

Differential Revision: https://phabricator.services.mozilla.com/D194949
2023-12-01 20:07:08 +00:00
Cosmin Sabou
e276c6b6b9 Backed out 2 changesets (bug 1801954, bug 1863980) for bc failures on browser_setDefaultBrowser.js. CLOSED TREE
Backed out changeset b96506a6d950 (bug 1801954)
Backed out changeset 306a649fcc00 (bug 1863980)
2023-12-01 02:34:26 +02:00
Michael Hughes
9cc9c079f5 Bug 1863980 - [msix] Make ShellService.setDefaultBrowser async. r=nalexander,mconley,dmose,omc-reviewers
This commit includes the changes to call into the new asynchronous code to set the browser as default, using powershell.

While here, we add more logging to this interaction to allow easier
debugging with QA.

Differential Revision: https://phabricator.services.mozilla.com/D194949
2023-11-30 22:22:16 +00:00
Nipun Shukla
537e874806 Bug 1862450 - Made changes to dual browser installer on Windows and MacOS r=mhughes,bytesized
Differential Revision: https://phabricator.services.mozilla.com/D193712
2023-11-16 00:15:57 +00:00
Nipun Shukla
30cd385704 Bug 1862450 - Made installer changes for dual browser extension to MacOS r=mhughes
Depends on D192478

Differential Revision: https://phabricator.services.mozilla.com/D192897
2023-11-15 14:24:17 +00:00
Nipun Shukla
31a29f5cbb Bug 1862450 - Made installer changes for dual browser extension r=mhughes
Differential Revision: https://phabricator.services.mozilla.com/D192478
2023-11-15 14:24:16 +00:00
seb
db5a2283f3 Bug 366374 - macos: Check for profile before opening an url. r=mac-reviewers,spohl
There's windows-specific code which checks if a profile has been selected
before opening an url in a new window. This code is also useful for macos. It
fixes the bug that opens an empty window if you attempt to click a link before
a profile has been selected.

Differential Revision: https://phabricator.services.mozilla.com/D190988
2023-10-13 20:45:29 +00:00
Masatoshi Kimura
c2dc436126 Bug 1845057 - Remove aClaimAllTypes from setDefaultBrowser. r=nrishel,settings-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D189678
2023-10-02 16:56:42 +00:00
Daisuke Akatsuka
30f00be6c8 Bug 1620576: Refer to the start time of the session with the update applied to suppress browser tips. r=adw,jteow,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D186900
2023-09-26 20:36:01 +00:00
Otto Länd
0d3a66e822 Bug 1848599: apply code formatting via Lando
# ignore-this-changeset
2023-08-29 07:26:43 +00:00
stransky
d129430d75 Bug 1848599 Allow to place kiosk mode browser to selected monitor r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D186163
2023-08-29 07:23:56 +00:00
Gregory Pappas
37dc90e72c Bug 1846845 - Remove some unneeded isPlatformAndVersionAtLeast checks r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D185221
2023-08-02 22:30:37 +00:00
Gregory Pappas
e9950eccfd Bug 1845311 - Use ChromeUtils.defineLazyGetter in more places r=arai,webdriver-reviewers,geckoview-reviewers,extension-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,anti-tracking-reviewers,sessionstore-reviewers,pbz,joschmidt,robwu,issammani,bytesized,owlish,dao
Differential Revision: https://phabricator.services.mozilla.com/D184481
2023-07-26 16:28:11 +00:00
Nick Alexander
9f2bea61fe Bug 1805514 - Part 3: Allow JS opaque relaunch data and actions. r=nrishel
This commit replaces two existing launch argument keys, `launchURL`
and `privilegedName`, with an opaque string of data.  Here opaque
means, "does not need to be inspected by the Windows notification
server DLL" (and in general, by the system backend components).

The existing `action` argument key was always intended for this
purpose but was not used in the first implementation.  Here, we make
`action` a stringified JSON object, which is easy for API consumers to
manage and generalizes to (mostly) arbitrary relaunch data.

This JSON object is a compound `notificationData` object containing
both:
- the consumer-provided `opaqueRelaunchData` (generally, an action);
- and implementation-provided details (the alert's name, if
  privileged, etc).
This compound object and the fact that everything transits as strings
makes everything a little more confusing than it really is.

The API to this opaque relaunch data is based on strings for
convenience.  It would be possible to manage JSON objects, perhaps by
using `nsIStructuredCloneContainer` to serialize "structured clone
encodable" JS objects across the process boundaries, but managing the
objects and container in that approach is much more effort than having
the API consumer stringify as desired.

In addition, this patch makes the notification server extract the
Firefox `action` data from the Windows toast `arguments` passed to the
server callback.  Since this fallback data is now provided to Firefox
at launch, there's no need to fetch it from the Windows notification
object; we simply need to know whether to pass through to a Windows
8.1 callback (`tagWasHandled=true`) or to act on the fallback data
(`tagWasHandled=false`).  This is simpler than teaching Firefox to
extract the arguments for toast itself or the appropriate action
button.

Differential Revision: https://phabricator.services.mozilla.com/D182314
2023-07-15 02:34:06 +00:00
Katherine Patenio
ce9d8a5dad Bug 1834831 - update imports of browser/modules JSMs r=webdriver-reviewers,perftest-reviewers,zeid,extension-reviewers,settings-reviewers,pip-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,sessionstore-reviewers,tabbrowser-reviewers,whimboo,mhowell,sgalich,robwu,sparky,Standard8,mconley,dao,sclements
Differential Revision: https://phabricator.services.mozilla.com/D179169
2023-06-19 18:44:48 +00:00
Cristian Tuns
f826f1b621 Backed out 2 changesets (bug 1834831) for causing node failures with checkBundles CLOSED TREE
Backed out changeset 58b351a155c8 (bug 1834831)
Backed out changeset 1acbb5231d14 (bug 1834831)
2023-06-19 13:22:35 -04:00
Katherine Patenio
333197cd22 Bug 1834831 - update imports of browser/modules JSMs r=webdriver-reviewers,perftest-reviewers,zeid,extension-reviewers,settings-reviewers,pip-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,sessionstore-reviewers,tabbrowser-reviewers,whimboo,mhowell,sgalich,robwu,sparky,Standard8,mconley,dao,sclements
Differential Revision: https://phabricator.services.mozilla.com/D179169
2023-06-19 16:46:18 +00:00
Mark Banner
0677cff70b Bug 1838155 - Clean up some console.error calls that had been migrated from Cu.reportError. r=jdescottes,perftest-reviewers,geckoview-reviewers,credential-management-reviewers,search-reviewers,sgalich,owlish,jteow,sparky
This goes through the previous changes in the dependencies of bug 877389, and does two things:
1) Remove instances of \n
2) Change reporting of exceptions so that they are passed as separate arguments. This should result
   in an improved display of the exception in the browser console, should it occur.

Differential Revision: https://phabricator.services.mozilla.com/D180843
2023-06-15 08:33:57 +00:00
Chris H-C
600cb86247 Bug 1837230 - Instrument an early event for FOG validation r=perry.mcmanis,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D180364
2023-06-09 20:19:25 +00:00
Nick Alexander
76a8b8897c Bug 1835352 - Part 3: Record telemetry event when Firefox is launched from WDBA. r=nrishel
This uses the existing `browser.launched_to_handle ::
system_notification` event.  This is expedient and looks ahead to
making the WDBA a background task, where we likely will set the
privileged `name` of the toast to `default-browser-agent` or similar.

The alternative is to add a `browser.launched_to_handle ::
default_browser_agent` event.  I started with this and it's simply
duplication.  The data analysis phase will look almost identical with
either implementation: it's either filtering on the event name or on
the `name` key in the event extras.

Differential Revision: https://phabricator.services.mozilla.com/D179257
2023-06-01 03:41:17 +00:00
Mark Banner
0666077666 Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,calu
Differential Revision: https://phabricator.services.mozilla.com/D177027
2023-05-20 12:26:53 +00:00
Mark Banner
91fde42f7b Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish
Differential Revision: https://phabricator.services.mozilla.com/D177025
2023-05-20 12:26:49 +00:00
Bilal
34ec496fc7 Bug 1816999 - ESMified browser/components/shell. r=kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D175274
2023-04-14 16:59:15 +00:00
Barret Rennie
f7a4fadf48 Bug 1788954 - Convert toolkit/components/nimbus to ES modules r=Standard8,pip-reviewers,credential-management-reviewers,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D172850
2023-03-30 20:51:58 +00:00
Nicholas Rishel
323bf529dd Bug 1797678 - Fix Windows native notifications interaction from prior Firefox instances and closed tabs. r=nalexander,Jamie,mossop
We need to ensure we're not in a `WndProc` callback context when interacting with native notification COM objects, which is currently a problem when called from the command line handler (see Bug 1805802). We achieve this by moving COM work onto a background task which defers processing until after `WndProc` returns.

Now that retrieving the fallback URL occurs on a background task waiting for it before returning would block the main thread. Making `handleWindowsTag` async introduced race conditions with commandline handling, requiring a `enterLastWindowClosingSurvivalArea`/`exitLastWindowClosingSurvivalArea` to prevent misbehavior in case early blank window is pref'd off. In order to simplify exit cleanup, the API was updated to return a `Promise`.

Differential Revision: https://phabricator.services.mozilla.com/D160458
2023-01-06 18:36:21 +00:00
Nicholas Rishel
e4713695ff Bug 1804337 - Replace Cu.reportError calls with console.error in BrowserContentHandler. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D163988
2023-01-01 09:30:40 +00:00
Mark Banner
df47c60747 Bug 1806359 - Convert telemetry imports to direct ES imports. r=necko-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,janerik,mconley,sgalich,bytesized,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D165002
2022-12-23 12:37:07 +00:00
negin
cdcf0f8de5 Bug 1801224 - Invoke window modal for new users on first startup r=pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D162904
2022-12-16 15:32:10 +00:00
Mark Banner
c0307c47db Bug 1804661 - Convert browser/components/BrowserContentHandler.jsm to an ES module. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D164205
2022-12-12 14:59:18 +00:00