Commit graph

175 commits

Author SHA1 Message Date
Perry McManis
f08e3a286c Bug 1848870 - Instrument Shopping ReAnalysis Click r=TravisLong,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D186559
2023-08-28 12:52:21 +00:00
Travis Long
1230c4d6d6 Bug 1847994 - Move Glean metric configuration to its own Nimbus feature.r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D186337
2023-08-17 05:49:44 +00:00
Katherine Patenio
4a50822d0f Bug 1846838 - create analysis in-progress message-bar. r=shopping-reviewers,fluent-reviewers,flod,niklas
Differential Revision: https://phabricator.services.mozilla.com/D185228
2023-08-14 20:20:29 +00:00
Shane Hughes
058e34df6e Bug 1843461 - Set up Shopping Sidebar messaging JSActor. r=jhirsch,Gijs,omc-reviewers,Mardak
Differential Revision: https://phabricator.services.mozilla.com/D184956
2023-08-12 05:06:56 +00:00
Marco Bonardo
d85fcf97d3 Bug 1847765 - Remove some old UI Migrations from BrowserGlue. r=dao
Remove UI migrations up to Firefox 72, that was a watershed version.

Differential Revision: https://phabricator.services.mozilla.com/D185673
2023-08-09 08:42:54 +00:00
Jared Hirsch
164dc80e2c Bug 1846812 - Create ShoppingUtils to handle shopping-related tasks at app startup and app shutdown. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D185206
2023-08-03 13:55:41 +00:00
Chris H-C
b942d1b485 Bug 1839426 - If FOG shutdown happens before init, enforce init r=janerik
To ensure Glean is always shut down, the FOG service must be initialized.
To ensure the FOG service is initialized, we cannot rely on BrowserGlue's
_scheduleStartupIdleTasks, since that isn't guaranteed to be called in short,
busy sessions.
So we rely on BrowserGlue's quit-application-granted listener
(which is before AppShutdownConfirmed, which is before XPCOMShutdown) so long
as BrowserGlue was ever init'd.

(We'd rely on __dispose instead, which runs around AppShutdown/profile-before-change,
but init'ing services that late sometimes prompts OOMs in xpchsell)

(This is important for catching early data in short, busy sessions.
In most cases this code shouldn't run)

Differential Revision: https://phabricator.services.mozilla.com/D181541
2023-07-31 15:32:34 +00:00
Punam Dahiya
0d2b9f2426 Bug 1839764 - Create Opt-in Messaging Surface r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D183176
2023-07-28 20:07:03 +00:00
Gijs Kruitbosch
88c70e7340 Bug 1844665 - use about: page for shopping to ensure process mechanics make sense, r=jhirsch,nika
Differential Revision: https://phabricator.services.mozilla.com/D184744
2023-07-27 21:09:28 +00:00
Niklas Baumgardner
9ab7b37e1c Bug 1844171 - Refactor screenshots component. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D183313
2023-07-27 16:15:02 +00:00
Sebastian Hengst
92e3e4e7e5 Backed out 2 changesets (bug 1844171) for causing mochitest failures on browser_quickactions.js. Complete backout. CLOSED TREE
Backed out changeset 2989a10ac4e6 (bug 1844171)
Backed out changeset 9bc360cfb992 (bug 1844171)
2023-07-26 21:24:18 +02:00
Harshit Sohaney
678a768900 Bug 1839240 - Removed hardcoded uitour permissions and added a migration script to reset defaults. r=pbz,Mardak
Differential Revision: https://phabricator.services.mozilla.com/D182921
2023-07-26 17:57:44 +00:00
Gregory Pappas
3eac12bbd7 Bug 1845311 - Use ChromeUtils.defineLazyGetter in more places r=arai,webdriver-reviewers,geckoview-reviewers,extension-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,anti-tracking-reviewers,sessionstore-reviewers,pbz,joschmidt,robwu,issammani,bytesized,owlish,dao
Differential Revision: https://phabricator.services.mozilla.com/D184481
2023-07-26 16:28:11 +00:00
Niklas Baumgardner
4b0d1b06cc Bug 1844171 - Refactor screenshots component. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D183313
2023-07-26 15:37:45 +00:00
Jared Hirsch
ba24b03ab2 Bug 1840518 - Disable shopping experience if users opt out via settings r=shopping-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D184252
2023-07-26 15:33:40 +00:00
Jared Hirsch
0f7255dfcb Bug 1840847 - Switch shopping sidebar to use Actors for product URL messaging. r=Gijs
Also closes bug 1844101 and bug 1844097.

Differential Revision: https://phabricator.services.mozilla.com/D184048
2023-07-25 13:29:58 +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
Natalia Csoregi
48aa16e3fb Backed out changeset 59fa356e72f6 (bug 1839426) for causing failures on /test_backgroundtask_experiments.js. CLOSED TREE 2023-07-17 20:29:06 +03:00
Chris H-C
3035e424b2 Bug 1839426 - If FOG shutdown happens before init, enforce init r=janerik
To ensure Glean is always shut down, the FOG service must be initialized.
To ensure the FOG service is initialized, we cannot rely on BrowserGlue's
_scheduleStartupIdleTasks, since that isn't guaranteed to be called in short,
busy sessions.
So we rely on BrowserGlue's quit-application-granted listener
(which is before AppShutdownConfirmed, which is before XPCOMShutdown) so long
as BrowserGlue was ever init'd.

(We'd rely on __dispose instead, which runs around AppShutdown/profile-before-change,
but init'ing services that late sometimes prompts OOMs in xpchsell)

(This is important for catching early data in short, busy sessions.
In most cases this code shouldn't run)

Differential Revision: https://phabricator.services.mozilla.com/D181541
2023-07-17 15:08:36 +00:00
Nipun Shukla
6a282805c6 Bug 1797806 - Implemented startup registry check for DisablePrivateBrowsing while EnterprisePolicies are uninitialized r=bhearsum,nalexander,mkaply
Differential Revision: https://phabricator.services.mozilla.com/D181667
2023-06-28 21:04:37 +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
Mark Banner
d016a2bcdc Bug 1839388 - Convert distribution.js to an ES module. r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D181578
2023-06-22 07:22: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
James Teh
1e0dafb66e Bug 1570560: Remove message and disabling of content accessibility for very old JAWS versions. r=nlapre
Differential Revision: https://phabricator.services.mozilla.com/D180778
2023-06-19 04:24:08 +00:00
Mike Conley
3b07efff39 Bug 1838056 - Make sure to load MigrationUtils in BrowserGlue. r=niklas
Bug 1823537 moved the registration of the MigrationWizard JSWindowActor pair
into MigrationUtils from BrowserGlue. This makes it so that the wizard can
be used properly in the scenario where BrowserGlue hasn't yet had a chance
to run (which is the case when we're showing the migration wizard on startup).

This, however, means that the actors aren't being registered unless MigrationUtils
is loaded, which is no longer the case having moved the registration outside of
BrowserGlue.

This means that the embedded migration wizard in about:welcome (and the spotlight
experience in bug 1837051) will not work until that module loads and the
registration occurs.

Differential Revision: https://phabricator.services.mozilla.com/D180725
2023-06-13 19:12:09 +00:00
Stanca Serban
adafbf830d Backed out changeset 90a2e5f4b324 (bug 1838056) for causing mochitests failures in browser_startup.js. CLOSED TREE 2023-06-13 20:52:46 +03:00
Mike Conley
71e99492c3 Bug 1838056 - Make sure to load MigrationUtils in BrowserGlue. r=niklas
Bug 1823537 moved the registration of the MigrationWizard JSWindowActor pair
into MigrationUtils from BrowserGlue. This makes it so that the wizard can
be used properly in the scenario where BrowserGlue hasn't yet had a chance
to run (which is the case when we're showing the migration wizard on startup).

This, however, means that the actors aren't being registered unless MigrationUtils
is loaded, which is no longer the case having moved the registration outside of
BrowserGlue.

This means that the embedded migration wizard in about:welcome (and the spotlight
experience in bug 1837051) will not work until that module loads and the
registration occurs.

Differential Revision: https://phabricator.services.mozilla.com/D180725
2023-06-13 16:46:13 +00: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
Mike Conley
cffc131623 Bug 1823537 - Use new migration wizard for startup and profile reset migrations. r=kpatenio,Gijs,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D180230
2023-06-09 17:39:51 +00:00
Gregory Pappas
fcc5b10abb Bug 1836027 - Remove browser.download.improvements_to_download_panel migrations r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D180290
2023-06-08 15:41:15 +00:00
Mark Banner
6725448902 Bug 1834176 - Convert consumers of NetUtil.jsm to import the ES module directly. r=arai,webdriver-reviewers,perftest-reviewers,valentin,extension-reviewers,devtools-reviewers,sync-reviewers,cookie-reviewers,robwu,afinder,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D178589
2023-06-07 08:42:36 +00:00
Alexandre Lissy
25a528496c Bug 1432719 - Notify user on speechd errors r=eeejay,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D176532
2023-06-06 06:28:14 +00:00
Iulian Moraru
17b7804de7 Backed out changeset 4720a9935e8e (bug 1432719) as per dev's request. CLOSED TREE 2023-06-05 15:52:52 +03:00
Alexandre Lissy
8afed64ccc Bug 1432719 - Notify user on speechd errors r=eeejay,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D176532
2023-06-05 11:32: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
Katherine Patenio
0c1a6fdd6a Bug 1834115 - migrate newtab/lib JSMs that do not import modules to ESMs r=Standard8,fxview-reviewers,omc-reviewers,aminomancer,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D178568
2023-05-30 22:44:42 +00:00
Mike Conley
a3c41c4d0c Bug 1825874 - Offer to import passwords from a CSV file for Safari. r=kpatenio
Safari doesn't let us import all passwords from Keychain at once. Instead,
the user needs to authorize each read from Keychain one by one. This is
not tenable for password import.

Instead, we show the user instructions on how they can export their passwords
from Safari into a CSV file that can then be imported. This patch adds support
for showing those instructions (which had landed earlier in bug 1818789) and
then importing from that CSV file upon selection.

The data-review for the safari_password_file Telemetry event being used here
was done earlier in bug 1824786.

Differential Revision: https://phabricator.services.mozilla.com/D175669
2023-05-29 16:12:41 +00:00
Butkovits Atila
4fe057c425 Backed out changeset 863fae78db03 (bug 1825874) for causing failures at browser_disabled_migrator.js. CLOSED TREE 2023-05-29 18:34:53 +03:00
Mike Conley
0128cbcc0b Bug 1825874 - Offer to import passwords from a CSV file for Safari. r=kpatenio
Safari doesn't let us import all passwords from Keychain at once. Instead,
the user needs to authorize each read from Keychain one by one. This is
not tenable for password import.

Instead, we show the user instructions on how they can export their passwords
from Safari into a CSV file that can then be imported. This patch adds support
for showing those instructions (which had landed earlier in bug 1818789) and
then importing from that CSV file upon selection.

The data-review for the safari_password_file Telemetry event being used here
was done earlier in bug 1824786.

Differential Revision: https://phabricator.services.mozilla.com/D175669
2023-05-29 14:39:59 +00:00
Mark Banner
8b4f426ecf Bug 1834204 - Update more consumers to import ES modules directly. r=kpatenio,geckoview-reviewers,whimboo,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D178590
2023-05-26 11:36:33 +00:00
Kelly Cochrane
383cfa857f Bug 1833218 - Create card container component to be used in Firefox View r=sclements
Creating new revision as a workaround for bug 1834868. The original revision was already R+ed here: https://phabricator.services.mozilla.com/D178473

Differential Revision: https://phabricator.services.mozilla.com/D179073
2023-05-25 13:14:18 +00:00
Stanca Serban
871bb363af Backed out changeset b9da43bde2c9 (bug 1833218) for card_container related failures. CLOSED TREE 2023-05-24 22:13:02 +03:00
Kelly Cochrane
4eccf49f26 Bug 1833218 - Create card container component to be used in Firefox View r=ayeddi,fluent-reviewers,fxview-reviewers,flod,sclements
Differential Revision: https://phabricator.services.mozilla.com/D178473
2023-05-24 17:19:46 +00:00
Katherine Patenio
9dd38d03ab Bug 1830418 - Convert browser/components/customizableui/CustomizableUI.jsm to ESM r=Standard8,devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D177423
2023-05-24 15:52:34 +00:00
Natalia Csoregi
e87ecf485e Backed out 3 changesets (bug 1834222, bug 1834176) for causing RemoteProcessMonitor failures. CLOSED TREE
Backed out changeset 346d3a1568dd (bug 1834222)
Backed out changeset ea1d8b634bfc (bug 1834176)
Backed out changeset 74d1880272d3 (bug 1834176)
2023-05-24 04:29:45 +03:00
Mark Banner
fbc15bdb60 Bug 1834176 - Convert NetUtil.jsm to be an ES system module. r=arai,webdriver-reviewers,perftest-reviewers,valentin,extension-reviewers,devtools-reviewers,sync-reviewers,cookie-reviewers,robwu,afinder,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D178589
2023-05-23 19:09:29 +00:00
Noemi Erli
aa2f146d78 Backed out 2 changesets (bug 1834176) for causing xpc failures in test_unload.js CLOSED TREE
Backed out changeset 57876d77a652 (bug 1834176)
Backed out changeset ae2f0837b528 (bug 1834176)
2023-05-23 12:14:37 +03:00