8000 fix: use OOPIF for webview tag (3-0-x) by zcbenz · Pull Request #14156 · electron/electron · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: use OOPIF for webview tag (3-0-x) #14156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 17, 2018
Merged

fix: use OOPIF for webview tag (3-0-x) #14156

merged 1 commit into from
Aug 17, 2018

Conversation

zcbenz
Copy link
Contributor
@zcbenz zcbenz commented Aug 17, 2018

notes: Migrate <webview> to use out-of-process iframe.

Backport #13869 to 3-0-x branch.

* fix: use OOIF for webview tag

* fix: do not call GetNativeView for webview

* fix: OOIPF webview's WebContents is managed by embedder frame

* fix: guest view can not be focused

* fix: clear zoom controller when guest is destroyed

* fix: implement the webview resize event

The webview is no longer a browser plugin with the resize event, use
ResizeObserver instead.

* test: disable failed tests due to OOPIF webview

* fix: embedder can be destroyed earlier than guest

This happens when embedder is manually destroyed.

* fix: don't double attach

* fix: recreate iframe when webview is reattached

* fix: resize event may happen very early

* test: some tests are working after OOPIF webview

* chore: remove unused browser plugin webview code

* fix: get embedder via closure

When the "destroyed" event is emitted, the entry in guestInstances would be
cleared.

* chore: rename browserPluginNode to internalElement

* test: make the visibilityState test more robust

* chore: guestinstance can not work with OOPIF webview

* fix: element could be detached before got response from browser
@zcbenz zcbenz requested a review from a team August 17, 2018 02:24
Copy link
Member
@codebytere codebytere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pending all builds passing ✨

Copy link
Member
@ckerr ckerr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @zcbenz

@ckerr ckerr merged commit 44b0245 into 3-0-x Aug 17, 2018
@release-clerk
Copy link
release-clerk bot commented Aug 17, 2018

Release Notes Persisted

Migrated <webview> to use out-of-process iframe.

@ckerr ckerr deleted the oopif-webview-3-0-x branch August 17, 2018 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0