Commit graph

36218 commits

Author SHA1 Message Date
Marco Bonardo
ba5469f14e Bug 1816901 - Remove the Places GuidHelper. r=daisuke,sync-reviewers,skhamis
Depends on D180411

Differential Revision: https://phabricator.services.mozilla.com/D180412
2023-06-24 07:16:51 +00:00
Marco Bonardo
496645c2b9 Bug 1816901 - Stop using promiseItemId in product code. r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D180410
2023-06-24 07:16:51 +00:00
Mike Conley
4204288807 Bug 1840108 - Fix InternalTestingProfileMigrator to work with extension migration. r=kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D181896
2023-06-23 20:21:05 +00:00
Marco Bonardo
dcb2c38e52 Bug 1834804 - More reliable downloads panel states. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D180546
2023-06-23 19:27:06 +00:00
negin
90e34bbcb9 Bug 1837051 - Add Embedded Migration Wizard support for spotlight dialog r=omc-reviewers,pdahiya,mconley
Differential Revision: https://phabricator.services.mozilla.com/D180713
2023-06-23 19:23:51 +00:00
Greg Tatum
0293de089a Bug 1835418 - Report the status of the translation to the url bar tooltip; r=nordzilla,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D181800
2023-06-23 15:55:12 +00:00
Peter Van der Beken
b52a207bb0 Bug 1522052 - remove nsIDOMChromeWindow. r=dom-core,webdriver-reviewers,devtools-reviewers,whimboo,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D34310
2023-06-23 14:21:05 +00:00
Mike Conley
c8f966abac Bug 1838926 - Add ASRouter targeting for whether or not the user has ever used the migration wizard to import passwords from a CSV file. r=emcminn
Differential Revision: https://phabricator.services.mozilla.com/D181287
2023-06-23 14:14:26 +00:00
Mike Conley
5fba386fe7 Bug 1838926 - Record interaction preference when CSV passwords are imported from the migration wizard. data-review=jhirssch,r=tgiles
Differential Revision: https://phabricator.services.mozilla.com/D181286
2023-06-23 14:14:26 +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
Dale Harvey
3650d1d639 Bug 1121903 - Use encodeURIComponent for keyword url encoding. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D181697
2023-06-23 13:31:16 +00:00
William Durand
c8e1ee2af1 Bug 1839830 - Integrate AMBrowserExtensionsImport with the migration wizard UI. r=mconley,mixedpuppy
Depends on D181465

Differential Revision: https://phabricator.services.mozilla.com/D181747
2023-06-23 12:25:55 +00:00
Jonathan Sudiaman
d87c046ac4 Bug 1831118 - Open tabs additional functionality r=kcochrane
Differential Revision: https://phabricator.services.mozilla.com/D181644
2023-06-23 11:59:45 +00:00
Erik Nordin
3ebc72f453 Bug 1835344 - Ensure translations panel respects engine support r=gregtatum
Ensures that the translations panel cannot be opened if the
translations engine is not supported.

Differential Revision: https://phabricator.services.mozilla.com/D181295
2023-06-23 00:11:14 +00:00
Mike Conley
627b5ca99a Bug 1839827 - Display a generic error message for password and bookmark file migrations despite the exception. r=kpatenio,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D181801
2023-06-23 00:00:52 +00:00
James Teow
93e78407ca Bug 1466103 - Add telemetry for adaptive history results in the address bar - r=mak
Differential Revision: https://phabricator.services.mozilla.com/D180168
2023-06-22 23:36:23 +00:00
Mike Conley
1286641adf Bug 1839872 - Fix progress and success states for file migrators. r=kpatenio
In bug 1836555, we changed the progress update messages from MigrationWizardParent
from being a binary "in progress" and "not in progress" to a series of possible
values defined under MigrationWizardConstants.PROGRESS_VALUE.

We forgot to update the file migrators to use this, and they were still using
the old `inProgress` flag. This means that the migration occurred, but progress
updates weren't properly displayed.

