Skip to content

Web views #36

@martinthomson

Description

@martinthomson

Other libraries, like the Android, iOS, and Windows WebView libraries, are designed to support many kinds of applications. Because some of these applications include only their own content, WebView libraries are not meant to be user agents on their own, and they do not implement the user agent duties.

-- https://w3ctag.github.io/user-agents/#ua-as-software

I think that this misses something. A WebView is not necessarily a user agent, but an application can use a WebView in order to become a user agent. In many ways, these applications are more user agents than Android's Custom Tabs, which is the user agent rather than the application that embeds it.

The line followed by the Facebook app on Android and iOS is an instructive case to consider. I argue that this is a user agent. Facebook might not like that characterization, because their use of the WebView is limited. (They might also not like the potential legal implications of being designated as a user agent.)

I don't think that you need to agree regarding the status of Facebook's app as a user agent, but you do need to say that the application is a user agent more directly than this:

Ultimately, an embedding application is responsible for following the user agent duties if it, or any part of it, acts as a user agent. This can be straightforward if the application only browses external content through a user agent library. Developers need to take extra care to follow the user agent duties when using a non-user agent WebView to implement an in-app browser .

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions