srcdoc and `about:blank` iframe subresources should be captures by parent SW |
||||
Issue descriptionChrome Version: M70 OS: N/A Srcdoc and about:blank nested context documents are currently not covered by their parent’s service worker. That results in some discrepancies (e.g. Resource Timing reports the URLs that these document load, but service worker doesn’t intercept them). Related spec discussion: https://github.com/whatwg/html/pull/3725 Is seems like Firefox and Safari already do the right thing. (very) rough implementation design document: https://docs.google.com/document/d/1no9CojJ5lYepbuWiHE6Pk51z6-IePErHpQCx_PMZa4E/edit#
,
Sep 5
I think the service worker discussion about this has so far focused on the initial about:blank case. I don't think we have a test for the condition you are asking about. There is some discussion about a similar situation with blob URL frames, though. See: https://github.com/w3c/ServiceWorker/issues/1261 I just tested creating a cross-origin iframe and then navigating it to "about:blank" from the parent in firefox 63. Currently it does not inherit the controller at all right now. Anyway, its probably reasonable to proceed with the initial about:blank and srcdoc cases for now until the spec is clarified. I filed an issue to discuss the navigate-to-blank case: https://github.com/w3c/ServiceWorker/issues/1350
,
Sep 5
It is fair to focus on initial empty document initially, I just want to ensure we don't make any assumptions in this work about parent being the only source of origin information. Similarly, window.open() with no URL is a variation of this where the origin is inherited from the opener. So as long as we structure the design to be flexible and accommodate those cases with simple follow up work, it is fine with me.
,
Oct 16
,
Oct 23
|
||||
►
Sign in to add a comment |
||||
Comment 1 by nasko@chromium.org
, Sep 5