[epiphany/pgriffis/web-extension/runtime-send-message: 7/11] WebExtensions: Stub out sync storage
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/pgriffis/web-extension/runtime-send-message: 7/11] WebExtensions: Stub out sync storage
- Date: Thu, 2 Jun 2022 18:44:28 +0000 (UTC)
commit 539e1fc01a25c3a7103dc54c34bde609c937af20
Author: Patrick Griffis <pgriffis igalia com>
Date: Thu Jun 2 10:25:15 2022 -0500
WebExtensions: Stub out sync storage
.../resources/js/webextensions-common.js | 14 ++++++++++++++
1 file changed, 14 insertions(+)
---
diff --git a/embed/web-process-extension/resources/js/webextensions-common.js
b/embed/web-process-extension/resources/js/webextensions-common.js
index 8aaf54819..a3b03457a 100644
--- a/embed/web-process-extension/resources/js/webextensions-common.js
+++ b/embed/web-process-extension/resources/js/webextensions-common.js
@@ -90,6 +90,20 @@ window.browser.storage = {
clear: function () {
return ephy_message ('storage.local.clear');
}
+ },
+ sync: {
+ get: function (...args) {
+ return ephy_message ('storage.sync.get', args);
+ },
+ set: function (...args) {
+ return ephy_message ('storage.sync.set', args);
+ },
+ remove: function (...args) {
+ return ephy_message ('storage.sync.remove', args);
+ },
+ clear: function () {
+ return ephy_message ('storage.sync.clear');
+ }
}
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]