Navigation Menu

Skip to content

Commit

Permalink
[gw] (2) Define the interaction of the appcache feature and the worke…
Browse files Browse the repository at this point in the history
…rs feature.

git-svn-id: http://svn.whatwg.org/webapps@2920 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Mar 28, 2009
1 parent 6efeaa0 commit 7c6abac
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 11 deletions.
17 changes: 8 additions & 9 deletions index
Expand Up @@ -724,11 +724,10 @@
<li><a href=#parsing-cache-manifests><span class=secno>5.8.3.3 </span>Parsing cache manifests</a></ol></li>
<li><a href=#updating-an-application-cache><span class=secno>5.8.4 </span>Updating an application cache</a></li>
<li><a href=#matching-a-fallback-namespace><span class=secno>5.8.5 </span>Matching a fallback namespace</a></li>
<li><a href=#the-application-cache-selection-algorithm><span class=secno>5.8.6 </span>The application cache selection algorithm</a>
<ol>
<li><a href=#changesToNetworkingModel><span class=secno>5.8.6.1 </span>Changes to the networking model</a></ol></li>
<li><a href=#application-cache-api><span class=secno>5.8.7 </span>Application cache API</a></li>
<li><a href=#browser-state><span class=secno>5.8.8 </span>Browser state</a></ol></li>
<li><a href=#the-application-cache-selection-algorithm><span class=secno>5.8.6 </span>The application cache selection algorithm</a></li>
<li><a href=#changesToNetworkingModel><span class=secno>5.8.7 </span>Changes to the networking model</a></li>
<li><a href=#application-cache-api><span class=secno>5.8.8 </span>Application cache API</a></li>
<li><a href=#browser-state><span class=secno>5.8.9 </span>Browser state</a></ol></li>
<li><a href=#history><span class=secno>5.9 </span>Session history and navigation</a>
<ol>
<li><a href=#the-session-history-of-browsing-contexts><span class=secno>5.9.1 </span>The session history of browsing contexts</a></li>
Expand Down Expand Up @@ -43279,7 +43278,7 @@ style/default.css</pre>

</dd>

</dl><h5 id=changesToNetworkingModel><span class=secno>5.8.6.1 </span>Changes to the networking model</h5>
</dl><h4 id=changesToNetworkingModel><span class=secno>5.8.7 </span>Changes to the networking model</h4>

<p>When a <a href=#cache-host>cache host</a> is associated with an
<a href=#application-cache>application cache</a> whose <a href=#concept-appcache-completeness title=concept-appcache-completeness>completeness flag</a> is
Expand Down Expand Up @@ -43338,7 +43337,7 @@ style/default.css</pre>



<h4 id=application-cache-api><span class=secno>5.8.7 </span>Application cache API</h4>
<h4 id=application-cache-api><span class=secno>5.8.8 </span>Application cache API</h4>

<pre class=idl>interface <dfn id=applicationcache>ApplicationCache</dfn> {

Expand Down Expand Up @@ -43413,7 +43412,7 @@ style/default.css</pre>
hosts</a> to <code><a href=#applicationcache>ApplicationCache</a></code> objects. The <dfn id=dom-applicationcache title=dom-applicationCache><code>applicationCache</code></dfn>
attribute on <code><a href=#window>Window</a></code> objects must return the
<code><a href=#applicationcache>ApplicationCache</a></code> object associated with the
<code><a href=#window>Window</a></code> object's <a href=#active-document>active document</a>. The <dfn id=dom-worker-applicationcache title=dom-worker-applicationCache><code>applicationCache</code></dfn>
<code><a href=#window>Window</a></code> object's <a href=#active-document>active document</a>. The <dfn id=dom-sharedworkerglobalscope-applicationcache title=dom-SharedWorkerGlobalScope-applicationCache><code>applicationCache</code></dfn>
attribute on <code>SharedWorkerGlobalScope</code> objects must
return the <code><a href=#applicationcache>ApplicationCache</a></code> object associated with the
worker.</p>
Expand Down Expand Up @@ -43581,7 +43580,7 @@ style/default.css</pre>
</dl></div>


<h4 id=browser-state><span class=secno>5.8.8 </span>Browser state</h4>
<h4 id=browser-state><span class=secno>5.8.9 </span>Browser state</h4>

<dl class=domintro><dt><var title="">window</var> . <code title=dom-navigator><a href=#dom-navigator>navigator</a></code> . <code title=dom-navigator-onLine><a href=#dom-navigator-online>onLine</a></code></dt>

Expand Down
32 changes: 30 additions & 2 deletions source
Expand Up @@ -49205,7 +49205,7 @@ style/default.css</pre>



<h5 id="changesToNetworkingModel">Changes to the networking model</h5>
<h4 id="changesToNetworkingModel">Changes to the networking model</h4>

<p>When a <span>cache host</span> is associated with an
<span>application cache</span> whose <span
Expand Down Expand Up @@ -49355,7 +49355,7 @@ style/default.css</pre>
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
title="dom-worker-applicationCache"><code>applicationCache</code></dfn>
title="dom-SharedWorkerGlobalScope-applicationCache"><code>applicationCache</code></dfn>
attribute on <code>SharedWorkerGlobalScope</code> objects must
return the <code>ApplicationCache</code> object associated with the
worker.</p>
Expand Down Expand Up @@ -58458,13 +58458,18 @@ XXX Once we resolve the style="" issue, address these:

</dl>

<p>For the purposes of the <span>offline application cache</span>
networking model, a dedicated worker is an extension of the
<span>cache host</span> from which it was created.</p>



<h5>Shared workers and the <code>SharedWorkerGlobalScope</code> inteface</h5>

<!-- the XXX below is for collapsing this interface onto WorkerGlobalScope so it looks like just one interface - the inheritance is a spec fiction only -->
<pre class="idl">[NoInterfaceObject, XXX] interface <dfn>SharedWorkerGlobalScope</dfn> : <span>WorkerGlobalScope</span> {
readonly attribute DOMString <span title="dom-SharedWorkerGlobalScope-name">name</span>;
readonly attribute <span>ApplicationCache</span> <span title="dom-SharedWorkerGlobalScope-applicationCache">applicationCache</span>;
attribute <span>EventListener</span> <span title="handler-SharedWorkerGlobalScope-onconnect">onconnect</span>;
};</pre>

Expand Down Expand Up @@ -58494,6 +58499,17 @@ XXX Once we resolve the style="" issue, address these:

</dl>

<p>For the purposes of the <span>offline 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 <dfn
title="dom-SharedWorkerGlobalScope-applicationCache"><code>applicationCache</code></dfn>
returns the <code>ApplicationCache</code> object for the
worker.</p><!-- normative conf criteria is in the appcache section
-->


<h4>Base URLs and origins of workers</h4>

Expand Down Expand Up @@ -58741,6 +58757,18 @@ XXX Once we resolve the style="" issue, address these:

</li>

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

<li>

<p>Attempt to <span>fetch</span> the resource identified by <var
Expand Down

0 comments on commit 7c6abac

Please sign in to comment.