News for hackers. Stuff that matters.
Re:Popover API by oefrha on Friday May 10, 2024 @09:41AM (#40318865)
Native apps have to be installed. You don't want to give every power they have to random websites (say, that phishing domain at the top of a Google SERP), not for a very good reason. "My custom dropdown can't draw past the boundary of the viewport" isn't a very good reason.
Re:Popover API by staminade on Friday May 10, 2024 @09:48AM (#40318940)
Giving this capability to arbitrary web apps is definitely a bad idea, but conceivably it could be made available to installed PWAs in the same way things like the Window Controls API are: https://developer.mozilla.org/en-US/docs/Web/API/Window_Cont...
Re:Popover API by wruza on Friday May 10, 2024 @03:15PM (#40322827)
PWAs can contain dynamic ads elements, which will try to abuse that. If it was normal for desktop apps to run some remote view+script sandboxes, this problem would extend there too. On one hand, PWAs are apps, on the other, they enable the spirit of downloadable web content much more easily.