Commit Graph

452 Commits

Author SHA1 Message Date
Beth Rennie
7ed748d011 Bug 1956080 - Use async experiment cleanup in browser_default_webprotocol_handler_mailto.js a=RyanVM
Original Revision: https://phabricator.services.mozilla.com/D251728

Differential Revision: https://phabricator.services.mozilla.com/D251909
2025-05-31 19:02:34 +00:00
Beth Rennie
04c804b9b5 Bug 1956080 - Use async experiment cleanup in browser/components/tests browser tests r=mconley
ExperimentManager.unenroll() is now effectively async when running in a
browser test (because we are now executing SQL queries during
unenrollment) so all cleanup functions that trigger unenrollment are
async as well.

Differential Revision: https://phabricator.services.mozilla.com/D250506
2025-05-22 20:14:08 +00:00
Gijs Kruitbosch
b31d9f0790 Bug 1962056 - use the category manager for first window ready initialization, r=firefox-desktop-core-reviewers ,mossop
Differential Revision: https://phabricator.services.mozilla.com/D244429
2025-05-22 07:23:16 +00:00
Sandor Molnar
9b669b5846 Revert "Bug 1962056 - use the category manager for first window ready initialization, r=firefox-desktop-core-reviewers ,mossop" for causing xpc/bc related failures.
This reverts commit d8dcab1023.
2025-05-22 05:43:14 +00:00
Gijs Kruitbosch
d8dcab1023 Bug 1962056 - use the category manager for first window ready initialization, r=firefox-desktop-core-reviewers ,mossop
Differential Revision: https://phabricator.services.mozilla.com/D244429
2025-05-22 02:05:46 +00:00
Gijs Kruitbosch
78ebe33ed8 Bug 1962056 - move places initialization out of BrowserGlue, r=places-reviewers,migration-reviewers,firefox-desktop-core-reviewers ,mossop,mak,mconley
Places frontend initialization is surprisingly complex, and disentangling it
from the rest of startup by moving it to its own file helps make some of the
logic a little more obvious, and makes unit-testing a bit easier.

This also removes BrowserGlue from the indirection mechanism used between
MigatorBase instances and Places, by switching to category-manager-based
invocation - this way, migrator code does not need to directly
call places code to tell it it's done, but we don't need BrowserGlue to play
messenger between them.

It would be nice to do the same thing for `places-init-complete` but
that is notified from C++ code so unfortunately that is not easily possible.

Differential Revision: https://phabricator.services.mozilla.com/D244428
2025-05-21 13:54:58 +00:00
vinhle000
fcdab9d38b Bug 1950165 - Remove unused _showPreOnboardingModal from BrowserGlue and related test. r=mviar,firefox-desktop-core-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D249497
2025-05-16 19:21:35 +00:00
Kagami Sascha Rosylight
e9b5391a5b Bug 1962454 - Pass origin instead of host/port to Windows notification r=nalexander,win-reviewers,firefox-desktop-core-reviewers ,gstoll
This is to match NotificationDB that uses origin.

Differential Revision: https://phabricator.services.mozilla.com/D236586
2025-05-16 09:53:11 +00:00
Serban Stanca
abfa809247 Revert "Bug 1962454 - Pass origin instead of host/port to Windows notification r=nalexander,win-reviewers,firefox-desktop-core-reviewers ,gstoll" as requested by krosylight.
This reverts commit b10370a112.
2025-05-16 09:17:09 +00:00
Sebastian Hengst
b10370a112 Bug 1962454 - Pass origin instead of host/port to Windows notification r=nalexander,win-reviewers,firefox-desktop-core-reviewers ,gstoll
This is to match NotificationDB that uses origin.

Differential Revision: https://phabricator.services.mozilla.com/D236586
2025-05-14 16:05:58 +00:00
agoloman
9e8fab34c1 Revert "Bug 1962454 - Pass origin instead of host/port to Windows notification r=nalexander,win-reviewers,firefox-desktop-core-reviewers ,gstoll" for causing xpc failures @test_backgroundtask_experiments.js.
This reverts commit 1ee24b59e7.
2025-05-13 16:41:37 +00:00
Sebastian Hengst
1ee24b59e7 Bug 1962454 - Pass origin instead of host/port to Windows notification r=nalexander,win-reviewers,firefox-desktop-core-reviewers ,gstoll
This is to match NotificationDB that uses origin.

Differential Revision: https://phabricator.services.mozilla.com/D236586
2025-05-13 14:58:01 +00:00
Daniel Thorn
66f5b9c82a Bug 1959483 - Port tests from ExperimentFakes and ExperimentTestUtils to NimbusTestUtils for browser/components/tests r=nimbus-reviewers,beth,firefox-desktop-core-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D247013
2025-05-13 04:05:09 +00:00
Tom Schuster
a2ab9b17e7 Bug 1962053 - Don't allow bypassing the CSP for scripts loaded as SystemPrincipal. r=simonf
Differential Revision: https://phabricator.services.mozilla.com/D246455
2025-05-12 11:03:41 +00:00
Beth Rennie
e0aad13b7a Bug 1959212 - Use GleanPing::TestSubmission in browser/components/tests r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D247509
2025-05-10 02:24:13 +00:00
Daniel Thorn
5a6b3318ae Bug 1959483 - Port tests from ExperimentFakes and ExperimentTestUtils to NimbusTestUtils in browser/components and browser/components/privatebrowsing r=nimbus-reviewers,firefox-desktop-core-reviewers ,beth,mconley
Differential Revision: https://phabricator.services.mozilla.com/D247018
2025-05-06 01:53:56 +00:00
Meg Viar
9d474d2001 Bug 1959542 - Enable ToS by default in Firefox 138.x mid-cycle dot release (Windows, Mac, Linux) r=hanna_a,omc-reviewers
- Show ToS modal by default for all new users on official builds
  - Remove code related to the on-train rollout for Mac/Linus/MSIX

Differential Revision: https://phabricator.services.mozilla.com/D247111
2025-05-01 03:50:23 +00:00
Goloman Adrian
4a268dccfd Bug 1961366 - revert changes on test_browserGlue_migration_osauth.js. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D246041
2025-04-18 15:16:28 +00:00
Joel Maher
986c1b9cc2 Bug 1959265 - clean and sanitize browser/**/xpcshell.toml files. r=aryx,credential-management-reviewers,search-reviewers,sessionstore-reviewers,places-reviewers,omc-reviewers,migration-reviewers,backup-reviewers,home-newtab-reviewers,urlbar-reviewers,firefox-ai-ml-reviewers,profiles-reviewers,willdurand,tarek,dimi,jteow,sthompson,mconley,pdahiya,mossop
Differential Revision: https://phabricator.services.mozilla.com/D244829
2025-04-17 18:30:44 +00:00
Gijs Kruitbosch
75052d346a Bug 1958070 - move DefaultBrowserCheck to its own file, r=omc-reviewers,firefox-desktop-core-reviewers ,mossop,hanna_a
Differential Revision: https://phabricator.services.mozilla.com/D244422
2025-04-14 14:04:33 +00:00
Rob Wu
62248a8bcc Bug 1953004 - Run test-manifest-toml --fix on all toml files in the trees r=credential-management-reviewers,places-reviewers,desktop-theme-reviewers,Standard8,devtools-reviewers,hjones,jmaher,jdescottes,dimi,necko-reviewers,sidebar-reviewers,jsudiaman,kershaw
This diff was generated as follows:

List all toml files in the tree:

`find * -name '*.toml' > /tmp/toml`

Manually edited /tmp/toml to drop non-relevant entries (objdir).

Ran the toml linter for all files:

`cat /tmp/toml | xargs ./mach lint -l test-manifest-toml --fix`

