You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
disentangle the two ports. If the method is called on a port that is not entangled, then the
96102
96101
method must do nothing.</p>
96103
96102
96104
-
<!--ILLFATED (search for '- -')
96105
-
<hr>
96106
-
96107
-
<p>In some circumstances, an entangled <code>MessagePort</code> <var>source port</var>
96108
-
that is not <a href="#ports-and-garbage-collection">eligible for garbage collection</a> will
96109
-
nonetheless find itself prematurely destroyed, for example if the user manually terminates the
96110
-
user agent's host process. Under such circumstances, user agents should attempt to following these
96111
-
steps:</p>
96112
-
96113
-
<!- - don't fire this for navigation, it would break bfcache - ->
96114
-
<!- - for consistency, we don't fire this for worker termination - ->
96115
-
<!- - we don't fire it on .close() because that would let you probe GC behavior also - ->
96116
-
96117
-
<ol>
96118
-
96119
-
<li><p>Let <var>target port</var> be the port with which the ill-fated <var>source port</var> is entangled.</p></li>
96120
-
96121
-
<li><p>If there is no <var>target port</var> (i.e. if <var>source port</var>
96122
-
is not entangled), or if <var>target port</var> is suffering the same fate as <var>source port</var> (e.g. if both ports are in the same host process), then abort these
96123
-
steps.</p></li>
96124
-
96125
-
<li><p>Mark <var>target port</var> as being a <dfn>related to an ill-fated
96126
-
port</dfn>.</p></li>
96127
-
96128
-
<li><p>Create a <span data-x="concept-task">task</span> that <span
96129
-
data-x="concept-event-fire">fires an event</span> named <code data-x="event-error">error</code>
96130
-
at <var>target port</var>, and add the <span data-x="concept-task">task</span> to the <span>port
96131
-
message queue</span> of <var>target port</var>. If the <var>new port</var>'s <span
96132
-
data-x="concept-port-owner">owner</span> specifies a <span>responsible event loop</span> that is
96133
-
a <span>browsing context</span> <span>event loop</span>, the <span
96134
-
data-x="concept-task">task</span> must be associated with the <span>responsible document</span>
0 commit comments