We had a test for this, but the test was actually broken - it was querying for
the progress groups using a broken query selector. I've fixed the test, added
an additional check to ensure that the progress icons are in the completed
state, and confirmed that the test fails without the fix, and passes with it.

Differential Revision: https://phabricator.services.mozilla.com/D181783
2023-06-22 23:00:48 +00:00
Greg Tatum
35c95640e3 Bug 1835871 - Fix the aria-labelledby attribute for the translations panel; r=nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D181797
2023-06-22 21:11:40 +00:00
William Durand
e5c860d78a Bug 1838465 - Show an appmenu notification when the user has imported add-ons to install. r=rpl,flod
Depends on D181398

Differential Revision: https://phabricator.services.mozilla.com/D181465
2023-06-22 15:34:14 +00:00
Gregory Pappas
4b964d39ba Bug 1814905 - Implement action.getUserSettings r=robwu,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D169102
2023-06-22 15:22:19 +00:00
Mike Kaply
ef9949cde2 Bug 1838447 - Exclude EOL distribution IDs from enterprise telemetry. r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D180947
2023-06-22 14:55:24 +00:00
Mike Conley
1d8d8746e8 Bug 1839462 - Add keyed histogram to record the number of matched extensions during migration. data-review=jhirsch, r=tgiles
Depends on D181566

Differential Revision: https://phabricator.services.mozilla.com/D181567
2023-06-22 13:48:51 +00:00
Mike Conley
6512795a6c Bug 1839462 - Modify migration event telemetry for extensions migration. data-review=jhirsch, r=tgiles
Depends on D181298

Differential Revision: https://phabricator.services.mozilla.com/D181566
2023-06-22 13:48:51 +00:00
James Teow
f0a56b58b8 Bug 1781806 - Trigger afterTabSwitchFocusChange in the Urlbar even if the tab is already selected and is going to receive a TabSelect event - r=tabbrowser-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D181115
2023-06-22 12:06:43 +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
Drew Willcoxon
0e465234f7 Bug 1839558 - Allow suggestion scores to be specified in Nimbus. r=daisuke
This adds a `quickSuggestScoreMap` Nimbus variable that lets experiments
override suggestion scores. It maps from telemetry types to score values. For
example:

```
"quickSuggestScoreMap": {
  "amo": 0.25,
  "adm_sponsored": 0.3
}
```

In this example, addon suggestions will always have a score of 0.25, and
sponsored suggestions will always have a score of 0.3. Of course, different
branches within an experiment and different experiments can set different
scores.

While working on this, I saw we have a bug when we try to look up the
`BaseFeature` for a result. To do the lookup, we look up the result's
`telemetryType` in `FEATURE_NAMES_BY_TELEMETRY_TYPE`. That's a problem for `adm`
suggestions because the `telemetryType` will be either `adm_sponsored` or
`adm_nonsponsored`, but neither of those is present in
`FEATURE_NAMES_BY_TELEMETRY_TYPE` -- only `adm` is.

To fix it, I added back the `provider` property to result payloads that I
previously removed, and I added `BaseFeature.merinoProvider` so each feature can
specify its Merino provider. Then, `QuickSuggest` can build a map from Merino
provider names to features, allowing us to look up features without needing to
hardcode something like `FEATURE_NAMES_BY_TELEMETRY_TYPE` or
`FEATURE_NAMES_BY_MERINO_PROVIDER`.

Since I added back the `provider` property, I had to update a lot of tests. (As
a follow up, it would be nice to centralize the creation of expected result
objects in the test helper.)

I also added `BaseFeature.getSuggestionTelemetryType()` to help implement the
score map and to better formalize the idea that telemetry types are an important
property that all quick suggest results should include.

