This repository has been archived by the owner on Jan 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 109
<webview> / GuestView receives duplicate events for guest on re-attachment #515
Labels
Comments
petemill
added a commit
that referenced
this issue
Mar 1, 2018
… stop forwarding events to the embedder Fix #515
26 tasks
Perhaps this is useful electron/electron@313b2fa |
petemill
added a commit
that referenced
this issue
Mar 2, 2018
…ebview. Each time a webContents gets a new embedder, it will register with it. Introduce 'set-window-id' and 'guest-created' WebContents events. Fix #515
I created a potential fix in 2fbabc6 that introduces a new event |
petemill
added a commit
that referenced
this issue
Mar 2, 2018
…ebview. Each time a webContents gets a new embedder, it will register with it. Introduce 'set-window-id' and 'guest-created' WebContents events. Fix #515
petemill
added a commit
that referenced
this issue
Mar 2, 2018
…ebview. Each time a webContents gets a new embedder contents (window), it will register with it. Introduce 'set-window' and 'guest-created' WebContents events. Fix #515
petemill
added a commit
that referenced
this issue
Mar 2, 2018
…ebview. Each time a webContents gets a new embedder contents (window), it will register with it. Introduce 'set-window' and 'guest-created' WebContents events. Fix #515
petemill
added a commit
that referenced
this issue
Mar 2, 2018
…ebview. Each time a webContents gets a new embedder contents (window), it will register with it. Introduce 'set-window' and 'guest-created' WebContents events. Fix #515
bridiver
pushed a commit
that referenced
this issue
Mar 6, 2018
…ebview. Each time a webContents gets a new embedder contents (window), it will register with it. Introduce 'set-window' and 'guest-created' WebContents events. Fix #515
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
STR:
Attach a guest to a window WebContents via a . (
<webview>.attachGuest(x)
)Detach (
<webview>.detachGuest()
)Repeat
Every event that is fired (e.g. 'update-target-url', 'load-start', 'guest-ready', 'will-destroy', etc) will fire as many times as the contents has been attached.
Cause
This is due to guest-view-manager.js attaching new listeners to those events every time a guest is attached to an embedder. Those listener handlers then fire IPC message to the window embedder, which forwards to the guest view (via guest-view-internal.js).
Fix
Part of the single-webview2 branch, contained in 2fbabc6
The text was updated successfully, but these errors were encountered: