mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
Add comment about CreateNewGuestWindow origins
This commit is contained in:
@@ -191,6 +191,8 @@ content::SiteInstance* WebViewGuestDelegate::GetOwnerSiteInstance() {
|
||||
|
||||
content::WebContents* WebViewGuestDelegate::CreateNewGuestWindow(
|
||||
const content::WebContents::CreateParams& create_params) {
|
||||
// Code below mirrors what content::WebContentsImpl::CreateNewWindow
|
||||
// does for non-guest sources
|
||||
content::WebContents::CreateParams guest_params(create_params);
|
||||
guest_params.initial_size =
|
||||
embedder_web_contents_->GetContainerBounds().size();
|
||||
|
||||
Reference in New Issue
Block a user