Differential Revision: https://phabricator.services.mozilla.com/D181709
2023-06-22 03:55:40 +00:00
Norisz Fay
e86f1fa0e9 Backed out 5 changesets (bug 1838829) for causing mochitest failures CLOSED TREE
Backed out changeset 693d34c8447d (bug 1838829)
Backed out changeset 903d9ff4afaa (bug 1838829)
Backed out changeset 5e51feff7467 (bug 1838829)
Backed out changeset e125be49d2a6 (bug 1838829)
Backed out changeset 1a8cf3c83dc4 (bug 1838829)
2023-06-22 03:37:07 +03:00
Norisz Fay
9c4f20beaf Backed out 2 changesets (bug 1839462) as requested by dev CLOSED TREE
Backed out changeset a61155e9121f (bug 1839462)
Backed out changeset 99d02fe665aa (bug 1839462)
2023-06-21 23:42:10 +03:00
Mike Conley
ef9b97ed76 Bug 1839462 - Add keyed histogram to record the number of matched extensions during migration. data-review=jhirsch, r=tgiles
Depends on D181566

Differential Revision: https://phabricator.services.mozilla.com/D181567
2023-06-21 20:24:57 +00:00
Mike Conley
84759ac45c Bug 1839462 - Modify migration event telemetry for extensions migration. data-review=jhirsch, r=tgiles
Depends on D181298

Differential Revision: https://phabricator.services.mozilla.com/D181566
2023-06-21 20:24:57 +00:00
Tim Giles
5f1e2be590 Bug 1836773 - Disable importing extensions in the migration wizard by default. r=mconley
Depends on D180876

Differential Revision: https://phabricator.services.mozilla.com/D181298
2023-06-21 20:24:57 +00:00
Tim Giles
222be426df Bug 1836773 - Support the new MigrationResource in the migration wizard. r=mconley,willdurand,fluent-reviewers,desktop-theme-reviewers,flod
Enables support for migrating extensions from Chrome once we have the
API to match and install extensions from the add-ons store.

Adds a new ProgressState object to delineate between various progress
states. This new object has four properties: value, message, linkURL,
and linkText. See migration-wizard-constants for more information.

MigrationWizard.#onShowingProgress uses the new ProgressState object
to handle the new LOADING, SUCCESS, ERROR and INFO values for progress.
This has the added benefit of updating the UI on error cases for the
existing resource groups.

Adds a new details object parameter to MigratorBase.migrate which is
currently used in the Chrome extensions import case.
See ChromeProfileMigrator.GetExtensionsResource for an example of
creating this details object.
See MigrationWizardParent.#doBrowserMigration for example usage of this
details object.

Adds support-text links under each resource type group in the markup.
This is currently used only by extensions in the partial matching and
no matching extensions cases.

Refactor MigrationUtils.installExtensionsWrapper to return an array
with the progress state (LOADING, SUCCESS, ERROR, INFO) and any
imported extensions.

Depends on D180005

Differential Revision: https://phabricator.services.mozilla.com/D180876
2023-06-21 20:24:56 +00:00
Tim Giles
f9b8bafd25 Bug 1836555 - Add new 'extensions' migration resource type. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D180005
2023-06-21 20:24:56 +00:00
Kershaw Chang
2cdb6b3a96 Bug 1838829 - Skip failed tests, r=necko-reviewers,extension-reviewers,credential-management-reviewers,devtools-reviewers,dimi,valentin,robwu
Differential Revision: https://phabricator.services.mozilla.com/D181251
2023-06-21 19:43:33 +00:00
ganna
91c9178e73 Bug 1826788 - Cleanup with-pseudo-localization Storybook add-on naming r=hjones
Differential Revision: https://phabricator.services.mozilla.com/D181148
2023-06-21 14:15:23 +00:00
ganna
54c01ae64a Bug 1825665 - Improve styling of Fluent panel r=hjones
Differential Revision: https://phabricator.services.mozilla.com/D180977
2023-06-21 14:15:23 +00:00
Gregory Pappas
fb28cc97e2 Bug 1809094 - Implement tab.autoDiscardable property r=robwu,geckoview-reviewers,extension-reviewers,Gijs,owlish,tabbrowser-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D166440
2023-06-21 07:50:17 +00:00
Shane Hughes
05b9f135b3 Bug 1833913 - Add default private newtab content. r=pdahiya,omc-reviewers,desktop-theme-reviewers,sfoster
Synchronously render default info content on about:privatebrowsing while
waiting for ASRouter to handle messages. Update the script and
stylesheet to account for rendering happening twice now. Add a browser
test to verify the content is rendered while ASRouter is hanging.

Differential Revision: https://phabricator.services.mozilla.com/D178987
2023-06-21 04:37:23 +00:00
Cosmin Sabou
87bdf668d4 Backed out changeset f3fe6cc42791 (bug 1809094) for bc failures on browser_ext_tabs_autoDiscardable.js. 2023-06-21 03:24:56 +03:00
Shane Hughes
eb3bc893fb Bug 1835445 - Add CLI options for newtab try runner script. r=omc-reviewers,dmose
Differential Revision: https://phabricator.services.mozilla.com/D179292
2023-06-21 00:14:35 +00:00
Gregory Pappas
0289eeada1 Bug 1809094 - Implement tab.autoDiscardable property r=robwu,geckoview-reviewers,extension-reviewers,Gijs,owlish,tabbrowser-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D166440
2023-06-20 23:59:08 +00:00
Sandor Molnar
9549861449 Backed out changeset 0ee2d1b2ec37 (bug 1809094) for causing android bustages. CLOSED TREE 2023-06-21 02:20:26 +03:00
Gregory Pappas
86acbd80ac Bug 1809094 - Implement tab.autoDiscardable property r=robwu,geckoview-reviewers,extension-reviewers,Gijs,owlish,tabbrowser-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D166440
2023-06-20 23:06:37 +00:00
Karandeep
98ed1c5340 Bug 1713675 - Fix Shift+up/Shift+down for text selection in address bar on Mac. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D180838
2023-06-20 17:37:07 +00:00
Erik Nordin
65be1cbe7a Bug 1835571 - Add tests for reenabling translations r=gregtatum
Adds tests that ensure the correct page actions occur
when translations is reenabled via the translations
panel settings menu.

Depends on D179330

Differential Revision: https://phabricator.services.mozilla.com/D179332
2023-06-20 16:00:22 +00:00
Erik Nordin
fd23b42c0b Bug 1835571 - Add test functions to open translations panel r=gregtatum
Adds new test-only functions to simulate opening the
translations panel from the app menu instead of from
the translations button.

Depends on D179329

Differential Revision: https://phabricator.services.mozilla.com/D179330
2023-06-20 16:00:22 +00:00
Erik Nordin
071bb9acd1 Bug 1835571 - Show translations button after reenabling r=gregtatum
Re-shows the translations button the never-translate-language
or never-translate-site checkboxes become unchecked to the
point that translations is re-enabled for the current page.

Differential Revision: https://phabricator.services.mozilla.com/D179329
2023-06-20 16:00:22 +00:00
Mike Kaply
3332079ecd Bug 1772503 - Keep policy locked preferences locked. r=mhowell,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D181100
2023-06-20 12:17:49 +00:00
Emilio Cobos Álvarez
65e3a8d175 Bug 1839066 - Improve selection checks in places-tree. r=mak
This doesn't fix the bug but I saw some exceptions related to having a
non-null view with a null selection that this fixes.

Differential Revision: https://phabricator.services.mozilla.com/D181379
2023-06-20 08:58:10 +00:00
Natalia Csoregi
37db79aab5 Backed out 8 changesets (bug 1830070) for causing assertion failures on nsAboutProtocolUtils.h. CLOSED TREE
Backed out changeset 05c4b06857fb (bug 1830070)
Backed out changeset f264c5b9c200 (bug 1830070)
Backed out changeset 45032e474c29 (bug 1830070)
Backed out changeset fa89c51ef6fc (bug 1830070)
Backed out changeset f0f70e7c8250 (bug 1830070)
Backed out changeset 785e1775c13d (bug 1830070)
Backed out changeset 582e28b83b50 (bug 1830070)
Backed out changeset de379bee27d0 (bug 1830070)
2023-06-19 23:51:04 +03:00