Commit Graph

340 Commits

Author SHA1 Message Date
Nolan Ishii
2fe7189288 Bug 1815749 Make variant 2's list of resource types in the <summary> reflect the checked items within the <details>. r=mconley,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D170228
2023-03-13 16:16:16 +00:00
Mike Conley
09574d63a6 Bug 1819343 - Allow MigrationWizard initialization to be kicked off either on binding to the DOM or with script. r=kpatenio,settings-reviewers,Gijs
Up until now, we've used the connectedCallback to initialize the MigrationWizard. That's
been fine, except that it requires us to remove and then re-add the element to the DOM
if we want to "reset" it and start over.

This patch adds a method "requestState" to the MigrationWizard that kicks off the
initialization. Embedders can set the `auto-request-state` attribute on the
element if they're happy to just use the connectedCallback.

Finally, this adds an intrinsic width to the entire MigrationWizard element to reduce
flicker when transitioning between states.

Differential Revision: https://phabricator.services.mozilla.com/D171742
2023-03-06 21:39:01 +00:00
Mike Conley
3e4aa35ac7 Bug 1819343 - Add a skeleton loading page for the new MigrationWizard component. r=kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D171741
2023-03-06 21:39:01 +00:00
brian
ed9f9dee81 Bug 1809347 Implement the page that appears if no other browsers to import cannot be found. r=mconley,fluent-reviewers,flod.
Differential Revision: https://phabricator.services.mozilla.com/D168981
2023-03-03 20:35:52 +00:00
Norisz Fay
5e05f73d55 Backed out changeset cfa8d4331629 (bug 1809347) for causing mochitest failures on test_migration_wizard.html CLOSED TREE 2023-03-03 22:10:10 +02:00
brian
9770fca3d6 Bug 1809347 Implement the page that appears if no other browsers to import cannot be found. r=mconley,fluent-reviewers,flod.
Differential Revision: https://phabricator.services.mozilla.com/D168981
2023-03-03 19:24:29 +00:00
steven wang
86f423adb8 Bug 1816690 - Default all visible resource checkboxes to checked (and invisible ones to unchecked) when selecting a browser/profile pair. r=mconley.
Differential Revision: https://phabricator.services.mozilla.com/D171502
2023-03-03 19:13:17 +00:00
Mike Conley
3e4ed4a1d4 Bug 1818284 - Use Lit to construct the Storybook instance of the new MigrationWizard. r=hjones
This will make it easier to use Storybook to simulate how the MigrationWizard is likely to
be used in practice - which is to say, declaratively.

Differential Revision: https://phabricator.services.mozilla.com/D170666
2023-02-22 19:44:13 +00:00
steven wang
f9ef9d9cf3 Bug 1813598 - Add a Cancel and Done button to the bottom of the progress page of the wizard. r=mconley,fluent-reviewers,flod.
Differential Revision: https://phabricator.services.mozilla.com/D169496
2023-02-17 04:31:08 +00:00
elephanteatsapple
246e4b3288 Bug 1809352- Include branding assets for each browser that can be imported from. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D170016
2023-02-17 03:18:06 +00:00
Norisz Fay
7df967558d Backed out changeset 7d45f0ddbd8b (bug 1809352) for causing mochitest failures on browser_all_files_referenced.js CLOSED TREE 2023-02-16 21:58:52 +02:00
elephanteatsapple
42105163bf Bug 1809352- Include branding assets for each browser that can be imported from. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D170016
2023-02-16 18:53:48 +00:00
Nolan Ishii
e8b4b50efd Bug 1803446 Implement 'variant 2' version of the main selector page for the migration wizard. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D166949
2023-02-08 15:58:24 +00:00
Mike Conley
07c9adc0ac Bug 1814912 - Use an HTML5 dialog instead of gSubDialog for the new migration wizard in about:preferences. r=Gijs,settings-reviewers
I also renamed migration-dialog.[js|html|css] to migration-dialog-window.[js|html|css] to
make it clearer that those resources are for when the wizard is being shown in a separate
window. I also updated the documentation to reflect this.

