Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[giow] (1) Make workers get the online and offline events also.
git-svn-id: http://svn.whatwg.org/webapps@5835 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Feb 5, 2011
1 parent d364381 commit ecc9e46
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 27 deletions.
18 changes: 9 additions & 9 deletions complete.html
Expand Up @@ -63836,18 +63836,18 @@ <h4 id=browser-state><span class=secno>6.6.10 </span>Browser state</h4>
remote page (or knows that such an attempt would fail), and must
return true otherwise.</p>

<p>When the value that would be returned by the <code title=dom-navigator-onLine><a href=#dom-navigator-online>navigator.onLine</a></code> attribute of
the <code><a href=#window>Window</a></code> changes from true to false, the user agent
must <a href=#queue-a-task>queue a task</a> to <a href=#fire-a-simple-event>fire a simple event</a>
named <dfn id=event-offline title=event-offline><code>offline</code></dfn> at the
<code><a href=#window>Window</a></code> object.</p>
<p>When the value that would be returned by the <code title=dom-navigator-onLine><a href=#dom-navigator-online>navigator.onLine</a></code> attribute of a
<code><a href=#window>Window</a></code> or <code><a href=#workerglobalscope>WorkerGlobalScope</a></code> changes from
true to false, the user agent must <a href=#queue-a-task>queue a task</a> to
<a href=#fire-a-simple-event>fire a simple event</a> named <dfn id=event-offline title=event-offline><code>offline</code></dfn> at the
<code><a href=#window>Window</a></code> or <code><a href=#workerglobalscope>WorkerGlobalScope</a></code> object.</p>

<p>On the other hand, when the value that would be returned by the
<code title=dom-navigator-onLine><a href=#dom-navigator-online>navigator.onLine</a></code> attribute
of the <code><a href=#window>Window</a></code> changes from false to true, the user
agent must <a href=#queue-a-task>queue a task</a> to <a href=#fire-a-simple-event>fire a simple
event</a> named <dfn id=event-online title=event-online><code>online</code></dfn> at the
<code><a href=#window>Window</a></code> object.</p>
of a <code><a href=#window>Window</a></code> or <code><a href=#workerglobalscope>WorkerGlobalScope</a></code> changes
from false to true, the user agent must <a href=#queue-a-task>queue a task</a> to
<a href=#fire-a-simple-event>fire a simple event</a> named <dfn id=event-online title=event-online><code>online</code></dfn> at the
<code><a href=#window>Window</a></code> or <code><a href=#workerglobalscope>WorkerGlobalScope</a></code> object.</p>

<p>The <a href=#task-source>task source</a> for these <a href=#concept-task title=concept-task>tasks</a> is the <a href=#networking-task-source>networking task
source</a>.</p>
Expand Down
18 changes: 9 additions & 9 deletions index
Expand Up @@ -63833,18 +63833,18 @@ interface <dfn id=navigatoronline>NavigatorOnLine</dfn> {
remote page (or knows that such an attempt would fail), and must
return true otherwise.</p>

<p>When the value that would be returned by the <code title=dom-navigator-onLine><a href=#dom-navigator-online>navigator.onLine</a></code> attribute of
the <code><a href=#window>Window</a></code> changes from true to false, the user agent
must <a href=#queue-a-task>queue a task</a> to <a href=#fire-a-simple-event>fire a simple event</a>
named <dfn id=event-offline title=event-offline><code>offline</code></dfn> at the
<code><a href=#window>Window</a></code> object.</p>
<p>When the value that would be returned by the <code title=dom-navigator-onLine><a href=#dom-navigator-online>navigator.onLine</a></code> attribute of a
<code><a href=#window>Window</a></code> or <code>WorkerGlobalScope</code> changes from
true to false, the user agent must <a href=#queue-a-task>queue a task</a> to
<a href=#fire-a-simple-event>fire a simple event</a> named <dfn id=event-offline title=event-offline><code>offline</code></dfn> at the
<code><a href=#window>Window</a></code> or <code>WorkerGlobalScope</code> object.</p>

<p>On the other hand, when the value that would be returned by the
<code title=dom-navigator-onLine><a href=#dom-navigator-online>navigator.onLine</a></code> attribute
of the <code><a href=#window>Window</a></code> changes from false to true, the user
agent must <a href=#queue-a-task>queue a task</a> to <a href=#fire-a-simple-event>fire a simple
event</a> named <dfn id=event-online title=event-online><code>online</code></dfn> at the
<code><a href=#window>Window</a></code> object.</p>
of a <code><a href=#window>Window</a></code> or <code>WorkerGlobalScope</code> changes
from false to true, the user agent must <a href=#queue-a-task>queue a task</a> to
<a href=#fire-a-simple-event>fire a simple event</a> named <dfn id=event-online title=event-online><code>online</code></dfn> at the
<code><a href=#window>Window</a></code> or <code>WorkerGlobalScope</code> object.</p>

<p>The <a href=#task-source>task source</a> for these <a href=#concept-task title=concept-task>tasks</a> is the <a href=#networking-task-source>networking task
source</a>.</p>
Expand Down
19 changes: 10 additions & 9 deletions source
Expand Up @@ -72618,19 +72618,20 @@ interface <dfn>NavigatorOnLine</dfn> {
return true otherwise.</p>

<p>When the value that would be returned by the <code
title="dom-navigator-onLine">navigator.onLine</code> attribute of
the <code>Window</code> changes from true to false, the user agent
must <span>queue a task</span> to <span>fire a simple event</span>
named <dfn title="event-offline"><code>offline</code></dfn> at the
<code>Window</code> object.</p>
title="dom-navigator-onLine">navigator.onLine</code> attribute of a
<code>Window</code> or <code>WorkerGlobalScope</code> changes from
true to false, the user agent must <span>queue a task</span> to
<span>fire a simple event</span> named <dfn
title="event-offline"><code>offline</code></dfn> at the
<code>Window</code> or <code>WorkerGlobalScope</code> object.</p>

<p>On the other hand, when the value that would be returned by the
<code title="dom-navigator-onLine">navigator.onLine</code> attribute
of the <code>Window</code> changes from false to true, the user
agent must <span>queue a task</span> to <span>fire a simple
event</span> named <dfn
of a <code>Window</code> or <code>WorkerGlobalScope</code> changes
from false to true, the user agent must <span>queue a task</span> to
<span>fire a simple event</span> named <dfn
title="event-online"><code>online</code></dfn> at the
<code>Window</code> object.</p>
<code>Window</code> or <code>WorkerGlobalScope</code> object.</p>

<p>The <span>task source</span> for these <span
title="concept-task">tasks</span> is the <span>networking task
Expand Down

0 comments on commit ecc9e46

Please sign in to comment.