13
submitted 2 years ago* (last edited 2 years ago) by look997@karab.in to c/firefox@lemmy.ml

I do a basic browser.local.sync sync test:

let monster = {
  name: "Kraken",
  tentacles: true,
  eyeCount: 10,
};

let kitten = {
  name: "Moggy",
  tentacles: false,
  eyeCount: 2,
};

browser.storage.sync.set({ kitten, monster });

and on the second profile:

await browser.storage.local.get("kitten");

but nothing happens, get("kitten") returns nothing.

QUESTIONS:

  1. Does the synchronization work on a zip file loaded from Add-ons -> Tools for all add-ons -> Install add-on from file...?
    I have in manifest.json applications.gecko.id, as needed.
  2. If not, what do I need to do to TEST the synchronization work?

API https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/storage/sync

you are viewing a single comment's thread
view the rest of the comments
[-] igorlogius@lemmy.world 4 points 2 years ago* (last edited 2 years ago)

I assume the zip-file wasn't signed by mozilla? And the question is basically if unsigned extensions can use the Storage API. Interesting question ... i actually never tried that, i just assumed since the Storage isn't encrypted and account bound, that unsigned extensions should be able to use it. about:sync-log might be of interest here.

this post was submitted on 08 Sep 2023
13 points (93.3% liked)

Firefox

22772 readers
1 users here now

/c/firefox

A place to discuss the news and latest developments on the open-source browser Firefox.


Rules

1. Adhere to the instance rules

2. Be kind to one another

3. Communicate in a civil manner


Reporting

If you would like to bring an issue to the moderators attention, please use the "Create Report" feature on the offending comment or post and it will be reviewed as time allows.


founded 6 years ago
MODERATORS