Skip to content

webview.webContents.addListener returns an empty object  #148

Description

@jediddev

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

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