Differential Revision: https://phabricator.services.mozilla.com/D240948
2025-04-14 08:30:13 +00:00
Tom Schuster
a5e6ce2f4e Bug 1958232 - Allow eval in browser.xhtml and other priviliged contexts with a special pref. r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D244306
2025-04-11 14:46:11 +00:00
Tom Schuster
a7fe44620b Bug 1883387 - Suppress NS_ERROR_NOT_IMPLEMENTED from nsIAppStartup.secondsSinceLastOSRestart. r=firefox-desktop-core-reviewers ,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D243669
2025-03-31 14:23:49 +00:00
Tom Schuster
46ced507e5 Bug 1945448 - Crash on CSP violations on internal pages in debug builds. r=simonf
Differential Revision: https://phabricator.services.mozilla.com/D241385
2025-03-14 14:41:51 +00:00
Tom Schuster
c651bae704 Bug 1951670 - Add a report-only CSP pref for blocking inline event handlers in browser.xhtml. r=freddyb,firefox-desktop-core-reviewers ,mconley
Differential Revision: https://phabricator.services.mozilla.com/D240343
2025-03-11 08:04:41 +00:00
hanna.alemu
66860e7c8b Bug 1922646 - Add a delay between the default Set to Default prompt and showing the INFOBAR_DEFAULT_AND_PIN_87 message r=omc-reviewers,pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D234206
2025-03-04 20:31:35 +00:00
Nick Alexander
4773306fc7 Bug 1945672 - Part 3: Block Glean startup and default browser prompt on notifying user. r=chutten,TravisLong,mviar,firefox-desktop-core-reviewers ,Gijs
This blocks FOG initialization on notifying the user.  This **does**
change the existing functionality, even when the Messaging System is
not used to notify the user: in legacy situations, this will display a
background tab and the promise will resolve quickly (not immediately),
falling back to an infobar that might be delayed 10-60s before being
displayed and being resolved (again, not immediately).

(Legacy Telemetry was blocked already, because the existing user
notification blocks sending Legacy Telemetry.)

Finally, the default browser prompt is blocked so that there's no race
between the (potentially blocking) Messaging System notification and
other prompts.  This also changes the behaviour by allowing the
Messaging System notification to be resolved and a subsequent
prompt (such as the default browser prompt) to be displayed
immediately afterward.

Differential Revision: https://phabricator.services.mozilla.com/D236624
2025-02-06 05:15:32 +00:00
Nick Alexander
c0f674a236 Bug 1945290 - Part 1: Hide TelemetryReportingPolicyImpl. r=chutten,mviar
This partially reverts the changes of an earlier commit, which made
some things asynchronous.  The `NimbusFeatures.getAllVariables()` API
is not, in fact, asynchronous, so opening the internals is not
strictly necessary.  This simplifies the expression and testing for
later.

N.b.: the existing implementation did not correctly test
`_openFirstRunPage`: that function was async and there was no `await`.
Therefore existing tests were asserting things about the function
definitions and not the function behaviours.

Differential Revision: https://phabricator.services.mozilla.com/D235886
2025-02-06 05:15:31 +00:00
Alexandru Marc
68ea3f065b Backed out 5 changesets (bug 1945290, bug 1945672) for causing xpcshell failures @ test_TelemetryReportingPolicy.js
Backed out changeset c16bb7800e1f (bug 1945672)
Backed out changeset 1a5006cd4cff (bug 1945672)
Backed out changeset 7da7d972d2fb (bug 1945672)
Backed out changeset 7b360633f06b (bug 1945290)
Backed out changeset caf8581c6983 (bug 1945290)
2025-02-06 02:40:51 +02:00
Nick Alexander
437a0d2791 Bug 1945672 - Part 3: Block Glean startup and default browser prompt on notifying user. r=chutten,TravisLong,mviar,firefox-desktop-core-reviewers ,Gijs
This blocks FOG initialization on notifying the user.  This **does**
change the existing functionality, even when the Messaging System is
not used to notify the user: in legacy situations, this will display a
background tab and the promise will resolve quickly (not immediately),
falling back to an infobar that might be delayed 10-60s before being
displayed and being resolved (again, not immediately).

