-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overview of Persistent States of Various APIs #424
Comments
It is worth noting that some WebExtension APIs access and alter the browser settings. These APIs are simply interfaces to set browser settings and therefore have a more persistent nature than other WebExtension APIs. I think for better clarity, it is worth separating the aforementioned from the others. For example: |
This is a good table to have. This table is missing a few APIs like |
While |
We discuss this issue at today's meeting. Next step, I'll submit a document (PR) and hand it over to the community for maintenance. At present, this kind of problem depends on browsers' implementation. The purpose of this document is to provide a high-level perspective on all such issues. The goal is to expect similar issues to be designed and implemented in a consistent manner on the platform, as well as consistent behavior among different browsers. |
Add a memo for w3c#424
Close this issue. Now you can see this doc as a file in this repo. Welcome to update it via PR. |
There are many extension APIs that can affect some kind of state, and the persistence of these states is often discussed in various issues in WECG, some with clear definitions and some without. Here is a summary of these states and their persistence.
The purpose of this issue is to make a summary.
Let's make a few simple definitions:
A: if persistAcrossSessions is false
* This table may not be exhaustive, nor may it be adequately tested. Additions and corrections are welcome, especially for other browsers!
If you want to keep a state persistent across B, C or D, but the default behavior doesn't meet your needs, you need to maintain the state by yourself with
runtime.onStartup()
,runtime.onInstalled()
andruntime.onEnabled()
The text was updated successfully, but these errors were encountered: