diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml new file mode 100644 index 0000000..5d54d8b --- /dev/null +++ b/.github/workflows/preview.yml @@ -0,0 +1,23 @@ +name: Deploy PR previews + +on: + pull_request: + types: + - opened + - reopened + - synchronize + - closed + +concurrency: preview-${{ github.ref }} + +jobs: + deploy-preview: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Deploy preview + uses: rossjrw/pr-preview-action@2fb559e4766555e23d07b73d313fe97c4f8c3cfe + with: + source-dir: ./ \ No newline at end of file diff --git a/README.md b/README.md index 7a8f7df..ee898f4 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -# webview-definition +# WebView Definition Explainer diff --git a/index.html b/index.html index 4b2a84f..6b0b34e 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,7 @@
-This document aims to define WebViews
+This document aims to define what a WebView is.
+ This document is a work in progress. It is intended to provide clarity on the definition of a WebView, which has been a topic of discussion within the WebView Community Group. +
- The WebView CG identified a need to come up with a definition to clearly identify a web browser vs. WebView. This was discussed via email - here. + The WebView Community Group has identified a lack of clarity and consensus around the definition of a WebView. This has + led to confusion among developers and users alike, as the term is often used inconsistently across different platforms + and contexts.
- Here is my attempt to summarise the discussion. Let me know if I missed anything important from the email discussion in this summary. Note that the goal here is only to define a web browser vs. webview, and not to define different types of webview (see #19 for that). + Non-goal: The purpose of this document is to define what a WebView is and which types of WebViews exist. It is not intended to provide a comprehensive overview of all WebView implementations or their specific features. + You can find more information about the implementations in the usage and challenges report.
-+ This was discussed via e-mail in the WebView CG. WebViews are usually locked down and configured by apps embedding them to fit their use case. Sometimes they are used to build fully featured browsers or show general web content. +
+- A specification's definition of a webview should not refer to specific technologies like Android WebView or WKWebView. The general consensus appeared to be the definition should focus on how the web content is used. Definitions discussed included: -
-+ A WebView is defined as a software component that is used to render Web technology-based content outside of a Web browser (Native Apps, MiniApps, etc). +
++ If you look at how the web content is used—for example, if you can freely navigate the web or certain UX elements exist—you could determine which type of WebView and whether who the user agent is. +
+ + +- In conclusion I would propose that the definition of a web browser is where the user may freely navigate the web. What identifies a WebView is the fact that navigation is restricted to a certain set of content that the app developer wishes to provide, and therefore free navigation of the open web is not allowed. + Whether a WebView is a user agent or not is difficult to tell. In cases where a WebView acts as a general-purpose browser, it could be considered a user agent.
-Under this definition, things that count as a web browser include:
-Under this definition things that count as a WebView include:
++ If a WebView is used in such a way that it's not transparent to the user that they are interacting with web content or the app embedding the WebView is interacting with the Web content, it's less clear if all duties of a user agent are fulfilled, and the embedding app might become the user agent. +
+[=WebViews=] can differ based on the following properties:
+
- Whether web content uses an iframe does not affect this definition, as it essentially only takes in to account how the top frame is used. For clarity perhaps this should be incorporated in to the definition, i.e. "in a web browser the user may freely navigate the web in the top frame of the browsing context".
In practice, [=WebViews=] are classified into one of two categories with fixed properties:
+