On 5/20/16 11:28 AM, smaug wrote:
(1) vs (2) isn't quite clear to me though. Do you mean with (2) that docshell wouldn't have any loagroup, but a channel?
No. I mean that the docshell would have a loadgroup. When you navigate a docshell it would create the new channel, create a _new_ loadgroup, put the channel in the new loadgroup, put the new loadgroup in the docshell loadgroup.
If we end up creating a document from the channel, that document would grab the channel's loadgroup and use it as its own loadgroup.
But then you say there would be docshell-level loadgroup... so doesn't that mean that document's loadgroup would be in it, so (1).
In both proposals the document's loadgroup is in the docshell's loadgroup. The only difference is which loadgroup the document channel itself lives in.
I assume we'd reuse loadgroup in case same inner window is used for many documents (initial about:blank), right?
Yeah, this part could be complicated. :( Especially if we want to put the document channel in the document loadgroup: we'd have to move it in the reuse case or something.
-Boris _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform