Skip to content

Commit 7c0d065

Browse files
committed
[gwr] (2) MessagePorts shouldn't be GCed even when their queue is closed if they have events targetted at them. (credit: ap)
git-svn-id: http://svn.whatwg.org/webapps@2358 340c8d12-0b0e-0410-8428-c7bf67bfef74
1 parent 74b26c8 commit 7c0d065

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

index

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<div class=head>
1717
<p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/https/github.com/images/logo></a></p>
1818
<h1>HTML 5</h1>
19-
<h2 class="no-num no-toc" id=draft-recommendation-&mdash;-date:-01-jan-1901>Draft Recommendation &mdash; 20 October 2008</h2>
19+
<h2 class="no-num no-toc" id=draft-recommendation-&mdash;-date:-01-jan-1901>Draft Recommendation &mdash; 21 October 2008</h2>
2020
<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>
2121
<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>
2222
<dl><dt>Multiple-page version:</dt>
@@ -43152,10 +43152,14 @@ interface <dfn id=messagechannel>MessageChannel</dfn> {
4315243152
</div>
4315343153

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

4316043164

4316143165

source

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49200,10 +49200,14 @@ interface <dfn>MessageChannel</dfn> {
4920049200
</div>
4920149201

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

4920849212

4920949213

0 commit comments

Comments
 (0)