fix: will-attach-webview handler modifying params.instanceId does not break <webview> (#32386)
This commit is contained in:
parent
cbe68bdbb8
commit
99ee1fc0eb
5 changed files with 34 additions and 16 deletions
|
@ -25,7 +25,6 @@ export class WebViewImpl {
|
|||
public hasFocus = false
|
||||
public internalInstanceId?: number;
|
||||
public resizeObserver?: ResizeObserver;
|
||||
public userAgentOverride?: string;
|
||||
public viewInstanceId: number
|
||||
|
||||
// on* Event handlers.
|
||||
|
@ -180,8 +179,7 @@ export class WebViewImpl {
|
|||
|
||||
buildParams () {
|
||||
const params: Record<string, any> = {
|
||||
instanceId: this.viewInstanceId,
|
||||
userAgentOverride: this.userAgentOverride
|
||||
instanceId: this.viewInstanceId
|
||||
};
|
||||
|
||||
for (const [attributeName, attribute] of this.attributes) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue