Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upIframes and dissimilar origin windows weird stuff - Layout thread panic related #27010
Comments
|
So to recap, I think there are a few problems:
So essentially, when navigating a local "about:blank" iframe to another site, it gets messy with regards to when the iframe element in the parent only has access to a dissimilar origin proxy, and when the local layout thread of the "about:blank" initial pipeline is shut-down. Crashes on layout seem to happen when the parent has access to a local window, whereas the layout thread has already been shut-down. |
|
Correction: it seems the local window does switch to being a dissimilar origin proxy, however any references to dom elements of the origin pipeline can still attempt to communicate with a non-existent layout thread. So this is actually the same as #23053, except that the iframe is not disconnected, it is rather navigated to a different origin so the local pipeline and layout threads a closed(and replaced with remote ones running in another script-thread). |
|
Ok this is actually fixed by the fix proposed in #23053 |
I think this might point towards a solution for #22507
I'm doing some debugging of the iframe navigation stuff, and I noted some potential weird stuff.
When adding an cross-site iframe to a WPT test document(for example
<iframe src="https://github.com"></iframe>), the following sequence seems to happen:WindowProxy::new_dissimilar_originused for the "parent" of the document.I have this really ugly test below, and intermittently it hits three situations: