Disable session storage for the time being

Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/3003#issuecomment-1841831191
This commit is contained in:
Raymond Hill 2023-12-05 19:03:04 -05:00
parent 2afd4846b2
commit b38d89c335
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -96,49 +96,21 @@ vAPI.app = {
*
* */
vAPI.sessionStorage = (( ) => {
if ( browser.storage.session instanceof Object === false ) {
return {
get() {
return Promise.resolve({});
},
set() {
return Promise.resolve();
},
remove() {
return Promise.resolve();
},
clear() {
return Promise.resolve();
},
implemented: false,
};
}
return {
get(...args) {
return browser.storage.session.get(...args).catch(reason => {
console.log(reason);
return {};
});
},
set(...args) {
return browser.storage.session.set(...args).catch(reason => {
console.log(reason);
});
},
remove(...args) {
return browser.storage.session.remove(...args).catch(reason => {
console.log(reason);
});
},
clear(...args) {
return browser.storage.session.clear(...args).catch(reason => {
console.log(reason);
});
},
implemented: true,
};
})();
vAPI.sessionStorage = {
get() {
return Promise.resolve({});
},
set() {
return Promise.resolve();
},
remove() {
return Promise.resolve();
},
clear() {
return Promise.resolve();
},
implemented: false,
};
/*******************************************************************************
*