Commit Graph

6162 Commits

Author SHA1 Message Date
Alex Kontos
92c159f358 feat: add option to disable Ctrl+W close shortcut 2025-11-06 14:13:38 +00:00
Stephen Thompson
7b27dfdb77 Bug 1994164 - add support for additional directional formatting characters a=pascalc
Original Revision: https://phabricator.services.mozilla.com/D268649

Differential Revision: https://phabricator.services.mozilla.com/D269513
2025-10-22 07:47:06 +00:00
Fred Chasen
12e8ffb3f0 Bug 1964835 - Part 1: Remove shopping actors and globals. r=shopping-reviewers,frontend-codestyle-reviewers,kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D248147
2025-05-22 18:04:15 +00:00
Rob Wu
7bf5769658 Bug 1948260 - Ensure Extensions button visibility when PopupNotifications.show() is used r=willdurand
Some doorhangers are anchored to the Extensions Button via
PopupNotifications.show() + gUnifiedExtensions.getPopupAnchorID().

The default behavior of PopupNotifications is to fall back to a
different anchor if the specified anchor is invisible. But if the
Extensions Button is hidden, we want to show it as needed, instead of
triggering the fallback.

This patch reveals the Extensions Button when PopupNotifications is
about to show the panel. This button will automatically be hidden
when the doorhanger is closed, as verified by the tests.

Differential Revision: https://phabricator.services.mozilla.com/D248163
2025-05-22 02:04:19 +00:00
Dave Townsend
8dd59e9654 Bug 1965072: Migrate ProfilesDatastoreService to toolkit. r=profiles-reviewers,firefox-desktop-core-reviewers ,mconley,jhirsch
Differential Revision: https://phabricator.services.mozilla.com/D249739
2025-05-21 15:20:53 +00:00
Niklas Baumgardner
934819c080 Bug 1948366 - Remove extensions.screenshots.disabled pref. r=sfoster,webdriver-reviewers,firefox-desktop-core-reviewers ,whimboo,urlbar-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D248324
2025-05-20 23:49:14 +00:00
Greg Stoll
036a0bca8e Bug 1955250 - make Content Analysis able to display tab-modal dialogs in sidebar r=dlp-reviewers,desktop-theme-reviewers,reusable-components-reviewers,sidebar-reviewers,mstriemer,emz,handyman,nika,jsudiaman,emilio
Content Analysis needs to be able to show a tab-modal dialog in the
sidebar, in case users paste text into a GenAI chatbot, etc. The dialogs
need to be tab-modal because the "DLP busy" dialog needs to be closable
by the JS code when the operation is done.

This change detects whether a dialog is trying to be displayed from a
browser inside the sidebar and shows it correctly.

Note that this does not change how extensions behave; if they try to
display a tab-modal dialog it will end up being window-modal (see
discussion in bug 1680066 and bug 1513656). I had a patch to fix this
but ran into some window leaks during tests that I was unable to address.

Differential Revision: https://phabricator.services.mozilla.com/D242957
2025-05-17 15:32:35 +00:00
Kagami Sascha Rosylight
71f7630aeb Bug 1966656 - Part 1: Toggle touchmode from nsXULPopupManager r=desktop-theme-reviewers,dao,emilio
Differential Revision: https://phabricator.services.mozilla.com/D198801
2025-05-15 13:36:39 +00:00
Mark Banner
c4f8ff9d2c Bug 1963599 - Remove getLoadContext global from browser.js. r=firefox-desktop-core-reviewers ,dao
Differential Revision: https://phabricator.services.mozilla.com/D247282
2025-04-30 16:50:45 +00:00
Niklas Baumgardner
7276800327 Bug 1953884 - Eagerly create the profiles shared database. r=profiles-reviewers,mossop,jhirsch,firefox-desktop-core-reviewers ,omc-reviewers,emcminn
Differential Revision: https://phabricator.services.mozilla.com/D244621
2025-04-23 15:20:14 +00:00
Jeremy Swinarton
4a0e2c38cc Bug 1938405: Tab interaction metrics for tab groups r=dao,sthompson,tabbrowser-reviewers
This patch adds the most basic tab interaction metrics for tab groups.
As discussed in standup, we agreed to move the `remove_` class of
metrics into its own bug due to extra complexity involved in correctly
capturing these events.

One other thing we discussed was what the scope of events should be for
the `close_` class of events, i.e. should we *only* capture an event
when someone clicks the "X" button or closes from the TOM menu, or
should we also account for things like context menus, keyboard
shortcuts, etc.? Originally we agreed to capture _all_ tab close events
and mark any source that was not one of the above mentioned two as
unknown. However, after thinking about this more, I don't believe this
is the right approach. There are many places in the codebase where a tab
is closed but not because a user deliberately did it (e.g. when moving a
tab to a new window — this is actually done by creating a new tab in a
new window and closing the old). We currently don't distinguish between
user-initiated close actions, so it would take some time to find all
these places and exclude them.

I favour an explicit inclusion approach (which is what we are doing
elsewhere). In this patch I added events for:
  - closing a tab from the "X" close button (`close_tabstrip`)
  - closing a tab from the tab context menu (`close_tabstrip`)
  - closing a tab from the TOM (`close_tabmenu`)

There are other places that could potentially be
addressed, so I suggest moving these to a follow-up bug and addressing
them for 139.

Differential Revision: https://phabricator.services.mozilla.com/D244915
2025-04-16 15:01:28 +00:00
shaneziegler
9e82afc772 Bug 1957495 - Move ToolbarIconColor helper object from browser.js into its own module browser/themes/ToolbarIconColor.sys.mjs r=Gijs,desktop-theme-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D244058
2025-04-14 16:46:02 +00:00
DJ
91384c4388 Bug 1938425 - add telemetry for reopening saved groups. r=dao,sessionstore-reviewers,tabbrowser-reviewers,urlbar-reviewers,sthompson
Differential Revision: https://phabricator.services.mozilla.com/D243737
2025-04-10 17:35:20 +00:00
Butkovits Atila
b9dc6231d7 Backed out changeset 4711e76ce475 (bug 1938425) for causing failures at browser_tab_groups_telemetry.js. CLOSED TREE 2025-04-10 09:35:44 +03:00
DJ
cdc29e0d0d Bug 1938425 - add telemetry for reopening saved groups. r=dao,sessionstore-reviewers,tabbrowser-reviewers,urlbar-reviewers,sthompson
Differential Revision: https://phabricator.services.mozilla.com/D243737
2025-04-10 03:02:30 +00:00
Eric Chen
81fd252f84 Bug 1915738 - Part 1: end session when all non-taskbartab Firefox windows are closed and prepare for restore r=sfoster,sessionstore-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D241499
2025-04-09 18:57:25 +00:00
Cristina Horotan
2d08511dac Backed out changeset 7fed35bbd242 (bug 1938425) for causing bc failures at browser_tab_groups_telemetry.js. CLOSED TREE 2025-04-09 13:06:03 +03:00
DJ
e9f93720b5 Bug 1938425 - add telemetry for reopening saved groups. r=dao,sessionstore-reviewers,tabbrowser-reviewers,urlbar-reviewers,sthompson
Differential Revision: https://phabricator.services.mozilla.com/D243737
2025-04-09 03:07:19 +00:00
Dão Gottwald
3d9566e2de Bug 1917069 - Make the tab strip handle live language switching between LTR and RTL. r=Gijs,reusable-components-reviewers,hjones,fxview-reviewers,sidebar-reviewers,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D244573
2025-04-08 15:49:13 +00:00
smolnar
8c01d285cf Backed out changeset 1c700c5b8a89 (bug 1938425) for causing bc failures @ browser_tab_groups_telemetry.js CLOSED TREE 2025-04-07 19:45:55 +03:00
DJ
b8f461ce7f Bug 1938425 - add telemetry for reopening saved groups. r=dao,sessionstore-reviewers,tabbrowser-reviewers,urlbar-reviewers,sthompson
Differential Revision: https://phabricator.services.mozilla.com/D243737
2025-04-07 14:51:17 +00:00
Gijs Kruitbosch
b9223d261e Bug 1958504 - fix broken network error pages by catching sync-thrown errors from urifixup's checkhost caused by asyncResolve throwing, r=jteow
asyncResolve can throw e.g. NS_ERROR_UNKNOWN_PROXY_HOST .

Differential Revision: https://phabricator.services.mozilla.com/D244578
2025-04-07 13:56:34 +00:00
Kelly Cochrane
a75d2e147f Bug 1956624 - Ensure sidebar collapses on mouse out when expand on hover is enabled and the window is inactive (macOS only) r=sidebar-reviewers,mstange,sclements
Differential Revision: https://phabricator.services.mozilla.com/D243512
2025-04-02 14:44:08 +00:00
Eric Chen
9ca071f2e5 Bug 1956905 - change EXTRA_JS_MODULES in the taskbartabs directory's moz.build file to EXTRA_JS_MODULES.taskbartabs r=nrishel
Differential Revision: https://phabricator.services.mozilla.com/D243362
2025-04-01 17:36:33 +00:00
Cosmin Sabou
34c867c038 Backed out 2 changesets (bug 1956905, bug 1915737) for causing mochitest plain failures on test_no_errors_clean_profile.py. CLOSED TREE
Backed out changeset 8e96c17b3f8d (bug 1915737)
Backed out changeset 247c8ebd5fd9 (bug 1956905)
2025-04-01 06:25:11 +03:00
Eric Chen
e999abda53 Bug 1956905 - change EXTRA_JS_MODULES in the taskbartabs directory's moz.build file to EXTRA_JS_MODULES.taskbartabs r=nrishel
Differential Revision: https://phabricator.services.mozilla.com/D243362
2025-03-31 23:23:56 +00:00
Thomas Wisniewski
fa66860cf8 Bug 1952334 - Remove the old Report Site Issue fallback and its system addon, and have Report Broken Site perform its function; r=Gijs,mossop,webcompat-reviewers,zeid,frontend-codestyle-reviewers,denschub
Differential Revision: https://phabricator.services.mozilla.com/D240671
2025-03-24 11:55:09 +00:00
Sandor Molnar
b9feeb9be6 Backed out changeset 12fe213a5acf (bug 1952334) for causing bc failures @ browser_webcompat.com_fallback.js CLOSED TREE 2025-03-23 11:50:49 +02:00
Thomas Wisniewski
7d89ae3c11 Bug 1952334 - Remove the old Report Site Issue fallback and its system addon, and have Report Broken Site perform its function; r=Gijs,mossop,webcompat-reviewers,zeid,frontend-codestyle-reviewers,denschub
Differential Revision: https://phabricator.services.mozilla.com/D240671
2025-03-23 03:38:50 +00:00
Cosmin Sabou
834872dfb3 Backed out changeset 5113567c1ced (bug 1952334) for bc failures on browser_webcompat.com_fallback.js. CLOSED TREE 2025-03-21 22:14:18 +02:00
Florian Quèze
0fd0af1930 Bug 1950710 - Migrate histograms to use Glean APIs in browser/base/content, r=chutten,reusable-components-reviewers,tgiles.
Differential Revision: https://phabricator.services.mozilla.com/D242369
2025-03-21 15:46:30 +00:00
shaneziegler
37f81a03af Bug 1954799 - Move new tab, new window, home button drag/drop handlers out of browser.js into ToolbarDropHandler.sys.mjs r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D242203
2025-03-21 14:37:32 +00:00
Thomas Wisniewski
702cd76018 Bug 1952334 - Remove the old Report Site Issue fallback and its system addon, and have Report Broken Site perform its function; r=Gijs,mossop,webcompat-reviewers,zeid,frontend-codestyle-reviewers,denschub
Differential Revision: https://phabricator.services.mozilla.com/D240671
2025-03-21 13:00:34 +00:00
Gijs Kruitbosch
fcab2ecd6a Bug 1953575 - move gShareUtils to its own module, r=firefox-desktop-core-reviewers ,tabbrowser-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D241485
2025-03-20 15:54:31 +00:00
Sandor Molnar
0fb14f0eb0 Backed out changeset aff0571a4a46 (bug 1952334) for causing build bustages. CLOSED TREE 2025-03-20 03:12:29 +02:00
Thomas Wisniewski
6ac129706e Bug 1952334 - Remove the old Report Site Issue fallback and its system addon, and have Report Broken Site perform its function; r=Gijs,mossop,webcompat-reviewers,zeid,frontend-codestyle-reviewers,denschub
Differential Revision: https://phabricator.services.mozilla.com/D240671
2025-03-20 00:14:00 +00:00
Dão Gottwald
3ba48b6655 Bug 1950904 - Use element index instead of tab index for the drop indicator. r=dwalker,jswinarton,tabbrowser-reviewers,perftest-reviewers,fbilt
Differential Revision: https://phabricator.services.mozilla.com/D239937
2025-03-19 15:07:53 +00:00
Gijs Kruitbosch
e9de12e4df Bug 1954435 - switch uitour to use moz-src, r=omc-reviewers,firefox-desktop-core-reviewers ,aminomancer,mconley
Differential Revision: https://phabricator.services.mozilla.com/D241795
2025-03-17 22:26:21 +00:00
Goloman Adrian
2297602064 Backed out changeset 0f21091f77ec (bug 1952334) for causing bc failures @browser_all_files_referenced.js. CLOSED TREE 2025-03-14 08:05:34 +02:00
Thomas Wisniewski
0c35bb4f68 Bug 1952334 - Remove the old Report Site Issue fallback and its system addon, and have Report Broken Site perform its function; r=Gijs,mossop,webcompat-reviewers,zeid,frontend-codestyle-reviewers,denschub
Differential Revision: https://phabricator.services.mozilla.com/D240671
2025-03-13 20:37:14 +00:00
Fatih Kilic
3054a040c5 Bug 1948811: Compare windows instead of tabs to show canvas permission prompt. r=mconley
Each window gets the observe call once. gBrowser.selectedBrowser refers to the currently selected tab and we check against that to verify if the target browser instance is in the current window.

This patch changes it to comparing windows instead of browser instances.

Differential Revision: https://phabricator.services.mozilla.com/D238974
2025-03-10 20:04:11 +00:00
Tim Xia
3554189dec Bug 1943391 - Initial entrypoint to detect preview reqeust - r=Mardak,firefox-desktop-core-reviewers ,firefox-ai-ml-reviewers,mossop
- alt+hover to trigger LinkPreview
- add LinkPreview.sys.mjs modules
- disable browser.ml.linkPreview.enabled by default
- use setOverLink and LinkPreview.sys to handle keyboard shortcut
- dispatch CustomEvent OverLink from browser.js
- add/remove event listeners in sync with state of "browser.ml.linkPreview.enabled"
- update all_files_referenced to handle moz-src

Differential Revision: https://phabricator.services.mozilla.com/D239535
2025-03-10 17:31:36 +00:00
Cosmin Sabou
8b1371211e Backed out changeset 9d7cf2733400 (bug 1943391) for causing leaks on browser_tab_groups_closed.
CLOSED TREE
2025-03-07 06:05:55 +02:00
Tim Xia
f4c4d3cc09 Bug 1943391 - Initial entrypoint to detect preview reqeust - r=Mardak,firefox-desktop-core-reviewers ,firefox-ai-ml-reviewers,mossop
- alt+hover to trigger LinkPreview
- add LinkPreview.sys.mjs modules
- disable browser.ml.linkPreview.enabled by default
- use setOverLink and LinkPreview.sys to handle keyboard shortcut
- dispatch CustomEvent OverLink from browser.js
- add/remove event listeners in sync with state of "browser.ml.linkPreview.enabled"
- update all_files_referenced to handle moz-src

Differential Revision: https://phabricator.services.mozilla.com/D239535
2025-03-06 03:03:09 +00:00
Butkovits Atila
625fda149e Backed out changeset 04574e76f8f5 (bug 1943391) for causing high frequency failures at browser_bannerClicking.js. CLOSED TREE 2025-03-06 15:40:06 +02:00
Tim Xia
1d372a23a6 Bug 1943391 - Initial entrypoint to detect preview reqeust - r=Mardak,firefox-desktop-core-reviewers ,firefox-ai-ml-reviewers,mossop
- alt+hover to trigger LinkPreview
- add LinkPreview.sys.mjs modules
- disable browser.ml.linkPreview.enabled by default
- use setOverLink and LinkPreview.sys to handle keyboard shortcut
- dispatch CustomEvent OverLink from browser.js
- add/remove event listeners in sync with state of "browser.ml.linkPreview.enabled"
- update all_files_referenced to handle moz-src

Differential Revision: https://phabricator.services.mozilla.com/D239535
2025-03-06 03:03:09 +00:00
Mark Banner
878a5d5415 Bug 1951652 - Convert browser/components/search/ modules to use moz-src uris. r=search-reviewers,scunnane
Differential Revision: https://phabricator.services.mozilla.com/D240333
2025-03-05 09:24:37 +00:00
Gijs Kruitbosch
8c703a7db2 Bug 1951072 - switch reader mode modules to use moz-src URLs, r=firefox-desktop-core-reviewers ,sync-reviewers,urlbar-reviewers,mossop,jteow,markh
Differential Revision: https://phabricator.services.mozilla.com/D240004
2025-03-04 21:20:35 +00:00
Moritz Beier
34069ddca2 Bug 1948326 - Part 2: Add feature to generate search engine from HTML forms. r=Standard8,fluent-reviewers,bolsson,places-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D238277
2025-03-04 17:18:21 +00:00
Goloman Adrian
55008ab2ea Backed out 2 changesets (bug 1948326) for causing bc failures @nsContentSecurityUtils.cpp. CLOSED TREE
Backed out changeset 172464722456 (bug 1948326)
Backed out changeset 855648c27237 (bug 1948326)
2025-03-04 15:12:56 +02:00