Hi chromium-dev,
(I'm cc-ing a few people here since you have done related changes, please forgive me if I'm cc-ing the wrong person.)
I'm migrating Electron's webview implementation to use OOPIF, and I have problems understanding the OOPIF-based guest view.
As far as I understand, the OOPIF-based guest view is created in following steps:
1. Create an iframe in renderer.
2. Once the iframe is attached, create a guest WebContents in browser.
3. The browser notifies the renderer of guestInstanceId.
4. The renderer receives guestInstanceId and sends iframe's frame ID to browser.
5. The browser calls AttachToOuterWebContentsFrame API on guest WebContents to attach to the iframe.
After following the steps in Electron, I could not make iframe render the content of guest WebContents. I assume I'm missing some critical steps here, can someone familiar with related code help me understand the implementation?
Thanks,
Cheng