Skip to content

Commit

Permalink
Adjust the update timestamp bumping step in Update algorithm. Fixes #514
Browse files Browse the repository at this point in the history
.
  • Loading branch information
jungkees committed Oct 28, 2015
1 parent 1384c07 commit 621d412
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/service_worker/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2525,7 +2525,6 @@ <h1>Update</h1>
<li>Abort these steps.</li>
</ol>
</li>
<li>If <var>response</var>'s <a href="https://fetch.spec.whatwg.org/#concept-response-cache-state">cache state</a> is not "<code>local</code>", set <var>registration</var>'s <a href="#dfn-last-update-check-time">last update check time</a> to the current time.</li>
<li><a href="https://fetch.spec.whatwg.org/#concept-header-extract-mime-type">Extract a MIME type</a> from the <var>response</var>'s <a href="https://fetch.spec.whatwg.org/#concept-response-header-list">header list</a>. If this MIME type (ignoring parameters) is not one of <code>text/javascript</code>, <code>application/x-javascript</code>, and <code>application/javascript</code>, then:
<ol>
<li>Reject <var>p</var> with a "<code><a href="http://heycam.github.io/webidl/#securityerror">SecurityError</a></code>" exception.</li>
Expand Down Expand Up @@ -2566,6 +2565,7 @@ <h1>Update</h1>
<li>Abort these steps.</li>
</ol>
</li>
<li>If <var>response</var>'s <a href="https://fetch.spec.whatwg.org/#concept-response-cache-state">cache state</a> is not "<code>local</code>", set <var>registration</var>'s <a href="#dfn-last-update-check-time">last update check time</a> to the current time.</li>
<li>Set <var>newestWorker</var> to the result of running the <a href="#get-newest-worker-algorithm">Get Newest Worker</a> algorithm passing <var>registration</var> as the argument.</li>
<li>If <var>newestWorker</var> is not null, <var>newestWorker</var>'s <a href="#dfn-script-url">script url</a> <a href="https://url.spec.whatwg.org/#concept-url-equals">equals</a> <var>registration</var>'s <a href="#dfn-registration-script-url">registering script url</a> with the <em>exclude fragments flag</em> set, and <var>response</var> is a byte-for-byte match with the script resource of <var>newestWorker</var>, then:
<ol>
Expand Down
2 changes: 1 addition & 1 deletion spec/service_worker_1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2523,7 +2523,6 @@ <h1>Update</h1>
<li>Abort these steps.</li>
</ol>
</li>
<li>If <var>response</var>'s <a href="https://fetch.spec.whatwg.org/#concept-response-cache-state">cache state</a> is not "<code>local</code>", set <var>registration</var>'s <a href="#dfn-last-update-check-time">last update check time</a> to the current time.</li>
<li><a href="https://fetch.spec.whatwg.org/#concept-header-extract-mime-type">Extract a MIME type</a> from the <var>response</var>'s <a href="https://fetch.spec.whatwg.org/#concept-response-header-list">header list</a>. If this MIME type (ignoring parameters) is not one of <code>text/javascript</code>, <code>application/x-javascript</code>, and <code>application/javascript</code>, then:
<ol>
<li>Reject <var>p</var> with a "<code><a href="http://heycam.github.io/webidl/#securityerror">SecurityError</a></code>" exception.</li>
Expand Down Expand Up @@ -2564,6 +2563,7 @@ <h1>Update</h1>
<li>Abort these steps.</li>
</ol>
</li>
<li>If <var>response</var>'s <a href="https://fetch.spec.whatwg.org/#concept-response-cache-state">cache state</a> is not "<code>local</code>", set <var>registration</var>'s <a href="#dfn-last-update-check-time">last update check time</a> to the current time.</li>
<li>Set <var>newestWorker</var> to the result of running the <a href="#get-newest-worker-algorithm">Get Newest Worker</a> algorithm passing <var>registration</var> as the argument.</li>
<li>If <var>newestWorker</var> is not null, <var>newestWorker</var>'s <a href="#dfn-script-url">script url</a> <a href="https://url.spec.whatwg.org/#concept-url-equals">equals</a> <var>registration</var>'s <a href="#dfn-registration-script-url">registering script url</a> with the <em>exclude fragments flag</em> set, and <var>response</var> is a byte-for-byte match with the script resource of <var>newestWorker</var>, then:
<ol>
Expand Down

0 comments on commit 621d412

Please sign in to comment.