Commit Graph

54 Commits

Author SHA1 Message Date
Ben Hearsum
a43d6f6bf9 Bug 1751010: Use a unique icon for the Private Browsing taskbar pin r=mhowell
This is subject to the same issue as an earlier patch in this series -- the icon will be wrong briefly at first launch, before the code in `BrowserContentHandler.jsm` replaces the default icon with the correct one.

Differential Revision: https://phabricator.services.mozilla.com/D138601
2022-03-01 14:16:48 +00:00
Ben Hearsum
35eff2ec3a Bug 1751010: Set AUMID correctly for private browsing windows r=mossop,mhowell
This is done differently depending on whether the Private Browsing window is the initial one, or if it's a new window from a running application. In the former case, we're still not setting it up early enough -- the window will initially show up in one icon, and then switch to the other one after we've adjusted the AUMID.

Regardless, the fact that we're doing it for every new window appears to mean that other places that require it (such as GeckoChildProcessHost.cpp) will Do The Right Thing (because they'll pull the cached version that `GetAppUserModelID` finds).

This behind a pref for now both because of the issue noted above, as well as the fact that we're waiting on finalized branding for this.

Differential Revision: https://phabricator.services.mozilla.com/D138194
2022-03-01 14:16:47 +00:00
Butkovits Atila
441a1d2141 Backed out 5 changesets (bug 1751010) for causing failures at browser_startup_mainthreadio.js. CLOSED TREE
Backed out changeset af347bb985d4 (bug 1751010)
Backed out changeset 9944e42017ff (bug 1751010)
Backed out changeset 282a5cd52cd0 (bug 1751010)
Backed out changeset 2f54afb16002 (bug 1751010)
Backed out changeset 6ad85a8edf15 (bug 1751010)
2022-02-27 03:40:08 +02:00
Ben Hearsum
6a6d5f22b9 Bug 1751010: Use a unique icon for the Private Browsing taskbar pin r=mhowell
This is subject to the same issue as an earlier patch in this series -- the icon will be wrong briefly at first launch, before the code in `BrowserContentHandler.jsm` replaces the default icon with the correct one.

Differential Revision: https://phabricator.services.mozilla.com/D138601
2022-02-25 18:33:46 +00:00
Ben Hearsum
30635dc41f Bug 1751010: Set AUMID correctly for private browsing windows r=mossop,mhowell
This is done differently depending on whether the Private Browsing window is the initial one, or if it's a new window from a running application. In the former case, we're still not setting it up early enough -- the window will initially show up in one icon, and then switch to the other one after we've adjusted the AUMID.

Regardless, the fact that we're doing it for every new window appears to mean that other places that require it (such as GeckoChildProcessHost.cpp) will Do The Right Thing (because they'll pull the cached version that `GetAppUserModelID` finds).

This behind a pref for now both because of the issue noted above, as well as the fact that we're waiting on finalized branding for this.

Differential Revision: https://phabricator.services.mozilla.com/D138194
2022-02-25 18:33:45 +00:00
Marian-Vasile Laza
7824ab98b3 Backed out 4 changesets (bug 1751010) for causing xpcshell failures on test_taskbar_jumplistitems.js. CLOSED TREE
Backed out changeset 1ff3b5528d53 (bug 1751010)
Backed out changeset a21f1d8b6d8b (bug 1751010)
Backed out changeset 11df8f060a35 (bug 1751010)
Backed out changeset b94765877d57 (bug 1751010)
2022-02-23 14:56:22 -08:00
Ben Hearsum
8e1d3e8289 Bug 1751010: Use a unique icon for the Private Browsing taskbar pin r=mhowell
This is subject to the same issue as an earlier patch in this series -- the icon will be wrong briefly at first launch, before the code in `BrowserContentHandler.jsm` replaces the default icon with the correct one.

Differential Revision: https://phabricator.services.mozilla.com/D138601
2022-02-23 13:58:18 +00:00
Ben Hearsum
9c1add2cc7 Bug 1751010: Set AUMID correctly for private browsing windows r=mossop,mhowell
This is done differently depending on whether the Private Browsing window is the initial one, or if it's a new window from a running application. In the former case, we're still not setting it up early enough -- the window will initially show up in one icon, and then switch to the other one after we've adjusted the AUMID.

Regardless, the fact that we're doing it for every new window appears to mean that other places that require it (such as GeckoChildProcessHost.cpp) will Do The Right Thing (because they'll pull the cached version that `GetAppUserModelID` finds).

This behind a pref for now both because of the issue noted above, as well as the fact that we're waiting on finalized branding for this.

Differential Revision: https://phabricator.services.mozilla.com/D138194
2022-02-23 13:58:17 +00:00
Csoregi Natalia
e8626c4668 Backed out 4 changesets (bug 1751010) for win bustages on nsWindow.cpp. CLOSED TREE
Backed out changeset b68d86cc545d (bug 1751010)
Backed out changeset b51b389bd0fd (bug 1751010)
Backed out changeset f128c61e50eb (bug 1751010)
Backed out changeset 1cbe75d59770 (bug 1751010)
2022-02-22 21:17:27 +02:00
Ben Hearsum
fb468e5e03 Bug 1751010: Use a unique icon for the Private Browsing taskbar pin r=mhowell
This is subject to the same issue as an earlier patch in this series -- the icon will be wrong briefly at first launch, before the code in `BrowserContentHandler.jsm` replaces the default icon with the correct one.

Differential Revision: https://phabricator.services.mozilla.com/D138601
2022-02-22 18:16:36 +00:00
Ben Hearsum
4d893965e3 Bug 1751010: Set AUMID correctly for private browsing windows r=mossop,mhowell
This is done differently depending on whether the Private Browsing window is the initial one, or if it's a new window from a running application. In the former case, we're still not setting it up early enough -- the window will initially show up in one icon, and then switch to the other one after we've adjusted the AUMID.

Regardless, the fact that we're doing it for every new window appears to mean that other places that require it (such as GeckoChildProcessHost.cpp) will Do The Right Thing (because they'll pull the cached version that `GetAppUserModelID` finds).

This behind a pref for now both because of the issue noted above, as well as the fact that we're waiting on finalized branding for this.

Differential Revision: https://phabricator.services.mozilla.com/D138194
2022-02-22 18:16:35 +00:00
Nick Alexander
43a36b7a80 Bug 1243603 - Telemetry for when Windows invokes Firefox to handle a registered file type or protocol. r=Gijs
The `-osint` flag is used as the signal that Windows is invoking
Firefox to handle a file type or protocol.  The `-osint` flag was
introduced in order to mitigate security breaches due to poor argument
quoting (by consumers invoking Firefox); to use it for this new
purpose, it must be preserved for downstream consumers to react to.
Alternately, some marker of the flag could be maintained.  Since the
flag needs to transit through the launcher process, I've elected to
simply not strip it as we validate command lines, and to accommodate
it further downstream.  (It looks like Thunderbird already
accommodates `-osint`: see
https://searchfox.org/comm-central/rev/3e8f926de9ea09945b237177eb6d489c70318f0e/mail/components/MessengerContentHandler.jsm#568.)

The telemetry in this patch achieves two purposes.  The first is to
count the number of times Firefox is invoked to handle a registered
file type or protocol: for this, a new keyed uint scalar was added.
File types start with a ".", just like on Windows; protocols
(equivalently, the schemes used to identify them) do not start with a
".".

The second is to identify times when Firefox is launched (i.e., it was
not already running) to handle a registered file type or protocol.

This generalizes the existing `os.environment.launch_method`,
introducing `os.environment.launched_to_handle` and
`os.environment.invoked_to_handle` string scalars, which record the
file type or protocol.

The command line state `STATE_INITIAL_LAUNCH` is used to discriminate
launching from invoking.

Differential Revision: https://phabricator.services.mozilla.com/D132288
2021-12-11 00:00:55 +00:00
Doug Thayer
35a60bf29d Bug 1728653 - Allow a silent start mode r=bytesized,nalexander,application-update-reviewers,mossop
This will allow starting Firefox in the background, and on Windows will allow
closing the last browser window without killing the main process. There is no
plan for actually using this by default in Firefox proper, but it's needed for
some explorations.

There's more to this work that we'll need - this is just the first step. For
instance, we'll need a real way to actually kill firefox on Windows other than
through the task manager (we'll be putting something in the system tray to
allow this.)

The patch wasn't particularly large, so I didn't split out the rename of
MOZ_APP_SILENT_START to MOZ_APP_SILENT_RESTART - let me know if you'd like me
to do that though and I can.

Differential Revision: https://phabricator.services.mozilla.com/D124249
2021-09-09 18:09:25 +00:00
Benjamin Peterson
edb1f747b4 Bug 1729843 - Remove vestigial plugin-related code from nsWebNavigationInfo. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D125026
2021-09-09 15:03:05 +00:00
Kirk
ad719f42a8 Bug 1726239 - Allow a silent startup r=Gijs
Modify the command line handler such that it does not open any window on the initial application launch when the MOZ_APP_SILENT_RESTART env value is set.

Depends on D123019

Differential Revision: https://phabricator.services.mozilla.com/D123020
2021-08-19 22:41:03 +00:00
Dave Townsend
3c77f470e4 Bug 1700972: Remove profile-per-install onboarding UI. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D112292
2021-04-21 20:06:31 +00:00
Ed Lee
29aff927a9 Bug 1697222 - Show upgrade dialog without conflicting with existing default browser prompt. r=andreio
Add new NimbusFeatures.upgradeDialog with fallback enabled pref. Remember if the browser just did a major uprgade and check other conditions for showing before other default browser messages.

Differential Revision: https://phabricator.services.mozilla.com/D111041
2021-04-13 00:04:30 +00:00
Florian Quèze
58068efc9e Bug 1674234 - Add a profiler markers for the early blank window, r=dthayer.
Differential Revision: https://phabricator.services.mozilla.com/D95220
2020-10-30 23:05:31 +00:00
Narcis Beleuzu
503d2b079a Backed out 2 changesets (bug 1674234) for SM bustages on PreXULSkeletonUI.cpp . CLOSED TREE
Backed out changeset 093306c14ca2 (bug 1674234)
Backed out changeset 2684003a37f9 (bug 1674234)
2020-10-31 01:01:33 +02:00
Florian Quèze
56345735ab Bug 1674234 - Add a profiler markers for the early blank window, r=dthayer.
Differential Revision: https://phabricator.services.mozilla.com/D95220
2020-10-30 20:53:58 +00:00
Marco Bonardo
2126d8e487 Bug 1626016 - Remove createFixupURI and move postData inside URIFixupInfo. r=Gijs,geckoview-reviewers,preferences-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D93189
2020-10-13 10:20:16 +00:00
Kirk Steuber
50cff95440 Bug 1668096 - Replace activeUpdate with downloadingUpdate and readyUpdate r=mhowell,preferences-reviewers
This patch does not make the necessary replacement in tests. Those changes will be made in a later patch in this stack.

Some additional, related changes are also made in this patch:
cleanupActiveUpdate is being replaced with cleanupDownloadingUpdate and cleanupReadyUpdate. The two new functions currently do very similar things, but separating them will allow us to have each function clean up the right update, once we fully support more than one update per session.
The old mechanism to add something to the update history was for it to be assigned to activeUpdate, and then to assign null to activeUpdate. We now need to assign active updates to be null without adding them to the history. As an example, we need to set downloadingUpdate to null when the download completes, but it shouldn't be added to the history at that point. To address this, an explicit addUpdateToHistory function has been added, and assigning null to either active update variable no longer moves the update to the update history.

Differential Revision: https://phabricator.services.mozilla.com/D92289
2020-10-06 18:07:31 +00:00
Kris Maglione
9bddbcfdd1 Bug 1649221: Update ChromeUtils.generateQI callers to pass strings. r=mccr8,remote-protocol-reviewers,marionette-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,preferences-reviewers,agi,whimboo,Bebe,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D81594
2020-07-10 23:58:28 +00:00
Neil Deakin
4c6331f243 Bug 1614748, convert about:newinstall to JSWindowActor-based remote page manager, r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D71024
2020-05-15 19:41:56 +00:00
Michael Kaply
690196bba2 Bug 1447536 - Add left/top command line options. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D74146
2020-05-12 19:13:08 +00:00
Ian Moody
0a0d8bf126 Bug 1536556 - Replace raw thrown Cr.ERRORs with Components.Exception. r=mossop,remote-protocol-reviewers,marionette-reviewers,whimboo,necko-reviewers,geckoview-reviewers,valentin,agi
Raw Cr.ERROR don't get stack information, same as throwing JS literals instead
of `new Error()`s.

This was done automatically with a new eslint rule that will be introduced in
the next commit.  One instance of a raw Cr.ERROR was not replaced since it is
used in a test that specifically checks the preservation of raw Cr values in
XPCJS.  The rule will be disabled for that instance.

Differential Revision: https://phabricator.services.mozilla.com/D28073
2020-05-05 17:41:36 +00:00
Neil Deakin
568dfb76ca Bug 1614744, convert about:privatebrowsing to JSWindowActor-based remote page manager, r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D71023
2020-04-29 23:19:15 +00:00
Dave Townsend
132f3f2ca5 Bug 1513855: Make sure that quit-application-granted and quit-application notifications are always sent. r=froydnj
We only run the main event loop if at least one window is open. There are various
cases where this doesn't happen, such as -silent. By the time we get there though
some components have started and require appropriate notifications to tell them
to shutdown safely. This patch sends the quit-application-granted and
quit-application notifications in the case that there were no windows open
and nsAppStartup::Quit hasn't already been called when we come to run the
event loop.

Differential Revision: https://phabricator.services.mozilla.com/D51736
2019-11-07 17:00:06 +00:00
Gijs Kruitbosch
c4e88a046e Bug 1589900 - ensure we initialize about:privatebrowsing remote page handler before loading it from the commandline, r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D51583
2019-11-04 18:27:05 +00:00
Marco Bonardo
799e29bf9e Bug 1587803 - Check BrowserContentHandler.jsm::doSearch() uses the private engine when appropriate. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D49446
2019-10-18 10:24:52 +00:00
Michael Kaply
e45d30657d Bug 158968 - Implement kiosk mode. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D41848
2019-10-04 19:47:56 +00:00
Robert Helmer
aa0bbb6cf6 Bug 1576507 - add new FirstStartup service and --first-startup post-install flag. r=mconley
FirstStartup provides an optional mechanism to run synchronous services
before the UI appears. This is intended to be called as a post-install
action from an installer, such as the Windows Stub Installer, to allow
for downloading critical data and performance tuning before the first
run of a new Firefox install.

Differential Revision: https://phabricator.services.mozilla.com/D43364
2019-08-31 16:14:20 +00:00
Gijs Kruitbosch
2f9e6e0fcd Bug 1572838 - stop processing osint in BrowserContentHandler.jsm, r=mossop
Depends on D42311

Differential Revision: https://phabricator.services.mozilla.com/D42580
2019-08-20 19:51:36 +00:00
Shane Caraveo
2ec7d2cc55 Bug 1513855 ensure we notify quit application when running silent r=kmag
Running with -silent does not result in the quit application granted notification.
Without that notification, we have a deadlock in EnvironmentAddonBuilder where it blocks
beforeShutdown waiting on the XPIDatabase to load.

Differential Revision: https://phabricator.services.mozilla.com/D41877
2019-08-16 23:09:25 +00:00
Dorel Luca
e32c722394 Backed out changeset 61dc2ad51719 (bug 1513855) for DevTools failures in devtools/client/framework/test/browser_browser_toolbox.js 2019-08-15 05:03:07 +03:00
Shane Caraveo
040aca3880 Bug 1513855 ensure we notify quit application when running silent r=kmag
Running with -silent does not result in the quit application granted notification.
Without that notification, we have a deadlock in EnvironmentAddonBuilder where it blocks
beforeShutdown waiting on the XPIDatabase to load.

Differential Revision: https://phabricator.services.mozilla.com/D41877
2019-08-14 21:36:19 +00:00
Ed Lee
7d5c4f2868 Bug 1570062 - Whitelist what's new "moments" pages r=k88hudson
Use URL to parse and eTLD to extract allowed domains

Differential Revision: https://phabricator.services.mozilla.com/D41123
2019-08-08 19:22:38 +00:00
Ed Lee
61bba7d725 Bug 1568692 - Show a page like what's new on startup once but not dependent on major version bump r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D39286
2019-07-30 17:39:34 +00:00
Dale Harvey
0fb3dce61f Bug 1559625 - Let SearchService init when called via -search. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D36176
2019-07-10 14:36:15 +00:00
Robert Strong
63b5df1003 Bug 1555088 - Use activeUpdate and an app version increase to determine that an update was performed and remove the post update pref. r=bytesized
Differential Revision: https://phabricator.services.mozilla.com/D36853
2019-07-09 06:33:15 +00:00
Victor Porof
bf2b98e8c1 Bug 1561435 - Fix linting errors for browser/, r=standard8
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35950
2019-06-28 20:02:37 +02:00
Victor Porof
8eb72fd3fc Bug 1561435 - Format browser/components/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D36042
2019-07-05 09:53:32 +02:00
Ehsan Akhgari
5f57b1b6e4 Bug 1557887 - Part 5: Pass a storage principal argument through the browser loadURI()/addTab() APIs; r=baku,mconley
Differential Revision: https://phabricator.services.mozilla.com/D34459
2019-06-12 23:05:36 +00:00
Robert Strong
736e562a53 Bug 1555070 - Remove unused _showUpdateNotification function. r=mossop
This code was added over 9 years ago per a request from Firefox UX but it has never been used.
This does not affect the What's New page.

Differential Revision: https://phabricator.services.mozilla.com/D32903
2019-05-30 18:22:00 +00:00
Trushita
19b14883c7 Bug 1494948: Removed FX_PREFERENCES_OPENED_VIA probe and origin parameter for openPreferences r=jaws,chutten
Removed FX_PREFERENCES_OPENED_VIA probe as it expired in 63.Origin parameter for openPreferences has also been removed.

Differential Revision: https://phabricator.services.mozilla.com/D26795
2019-04-09 20:40:26 +00:00
Thomas Nguyen
e5f8eebf98 Bug 1528695 - Part 2 : Use referrerInfo in openWindow, contextmenu and openLinkIn r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D21911
2019-03-15 05:10:17 +00:00
Shane Caraveo
093ebb26fb Bug 1529582 prevent addon-set external home pages in private browsing without permission r=rpl,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D21228
2019-02-28 18:12:46 +00:00
Marco Bonardo
a040dd21a3 Bug 1528751 - Add a custom eslint rule to check "consistent" if bracing. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D20753
2019-02-28 08:39:33 +00:00
Shane Caraveo
1e0dd4dc35 Bug 1525125 block newtab and homepage overrides in private windows r=rpl,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D18730
2019-02-19 19:19:44 +00:00
Cosmin Sabou
70938d21db Merge mozilla-inbound to mozilla-central. a=merge 2019-02-15 20:39:45 +02:00