I have a few questions about web workers
Does the worker have access to storage? E.g. indexedDB/webSQL and local storage of the file the worker was initiated from?
How can i include a file in a worker? I have a
functions.js
which has alot of quick app related functions and it really wont make sense to copy paste the file's contents in a worker only to have two different places up update my functions.Can I have a DOM inside a worker? like load an audio file in a temp audio tag to read its duration and if it is playable or not. Not access dom of parent page, but have a DOM in the worker itself.
If the answers to any of the question is negative then how can/should it be done manually?
This is for a chrome app so I have access to the latest Chrome APIs and I don't need to care about backward compatibility.