News for hackers. Stuff that matters.
Re:W3C Proposes the Creation of a WebView Community Group by kilian on Wednesday May 11, 2022 @04:55AM (#31337435)
Interesting. As someone using webviews extensively[1], the main issue is that the "iframe" model of security many operate on makes sense on the web, but not in native apps. When it comes to embedding third party content with iframes, you essentially want two-way security and privacy. The embedder can't change things in the embedded and vice versa.

With webviews however, that model doesn't make much sense: the embedder is controlling the webview and frequently needs to apply or enrich the embedded view. Browsers (which by and large maintain these webview APIs) have no incentive to stray from the web model of security though: they have no use for it themselves and it creates new vectors for security breaches in them. So I wonder how much a community group can affect.

[1] I build a browser for devs which uses webviews, https://polypane.app

Re:W3C Proposes the Creation of a WebView Community Group by lucideer on Wednesday May 11, 2022 @08:00AM (#31338630)
> When it comes to embedding third party content with iframes, you essentially want two-way security and privacy. The embedder can't change things in the embedded and vice versa.

> With webviews however, that model doesn't make much sense: the embedder is controlling the webview and frequently needs to apply or enrich the embedded view.

This isn't necessarily the case - it's certainly often been the assumption, but I don't think maintaining status quo here is a self-evident good.

Common case: I click a link in an email client / social media feed and it opens in a webview controlled by that app. It's a 3rd-party link either sent to me by an email contact, or posted by some private individual using the social media platform: it's not necessarily owned/controlled by the developer of the app, and as a user, I have no strong desire for the app to have direct access to that content.

The iframe comparison fits quite well in my mind, and most of the concerns / ideals hold true.

Re:W3C Proposes the Creation of a WebView Community Group by melony on Wednesday May 11, 2022 @09:44AM (#31339837)
OP was referring to the use case where webviews extend your native mobile app functionality.
Re:W3C Proposes the Creation of a WebView Community Group by lucideer on Wednesday May 11, 2022 @10:41AM (#31340636)
OP was using that use case as their example, but this is about standardisation so it needs to fit a range of use cases, most importantly the common ones.

How do you restrict one use case and not another? If a restriction is opt-in in a standard it's not useful.

Re:W3C Proposes the Creation of a WebView Community Group by Mizza on Wednesday May 11, 2022 @10:01AM (#31340073)
Your app looks really handy. Good work.