Skip to content

Async access to web storage in FireMonkey #324

Answered by erosman
LucidicShadow asked this question in Q&A
Discussion options

You must be logged in to vote

GM Storage API

In legacy Firefox, storage access was synchronous. The storage API in User-script managers were also synchronous e,g. GM_getValue, GM_setValue, GM_listValues & GM_deleteValue

Since Firefox 57, all storage operations are asynchronous for Firefox and extensions. The storage API in User-script managers had to change for the asynchronous access.

GreaseMonkey adopted the new asynchronous API GM.getValue, GM.setValue, GM.listValues & GM.deleteValue.

TamperMonkey & ViolentMonkey decided to keep the GM_getValue, GM_setValue, GM_listValues & GM_deleteValue and create a quasi-synchronous storage access by delaying the script injection and getting the storage first and then injecting …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LucidicShadow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants