mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Create webContents for webview even when src is not set
This commit is contained in:
@@ -230,7 +230,7 @@ class SrcAttribute extends WebViewAttribute {
|
||||
}
|
||||
|
||||
parse () {
|
||||
if (!this.webViewImpl.elementAttached || !this.webViewImpl.attributes[webViewConstants.ATTRIBUTE_PARTITION].validPartitionId || !this.getValue()) {
|
||||
if (!this.webViewImpl.elementAttached || !this.webViewImpl.attributes[webViewConstants.ATTRIBUTE_PARTITION].validPartitionId) {
|
||||
return
|
||||
}
|
||||
if (this.webViewImpl.guestInstanceId == null) {
|
||||
@@ -240,6 +240,9 @@ class SrcAttribute extends WebViewAttribute {
|
||||
}
|
||||
return
|
||||
}
|
||||
if (!this.getValue()) {
|
||||
return
|
||||
}
|
||||
|
||||
// Navigate to |this.src|.
|
||||
const opts = {}
|
||||
|
||||
Reference in New Issue
Block a user