Skip to content

webview.webContents.addListener returns an empty object  #148

Open
@jdknowstocode

Description

Expected Behavior

const webview = webContents.fromId(webviewel.getWebContentsId())
webview.addListener('will-navigate', e => console.log(e))

This code must return an object like this

{
    isTrusted: false
    url: "https://mail.google.com/"
    bubbles: false
    cancelBubble: false
    cancelable: false
    composed: false
    currentTarget: null
    defaultPrevented: false
    eventPhase: 0
    returnValue: true
    srcElement: webview#webview.w-screen.h-[calc(100vh-40px)]
    target: webview#webview.w-screen.h-[calc(100vh-40px)]
    timeStamp: 1475.2000000001863
    type: "will-navigate"
}

Actual Behavior

But returns an empty object with no data

{}

I do not understand the issue here properly. Please get to me as soon as possible.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions