Bug 1519546 Comment 20 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Hi, rhunt,

I'm trying to share the CSS transform information with both oop-iframe and non-oop iframe in the same document. For example:
```
<div id="parent">
  <iframe fission id="iframe-oop" src="remote.html"></iframe>
  <iframe id="iframe-non-oop" src="remote2.html"></iframe>
</div>
```

When I have a transform style change on "parent" div, we will propagate the transform update to both iframes. For "iframe-oop", it's very simple, I checked if it is an oop-iframe, and it is, so we follow the steps in comment 2 (i.e. send the IPC message via `BrowserBridge` and store the updated transform in remote `TabChild`).

However, I'm not sure how to update the transform for "iframe-non-oop" element. It is not an oop-iframe, so we don't have `BrowserBridge`. I still want to update the transform stored in its `TabChild`. My question is: Does it have `TabChild`? I tried to get its `TabChild` or inner view, or the frames inside this non-oop iframe by the `nsIDocShell` in its frameloader (i.e. nsFrameLoader::mDocShell), but unfortunately, I cannot get the remote `TabChild` (because it is in-process, I guess), and got null `nsIPresShell`/`nsIPresContext`. Therefore, I have no idea how to update the transform for the non-oop iframe. Not sure which way or which function should I use to share the css transform. Could you please give me some hints? Thanks.
Hi, rhunt,

I'm trying to share the CSS transform information with both oop-iframe and non-oop iframe in the same document. For example:
```
<div id="parent">
  <iframe fission id="iframe-oop" src="remote.html"></iframe>
  <iframe id="iframe-non-oop" src="remote2.html"></iframe>
</div>
```

When I have a transform style change on "parent" div, we will propagate the transform update to both iframes. For "iframe-oop", it's very simple, I checked if it is an oop-iframe, and it is, so we follow the steps in comment 2 (i.e. send the IPC message via `BrowserBridge` and store the updated transform in remote `TabChild`).

However, I'm not sure how to update the transform for "iframe-non-oop" element. It is not an oop-iframe, so we don't have `BrowserBridge`. I still want to update the transform and go through all the iframes inside its subtree. My question is: For non-oop iframe, there is no `TabChild`, right? That means we should not store the transform information in `TabChild`. Besides, I tried to get the `nsIPresShell` or `nsIPresContext` inside this non-oop iframe by its browsing context, but unfortunately, I got null values. Therefore, I have no idea how to update the transform for the non-oop iframe. Not sure which way or which function should I use to share the CSS transform. Could you please give me some hints? Thanks.

Back to Bug 1519546 Comment 20