Commit Graph

3825 Commits

Author SHA1 Message Date
Mike Conley
9c17617fb0 Bug 1811281 - Open new MigrationWizard dialog as a SubDialog in about:preferences rather than a TabDialog. r=Gijs,settings-reviewers
This does a few things to support this new behaviour:

1. Adds the ability for about:preferences category modules to indicate that
   they want to specially handle subcategories. In this particular case, it
   causes the "migrate" subcategory of the "general" category to open up the
   migration dialog.
2. Updates MigrationUtils to open about:preferences#general-migrate if the opener
   is a tabbrowser window.
3. Adds some utility functions to make writing tests easier.
4. Updates existing tests to expect the wizard to be opened in the about:preferences
   subdialog.
5. Makes pressing "Escape" close the migration wizard when it's loaded in the
   migration-dialog.html document.

Differential Revision: https://phabricator.services.mozilla.com/D167873
2023-01-31 15:30:57 +00:00
Gijs Kruitbosch
b965c4660a Bug 1795255 - autofix duplicate imports in tests under browser/, r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D166179
2023-01-31 11:48:41 +00:00
Mark Banner
9f5558b211 Bug 1812977 - Remove now unnecessary import-globals-from statements in browser. r=settings-reviewers,mconley
Differential Revision: https://phabricator.services.mozilla.com/D168070
2023-01-30 19:33:37 +00:00
Jared Hirsch
e1c9146780 Bug 1812819 - Update cookie banner preferences checkbox to toggle reject-only mode. r=settings-reviewers,mconley
Differential Revision: https://phabricator.services.mozilla.com/D168285
2023-01-30 18:51:58 +00:00
DJ
6995a87679 Bug 1811053 - update text for CBH in about:prefs. r=settings-reviewers,fluent-reviewers,flod,mconley
Differential Revision: https://phabricator.services.mozilla.com/D167631
2023-01-27 19:54:02 +00:00
Emilio Cobos Álvarez
a944fa5b0e Bug 1812335 - Remove some XUL image usage from preferences. r=Gijs,settings-reviewers
Use content rather than list-style.

Differential Revision: https://phabricator.services.mozilla.com/D167811
2023-01-25 23:13:53 +00:00
Tim Giles
15388b009a Bug 1801929 - Replace 'Top pick' link with support-link. r=settings-reviewers,mconley
Differential Revision: https://phabricator.services.mozilla.com/D167439
2023-01-25 18:56:21 +00:00
Tim Giles
cf14d1a7ba Bug 1801929 - Replace 'HTTPS-Only Mode' link with support-link. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D167438
2023-01-25 18:56:21 +00:00
Tim Giles
e1601de357 Bug 1801929 - Replace 'Block dangerous and' link with support-link. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D167437
2023-01-25 18:56:20 +00:00
Tim Giles
805c3ab46b Bug 1801929 - Replace 'personalized extension' link with support-link. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D167436
2023-01-25 18:56:20 +00:00
Tim Giles
e85efc391e Bug 1801929 - Replace 'Notifications' link with support-link. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D167435
2023-01-25 18:56:20 +00:00
Tim Giles
996a763c19 Bug 1801929 - Remove unused href assignment code for Firefox Suggest section. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D167434
2023-01-25 18:56:19 +00:00
Tim Giles
cab5b8780d Bug 1801929 - Replace 'Based on your selection' link with support-link. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D167433
2023-01-25 18:56:19 +00:00
Tim Giles
02cc0d7482 Bug 1801929 - Replace 'Improve the Firefox Suggest' link with support-link r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D167432
2023-01-25 18:56:18 +00:00
Tim Giles
e751bd66d3 Bug 1801929 - Replace 'Quick actions' learn more link with support-link. r=settings-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D167431
2023-01-25 18:56:18 +00:00
Tim Giles
30c372508c Bug 1801929 - Replace 'Allow Windows single sign-on' link with support-link r=settings-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D167427
2023-01-25 18:56:16 +00:00
Tim Giles
197e363e8f Bug 1801929 - Replace 'Use a Primary Password' link with support-link. r=settings-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D167426
2023-01-25 18:56:15 +00:00
Tim Giles
16dc0cd6e1 Bug 1801929 - Replace 'Show alerts about passwords' link with support-link r=settings-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D167425
2023-01-25 18:56:15 +00:00
Tim Giles
4ed91e983a Bug 1801929 - Replace link under 'Cookies and Site Data' section with support-link r=settings-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D167424
2023-01-25 18:56:14 +00:00
Tim Giles
4c829b9148 Bug 1801929 - Replace 'Do Not Track' learn more link with support-link. r=settings-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D167423
2023-01-25 18:56:14 +00:00
Tim Giles
334c52a455 Bug 1801929 - Replace learn more link under 'Custom' option with support-link. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D167422
2023-01-25 18:56:14 +00:00
Tim Giles
247058a0de Bug 1801929 - Replace 'Strict' option learn more link with support-link. r=settings-reviewers,mconley
Differential Revision: https://phabricator.services.mozilla.com/D167421
2023-01-25 18:56:13 +00:00
Tim Giles
72d63afdb2 Bug 1801929 - Replace 'Total Cookie Protection' learn more link with support-link. r=pbz,mconley,settings-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D167420
2023-01-25 18:56:13 +00:00
Tim Giles
237bd9a817 Bug 1801929 - Refactor 'Enhanced Tracking Protection' link with support-link r=settings-reviewers,mconley,mstriemer
We need the .learnMore class here, otherwise the "Learn more" link does
not move to a new line, which is the current behavior.

Differential Revision: https://phabricator.services.mozilla.com/D167419
2023-01-25 18:56:12 +00:00
ecp
bdaf4bdace Bug 1811542 - Changed learnMore labels on non mozilla support links in Privacy settings to html:a elements r=tgiles
Differential Revision: https://phabricator.services.mozilla.com/D167469
2023-01-23 18:53:22 +00:00
Mark Banner
2bd093b567 Bug 1811334 - Automatically replace Cu.reportError with console.error (most of browser/components). r=settings-reviewers,mconley
Differential Revision: https://phabricator.services.mozilla.com/D167297
2023-01-20 17:49:21 +00:00
Jared Hirsch
3db2a1803b Bug 1774882 - Avoid the term 'third-party cookies' in Enhanced Tracking Protection preferences. r=settings-reviewers,fluent-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D167094
2023-01-20 16:00:11 +00:00
Paul Zuehlcke
9226ddd41f Bug 1809700 - Refactor tests for detect-only pref. r=timhuang,settings-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D166832
2023-01-20 12:22:10 +00:00
Paul Zuehlcke
c561bb7d44 Bug 1809700 - Refactor detect-only mode into separate pref. r=timhuang,settings-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D166831
2023-01-20 12:22:09 +00:00
Gijs Kruitbosch
5a903703c5 Bug 1810995 - update BrowserTestUtils.loadURI consumers to use loadURIString (automated) - browser - r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D167153
2023-01-19 20:16:42 +00:00
Marian-Vasile Laza
70fd2af8ea Backed out 2 changesets (bug 1809700) for causing automation/mochitest/marionette failures. CLOSED TREE
Backed out changeset 7d58f9afe4b7 (bug 1809700)
Backed out changeset 8a37c048a169 (bug 1809700)
2023-01-19 21:33:08 +02:00
Paul Zuehlcke
19eaf572de Bug 1809700 - Refactor tests for detect-only pref. r=timhuang,settings-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D166832
2023-01-19 17:12:00 +00:00
Paul Zuehlcke
2071ac660b Bug 1809700 - Refactor detect-only mode into separate pref. r=timhuang,settings-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D166831
2023-01-19 17:12:00 +00:00
Tim Giles
6b44824dc0 Bug 1801927 - refactor media control learn more link. r=settings-reviewers,mconley
Replaces the "Control media via keyboard, headset, or virtual interface"
XUL label with the moz-support-link element.

