[Webkit-unassigned] [Bug 255716] Feature request: Implement `BeforeInstallPrompt` event for programmatic Add to Home Screen

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 20 04:49:34 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=255716

--- Comment #7 from Marcos Caceres <marcosc at apple.com> ---
(In reply to Thomas Steiner from comment #6)
> Well, Safari's criterion for triggering this prompt event is then just `if
> (true) {}`. Decouple your thinking from Chrome's implementation. Safari's
> would always `preventDefault()` and let the developer trigger the dialog
> (prompt) manually. When the user clicks the HTML button, the app would jump
> straight into the state shown at
> https://bugs.webkit.org/attachment.cgi?id=466006.

Right, let’s game this out: say then this event fires after a few seconds in *every single web page* (as they all meet the “UA-criteria” now). 

Suddenly every site is popping over the install sheet when a user clicks on anything (because now they can call .prompt() with almost zero cost). 

So, even if there good actors with nice install buttons, it would be rife for abuse (as we’ve seen with other permission prompts).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230420/85b3b2b2/attachment.htm>


More information about the webkit-unassigned mailing list