[SameObject] for receiver seems wrong #365
Comments
|
@annevk could you clarify what seems wrong? The Its value will never change while the receiving browsing context exists. The In short, the spec uses |
It does. I can hold a reference to those objects while the browsing context could still go away. |
Ah. How? What's the concrete set of steps that creates this possibility? |
|
@tidoust e.g., remove an |
|
@annevk So, I see something wrong but I'm not sure that's the problem you're raising here ;) The spec may not be clear about nested contexts on the receiving side but Is that the situation that you have in mind? The problem for me is that the spec does not say that the state of presentation connections should be changed to What I do not understand is how dropping |
|
I think currently you can't even use [SameObject] for a nullable type, so that might be another problem.
I'm not suggesting it does I think. You might have bigger problems, for sure. |
OK, got it. The WebIDL spec says "The [SameObject] extended attribute must not be used on anything other than a read only attribute whose type is an interface type or object" and a "nullable type" is indeed something different: |
|
One thing that I missed in a previous comment (#365 (comment)) is that the receiving browsing context cannot create new auxiliary browsing contexts in practice, because the "sandboxed auxiliary navigation browsing context flag" is set. It may only create nested browsing contexts and I still don't see how the reference issue can occur with nested browsing contexts. The nullable type problem remains though. |
tidoust
referenced
this issue
Nov 16, 2016
Closed
Well defined environment for nested contexts of the receiving browsing context? #367
|
Agreed that Agreed that the spec is not clear enough on the behavior of PresentationReceiver in nested browsing contexts. That should be raised separately; I see @tidoust filed #367 so let's discuss there. Per #365 (comment), if there's an opportunity for script to run when the receiving user agent closes a receiving browsing context, then we should also discuss whether to fire a terminated event on connections on the receiver side. Filed #374. |
annevk commentedNov 9, 2016
How can receiver always return the same object? What happens when the browsing context goes away?