IndexedDb in Web Worker in latest Safari?

I have an existing application that works fine in earlier versions of Safari and uses an indexed DB polyfill to store data. Most of this action takes place at the web worker, so the WebSQL can be obtained from the web user.

However, I am now trying to use native indexedDB access using Safari 6.2 and although indexedDB can be referenced in the "main" workflow when I try to access "self.indexeddb" or "indexeddb" they both return undefined ...

Anyone could access the indexedDB web worker in the newest versions of Safari?

+3


source to share


1 answer


Anyone could access the indexedDB web worker in the newest versions of Safari?

IndexedDB is available from web worker since Safari Technology Release 5:

Safari Technology Preview is the OS X version of Safari released by Apple that includes an advanced version of the WebKit browser in development. This is a great way to test upcoming WebKit features and give feedback to the people who create them when they are most useful — early in development.

Released May 15, 2016. The release notes state:



Enabled IndexedDB in Web Worker Scripts

Safari Technology requires a Mac with OS X 10.11.4 or later. Version 5 of the Safari Technology Preview covers WebKit versions 200418-201083.

Links

0


source







All Articles