Love this doc. The first part of it (until future project) looks like a solid documentation piece that could live as a Markdown doc in the core/workers.
On Thu, Nov 5, 2015 at 11:57 PM, Anne van Kesteren <ann...@annevk.nl> wrote:On Thu, Nov 5, 2015 at 3:43 PM, Kinuko Yasuda <kin...@chromium.org> wrote:
> Any feedback, comments, or suggestions for more potential project ideas are
> welcome!
Last week at TPAC I found out that neither Apple nor Microsoft have
any intent of shipping shared workers (Apple did ship them for a
while, but reportedly the feature has been removed per iOS 9). Should
Google and Mozilla follow suit?
Chrome on Android never shipped shared workers either fwiw.
On Fri, Nov 6, 2015 at 10:03 AM, Marijn Kruisselbrink <m...@chromium.org> wrote:On Thu, Nov 5, 2015 at 11:57 PM, Anne van Kesteren <ann...@annevk.nl> wrote:On Thu, Nov 5, 2015 at 3:43 PM, Kinuko Yasuda <kin...@chromium.org> wrote:
> Any feedback, comments, or suggestions for more potential project ideas are
> welcome!
Last week at TPAC I found out that neither Apple nor Microsoft have
any intent of shipping shared workers (Apple did ship them for a
while, but reportedly the feature has been removed per iOS 9). Should
Google and Mozilla follow suit?That's sad. Unshipping shared workers in Chrome is a tough choice, if not impossible, at least for now. The usage is actually not that high but not low enough to consider deprecation, and we have some important Web sites (like Google docs) that extensibly use shared workers. We will need a convincing alternative solution that existing customers can migrate to. Service Worker could be one choice, but the lifetime constraints seem to be one of the hurdles for shared worker users, and service workers aren't implemented in neither Apple nor Microsoft either yet.
On Fri, Nov 6, 2015 at 10:03 AM, Marijn Kruisselbrink <m...@chromium.org> wrote:On Thu, Nov 5, 2015 at 11:57 PM, Anne van Kesteren <ann...@annevk.nl> wrote:On Thu, Nov 5, 2015 at 3:43 PM, Kinuko Yasuda <kin...@chromium.org> wrote:
> Any feedback, comments, or suggestions for more potential project ideas are
> welcome!
Last week at TPAC I found out that neither Apple nor Microsoft have
any intent of shipping shared workers (Apple did ship them for a
while, but reportedly the feature has been removed per iOS 9). Should
Google and Mozilla follow suit?That's sad. Unshipping shared workers in Chrome is a tough choice, if not impossible, at least for now. The usage is actually not that high but not low enough to consider deprecation, and we have some important Web sites (like Google docs) that extensibly use shared workers. We will need a convincing alternative solution that existing customers can migrate to. Service Worker could be one choice, but the lifetime constraints seem to be one of the hurdles for shared worker users, and service workers aren't implemented in neither Apple nor Microsoft either yet.
I definitely think that service workers could fill the need of shared
workers. But they would need some changes in order to meet these
needs.
The use case that we have for FirefoxOS is to have an execution
context which can coordinate things like database access and server
access for multiple running windows. I.e. for many pieces of UI.
With a shared worker that is quite easy to do. Simply calling "new
SharedWorker(url)" gives you access to an execution context which does
that coordination.
Additionally this execution context needs to preload data (from
network and/or indexedDB) which we expect to be used soon or often and
keep it in memory.
Right now a lot of this is much harder to do using service workers.
But it doesn't need to be. For example I don't see a reason to not
enable doing
var sw = new ServiceWorker("url");
sw.postMessage("...");
sw.onmessage = (e) => {...};