[whatwg] onclose events for MessagePort

Ehsan Akhgari ehsan at mozilla.com
Thu Oct 17 14:12:28 PDT 2013


On Tue, Oct 15, 2013 at 5:23 AM, Simon Pieters <simonp at opera.com> wrote:

> On Thu, 10 Oct 2013 17:22:32 +0200, Ehsan Akhgari <ehsan at mozilla.com>
> wrote:
>
>  Does navigation disentangle ports? I don't think it necessarily does, at
>>> least per spec.
>>>
>>
>>
>> The current spec doesn't mention what happens in the case of navigation in
>> the owner for a port as far as I can tell.  But I consider that a bug in
>> the spec -- navigation _should_ disentangle ports.
>>
>
> Why?
>
> How would it work? If the port gets disentangled, it means the document
> has to set the salvegeable flag to false, so that navigating back doesn't
> put the document in a broken state. Do browsers do that? Is it the best
> thing to do?
>
> What if another document also has a reference to the port, does it still
> get disentangled when the owner gets navigated?
>

Yeah, I think I was wrong to assume that navigation disentangles the
ports...

Thanks for correcting me!

--
Ehsan
<http://ehsanakhgari.org/>



More information about the whatwg mailing list