MicrosoftEdge / MSEdgeExplainers

Home for explainer documents originated by the Microsoft Edge team
Creative Commons Attribution 4.0 International
1.31k stars 211 forks source link

[Web Install] Prevent installation if there is an existing installed app that controls the same scope #897

Open amandabaker opened 2 weeks ago

amandabaker commented 2 weeks ago

Originally mentioned here by @dmurph: https://github.com/MicrosoftEdge/MSEdgeExplainers/issues/893#issuecomment-2427070370

I think we should consider preventing install if there is an app already installed that controls the start_url of the app, or the current document in the same-origin case. This is mostly to prevent this kind of use, which hinders the UA's ability to promote installation / know which urls belong to which app (and other problems cited in here. Then, when we solve https://github.com/w3c/manifest/issues/996, devs can make sure the places they need to installed (if nested) fall outside of the outer app's scope.

I think this sounds like the right approach, and here are some initial pros/cons:

dmurph commented 2 weeks ago

I would be OK with us saying that those manual apps don't prevent installing of nested stuff / are 'last on the list' when it comes to considering who 'controls' a url. That.... may make things even more complicated lol. But if we end up having problems here with manual apps blocking install, we could explicitly exclude those.