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

chore: cherry-pick fix for 1231134 from chromium #30637

Merged
merged 3 commits into from Aug 31, 2021
Merged

Conversation

zcbenz
Copy link
Member

@zcbenz zcbenz commented Aug 19, 2021

M92: Do more class validity checks in PrintViewManagerBase.

PrintViewManagerBase runs a nested loop. In some situations,
PrintViewManagerBase and related classes like PrintViewManager and
PrintPreviewHandler can get deleted while the nested loop is running.
When this happens, the nested loop exists to a PrintViewManagerBase
that is no longer valid.

Use base::WeakPtrs liberally to check for this condition and exit
safely.

(cherry picked from commit a2cb1fb333d2faacb2fe1380f8d2621b5ee6af7e)

Bug: 1231134
Change-Id: I21ec131574331ce973d22594c11e70088147e149
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3057880
Reviewed-by: Alan Screen awscreen@chromium.org
Commit-Queue: Lei Zhang thestig@chromium.org

Notes: Security: Backported fix for 1231134.

@zcbenz zcbenz added semver/patch backwards-compatible bug fixes backport-check-skip Skip trop's backport validity checking target/11-x-y labels Aug 19, 2021
@zcbenz zcbenz requested a review from a team as a code owner August 19, 2021 06:30
@zcbenz zcbenz merged commit a55bc6a into 13-x-y Aug 31, 2021
@zcbenz zcbenz deleted the cherry-pick-1231134 branch August 31, 2021 01:37
@release-clerk
Copy link

release-clerk bot commented Aug 31, 2021

Release Notes Persisted

Security: Backported fix for 1231134.

trop bot pushed a commit that referenced this pull request Aug 31, 2021
* chore: cherry-pick fix for 1231134 from chromium

* chore: update patches

Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com>
trop bot pushed a commit that referenced this pull request Aug 31, 2021
* chore: cherry-pick fix for 1231134 from chromium

* chore: update patches

Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com>
@trop
Copy link
Contributor

trop bot commented Aug 31, 2021

I have automatically backported this PR to "11-x-y", please check out #30761

@trop
Copy link
Contributor

trop bot commented Aug 31, 2021

I have automatically backported this PR to "12-x-y", please check out #30762

jkleinsc pushed a commit that referenced this pull request Aug 31, 2021
* chore: cherry-pick fix for 1231134 from chromium (#30637)

* chore: cherry-pick fix for 1231134 from chromium

* chore: update patches

Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com>

* chore: update patches

Co-authored-by: Cheng Zhao <zcbenz@gmail.com>
Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com>
jkleinsc pushed a commit that referenced this pull request Sep 2, 2021
* chore: cherry-pick fix for 1231134 from chromium (#30637)

* chore: cherry-pick fix for 1231134 from chromium

* chore: update patches

Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com>

* Update .patches

* chore: update patches

Co-authored-by: Cheng Zhao <zcbenz@gmail.com>
Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-check-skip Skip trop's backport validity checking semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants