Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[gwr] (2) MessagePorts shouldn't be GCed even when their queue is clo…
…sed if they have events targetted at them. (credit: ap)

git-svn-id: http://svn.whatwg.org/webapps@2358 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 21, 2008
1 parent 74b26c8 commit 7c0d065
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
14 changes: 9 additions & 5 deletions index
Expand Up @@ -16,7 +16,7 @@
<div class=head>
<p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
<h1>HTML 5</h1>
<h2 class="no-num no-toc" id=draft-recommendation-&mdash;-date:-01-jan-1901>Draft Recommendation &mdash; 20 October 2008</h2>
<h2 class="no-num no-toc" id=draft-recommendation-&mdash;-date:-01-jan-1901>Draft Recommendation &mdash; 21 October 2008</h2>
<p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<dl><dt>Multiple-page version:</dt>
Expand Down Expand Up @@ -43152,10 +43152,14 @@ interface <dfn id=messagechannel>MessageChannel</dfn> {
</div>

<p>Furthermore, a <code><a href=#messageport>MessagePort</a></code> object must not be
garbage collected while its <a href=#port-message-queue>port message queue</a> is open
and there exists an event either in that queue or in the
<a href=#posted-message-task-source>posted message task source</a> that is to be dispatched on
that <code><a href=#messageport>MessagePort</a></code> object.</p>
garbage collected while there exists a message in a <a href=#task-queue>task
queue</a> that is to be dispatched on that
<code><a href=#messageport>MessagePort</a></code> object, or while the
<code><a href=#messageport>MessagePort</a></code> object's <a href=#port-message-queue>port message queue</a> is
open and there exists a <code title=event-message><a href=#event-message>message</a></code>
event in that queue.</p>
<!-- we might not need to explicitly say the first part of DOM
Events is fixed to say that events on a task queue prevent GC -->



Expand Down
12 changes: 8 additions & 4 deletions source
Expand Up @@ -49200,10 +49200,14 @@ interface <dfn>MessageChannel</dfn> {
</div>

<p>Furthermore, a <code>MessagePort</code> object must not be
garbage collected while its <span>port message queue</span> is open
and there exists an event either in that queue or in the
<span>posted message task source</span> that is to be dispatched on
that <code>MessagePort</code> object.</p>
garbage collected while there exists a message in a <span>task
queue</span> that is to be dispatched on that
<code>MessagePort</code> object, or while the
<code>MessagePort</code> object's <span>port message queue</span> is
open and there exists a <code title="event-message">message</code>
event in that queue.</p>
<!-- we might not need to explicitly say the first part of DOM
Events is fixed to say that events on a task queue prevent GC -->



Expand Down

0 comments on commit 7c0d065

Please sign in to comment.