Skip to content

Create WebDX feature for app migration#3911

Open
Dp-Goog wants to merge 4 commits intoweb-platform-dx:mainfrom
Dp-Goog:main
Open

Create WebDX feature for app migration#3911
Dp-Goog wants to merge 4 commits intoweb-platform-dx:mainfrom
Dp-Goog:main

Conversation

@Dp-Goog
Copy link
Copy Markdown
Contributor

@Dp-Goog Dp-Goog commented Apr 1, 2026

This helps solve #3859.

Fixes #3859

@github-actions github-actions bot added the feature definition Creating or defining new features or groups of features. label Apr 1, 2026
@Dp-Goog Dp-Goog mentioned this pull request Apr 1, 2026
@@ -0,0 +1,7 @@
name: App Migration
description: Web Application Origin Migration allows a web application to indicate to the user agent that it moved from one origin to another (within the same site). This then enables the user agent to migrate an installed web application while preserving the user's installation and potentially their settings.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Proposal to use the entry points of the feature in the description. I'm not sure what gets preserved exactly, so the end of the description might need to be improved:

Suggested change
description: Web Application Origin Migration allows a web application to indicate to the user agent that it moved from one origin to another (within the same site). This then enables the user agent to migrate an installed web application while preserving the user's installation and potentially their settings.
description: The `migrate_to` and `migrate_from` web app manifest members inform the user agent that the web app moved from one origin to another within the same site. The user agent can then update the app's local installation without losing user settings.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possibly helpful here, here's an edit of my version from #3859 (comment):

Suggested change
description: Web Application Origin Migration allows a web application to indicate to the user agent that it moved from one origin to another (within the same site). This then enables the user agent to migrate an installed web application while preserving the user's installation and potentially their settings.
description: The `migrate_to` and `migrate_from` web app manifest members move an installed app from one origin within the same site to another. They preserve the installation and user settings.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it. I would maybe just move the "same site" thing to the end of the sentence, like so:

Suggested change
description: Web Application Origin Migration allows a web application to indicate to the user agent that it moved from one origin to another (within the same site). This then enables the user agent to migrate an installed web application while preserving the user's installation and potentially their settings.
description: The `migrate_to` and `migrate_from` web app manifest members move an installed app from one origin to another, within the same site. They preserve the installation and user settings.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I went with the following:

The `migrate_to` and `migrate_from` web app manifest members move an installed app from one origin to another, within the same site. They preserve the user's installation settings and OS integration.

How does that sound?

@@ -0,0 +1,7 @@
name: App Migration
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
name: App Migration
name: Application origin migration

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@captainbrosset We should probably find some consistency for PWA feature names. For manifest features, we've got names in the form of:

  • Web app bars (Web app manifest localization)
  • Application bazzes (Application shortcuts)
  • Quuxes (Share targets)

I'm partial to the latter two, but I don't feel strongly between them.

The IDs are more consistent, with app-, so we probably shouldn't try to change the ID here.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would probably want to keep the "Web app" or "Application" prefix. I quite like "Web app" because it's very closely related to PWAs. Searching for "Web app" on Google returns a lot of PWA-related results. And the manifest spec also uses the term "Web app" (or, rather, it uses "Web application", but not "Application" alone).

So maybe:

  • Web app manifest location
  • Web app shortcuts
  • Web app share targets
  • Web app origin migration

What do you think?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the Web app prefix to the features, will update the entry to match that name.

@@ -0,0 +1,7 @@
name: App Migration
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@captainbrosset We should probably find some consistency for PWA feature names. For manifest features, we've got names in the form of:

  • Web app bars (Web app manifest localization)
  • Application bazzes (Application shortcuts)
  • Quuxes (Share targets)

I'm partial to the latter two, but I don't feel strongly between them.

The IDs are more consistent, with app-, so we probably shouldn't try to change the ID here.

@@ -0,0 +1,7 @@
name: App Migration
description: Web Application Origin Migration allows a web application to indicate to the user agent that it moved from one origin to another (within the same site). This then enables the user agent to migrate an installed web application while preserving the user's installation and potentially their settings.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possibly helpful here, here's an edit of my version from #3859 (comment):

Suggested change
description: Web Application Origin Migration allows a web application to indicate to the user agent that it moved from one origin to another (within the same site). This then enables the user agent to migrate an installed web application while preserving the user's installation and potentially their settings.
description: The `migrate_to` and `migrate_from` web app manifest members move an installed app from one origin within the same site to another. They preserve the installation and user settings.

Comment on lines +6 to +7
- manifests.webapp.migrate_from
- manifests.webapp.migrate_to
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These will error until the next BCD release and upgrade here. If we get this into mergeable shape before that happens, I'll take responsibility for syncing up the dist file and merging then.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM! I updated the comments and the name as per the feedback here, PTAL and lmk if this is in a mergable state. Happy to offload this on to you for later!

Copy link
Copy Markdown
Contributor

@captainbrosset captainbrosset left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking great. Can you please run npm run dist features/app-migration.yml to generate the dist file? Once done, this should be mergeable.

@@ -0,0 +1,7 @@
name: Web app origin migration
description: The `migrate_to` and `migrate_from` web app manifest members move an installed app from one origin to another, within the same site. They preserve the user's installation settings and OS integration.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"OS integration" sounds a bit vague to me, but I'm not going to block approving the review based on this. We can always improve this later if we have a better idea.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On a narrower basis, I think "OS" is worth revising now. Our guidelines suggest that we might avoid the undefined abbreviation with "device" instead.

That said, I agree with Patrick on the vagueness front. What does "OS integration" mean? Perhaps the answer to that question can take its place.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By OS settings, I was mostly talking about things like shortcuts and run on OS login states for the installed PWA. Does the current statement sound better?

@Dp-Goog
Copy link
Copy Markdown
Contributor Author

Dp-Goog commented Apr 3, 2026

This is looking great. Can you please run npm run dist features/app-migration.yml to generate the dist file? Once done, this should be mergeable.

Sadly I can't do this yet @captainbrosset , because the BCD keys for it hasn't been released. More context about that in here: #3859 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature definition Creating or defining new features or groups of features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Web App Migration

3 participants