Skip to content

Commit

Permalink
Remove appcache from shared workers
Browse files Browse the repository at this point in the history
This was never implemented anywhere, and since appcache is deprecated,
it never will be.
  • Loading branch information
domenic authored and foolip committed Feb 24, 2017
1 parent 8abd73e commit 3f1c84d
Showing 1 changed file with 13 additions and 45 deletions.
58 changes: 13 additions & 45 deletions source
Expand Up @@ -83948,19 +83948,15 @@ NETWORK:

<hr>

<p>A <dfn>cache host</dfn> is a <code>Document</code> or a <code>SharedWorkerGlobalScope</code>
object. A <span>cache host</span> can be associated with an <span>application cache</span>.</p>
<p>A <dfn>cache host</dfn> is a <code>Document</code> object.</p>

<p>A <code>Document</code> initially is not associated with an <span>application cache</span>, but
can become associated with one early during the page load process, when steps <a
<p>Each <span>cache host</span> has an associated <code>ApplicationCache</code> object.</p>

<p>Each <span>cache host</span> initially is not associated with an <span>application
cache</span>, but can become associated with one early during the page load process, when steps <a
href="#parser-appcache">in the parser</a> and in the <span data-x="navigate">navigation</span>
sections cause <span data-x="concept-appcache-init">cache selection</span> to occur.</p>

<p>A <code>SharedWorkerGlobalScope</code> can be associated with an <span>application cache</span>
when it is created.</p>

<p>Each <span>cache host</span> has an associated <code>ApplicationCache</code> object.</p>

<hr>

<p>Multiple <span data-x="application cache">application caches</span> in different <span
Expand Down Expand Up @@ -85714,8 +85710,7 @@ NETWORK:

<h4>Application cache API</h4>

<pre class="idl">[Exposed=(Window,SharedWorker)]
interface <dfn>ApplicationCache</dfn> : <span>EventTarget</span> {
<pre class="idl">interface <dfn>ApplicationCache</dfn> : <span>EventTarget</span> {

// <span data-x="concept-appcache-status">update status</span>
const unsigned short <span data-x="dom-appcache-UNCACHED">UNCACHED</span> = 0;
Expand Down Expand Up @@ -85747,15 +85742,8 @@ interface <dfn>ApplicationCache</dfn> : <span>EventTarget</span> {
<dt><var>cache</var> = <var>window</var> . <code subdfn data-x="dom-applicationCache">applicationCache</code></dt>
<dd>

<p>(In a window.) Returns the <code>ApplicationCache</code> object that applies to the
<span>active document</span> of that <code>Window</code>.</p>

</dd>

<dt><var>cache</var> = <var>self</var> . <code data-x="dom-applicationCache">applicationCache</code></dt> <dd>

<p>(In a shared worker.) Returns the <code>ApplicationCache</code> object that applies to the
current shared worker.</p>
<p>Returns the <code>ApplicationCache</code> object that applies to the <span>active
document</span> of that <code>Window</code>.</p>

</dd>

Expand Down Expand Up @@ -85821,15 +85809,13 @@ interface <dfn>ApplicationCache</dfn> : <span>EventTarget</span> {
<div w-nodev>

<p>There is a one-to-one mapping from <span data-x="cache host">cache hosts</span> to
<code>ApplicationCache</code> objects. The <dfn><code data-x="dom-applicationCache">applicationCache</code></dfn> attribute on <code>Window</code>
<code>ApplicationCache</code> objects. The <dfn><code
data-x="dom-applicationCache">applicationCache</code></dfn> attribute on <code>Window</code>
objects must return the <code>ApplicationCache</code> object associated with the
<code>Window</code> object's <span>active document</span>. The <dfn><code data-x="dom-SharedWorkerGlobalScope-applicationCache">applicationCache</code></dfn> attribute
on <code>SharedWorkerGlobalScope</code> objects must return the <code>ApplicationCache</code>
object associated with the worker.</p>
<code>Window</code> object's <span>active document</span>.</p>

<p class="note">A <code>Window</code> or <code>SharedWorkerGlobalScope</code> object has an
associated <code>ApplicationCache</code> object even if that <span>cache host</span> has no actual
<span>application cache</span>.</p>
<p class="note">A <code>Document</code> has an associated <code>ApplicationCache</code> object
even if that <span>cache host</span> has no actual <span>application cache</span>.</p>

<hr>

Expand Down Expand Up @@ -96567,7 +96553,6 @@ interface <dfn>DedicatedWorkerGlobalScope</dfn> : <span>WorkerGlobalScope</span>
<pre class="idl">[Global=(Worker,SharedWorker),Exposed=SharedWorker]
interface <dfn>SharedWorkerGlobalScope</dfn> : <span>WorkerGlobalScope</span> {
readonly attribute DOMString <span data-x="dom-SharedWorkerGlobalScope-name">name</span>;
readonly attribute <span>ApplicationCache</span> <span data-x="dom-SharedWorkerGlobalScope-applicationCache">applicationCache</span>; // deprecated

void <span data-x="dom-SharedWorkerGlobalScope-close">close</span>();

Expand Down Expand Up @@ -96625,15 +96610,6 @@ interface <dfn>SharedWorkerGlobalScope</dfn> : <span>WorkerGlobalScope</span> {
<tr><td><dfn><code data-x="handler-SharedWorkerGlobalScope-onconnect">onconnect</code></dfn> <td> <code data-x="event-WorkerGlobalScope-connect">connect</code>
</table>

<p>For the purposes of the <span>application cache</span> networking model, a shared worker is its
own <span>cache host</span>. The <span>run a worker</span> algorithm takes care of associating the
worker with an <span>application cache</span>.</p>

<p class="note">The <code
data-x="dom-SharedWorkerGlobalScope-applicationCache">applicationCache</code> attribute returns the
<code>ApplicationCache</code> object for the worker.</p><!-- normative conf criteria is in the
appcache section -->



<h4 id="worker-event-loop">The event loop</h4>
Expand Down Expand Up @@ -96884,14 +96860,6 @@ interface <dfn>SharedWorkerGlobalScope</dfn> : <span>WorkerGlobalScope</span> {
data-x="concept-WorkerGlobalScope-type">type</span> to the value of the <code
data-x="">type</code> member of <var>options</var>.</p></li>

<li><p>If <var>is shared</var> is true, and there are any <span data-x="relevant application
cache">relevant application caches</span> that are identified by a manifest URL with the
<span>same origin</span> as <var>url</var> and that have <var>url</var> as one of their
entries, <em>not</em> excluding entries marked as <span
data-x="concept-appcache-foreign">foreign</span>, then associate <var>worker global scope</var>
with the <span data-x="concept-appcache-selection">most appropriate application cache</span> of
those that match.</p></li>

<li><p>Create a new <code>WorkerLocation</code> object and associate it with <var>worker global
scope</var>.</p>

Expand Down

0 comments on commit 3f1c84d

Please sign in to comment.