Description
I am concerned about overloading the term "permission" to refer to other types of settings a user may want to apply to a site. The terms "allow" and "block" seem strained in this context. The user isn't "allowing" the site to launch at startup. The user is configuring the site to launch at startup. The site has no choice in the matter other than to highlight this as a setting the user may want to toggle.
Thinking of these as settings avoids adding new "permission prompts" for them. Rather than the proposed navigator.runOnOsLogin.set()
method I propose a navigator.siteSettings.show()
method which opens the appropriate user agent or operating system UI for adjusting installed application settings. In Chrome this would open chrome://settings/content/siteDetails?site=${document.location.origin}
or the like. For a set of specification-defined settings this method could take an additional parameter which would highlight the desired setting for the user.
I think this distinction also helps avoids tying the "Run on OS Login" proposal to the "Install Time Permissions Prompt" proposal given that the latter seems significantly more controversial. It seems reasonable for the user agent to show some installed web app settings in the install prompt itself. Unlike permissions in general, these settings can be immediately relevant to the user installing the web app.