Skip to content
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

revert: manual management of detached WebContents #19011

Merged
merged 1 commit into from Jul 11, 2019

Conversation

alexstrat
Copy link
Contributor

@alexstrat alexstrat commented Jun 27, 2019

Description of Change

Following discussions in #18976, revert #14487

This CL that landed with 76.0.3783.1 made #14487 not useful anymore.

I did follow the reproduction steps explained in #14211 and could not reproduce the issue.

cc @zcbenz @deepak1556

Checklist

Release Notes

Notes: Revert #14487

@alexstrat alexstrat requested a review from a team as a code owner June 27, 2019 15:19
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Jun 27, 2019
@@ -460,7 +455,7 @@ WebContents::~WebContents() {
} else {
// Destroy WebContents asynchronously unless app is shutting down,
// because destroy() might be called inside WebContents's event handler.
DestroyWebContents(true /* async */);
DestroyWebContents(!IsGuest() /* async */);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure !IsGuest() is what we expect here. @zcbenz opinion?

Copy link
Member

Choose a reason for hiding this comment

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

It is correct.

@alexstrat
Copy link
Contributor Author

@deepak1556 you were suggesting to add tests: what kind of tests would you suggest?

@@ -460,7 +455,7 @@ WebContents::~WebContents() {
} else {
// Destroy WebContents asynchronously unless app is shutting down,
// because destroy() might be called inside WebContents's event handler.
DestroyWebContents(true /* async */);
DestroyWebContents(!IsGuest() /* async */);
Copy link
Member

Choose a reason for hiding this comment

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

It is correct.

@zcbenz
Copy link
Member

zcbenz commented Jun 28, 2019

@deepak1556 you were suggesting to add tests: what kind of tests would you suggest?

I couldn't find a way to programmably test the original issue, it seemed to be only visually noticeable.

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Jun 28, 2019
@jkleinsc
Copy link
Contributor

jkleinsc commented Jul 3, 2019

@alexstrat can you rebase this PR?

@alexstrat
Copy link
Contributor Author

@jkleinsc rebase done

@zcbenz
Copy link
Member

zcbenz commented Jul 8, 2019

This PR needs an approval from @electron/wg-upgrades.

@deepak1556
Copy link
Member

@alexstrat sorry about this but can you rebase again on master to pull in #19127 that should fix the macOS build error. Thanks!

@alexstrat
Copy link
Contributor Author

@deepak1556 done

Copy link

@ryzokuken ryzokuken left a comment

Choose a reason for hiding this comment

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

LGTM

@codebytere codebytere changed the title refactor: revert electron/electron#14487 revert: manual management of detached WebContents Jul 11, 2019
@codebytere
Copy link
Member

macOS failure is expected, as code-signing tests fail on PRs from forks.
will merge once linux CI has passed.

@jkleinsc jkleinsc merged commit e26f366 into electron:master Jul 11, 2019
@release-clerk
Copy link

release-clerk bot commented Jul 11, 2019

Release Notes Persisted

Revert #14487

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.

None yet

6 participants