diff --git a/index.html b/index.html index c3b0fef..2903b39 100644 --- a/index.html +++ b/index.html @@ -181,6 +181,72 @@

Requests/responses sharing and proxy between Native and WebView

+
+

Render WebView Components and Native Components in same layer

+
+
Submitter(s)
+
+ Qing An, Alibaba +
+ +
Motivation
+
+ Hybrid Native/Webview App and MiniApp often use both WebView Components (text, label, button, image, etc.) and Native Components (such as video). +
    +
  1. Add a map: due to that developing a Web-based map component is difficult and not so good performance, developers may choose to use the Native map component. Usually, developers cover the WebView with the Native map component. But very often, the Native map will cover all the Web components rendered by WebView. And it is difficult to display one or several Web components on the Native map.
  2. +
  3. Integrate a third-party content into WebView: from the business perspective, Native App needs to integrate third-party advertisements into the some App UI pages which are rendered by WebView. Many third-party advertisements are implemented based on Native components. How to integrate Native components with WebView smoothly?
  4. +
  5. WebView interacts with Native component: developers have implemented a fancy UI page based on WebView, and then the WebView needs to use an extra Native component. How can the Native component interact with WebView smoothly? Like how to let Native component reuse the event handling and message interaction that have been implemented in WebView?
  6. +
+ Unlike WebView Components, the Native Components are rendered by Native App instead of WebView. While Native Components can bring more features by complementing WebView Components, Native Components also bring issue for developers due to that Native rendering is independent of WebView rendering. +
+
+ Therefore, Native Component cannot be controlled by z-index property, and cannot overlap with WebView components, as illustrated below. + +
+ Without-same-layer-rendering +
+ Render WebView Components and Native Components in separate layers +
+
+ + But if the Native Components can be rendered in the same layer of WebView Component, AKA in the WebView Layer, developers can easily control the Native Components as well as the overlapping with other WebView Components, as illustrated below. + +
+ With-same-layer-rendering +
+ Render WebView Components and Native Components in same layer +
+
+ +
+ +
Stakeholders
+
+
    +
  • WebView provider: Apple, Google, deciders on how to support the same layer rendering
  • +
  • Native App or MiniApp developer: rely on the WebView
  • +
  • End user: users of the Native App or MiniApp are indirectly using the pages and functions implemented by WebView.
  • +
+
+ +
Analysis
+
+ Currently, Native rendering is independent of WebView rendering. Therefore, Native Component cannot be controlled by `z-index` property, and cannot overlap with WebView components. + +
+ +
Related W3C deliverables and/or work items
+
+ N/A +
+ +
How is the issue solved in the Browser, and what’s more is needed?
+
+ N/A +
+
+
+