w3c / ServiceWorker

Service Workers
https://w3c.github.io/ServiceWorker/
Other
3.63k stars 314 forks source link

should an window.open() about:blank document be controlled by opener's controller? #1163

Open wanderview opened 7 years ago

wanderview commented 7 years ago

Over in #612 we decided that about:blank documents in iframes should inherit their controller from the parent. This matches the inheritence of the origin.

I think we also similarly inherit the origin when creating the about:blank document for window.open(). Should that about:blank client also be controlled by the opener's service workers?

jakearchibald commented 7 years ago

Repeated from IRC:

I don't think many developers understand about:blank's relationship to the parent/opener. But I think making iframe about:blank and window.open about:blank behave the same is the best thing.

jungkees commented 7 years ago

Agreed. The relationship between the auxilary browsing context and the createor browsing context is defined as the same as that of between the child and the parent. So, I think maintaining consistent behaviors make sense.