Commit graph

4018 commits

Author SHA1 Message Date
Gregory Pappas
8a35d5cf5f Bug 1845311 - [Part 2] Use ChromeUtils.defineLazyGetter in more places r=arai,webcompat-reviewers,necko-reviewers,extension-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,sync-reviewers,anti-tracking-reviewers,tabbrowser-reviewers,bytesized,twisniewski,sgalich,mak,kershaw,sclements,pbz,robwu,geckoview-reviewers,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D184623
2023-08-01 23:01:02 +00:00
Mark Banner
26f043124f Bug 1845252 - Update consumers of FxAccountsCommon to import the ES module directly. r=markh,settings-reviewers,credential-management-reviewers,sync-reviewers,sgalich,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D184780
2023-07-31 13:05:44 +00:00
Stanca Serban
65e766744a Backed out 2 changesets (bug 1845252) for causing mochitests failures in browser_fxa_web_channel.js. CLOSED TREE
Backed out changeset d58bbd55cb35 (bug 1845252)
Backed out changeset 683a87892126 (bug 1845252)
2023-07-28 21:29:30 +03:00
Mark Banner
b08a8b3acd Bug 1845252 - Update consumers of FxAccountsCommon to import the ES module directly. r=markh,settings-reviewers,credential-management-reviewers,sync-reviewers,sgalich,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D184780
2023-07-28 17:30:39 +00:00
Greg Tatum
679b17cf8c Bug 1845339 - Use install/remove rather than download/delete for translations settings; r=nordzilla,fluent-reviewers,settings-reviewers,flod,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D184491
2023-07-26 14:59:30 +00:00
Mark Banner
6fe765f7ca Bug 1845079 - Update more consumers to import ES modules directly. r=arai,settings-reviewers,credential-management-reviewers,sync-reviewers,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D184371
2023-07-24 15:32:45 +00:00
Malte Juergens
05a00d1692 Bug 1720458: Do not isolate https-only-load-insecure by origin attributes r=fluent-reviewers,settings-reviewers,flod,ckerschb,Gijs
Do not isolate `https-only-load-insecure` by origin attributes. This way the HTTPS-Only exceptions will behave similar to the `cookie` permission. This means that exceptions set in the system settings will also apply to private windows, but exceptions set in private windows via the identity pane will be reset after closing the browser.

Depends on D182761

Differential Revision: https://phabricator.services.mozilla.com/D183745
2023-07-24 13:31:19 +00:00
Malte Juergens
31665cb4bb Bug 1757297: Only work with http scheme for HTTPS-Only exceptions r=freddyb,settings-reviewers,Gijs
- Update the HTTPS-Only dropdown in the site identity pane to always set exceptions for the http version of the current origin.
- Add new parameter `forcedHTTP` to `gPermissionManager`, in order to only allow origins with a http scheme to be added in the HTTPS-Only section of the settings. This means when a https URL is added as an exeption, it will automatically be converted into a http one.
- Add a migration to convert all existing HTTPS-Only exceptions with a https scheme to a http scheme.
- Update `browser_https_only_exceptions.js` and `browser_identityPopup_HttpsOnlyMode.js` to account for this new behaviour.

Differential Revision: https://phabricator.services.mozilla.com/D182761
2023-07-24 13:31:19 +00:00
Morgan Rae Reschenberg
1bb8233b60 Bug 1628476: Add keyboard navigation pref to allow focus mode changes on macOS r=Jamie,fluent-reviewers,settings-reviewers,flod,mconley
Differential Revision: https://phabricator.services.mozilla.com/D182266
2023-07-17 23:11:41 +00:00
Cristian Tuns
38c979ee94 Backed out changeset 88c664a821cb (bug 1628476) for causing multiple bc failures browser/* CLOSED TREE 2023-07-14 20:34:02 -04:00
Morgan Rae Reschenberg
53af615a49 Bug 1628476: Add keyboard navigation pref to allow focus mode changes on macOS r=Jamie,fluent-reviewers,settings-reviewers,flod,mconley
Differential Revision: https://phabricator.services.mozilla.com/D182266
2023-07-14 23:28:46 +00:00
Mark Banner
0b2d2afdea Bug 1837176 - Convert imports of httpd.js to consume the ES module directly. r=necko-reviewers,webcompat-reviewers,extension-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,cookie-reviewers,twisniewski,robwu,issammani,bytesized,pbz,valentin
Differential Revision: https://phabricator.services.mozilla.com/D181159
2023-07-12 13:38:34 +00:00
Malte Juergens
87c5e45f0f Bug 1835792: Enable HTTPS-Only exception button if HTTPS-First is enabled r=freddyb,settings-reviewers
This should be seen as a temporary change since the UI probably needs a slightly bigger update if it should manage both HTTPS-Only and HTTPS-First.

Depends on D179424

Differential Revision: https://phabricator.services.mozilla.com/D179425
2023-07-11 14:27:38 +00:00
Mike Conley
6321a063dc Bug 1823489 - Have the migration-wizard element create the panel-list in its shadow root. r=kpatenio,negin,desktop-theme-reviewers,dao
This involves opening the shadow root of the migration wizard, as the panel-list
really isn't designed to handle being embedded within a closed shadow root.

Differential Revision: https://phabricator.services.mozilla.com/D182484
2023-07-10 18:31:19 +00:00
Cristina Horotan
9f7140497c Backed out 2 changesets (bug 1823489) for causing bc failures at browser_multistage_spotlight.js
Backed out changeset 684648252672 (bug 1823489)
Backed out changeset 15437d29bacc (bug 1823489)
2023-07-10 17:47:20 +03:00
Mike Conley
c6172c47a1 Bug 1823489 - Have the migration-wizard element create the panel-list in its shadow root. r=kpatenio,negin,desktop-theme-reviewers,dao
This involves opening the shadow root of the migration wizard, as the panel-list
really isn't designed to handle being embedded within a closed shadow root.

Differential Revision: https://phabricator.services.mozilla.com/D182484
2023-07-10 13:34:04 +00:00
Stanca Serban
31702d1881 Backed out 2 changesets (bug 1823489) for causing multiple bc failures.
Backed out changeset da128472125a (bug 1823489)
Backed out changeset dd5996a4e7d2 (bug 1823489)
2023-07-08 21:11:49 +03:00
Mike Conley
026715310b Bug 1823489 - Have the migration-wizard element create the panel-list in its shadow root. r=kpatenio,negin,desktop-theme-reviewers,dao
This involves opening the shadow root of the migration wizard, as the panel-list
really isn't designed to handle being embedded within a closed shadow root.

Differential Revision: https://phabricator.services.mozilla.com/D182484
2023-07-08 16:18:01 +00:00
Noemi Erli
d9678cc655 Backed out 2 changesets (bug 1823489) for causing failures in test_panel_list_min_width_from_anchor.html
Backed out changeset abe4ae7a4c01 (bug 1823489)
Backed out changeset ccb73c7c777a (bug 1823489)
2023-07-07 19:05:56 +03:00
Mike Conley
068a531975 Bug 1823489 - Have the migration-wizard element create the panel-list in its shadow root. r=kpatenio,negin,desktop-theme-reviewers,dao
This involves opening the shadow root of the migration wizard, as the panel-list
really isn't designed to handle being embedded within a closed shadow root.

Differential Revision: https://phabricator.services.mozilla.com/D182484
2023-07-07 15:19:49 +00:00
Sergey Galich
fa8b0690ca Bug 1838872 - removing extensions.formautofill.creditCards.available pref r=settings-reviewers,credential-management-reviewers,mconley,issammani
Differential Revision: https://phabricator.services.mozilla.com/D182693
2023-07-05 22:46:44 +00:00
Greg Tatum
507a654c29 Bug 1840904 - Remove language management operations from the TranslationsChild; r=nordzilla,settings-reviewers,mconley
Differential Revision: https://phabricator.services.mozilla.com/D182393
2023-07-05 18:09:13 +00:00
Emilio Cobos Álvarez
2793a6f959 Bug 1841186 - Ensure that if there's room for both homepage button texts, they fit without line-wrapping. r=settings-reviewers,mconley
Depends on D182662

Differential Revision: https://phabricator.services.mozilla.com/D182663
2023-07-04 20:23:14 +00:00
Emilio Cobos Álvarez
918081d917 Bug 1841186 - Ensure homepage and new tabs menulists align. r=settings-reviewers,mconley
By simplifying the markup a bit.

Differential Revision: https://phabricator.services.mozilla.com/D182662
2023-07-04 20:23:14 +00:00
Greg Tatum
c18ddeaa00 Bug 1817084 - Remove old translations code; r=settings-reviewers,fluent-reviewers,nordzilla,mconley,flod
Differential Revision: https://phabricator.services.mozilla.com/D181700
2023-06-23 13:36:13 +00:00
Katherine Patenio
130ce23c4c Bug 1834831 - update imports of browser/modules JSMs r=webdriver-reviewers,perftest-reviewers,zeid,extension-reviewers,settings-reviewers,pip-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,sessionstore-reviewers,tabbrowser-reviewers,whimboo,mhowell,sgalich,robwu,sparky,Standard8,mconley,dao,sclements
Differential Revision: https://phabricator.services.mozilla.com/D179169
2023-06-19 18:44:48 +00:00
Cristian Tuns
110cfccc1f Backed out 2 changesets (bug 1834831) for causing node failures with checkBundles CLOSED TREE
Backed out changeset 58b351a155c8 (bug 1834831)
Backed out changeset 1acbb5231d14 (bug 1834831)
2023-06-19 13:22:35 -04:00
Katherine Patenio
a73f6ec769 Bug 1834831 - update imports of browser/modules JSMs r=webdriver-reviewers,perftest-reviewers,zeid,extension-reviewers,settings-reviewers,pip-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,sessionstore-reviewers,tabbrowser-reviewers,whimboo,mhowell,sgalich,robwu,sparky,Standard8,mconley,dao,sclements
Differential Revision: https://phabricator.services.mozilla.com/D179169
2023-06-19 16:46:18 +00:00
Gijs Kruitbosch
2766aa90e5 Bug 1838632 - fix connection dialog autologin checkbox to have a tooltip as intended, r=fluent-reviewers,flod,mconley
Depends on D181228

Differential Revision: https://phabricator.services.mozilla.com/D181229
2023-06-19 16:30:16 +00:00
Gijs Kruitbosch
0782111824 Bug 1838549 - fix sync now button label disappearing by using separate fluent strings for both states, r=markh,fluent-reviewers,flod,mconley
Differential Revision: https://phabricator.services.mozilla.com/D181080
2023-06-15 14:02:49 +00:00
Itiel
cf26dda371 Bug 1830679 - Convert element.setAttribute(data-l10n-{id,args}) uses in the codebase to document.l10n.setAttributes(element, id, args) r=eemeli,Gijs,willdurand,extension-reviewers,settings-reviewers,search-reviewers,devtools-reviewers,fxview-reviewers,mconley,Standard8,jdescottes,kcochrane,tabbrowser-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D176791
2023-06-14 17:16:39 +00:00
Iulian Moraru
1a03d0ff0d Backed out changeset 76c5afdda762 (bug 1830679) for causing xpcshell failures on test_VariablesView_filtering-without-controller.js. CLOSED TREE 2023-06-12 22:03:43 +03:00
Karandeep
7cb8d5c951 Bug 1643887 - Move handling of search engine one-off hidden from preferences into the search settings. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D180229
2023-06-12 18:03:52 +00:00
Itiel
d6ff8a9975 Bug 1830679 - Convert element.setAttribute(data-l10n-{id,args}) uses in the codebase to document.l10n.setAttributes(element, id, args) r=eemeli,Gijs,willdurand,extension-reviewers,settings-reviewers,search-reviewers,devtools-reviewers,fxview-reviewers,mconley,Standard8,jdescottes,kcochrane,tabbrowser-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D176791
2023-06-12 17:16:35 +00:00
Itiel
b9b95ccd85 Bug 1836344 - Convert the Download and Delete button in the Translations section to have label and accesskey r=gregtatum,settings-reviewers,Gijs,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D179718
2023-06-07 15:45:14 +00:00
Cristina Horotan
6651c13d9f Backed out changeset a8bcb8de017f (bug 1836344) for causing bc failures at browser_manage_languages.js on a CLOSED TREE 2023-06-07 08:32:51 +03:00
Itiel
90c429f31e Bug 1836344 - Convert the Download and Delete button in the Translations section to have label and accesskey r=gregtatum,settings-reviewers,Gijs,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D179718
2023-06-07 04:14:24 +00:00
Gijs Kruitbosch
75d012d803 Bug 1831259 - prevent initialization re-entrancy for preference panes, r=mconley
This should fix the issue experienced by the reporter. It also pushes the
re-entrancy guard into the the 'init' method we define on gCategoryInits
objects, and removes the asynchronicity which was only there for fluent's sake.

Instead of blocking the insertion on fluent, which meant that for the in-page
find functionality we do N initializations and fluent passes, we make each of
the 2 consumers responsible for checking translation has completed. This means
find in page now just has 1 fluent pass, instead of N passes for N categories.
This should speed up the find in page initialization, and means initialization
of a category is now sync instead of async.

Differential Revision: https://phabricator.services.mozilla.com/D178232
2023-06-06 12:16:38 +00:00
ganna
b09399d46c Bug 1814424 - Use moz-support-link for the helpButton link in preferences.xhtml r=tgiles,settings-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D179849
2023-06-05 14:27:39 +00:00
Rob Wu
3c0c3a2676 Bug 1836482 - Replace AddonManager.jsm imports with AddonManager.sys.mjs r=Standard8,webcompat-reviewers,twisniewski
This patch was generated as follows:

Run:
`./mach esmify --imports . --prefix=toolkit/mozapps/extensions/AddonManager`
In the output there are linter/prettifier errors due to unused
XPCOMUtils or separate importESModule calls. These have been fixed
manually and verified with `./mach lint --outgoing`.

The `esmify` script also inserts many unwanted newlines around imports
that are broken on two lines due to length. Due to the number of these,
I fixed them programatically.

1. Create patch from the changes so far.
2. From the patch, delete all lines that consist of "+" (i.e. added blank line).
3. Reset the working dir and apply the revised patch.
4. Verify that the diff between step 1 and 3 looks reasonable.
5. Verify that this patch as a whole looks reasonable.

Commands:

```
git diff > rename.diff
:%g/^+$/d
git commit -va -m WIP-rename
git revert HEAD
git apply --recount rename.diff
git diff HEAD^  # and verify that the removed lines are ok.
git commit -va  # one last review to verify correctness of whole patch.
git rebase -i HEAD~3  # drop the WIP + reverted commit, pick only the last.
```

`git apply` has the `--recount` option to force it to ignore mismatches
in line counts, which happens because we deleted added lines (^+$)
without fixing up the line counts in the file headers.

Differential Revision: https://phabricator.services.mozilla.com/D179874
2023-06-04 13:44:45 +00:00
Mark Banner
5d59c7aecd Bug 1824613 - Convert consumers of toolkit/mozapps/extensions/ to import ES modules directly. r=extension-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,sync-reviewers,sgalich,bytesized,robwu,skhamis
Depends on D179819

Differential Revision: https://phabricator.services.mozilla.com/D179820
2023-06-02 20:00:35 +00:00
Butkovits Atila
87ba454e5c Backed out changeset c34f2e337a31 (bug 1831259) for causing Bug 1836325 and Bug 1836332. a=backout 2023-06-01 21:44:15 +03:00
Gijs Kruitbosch
59070c7a5d Bug 1831259 - prevent initialization re-entrancy for preference panes, r=mconley
This should fix the issue experienced by the reporter. It also pushes the
re-entrancy guard into the the 'init' method we define on gCategoryInits
objects, and removes the asynchronicity which was only there for fluent's sake.

Instead of blocking the insertion on fluent, which meant that for the in-page
find functionality we do N initializations and fluent passes, we make each of
the 2 consumers responsible for checking translation has completed. This means
find in page now just has 1 fluent pass, instead of N passes for N categories.
This should speed up the find in page initialization, and means initialization
of a category is now sync instead of async.

Differential Revision: https://phabricator.services.mozilla.com/D178232
2023-05-31 22:24:26 +00:00
Rob Wu
fcdd79b348 Bug 1835559 - Ensure that text content survives translation r=application-update-reviewers,flod,fluent-reviewers,nalexander,settings-reviewers,Gijs
When an element is re-translated, the textContent is currently dropped.
To avoid that, make it an explicit part of the message.

This requires changing the l10n message ID.
Ideally, the message ID wouldn't change, but that is not possible until
the content can be preserved as a feature, i.e.
https://github.com/projectfluent/fluent.js/issues/169

Differential Revision: https://phabricator.services.mozilla.com/D179323
2023-05-31 19:58:55 +00:00
Cosmin Sabou
8dd0d2bebe Backed out changeset 81758aba6ab3 (bug 1835559) for causing bc failures on browser_aboutDialog_fc_downloadOptIn.js. CLOSED TREE 2023-05-31 22:28:23 +03:00
Rob Wu
910882d447 Bug 1835559 - Ensure that text content survives translation r=application-update-reviewers,flod,fluent-reviewers,nalexander,settings-reviewers,Gijs
When an element is re-translated, the textContent is currently dropped.
To avoid that, make it an explicit part of the message.

This requires changing the l10n message ID.
Ideally, the message ID wouldn't change, but that is not possible until
the content can be preserved as a feature, i.e.
https://github.com/projectfluent/fluent.js/issues/169

Differential Revision: https://phabricator.services.mozilla.com/D179323
2023-05-31 15:43:24 +00:00
Saira Abdulla
9691ab4a5f Bug 1824612 - Convert consumers of toolkit/components/extensions to ES modules. r=robwu,webcompat-reviewers,geckoview-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,cookie-reviewers,twisniewski,sgalich,valentin,nalexander,mconley,m_kato
Depends on D175553

Differential Revision: https://phabricator.services.mozilla.com/D176005
2023-05-31 15:27:03 +00:00
Iulian Moraru
90b739a400 Backed out 2 changesets (bug 1824612) for causing dt failures on browser_dbg-features-source-tree.js. CLOSED TREE
Backed out changeset c3f38adc818e (bug 1824612)
Backed out changeset 58ba8bb3398a (bug 1824612)
2023-05-31 17:28:16 +03:00
Gregory Pappas
941d7766f8 Bug 1822864 - Remove browser.download.improvements_to_download_panel pref r=Gijs,settings-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D179300
2023-05-31 10:29:37 +00:00
Saira Abdulla
2e8db5969a Bug 1824612 - Convert consumers of toolkit/components/extensions to ES modules. r=robwu,webcompat-reviewers,geckoview-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,cookie-reviewers,twisniewski,sgalich,valentin,nalexander,mconley,m_kato
Depends on D175553

Differential Revision: https://phabricator.services.mozilla.com/D176005
2023-05-31 10:21:37 +00:00