Skip to content

Commit

Permalink
SharedWorker is upstreamed.
Browse files Browse the repository at this point in the history
Closes #31.
  • Loading branch information
mikewest committed Jul 16, 2016
1 parent 5f36532 commit 08a3c18
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions index.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -618,13 +618,18 @@ <h3 id="integration-idl">Intergration with WebIDL</h3>

<h3 id="monkey-patching-html">Modifications to HTML</h3>

<h4 id="monkey-patching-shared-workers">Shared Workers</h4>
<h4 id="monkey-patching-shared-workers" class="non-normative">Shared Workers</h4>

<em>This section is non-normative</em>.

The {{SharedWorker()}} constructor will throw a `SecurityError` exception if
a <a>secure context</a> attempts to attach to an Worker which is not a
<a>secure context</a>, and if a non-secure context attempts to attach to a
Worker which is a <a>secure context</a>. The constructor is modified as
follows:
Worker which is a <a>secure context</a>.


The constructor is modified as follows (though the SharedWorker specification
remains the normative reference):

1. As the first substep of the {{SharedWorker()}} constructor's current step
6.7 ("If <var>worker global scope</var> is not `null`, then run these
Expand All @@ -636,8 +641,9 @@ <h4 id="monkey-patching-shared-workers">Shared Workers</h4>
object</a>, then throw a `SecurityError` exception, and abort
these steps.

ISSUE(whatwg/html#1560): Upstreaming to WHATWG is underway.

Note: This change landed in WHATWG's HTML in
<a href="https://github.com/whatwg/html/pull/1560">whatwg/html#1560</a>.

ISSUE: It's not clear to me how the W3C's [[WEBWORKERS]] document is updated.
It looks like it's pulling content from the WHATWG upstream, which means
that the PR linked above should flow into it? But that document hasn't been
Expand Down

0 comments on commit 08a3c18

Please sign in to comment.