WebView-CG / usage-and-challenges

Documenting usage scenarios for WebView and the challenges they create
https://webview-cg.github.io/usage-and-challenges/
Other
12 stars 4 forks source link

Manage web storage and cookies #24

Open muodov opened 2 years ago

muodov commented 2 years ago

Manage web storage and cookies

Submitter(s)

Maxim Tsoy (DuckDuckGo)

Motivation

Apps loading 3rd-party web content in WebViews may need more granular control over stored data. For example, DuckDuckGo browsers need this for the Fireproof feature, which allows to make exceptions to the cookie/storage removal.

Stakeholders

Browsers based on WebView WebView vendors

Analysis

Related W3C deliverables and/or work items

How is the issue solved in the Browser, and what’s more is needed?

Browsers manage storage using APIs of a specific rendering engine.

aluhrs13 commented 2 years ago

WebView2 on Windows allows managing access, creation, copy, deletion of cookies through a Cookie Manager API. Other storage would need to be accessed through DevTools Protocol APIs using the Storage and/or DOMStorage domains.

QingAn commented 2 years ago

As discussed in 2022-08-23 meeting, we agreed it is a valid use case.