Skip to content

webview.loadURL not working when element is cloned #30078

Closed
@TechStudent10

Description

@TechStudent10

Preflight Checklist

Electron Version

13.1.6

What operating system are you using?

Windows

Operating System Version

20H2

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

When I clone a webview element and use the loadURL method, it should change the URL and load whatever I passed in.

Actual Behavior

The loadURL method throws an error and doesn't work.
Error:

Uncaught TypeError: webview.loadURL is not a function
    at createNewTab (renderer.js:40)
    at renderer.js:71
    at Array.map (<anonymous>)
    at renderer.js:70

Testcase Gist URL

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions