Commit Graph

252 Commits

Author SHA1 Message Date
Francesco Lodolo
e2b6a89c7f Bug 1965661 - Use correct IDs when generating blocklist names in settings, r=settings-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D248704
2025-05-12 12:01:51 +00:00
Emilio Cobos Álvarez
d8d91503bb Bug 1959540 - Simplify XUL menu structure. r=Gijs,desktop-theme-reviewers,settings-reviewers,urlbar-reviewers,dao
We don't need so many wrappers and so on. Similarly we don't need
.menu-right, we can use ::after to draw the arrow.

This makes reasoning about menus a lot easier.

Differential Revision: https://phabricator.services.mozilla.com/D245000
2025-04-14 12:59:53 +00:00
Yazan Al Macki
a5536418e1 Bug 1954589 - Remove -moz-crisp-edges from favicons. r=desktop-theme-reviewers,settings-reviewers,tabbrowser-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D243711
2025-04-02 13:54:15 +00:00
Javier Rueda
e5c50eb4dc Bug 1822665 - Remove references to no longer supported MozDialog Help button. r=settings-reviewers,Gijs@mozilla.com
Differential Revision: https://phabricator.services.mozilla.com/D242618
2025-03-25 10:35:31 +00:00
Francesco Lodolo (:flod)
a691382ad2 Bug 1954994 - Remove unused strings in browser, avoid run-time ID generation r=fluent-reviewers,bolsson,settings-reviewers,Gijs,mossop
Differential Revision: https://phabricator.services.mozilla.com/D242147
2025-03-22 11:08:01 +00:00
Eitan Isaacson
cf6484047a Bug 1898096 - Replace color settings with "contrast control". r=emilio,fluent-reviewers,settings-reviewers,accessibility-frontend-reviewers,morgan,bolsson,masayuki,mossop,pdfjs-reviewers,calixte
This patch changes the backing prefs by relying on the tristate offered
by browser.display.document_color_use instead of
browser.display.use_system_colors. This simplifies the color
decision tree, and offers a simplified UI.

The tristate preference offered to the user is as follows:
 1. "Use platform's contrast settings" (document_color_use=0)
 2. "Off" - never use HCM, regardless of platform setting (document_color_use=1)
 3. "On" - always use HCM, regardless of platform setting (document_color_use=2)

Option 3 also reveals a colors UI for the user to choose the palette the
browser HCM will use (bg/text/link/visited).

There are three color palettes to choose from in light of the preference
above they are:
 1. WIDGET_COLORS: The OS's configured colors used by its theme.
 2. HARDCODED_COLORS: Colors deemed as standard and are hard coded into
    Firefox (eg. white on black text, blue and purple links).
 3. PREFERENCE_COLORS: Colors that are stored in preferences and are
    configurable from the colors UI (eg. browser.visited_color and
    browser.display.background_color)

The decision over which palette to use is as follows:
 * If we are styling browser UI -> WIDGET_COLORS
 * else, if resist fingerprinting is enabled -> HARDCODED_COLORS
 * else, if document_color_use==0 AND OS HCM is on -> WIDGET_COLORS
 * else, if document_color_use==2 -> PREFERENCE_COLORS
 * else -> HARDCODED_COLORS

Differential Revision: https://phabricator.services.mozilla.com/D211115
2025-03-05 19:18:08 +00:00
Alexandru Marc
78ef84ae14 Backed out changeset f4d5303f5472 (bug 1898096) for causing ba failures @ browser_attributed_text.js 2025-03-05 03:27:02 +02:00
Eitan Isaacson
e55fdd6ce8 Bug 1898096 - Replace color settings with "contrast control". r=emilio,fluent-reviewers,settings-reviewers,accessibility-frontend-reviewers,morgan,bolsson,masayuki,mossop,pdfjs-reviewers,calixte
This patch changes the backing prefs by relying on the tristate offered
by browser.display.document_color_use instead of
browser.display.use_system_colors. This simplifies the color
decision tree, and offers a simplified UI.

The tristate preference offered to the user is as follows:
 1. "Use platform's contrast settings" (document_color_use=0)
 2. "Off" - never use HCM, regardless of platform setting (document_color_use=1)
 3. "On" - always use HCM, regardless of platform setting (document_color_use=2)

Option 3 also reveals a colors UI for the user to choose the palette the
browser HCM will use (bg/text/link/visited).

There are three color palettes to choose from in light of the preference
above they are:
 1. WIDGET_COLORS: The OS's configured colors used by its theme.
 2. HARDCODED_COLORS: Colors deemed as standard and are hard coded into
    Firefox (eg. white on black text, blue and purple links).
 3. PREFERENCE_COLORS: Colors that are stored in preferences and are
    configurable from the colors UI (eg. browser.visited_color and
    browser.display.background_color)

The decision over which palette to use is as follows:
 * If we are styling browser UI -> WIDGET_COLORS
 * else, if resist fingerprinting is enabled -> HARDCODED_COLORS
 * else, if document_color_use==0 AND OS HCM is on -> WIDGET_COLORS
 * else, if document_color_use==2 -> PREFERENCE_COLORS
 * else -> HARDCODED_COLORS

Differential Revision: https://phabricator.services.mozilla.com/D211115
2025-03-05 00:27:44 +00:00
Moritz Beier
0b21fd50d4 Bug 1948326 - Part 1: Move addEngine dialog from preferences to search component. r=Standard8,fluent-reviewers,settings-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D238276
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
Moritz Beier
40e83a9163 Bug 1948326 - Part 1: Move addEngine dialog from preferences to search component. r=Standard8,fluent-reviewers,settings-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D238276
2025-03-04 12:24:49 +00:00
Connor Pearson
5a0272d3bc Bug 1915289 - Support setting suggestion URL when adding new search engine. r=search-reviewers,fluent-reviewers,Standard8,daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D220743
2025-03-03 09:02:10 +00:00
Tom Schuster
f81d16e706 Bug 1941365 - Use a <?csp ?> processing instructions instead of a csp attribute. r=Gijs,settings-reviewers,devtools-reviewers,places-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D238474
2025-02-26 16:13:13 +00:00
Sandor Molnar
bc9b3e4b97 Backed out 2 changesets (bug 1941365) for causing CSP related dt failures. CLOSED TREE
Backed out changeset b022efa3b9e7 (bug 1941365)
Backed out changeset 90c5b60c6163 (bug 1941365)
2025-02-26 17:28:48 +02:00
Tom Schuster
07c8930ba5 Bug 1941365 - Use a <?csp ?> processing instructions instead of a csp attribute. r=Gijs,settings-reviewers,devtools-reviewers,places-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D238474
2025-02-26 14:36:42 +00:00
Stanca Serban
45d787bb25 Backed out changeset 7a0277e4a8d8 (bug 1915289) for causing xpcshell failures in xpcshell/test_engine_ids.js. 2025-02-21 15:06:55 +02:00
Connor Pearson
78df501dfc Bug 1915289 - Support setting suggestion URL when adding new search engine. r=search-reviewers,fluent-reviewers,Standard8,daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D220743
2025-02-21 11:44:17 +00:00
Tom Schuster
6817e402c2 Bug 1944329 - Use a restrictive CSP for add-engine-dialog. r=settings-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D236198
2025-02-04 13:54:17 +00:00
Tom Schuster
11c71c2f38 Bug 1944329 - Remove inline event handler and use restrictive CSP for syncChooseOptions. r=settings-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D236196
2025-02-04 13:54:17 +00:00
Tom Schuster
16a6a010ba Bug 1944329 - Remove inline event handlers and use restrictive CSP for TranslationsDialog. r=settings-reviewers,translations-reviewers,Gijs,nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D236103
2025-02-04 13:54:16 +00:00
Tom Schuster
f22daa0010 Bug 1944329 - Remove inline event handlers and use restrictive CSP for DoHExceptionsDialog. r=settings-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D235982
2025-02-04 13:54:16 +00:00
Tom Schuster
e5fba6bb18 Bug 1944329 - Remove inline event handler and use restrictive CSP for SiteDataRemoveSelectedDialog. r=settings-reviewers,mconley
Differential Revision: https://phabricator.services.mozilla.com/D235767
2025-02-04 13:54:15 +00:00
Tom Schuster
2e537bbcc1 Bug 1942618 - Remove inline event handler and use restrictive CSP for BrowserLanguagesDialog. r=settings-reviewers,mossop
Differential Revision: https://phabricator.services.mozilla.com/D235751
2025-01-28 15:04:10 +00:00
Tom Schuster
edc685ee91 Bug 1942618 - Remove inline event handler and use restrictive CSP for selectBookmarkDialog. r=settings-reviewers,mossop
Differential Revision: https://phabricator.services.mozilla.com/D235456
2025-01-28 15:04:10 +00:00
Tom Schuster
a9b74d6911 Bug 1942618 - Remove inline event handler and use restrictive CSP for appManager. r=settings-reviewers,mossop
Differential Revision: https://phabricator.services.mozilla.com/D235439
2025-01-27 15:54:12 +00:00
Tom Schuster
a662ebb228 Bug 1942618 - Remove inline event handler and use restrictive CSP for old ClearSiteDataDialog. r=settings-reviewers,mconley
Differential Revision: https://phabricator.services.mozilla.com/D235156
2025-01-23 08:45:44 +00:00
Tom Schuster
7e36c664d1 Bug 1942618 - Remove inline event handler and use restrictive CSP for LanguagesDialog. r=settings-reviewers,mconley
Differential Revision: https://phabricator.services.mozilla.com/D235122
2025-01-23 08:45:44 +00:00
Tom Schuster
c3df36aa31 Bug 1942618 - Remove inline event handler and use restrictive CSP for ConnectionsDialog. r=settings-reviewers,mconley
Differential Revision: https://phabricator.services.mozilla.com/D234982
2025-01-23 08:45:43 +00:00
Tom Schuster
e34f2d5ce2 Bug 1942618 - Remove inline event handler and use restrictive CSP for ContainersDialog. r=settings-reviewers,mconley
Differential Revision: https://phabricator.services.mozilla.com/D234967
2025-01-23 08:45:43 +00:00
Tom Schuster
3617397c51 Bug 1942618 - Remove inline event handler and use restrictive CSP for FontsDialog. r=settings-reviewers,mconley
Differential Revision: https://phabricator.services.mozilla.com/D234884
2025-01-23 08:45:43 +00:00
Tom Schuster
0a15fc2f0f Bug 1942618 - Remove inline event handler and use restrictive CSP for ColorsDialog. r=settings-reviewers,mconley
Differential Revision: https://phabricator.services.mozilla.com/D234881
2025-01-23 08:45:42 +00:00
Tom Schuster
d5d4f3d230 Bug 1941751 - Remove inline event handlers and use restrictive CSP for SiteDataSettingsDialog. r=settings-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D234315
2025-01-15 18:01:45 +00:00
Tom Schuster
b3d0b231de Bug 1941585 - Remove remaining inline event handlers and use restrictive CSP for SitePermissionsDialog. r=settings-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D234192
2025-01-15 18:01:19 +00:00
Tom Schuster
20a74cb0b0 Bug 1941585 - Remove inline command event handlers from SitePermissionsDialog. r=settings-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D234179
2025-01-15 18:01:19 +00:00
Tom Schuster
c5f0b4d7a8 Bug 1941585 - Remove inline load/unload event handlers from SitePermissionsDialog. r=settings-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D234178
2025-01-15 18:01:18 +00:00
Simon Friedberger
b4d9976bc4 Bug 1935670. Remove inline event handlers from permissions.xhtml r=settings-reviewers,mossop
Differential Revision: https://phabricator.services.mozilla.com/D231389
2024-12-09 13:43:03 +00:00
Logan Rosen
d24c9d9ff4 Bug 1857834 - auto-formatting with Prettier v3 r=linter-reviewers,webdriver-reviewers,perftest-reviewers,search-reviewers,devtools-reviewers,sync-reviewers,reusable-components-reviewers,profiler-reviewers,dom-storage-reviewers,android-reviewers,firefox-ai-ml-reviewers,hjones,mcheang,mstange,sparky,janv,nchevobbe,tarek,Standard8,markh
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D230598
2024-11-29 15:18:25 +00:00
Oskar Mansfeld
f5dbbf2e15 Bug 1909436 - Added telemetry to record proxy type preferences set in the network settings UI. r=necko-reviewers,settings-reviewers,kershaw,mossop
Differential Revision: https://phabricator.services.mozilla.com/D228017
2024-11-26 10:04:05 +00:00
Sammy Khamis
b55e774133 Bug 1927644: Choose what to sync UI updates r=sync-reviewers,fluent-reviewers,settings-reviewers,desktop-theme-reviewers,dao,mossop,markh
Differential Revision: https://phabricator.services.mozilla.com/D227434
2024-11-12 23:30:23 +00:00
Dão Gottwald
6663959384 Bug 1924496 - Replace tab-loading.png, tab-connecting.png, and their 2x / inverted variants with loading.svg. r=settings-reviewers,tabbrowser-reviewers,omc-reviewers,aminomancer,mak
Differential Revision: https://phabricator.services.mozilla.com/D225500
2024-10-17 16:39:52 +00:00
jabram
32769d20ee Bug 1865371 - Replace --in-content-box-background with --background-color-box r=cmkm,desktop-theme-reviewers,credential-management-reviewers,omc-reviewers,aminomancer,dao,issammani
Differential Revision: https://phabricator.services.mozilla.com/D222674
2024-10-07 20:15:01 +00:00
Florian Quèze
30f68dada3 Bug 1918702 - Migrate telemetry events to use Glean APIs for intl.ui.browserLanguage, r=chutten,settings-reviewers,mossop.
Differential Revision: https://phabricator.services.mozilla.com/D222605
2024-09-20 13:58:18 +00:00
Marco Bonardo
c23719eb3b Bug 1904909 - PlacesUtils::GatherDataText and GatherDataHtml should not recurse into queries r=daisuke,places-reviewers
There's a few problems in the code gathering text data for nodes.
First it should not recurse into queries (included folder shortcuts) as it's
easy to create infinite recursion with them. The first level is excluded though,
as otherwise it would not be possible to copy contents of left pane roots.
Second it should requery folder shortcut contents in excludeItems results,
as otherwise it's not possible to copy contents of a root as text.
There's no longer the risk of dragging around root folders as this code is only
used for text flavors today, drag&drop uses serializeNode instead.

Differential Revision: https://phabricator.services.mozilla.com/D215068
2024-07-02 13:45:37 +00:00
Javier Rueda
9bd6329fe4 Bug 1896527 - Add aria-labelledby attribute so a11y checks pass. r=mconley,settings-reviewers,ayeddi
Differential Revision: https://phabricator.services.mozilla.com/D210457
2024-05-29 16:17:09 +00:00
Henry Wilkes
27df525213 Bug 1851618 - Allow removing packaged locales from requestedLocales. r=settings-reviewers,eemeli,Gijs
We open up the UI to allow the user to remove locales from their
requestedLocales list, except for the default locale.

Differential Revision: https://phabricator.services.mozilla.com/D209930
2024-05-29 11:10:18 +00:00
Manuel Bucher
992ee2f190 Bug 1454850 - Add "Proxy DNS when using SOCKS v4" option to proxy preferences r=necko-reviewers,fluent-reviewers,settings-reviewers,bolsson,Gijs,valentin
With Bug 1741375 this is a separate config variable.

Differential Revision: https://phabricator.services.mozilla.com/D211060
2024-05-28 11:41:39 +00:00
Manuel Bucher
acacdfe55c Bug 1741375 - Proxy DNS by default when using SOCKS v5 r=necko-reviewers,extension-reviewers,kershaw,perftest-reviewers,robwu,sparky
Initially reported and discussed in Bug 610896.

