W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2014

[Bug 24691] New: Allow shared Web workers to persist across page loads from same origin

From: <bugzilla@jessica.w3.org>
Date: Mon, 17 Feb 2014 11:39:24 +0000
To: public-webapps@w3.org
Message-ID: <bug-24691-2927@http.www.w3.org/Bugs/Public/>

            Bug ID: 24691
           Summary: Allow shared Web workers to persist across page loads
                    from same origin
           Product: WebAppsWG
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Web Workers (editor: Ian Hickson)
          Assignee: ian@hixie.ch
          Reporter: alexander.goedde@gmail.com
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, public-webapps@w3.org

The problem: 
With classic, multi-page Web sites, processing of data and network events are
limited in their lifetime by the lifetime of the single page. There  is no
persistence across pages on the same site.

Example use case:
A user on a Web site which has user profiles uploads a profile image. He cannot
browse to another page before the image upload has been finished.

At a first glance, shared Web workers seem to provide a solution, see e.g.
comments at    

According to the spec, with only a single browser tab, the unload/load must
lead to the Web worker's closing flag being set to 'true'. 
In a sample current implementation (Chrome 34.0.1843.0), it is possible to
produce cases where the shared Web worker persists - but these lie outside of
normal use parameters. 
In any case, there can be no assurance for persistence.

Proposed solution:
When a browser determines that the page to load has the same origin as the
present page which instantiated a shared Web worker, then it persists this Web

Persistence could be until a defined event has passed without the new page
instantiating the shared Web worker.
This could e.g. be the parsing of the document, without any inline script or
synchronously loaded script having made the request.

You are receiving this mail because:
You are on the CC list for the bug.
Received on Monday, 17 February 2014 11:39:25 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:14:22 UTC