Differential Revision: https://phabricator.services.mozilla.com/D169014
2023-02-07 14:25:47 +00:00
Mike Conley
58108e2c7e Bug 1812704 - Wire up the new MigrationWizard to MigrationUtils to let it perform migrations. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D167998
2023-01-31 15:30:58 +00:00
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
Mike Conley
f5afc7a2e3 Bug 1811935 - Adjust visibility of the resource types available for each migrator / profile pair in the new migration wizard. r=Gijs
This causes the MigrationWizardChild to request the full collection of available
migrators and user profiles, and then based on which resourceTypes those migrators
and user profiles have available, changes the visibility of the checkboxes in the
selection page of the new MigrationWizard component.

Differential Revision: https://phabricator.services.mozilla.com/D167617
2023-01-25 12:53:31 +00:00
Marian-Vasile Laza
9f616e2e60 Backed out changeset 97ee58e6c65d (bug 1811935) for causing bc failures on browser_dialog_cancel_close.js. CLOSED TREE 2023-01-25 04:06:11 +02:00
Mike Conley
2683edea63 Bug 1811935 - Adjust visibility of the resource types available for each migrator / profile pair in the new migration wizard. r=Gijs
This causes the MigrationWizardChild to request the full collection of available
migrators and user profiles, and then based on which resourceTypes those migrators
and user profiles have available, changes the visibility of the checkboxes in the
selection page of the new MigrationWizard component.

Differential Revision: https://phabricator.services.mozilla.com/D167617
2023-01-24 21:15:03 +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
Mike Conley
d538cb869d Bug 1810240 - Make sure migration dialog container resizes when the wizard changes size. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D166839
2023-01-17 20:30:59 +00:00
Mike Conley
10d5cbd8c2 Bug 1809330 - Allow the MigrationWizard to close dialogs that it is embedded in. r=niklas
Differential Revision: https://phabricator.services.mozilla.com/D166392
2023-01-16 22:25:40 +00:00
Mike Conley
ce5bae69ff Bug 1803447 - Implement progress page for the new migration wizard. r=hjones,kpatenio,mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D165090
2023-01-16 22:25:40 +00:00
Csoregi Natalia
797db34488 Backed out 2 changesets (bug 1803447, bug 1809330) for failures on browser_dialog_cancel_close.js. CLOSED TREE
Backed out changeset 57167994f026 (bug 1809330)
Backed out changeset 4c1fd71421ab (bug 1803447)
2023-01-14 04:10:45 +02:00
Mike Conley
70e3458ae0 Bug 1809330 - Allow the MigrationWizard to close dialogs that it is embedded in. r=niklas
Differential Revision: https://phabricator.services.mozilla.com/D166392
2023-01-13 18:28:04 +00:00
Mike Conley
614f7fc403 Bug 1803447 - Implement progress page for the new migration wizard. r=hjones,kpatenio,mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D165090
2023-01-13 18:28:03 +00:00
Mike Conley
4731915dc0 Bug 1808581 - Use moz-button-group for the new migration wizard. r=hjones
Differential Revision: https://phabricator.services.mozilla.com/D165978
2023-01-05 00:20:55 +00:00
Mike Conley
a7b26a4c0d Bug 1808608 - Move migration wizard constants into their own module for ease of use. r=kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D165994
2023-01-05 00:20:54 +00:00
Mike Conley
d619d82b5e Bug 1806128 - Fix path for migration wizard stylesheet when embedded in web-hosted Storybook. r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D164909
2022-12-19 15:06:05 +00:00
Mike Conley
1e25b753cb Bug 718280 - Part 5: Use named options rather than an array for showMigrationWizard. r=NeilDeakin,credential-management-reviewers,sgalich
Depends on D164142

Differential Revision: https://phabricator.services.mozilla.com/D164143
2022-12-13 17:01:25 +00:00
Mike Conley
b194903466 Bug 718280 - Part 3: Get rid of some leftover wrappedJSObject usage now that the migrators aren't acquired through XPCOM. r=NeilDeakin
Depends on D164139