The simple solution of just flipping the pref `network.proxy.socks_remote_dns`
is risky due to potentially breaking SOCKS4 proxy users.  Proxying
DNS on SOCKS4 isn't supported.  Therefore we speak the incompatible
SOCKS4a protocol when `socks_remote_dns` is enabled, potentially
breaking users setup.

To keep backwards compatibility on SOCKS4 proxy users, that don't have
SOCKS4a support, the pref `network.proxy.socks_remote_dns` is split into
two prefs:

* `network.proxy.socks_remote_dns`: remote DNS for SOCKS4
* `network.proxy.socks5_remote_dns`: remote DNS for SOCKS5.

This way we proxy DNS by default on SOCKS5 while keeping user settings
on SOCKS4.  This is a similar approach to the one described in
[Bug 610896 comment 17].

Proxying DNS in SOCKS4 by default is desireable (See [Bug 610896 comment 11]),
but out of scope for this patch.  [Telemetry] on proxy usage by socks
version indicated that changing the default for SOCKS4 is likely break
some users setup and needs to be taken with more care.

The default values of [proxyDNS] now defaults to true for SOCKS5 proxies.
When creating nsIProxyInfo objects of SOCKS4 proxies, the default value
false is kept.  Setting proxyDNS affects both SOCKS4 and SOCKS5 proxy by
modifying both `socks_remote_dns` and `socks5_remote_dns`.  Therefore no
extension breakage is expected.

The enterprise policy can also modify the new pref
`network.proxy.socks5_remote_dns`.

Follow up bugs filed while implementing:

* Bug 1890542 - Also disable Prefetch non-manual configurations of socks
                proxy
* Bug 1890554 - Use `ProxyInfo::TRANSPARENT_PROXY_RESOLVES_HOST` flag in
                `nsHttpChannel::GetProxyDNSStrategy`
* Bug 1890549 - nsHttpChannel implementation DNS resolve strategy for
                proxies incomplete
* Bug 1893670 - Proxy DNS by default for SOCK4 proxies. Defaulting to
                SOCKS4a

[Bug 610896 comment 17]: https://bugzilla.mozilla.org/show_bug.cgi?id=610896#c17
[Bug 610896 comment 11]: https://bugzilla.mozilla.org/show_bug.cgi?id=610896#c11
[Telemetry]: https://bugzilla.mozilla.org/show_bug.cgi?id=1741375#c27
[proxyDNS]: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/proxy/settings#proxydns

Differential Revision: https://phabricator.services.mozilla.com/D207532
2024-05-21 11:55:26 +00:00
Javier Rueda
03ec1bde2b Bug 1896360 - Disable Add button when no language is selected. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D210206
2024-05-13 21:31:26 +00:00
dschomburg
9f03a40c4f Bug 1853818 - Remove toolkit/branding/accounts.ftl file r=flod,fluent-reviewers,settings-reviewers,credential-management-reviewers,fxview-reviewers,omc-reviewers,firefox-desktop-core-reviewers ,mconley,aminomancer,mak,sgalich,nsharpley,mkaply
Differential Revision: https://phabricator.services.mozilla.com/D190612
2024-04-22 16:24:30 +00:00
Masatoshi Kimura
4d07b74011 Bug 1891926 - Make "network.proxy.system_wpad.allowed" actually work. r=settings-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D207701
2024-04-17 14:49:40 +00:00