Differential Revision: https://phabricator.services.mozilla.com/D166469
2023-01-18 19:13:34 +00:00
Tim Giles
bcd9cd6b58 Bug 1801927 - refactor configure how firefox connects learn more link. r=mconley
Replaces the "Configure how Nightly connects to the internet" XUL label
with the moz-support-link element.

Differential Revision: https://phabricator.services.mozilla.com/D166468
2023-01-18 19:13:34 +00:00
Tim Giles
980f7a2fe8 Bug 1801927 - refactor cfr learn more links. r=settings-reviewers,mossop
Replaces the "Recommend extensions as you browse" and
"Recommend features as you browse" XUL labels with the moz-support-link
element.

Differential Revision: https://phabricator.services.mozilla.com/D166467
2023-01-18 19:13:32 +00:00
Tim Giles
5eb6e6c483 Bug 1801927 - refactor picture in picture learn more link. r=settings-reviewers,mossop
Replaces the "Enable picture-in-picture video controls" XUL label with
the moz-support-link element.

Differential Revision: https://phabricator.services.mozilla.com/D166466
2023-01-18 19:13:32 +00:00
Tim Giles
4d98cc5271 Bug 1801927 - refactor performance settings learn more link. r=settings-reviewers,mossop
Replaces the "Use recommended performance settings" XUL label with
the moz-support-link element.

Differential Revision: https://phabricator.services.mozilla.com/D166465
2023-01-18 19:13:31 +00:00
Tim Giles
2dfc0597c8 Bug 1801927 - refactor DRM content learn more link. r=settings-reviewers,mossop
Replaces the "Play DRM-controlled content" XUL label with the
moz-support-link element.

Differential Revision: https://phabricator.services.mozilla.com/D166464
2023-01-18 19:13:31 +00:00
Tim Giles
653373bc75 Bug 1801927 - refactor containers learn more link. r=hjones,settings-reviewers,mconley
Replaces the XUL label for the "Enable Container Tabs" with the
moz-support-link element

Differential Revision: https://phabricator.services.mozilla.com/D166463
2023-01-18 19:13:31 +00:00
Danny Colin
3fdca19dac Bug 1316727 - Ensure we cannot create a containers with no name r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D165488
2023-01-18 18:16:32 +00:00
Emilio Cobos Álvarez
7b6b803400 Bug 1809633 - Don't set --inner-height in the dialog stack. r=pbz,settings-reviewers
This fixes the content cropping. The issue is that when there are
multiple subdialogs, we set the --inner-height of the latest (smaller in
this case) dialog on the dialog stack, overriding the inner-height for
other frames as well.

With XUL layout we flexed anyways instead of honoring the height:
var(--inner-height), which papered over the problem because the dialog
parent had a min-height.

Rework the window modal offset so that we don't need to set the
--inner-height variable on the parent.

Differential Revision: https://phabricator.services.mozilla.com/D166532
2023-01-11 21:01:27 +00:00
Jared Hirsch
42530ae257 Bug 1800675 - Add about:preferences entry for cookie banner handling. r=fluent-reviewers,flod,mconley
Differential Revision: https://phabricator.services.mozilla.com/D164632
2023-01-11 15:54:01 +00:00
Drew Willcoxon
51937fb742 Bug 1808697 - Allow Merino and remote settings suggestions to be passed separately to ensureQuickSuggestInit(). r=daleharvey
`QuickSuggestTestUtils.ensureQuickSuggestInit()` was written before Merino, so
it assumes the suggestion objects passed in are remote settings suggestions.
This revision modifies it so Merino and remote settings suggestions can both be
passed in. That makes it a little nicer for tests that need to test Merino
suggestions in particular, like navigational suggestions, dynamic Wikipedia,
etc.

Another motivation for this change is that it makes it clear which type of
suggestion is being passed to `ensureQuickSuggestInit()`. Unfortunately Merino
suggestion objects are slightly different from remote settings result objects
(`block_id` vs. `id` for example), which are both different from UrlbarResult
objects, and it can be confusing when reading tests. Since "result" is the name
of remote settings objects used internally in the remote settings client, I've
used that term here, and I've updated all callers to use it instead of
"suggestion".

This also makes `MerinoTestUtils` and `QuickSuggestTestUtils` singletons.
Otherwise the new `MerinoTestUtils` instance used inside `QuickSuggestTestUtils`
isn't the same as the one used in the test that calls into
`QuickSuggestTestUtils`, which is very confusing. This made me realize it's a
good idea for these test utils objects to be singletons.

Finally I removed `is_top_pick` handling from the remote settings client and
remote settings suggestions, since the related test is now using Merino. I also
removed `_test_is_best_match` since only one test was using it and it's not
necessary.

Depends on D166019

Differential Revision: https://phabricator.services.mozilla.com/D166050
2023-01-09 20:46:00 +00:00
Shane Hughes
60e9cca3ef Bug 1806903 - More from Mozilla - inline flow for description links. r=pdahiya,settings-reviewers,amy,dao
Differential Revision: https://phabricator.services.mozilla.com/D165346
2023-01-05 20:08:58 +00:00
Tim Huang
2a9f4cc883 Bug 1808212 - Part 3: Adding the content blocking pref setting for the level2 list pref in private windows. r=anti-tracking-reviewers,bvandersloot
This patch adds the content blocking pref setting for the level 2 list
pref in private windows. Also, we add tests for the new setting in this
patch.

Depends on D165938

Differential Revision: https://phabricator.services.mozilla.com/D165939
2023-01-05 13:37:33 +00:00
Emilio Cobos Álvarez
59e7b13fee Bug 1805414 - Remove nsMenuFrame and nsMenuParent. r=smaug,Jamie,desktop-theme-reviewers,settings-reviewers,dao
Move most the event handling stuff to the DOM. I've left nsMenuBarFrame
for now, but I will be removing that in the future.

The basic set up is:

  * nsMenuParent becomes XULMenuParentElement (menubar or popup, manages
    the current active menu item)

  * nsMenuFrame -> XULButtonElements that return true for IsMenu().
    Can't use XULMenuElement because of <button type=menu>, which
    behaves like a, well, menu.

This makes the a11y events for menus (DOMMenuItem{Active,Inactive}) make
sense (before that we were firing duplicate Inactive events etc, and the
event order was rather suspicious).

Differential Revision: https://phabricator.services.mozilla.com/D164210
2023-01-04 19:01:13 +00:00
Csoregi Natalia
16528aebb2 Backed out changeset f11c529b2407 (bug 1805414) for failures on test_submenuClose.xhtml and nsMenuPopupFrame.cpp. CLOSED TREE 2023-01-04 01:48:30 +02:00
Emilio Cobos Álvarez
dd6fd3a3b0 Bug 1805414 - Remove nsMenuFrame and nsMenuParent. r=smaug,Jamie,desktop-theme-reviewers,settings-reviewers,dao
Move most the event handling stuff to the DOM. I've left nsMenuBarFrame
for now, but I will be removing that in the future.

The basic set up is:

  * nsMenuParent becomes XULMenuParentElement (menubar or popup, manages
    the current active menu item)

  * nsMenuFrame -> XULButtonElements that return true for IsMenu().
    Can't use XULMenuElement because of <button type=menu>, which
    behaves like a, well, menu.

This makes the a11y events for menus (DOMMenuItem{Active,Inactive}) make
sense (before that we were firing duplicate Inactive events etc, and the
event order was rather suspicious).

Differential Revision: https://phabricator.services.mozilla.com/D164210
2023-01-03 22:06:01 +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