webview.webContents.addListener returns an empty object
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- electron, javascript, typescript
- Domain
- desktop
Research direction
Start by reproducing the webContents.fromId(...).addListener('will-navigate', ...) example from the issue and inspect how the Electron remote bridge handles the event argument. Done means the listener receives the event data rather than an empty object, including fields such as url and type.
Written by the indexing model from the issue text.
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.
- Dominant language
- TypeScript
- Stars
- 411
- Forks
- 53
- Avg merge
- 3m
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from electron/remote
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
Similar issues
-
Browser Waiting for: Product Owner
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
getsentry/sentry-javascript#24577 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
agilepathway/label-checker#640 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
copse-dev/agent-pane#2953 ·
-
agentic-workflows
Difficulty 1/5 Under an hour Newbie friendliness 85/100
githubnext/rig#534 ·
-
automation missing-model model-sync provider:pioneer
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
anomalyco/models.dev#7701 ·