Kristin Lee
unread,Jun 17, 2025, 8:13:58 PMJun 17Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pwa-dev, rob.p...@microsoft.com, luig...@microsoft.com, lu.h...@microsoft.com, liahi...@microsoft.com
Hi folks/Dan,
Circling back to the discussion we had last week with Dan about whether to require permission for same-origin background document installs since we see multiple paths forward. We would love for folks to weigh in with their thoughts so that we may come to a final decision for what should be shipped.
ContextFor all current document installs (ie. installing exactly the page you're on), we've agreed to skip the permission prompt/dialog. Around January of this year, our team decided that all background document installs, even those from the same-origin as the current page, would prompt for permission -- this is what's currently implemented and will stay in place at least through DevTrials.
During our last joint meeting on 6/12, we discussed changing this behavior before shipping, so that we skip the permission prompt if the background install is from the same origin as the current page.
Question at handFor shipping, should the permission prompt be skipped or shown for background document installs from the same origin?
(Note -- current document install == installing the current page. Background document install == installing anything else)
Options- Skip permission prompt for background installs from the same origin as the current page.
- Seems to be better for catalog apps. Ex: If a user is on "store.app/about" installing "store.app".
- Considerations:
- Prioritizes developer experience and clarity -- it's well understood (to developers) that permissions are granted per-origin, so it's easy to explain how permissions interact with the API.
- Causes user confusion and security concern - It can be confusing and misleading to install something other than the user's current page, even if it's the same origin. Ex: Suites - if a user is on "office.com" and they install "office.com/word" and "office.com/powerpoint." Same for GSuite.
- Show permission prompt for all background installs, regardless of origin.
- Seems to be better for Suite apps such as office.com and GSuite.
- Considerations
- Prioritizes user experience and clarity -- if the user is installing anything other than the site they're currently looking at, then require a permission.
- Security concern - if a user grants permission to install "store.app" from "store.app/about" (background doc installs), the origin is granted permission so if "store.app" then installs "crosswords.com" the permission prompt will not show where the user may have unknowingly granted permission to store.app for all background doc installs.
Thanks!
Kristin