Differential Revision: https://phabricator.services.mozilla.com/D164140
2022-12-13 17:01:25 +00:00
Mike Conley
8a65c0aa96 Bug 718280 - Part 1: Move resource type constants into MigrationUtils. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D164138
2022-12-13 17:01:24 +00:00
Sandor Molnar
c46a05c875 Backed out 9 changesets (bug 1800917, bug 718280) for causing xpc failures in browser/components/migration/tests/unit/test_Edge_db_migration.js CLOSED TREE
Backed out changeset d55b95d9d14f (bug 1800917)
Backed out changeset 8427f1e65df4 (bug 1800917)
Backed out changeset 2d0f77d324f2 (bug 718280)
Backed out changeset eba58fd1ed1c (bug 718280)
Backed out changeset 33027a0f9ce9 (bug 718280)
Backed out changeset 237be1f62d01 (bug 718280)
Backed out changeset 007afe158ae5 (bug 718280)
Backed out changeset f1dea7abdfb7 (bug 718280)
Backed out changeset 47e2cccd33c7 (bug 718280)
2022-12-13 00:50:16 +02:00
Mike Conley
27adceff4c Bug 718280 - Part 5: Use named options rather than an array for showMigrationWizard. r=NeilDeakin,credential-management-reviewers,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D164143
2022-12-12 16:04:04 +00:00
Mike Conley
8d7cf18a05 Bug 718280 - Part 3: Get rid of some leftover wrappedJSObject usage now that the migrators aren't acquired through XPCOM. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D164140
2022-12-12 16:04:03 +00:00
Mike Conley
414d26f70e Bug 718280 - Part 1: Move resource type constants into MigrationUtils. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D164138
2022-12-12 16:04:02 +00:00
Mike Conley
6d71851894 Bug 1802961 - Make MigrationUtils an ES6 class singleton. r=kpatenio,credential-management-reviewers,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D163256
2022-12-06 17:50:39 +00:00
Mike Conley
29c8bccf6f Bug 1801314 - Add initial infrastructure for a migration wizard reusable component. r=Gijs,kpatenio,NeilDeakin,niklas,mstriemer
This adds:

1. A new <migration-wizard> component
2. A new migration-dialog.html document that loads it
3. JSWindowActors for communicating between whatever process the migration-wizard is
   loaded in and the parent process. The actors are currently restricted to running
   in these documents:
     about:welcome
     about:preferences
     chrome://browser/content/migration/migration-dialog.html
4. A very small, simple mochitest-chrome test for testing the widget
5. Some Fluent strings for the new <migration-wizard>, dropped into a new folder in
   /browser called "locales-preview". This is so that both the jar packaging can
   put the Fluent file somewhere sensible that doesn't (currently) require our
   localizers to translate, but also so that Storybook can load that Fluent file.
6. Modifications to our Storybook infrastructure so that attempts to load items
   from locales-preview will map to the browser/locales-preview folder.
7. A Storybook story for the <migration-wizard> that puts it in a few basic states.
   Most of those states aren't actually implemented yet, but are left in the story to
   make it easier to develop those states in the component.

The hope is that when this is done, it should be relatively straight-forward to
embed the <migration-wizard> not just in the migration-dialog.html document (which
is used for tab modals and the stand alone migration dialog), but also in existing
in-content pages like about:welcome and about:preferences.

For those worried about the TODO strings or incomplete behaviour, remember that this
is just a base for building upon, and that this component / dialog isn't actually
exposed to users yet.

The dialog can be opened manually via:

```lang=js
gBrowser.getTabDialogBox(gBrowser.selectedBrowser).open("chrome://browser/content/migration/migration-dialog.html")
```

and see the documentation in browser/components/storybook/README.md for guidance on
how to view this component using Storybook.