(Legacy Telemetry was blocked already, because the existing user
notification blocks sending Legacy Telemetry.)

Finally, the default browser prompt is blocked so that there's no race
between the (potentially blocking) Messaging System notification and
other prompts.  This also changes the behaviour by allowing the
Messaging System notification to be resolved and a subsequent
prompt (such as the default browser prompt) to be displayed
immediately afterward.

Differential Revision: https://phabricator.services.mozilla.com/D236624
2025-02-05 21:55:30 +00:00
Nick Alexander
b6d918b470 Bug 1945290 - Part 1: Hide TelemetryReportingPolicyImpl. r=chutten,mviar
This partially reverts the changes of an earlier commit, which made
some things asynchronous.  The `NimbusFeatures.getAllVariables()` API
is not, in fact, asynchronous, so opening the internals is not
strictly necessary.  This simplifies the expression and testing for
later.

N.b.: the existing implementation did not correctly test
`_openFirstRunPage`: that function was async and there was no `await`.
Therefore existing tests were asserting things about the function
definitions and not the function behaviours.

Differential Revision: https://phabricator.services.mozilla.com/D235886
2025-02-05 21:55:28 +00:00
Tom Schuster
cfeedc189a Bug 1944241 - Remove the browser.xhtml specific CSP violation telemetry. r=freddyb
Differential Revision: https://phabricator.services.mozilla.com/D236527
2025-02-04 12:54:28 +00:00
Tom Schuster
0d8d75e850 Bug 1942622 - Collect telemetry for all internal chrome: CSP violations. r=freddyb
Differential Revision: https://phabricator.services.mozilla.com/D235656
2025-01-28 12:30:26 +00:00
Tom Schuster
102d06ee2d Bug 1942991 - Block inline event handlers from browser.xhtml in Early Beta. r=freddyb,firefox-desktop-core-reviewers ,mconley
Differential Revision: https://phabricator.services.mozilla.com/D235583
2025-01-27 17:21:33 +00:00
Meg Viar
de889acc9a Bug 1941896 - Add ability to show preonboarding modal persistently until interacted with r=jprickett,hanna_a
Add ability to show the preonboarding modal on every startup until a configured "interactionPref" is set to true, typically via interaction with the primary CTA.

Differential Revision: https://phabricator.services.mozilla.com/D234406
2025-01-17 21:13:03 +00:00
Meg Viar
3bd09d7884 Bug 1941350 - Add preonboarding modal Nimbus feature r=firefox-desktop-core-reviewers ,omc-reviewers,negin
- Add `preonboarding` Nimbus feature for showing a window modal over about:welcome that cannot be dismissed via ESC
- Include the ability to suppress showing the privacy notice tab on first run using a variable under the new `preonboarding` feature
- Remove legacy `showModal` related `aboutwelcome` Nimbus feature variables (these are not in use and were for [[ https://experimenter.services.mozilla.com/nimbus/window-modal-vs-tab-modal/summary | an old experiment ]])

Differential Revision: https://phabricator.services.mozilla.com/D234039
2025-01-17 15:18:15 +00:00
Stanca Serban
b272d96a83 Backed out changeset 7ebf2aee0c7b (bug 1941350) for causing xpcshell failures in test_TelemetryReportingPolicy.js. CLOSED TREE 2025-01-16 19:51:43 +02:00
Meg Viar
9317d6a34e Bug 1941350 - Add TOU preonboarding modal Nimbus feature r=firefox-desktop-core-reviewers ,omc-reviewers,negin
- Add `preonboarding` Nimbus feature for showing a window modal over about:welcome that cannot be dismissed via ESC
- Include the ability to suppress showing the privacy notice tab on first run using a variable under the new `preonboarding` feature
- Remove legacy `showModal` related `aboutwelcome` Nimbus feature variables (these are not in use and were for [[ https://experimenter.services.mozilla.com/nimbus/window-modal-vs-tab-modal/summary | an old experiment ]])

Differential Revision: https://phabricator.services.mozilla.com/D234039
2025-01-16 16:00:13 +00:00
Tom Schuster
2f25c5e202 Bug 1940393 - Silence accessibility warning in CSP test. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D233479
2025-01-09 08:15:14 +00:00
Tom Schuster
4f2b7226c3 Bug 1937080 - Block inline event handlers in Nightly and collect telemetry. r=freddyb,Gijs,saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D232982
2025-01-08 07:52:15 +00:00
Tom Schuster
e9b35cdddc Bug 1937080 - Make the <meta> CSP in browser.xhtml pref controllable. r=freddyb
Differential Revision: https://phabricator.services.mozilla.com/D232711
2025-01-08 07:52:14 +00:00
Tom Schuster
d6d42a924e Bug 1937080 - Don't strip CSP report URIs when the mSelfURI is a chrome: URL. r=freddyb
Differential Revision: https://phabricator.services.mozilla.com/D232981
2025-01-08 07:52:14 +00:00
Tom Schuster
7ef2943c60 Bug 1936336 - Disallow inline event handlers in browser.xhtml in debug builds (and test). r=freddyb,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D231780
2024-12-30 08:44:13 +00:00
Alexandru Marc
617b812600 Backed out changeset 4f1ddec217ba (bug 1936336) for causing bc failures @ browser_policy_managedbookmarks.js CLOSED TREE 2024-12-21 00:47:03 +02:00
Tom Schuster
4a88aee203 Bug 1936336 - Disallow inline event handlers in browser.xhtml in debug builds (and test). r=freddyb,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D231780
2024-12-20 18:46:02 +00:00
Meg Viar
5567720814 Bug 1933293 - Rework aboutWelcome modal behavior to still show about:welcome page and make requiring action to proceed configurable r=firefox-desktop-core-reviewers ,mossop,pdahiya
This patch updates the logic that prevents about:welcome from showing when the Nimbus `aboutWelcome` `showModal` variable is set to true. If separate screens for the modal are provided, it can now be shown on top of the default onboarding flow in about:welcome.

A `requireAction` variable that sets the modal to be a window modal requiring action (other than pressing ESC) to dismiss is also added to the `aboutWelcome` Nimbus feature

Differential Revision: https://phabricator.services.mozilla.com/D230185
2024-12-18 19:04:43 +00:00
Kelly Cochrane
000814bd68 Bug 1897411 - Add keyboard shortcut for expanding/collapsing the new sidebar r=sidebar-reviewers,fluent-reviewers,bolsson,sclements
Differential Revision: https://phabricator.services.mozilla.com/D229405
2024-12-12 21:34:38 +00:00
Ed Lee
7138179e8f Bug 1905027 - There should be a Keyboard shortcut for the AI chat sidebar r=sidebar-reviewers,sclements,fluent-reviewers,flod,ngrato
Toggle chatbot with Ctrl-Alt-X / Ctrl-X macOS enabling if necessary. Record event on using keyboard shortcut.

Differential Revision: https://phabricator.services.mozilla.com/D226205
2024-12-11 09:01:57 +00:00
hanna.alemu
50ffb1e5e7 Bug 1931926 - Store Timestamp of Default Modal Prompt last seen r=firefox-desktop-core-reviewers ,omc-reviewers,mviar,mossop
Differential Revision: https://phabricator.services.mozilla.com/D229967
2024-12-02 14:59:11 +00:00
jabram
ad7b1e649c Bug 1451132 - Provide option to close current tab on quit r=fluent-reviewers,reusable-components-reviewers,mconley,settings-reviewers,mossop,accessibility-frontend-reviewers,mstriemer,ayeddi
Differential Revision: https://phabricator.services.mozilla.com/D223374
2024-11-25 21:03:45 +00:00