But the same code works correctly in Chrome.
My code:
const request = window.indexedDB.open('my-database-name');
request.onsuccess = function(event) {
const db = event.target.result;
const objectStore = db.transaction(['audio']).objectStore('audio');
const request = objectStore.get('my-id');
request.onsuccess = function() {
const url = URL.createObjectURL(request.result['blob']);
const audio = new Audio(url);
audio.play();
};
};
I tried to add to manifest.json
in CSP into media-src
: moz-extension://c2eb02dd-4249-724d-a725-286299b78933/
without success.
Is it correct behaviour of Firefox? Is it workaroundable?