Differential Revision: https://phabricator.services.mozilla.com/D162623
2022-12-06 17:50:38 +00:00
Butkovits Atila
b517540509 Backed out 7 changesets (bug 1802358, bug 1801314, bug 1802961) for causing documentation failures.
Backed out changeset bb0f5e137128 (bug 1802961)
Backed out changeset 4c2a66bfe913 (bug 1802961)
Backed out changeset baaa090cada1 (bug 1802961)
Backed out changeset d98ee38a13bb (bug 1802961)
Backed out changeset 618dcf6d8284 (bug 1802961)
Backed out changeset 59d98ca9fd51 (bug 1802358)
Backed out changeset bce1ea9149bd (bug 1801314)
2022-12-06 18:21:11 +02:00
Mike Conley
50a3d421f7 Bug 1802961 - Make MigrationUtils an ES6 class singleton. r=kpatenio,credential-management-reviewers,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D163256
2022-12-06 14:46:42 +00:00
Mike Conley
060df6bb4b Bug 1801314 - Add initial infrastructure for a migration wizard reusable component. r=Gijs,kpatenio,NeilDeakin,niklas,mstriemer
This adds:

1. A new <migration-wizard> component
2. A new migration-dialog.html document that loads it
3. JSWindowActors for communicating between whatever process the migration-wizard is
   loaded in and the parent process. The actors are currently restricted to running
   in these documents:
     about:welcome
     about:preferences
     chrome://browser/content/migration/migration-dialog.html
4. A very small, simple mochitest-chrome test for testing the widget
5. Some Fluent strings for the new <migration-wizard>, dropped into a new folder in
   /browser called "locales-preview". This is so that both the jar packaging can
   put the Fluent file somewhere sensible that doesn't (currently) require our
   localizers to translate, but also so that Storybook can load that Fluent file.
6. Modifications to our Storybook infrastructure so that attempts to load items
   from locales-preview will map to the browser/locales-preview folder.
7. A Storybook story for the <migration-wizard> that puts it in a few basic states.
   Most of those states aren't actually implemented yet, but are left in the story to
   make it easier to develop those states in the component.

The hope is that when this is done, it should be relatively straight-forward to
embed the <migration-wizard> not just in the migration-dialog.html document (which
is used for tab modals and the stand alone migration dialog), but also in existing
in-content pages like about:welcome and about:preferences.

For those worried about the TODO strings or incomplete behaviour, remember that this
is just a base for building upon, and that this component / dialog isn't actually
exposed to users yet.

The dialog can be opened manually via:

```lang=js
gBrowser.getTabDialogBox(gBrowser.selectedBrowser).open("chrome://browser/content/migration/migration-dialog.html")
```

and see the documentation in browser/components/storybook/README.md for guidance on
how to view this component using Storybook.

Differential Revision: https://phabricator.services.mozilla.com/D162623
2022-12-06 14:46:41 +00:00
Evan
2ff39e0431 Bug 1795462 - Importing data from OperaGX. r=mconley,fluent-reviewers,flod.
Differential Revision: https://phabricator.services.mozilla.com/D160868
2022-12-01 14:49:38 +00:00
Itiel
3afdffae32 Bug 1801061 - Consolidate some logic between about:sessionrestore and about:welcomeback r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D162488
2022-11-30 18:41:59 +00:00
Iulian Moraru
5085e5074f Backed out changeset 1da39fdc61ed (bug 1801061) for causing bc failures on browser_aboutSessionRestore.js. CLOSED TREE 2022-11-29 21:10:38 +02:00
Itiel
1a8efc52fe Bug 1801061 - Consolidate some logic between about:sessionrestore and about:welcomeback r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D162488
2022-11-29 18:17:43 +00:00
Csoregi Natalia
f8d2a3739e Backed out changeset 5998b7a73bd9 (bug 1801061) for failures on browser_aboutSessionRestore.js. CLOSED TREE 2022-11-26 22:22:30 +02:00
Itiel
d5707963a1 Bug 1801061 - Consolidate some logic between about:sessionrestore and about:welcomeback r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D162488
2022-11-26 19:33:14 +00:00
brian
a4041d6ee2 Bug 1633865 - Remove message recommending closing the other browser (due to Chrome locking). r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D162471
2022-11-25 22:02:04 +00:00
Barret Rennie
d1a2566d45 Bug 1541508 - Use Services.env in browser/ r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D160136
2022-11-25 19:09:06 +00:00
Nolan Ishii
7045d63156 Bug 1795739 - Make it possible to import data from Vivaldi. r=mconley,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D161522
2022-11-14 18:02:21 +00:00