Closed Bug 1988993 Opened 9 months ago Closed 9 months ago

Unsafe async activity usage in PlayStoreReviewPromptController.tryLaunchPlayStoreReview

Categories

(Firefox for Android :: Experimentation and Telemetry, defect)

All
Android
defect

Tracking

()

RESOLVED FIXED
146 Branch
Tracking Status
firefox146 --- fixed

People

(Reporter: mkozinski, Assigned: mkozinski)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxdroid][group2])

Attachments

(1 file)

In tryPromptReview the activity passed in is used in the async manager.addOnCompleteListener. This means we might be holding onto the activity and try to use it after it was destroyed.

Assignee: nobody → mkozinski
Status: NEW → ASSIGNED
Whiteboard: [fxdroid][group2]
Depends on: 1989529
Attachment #9513966 - Attachment description: Bug 1988993 - Don't capture a strong activity reference in an async callback → Bug 1988993 - Scope listener to activity, to remove it during onStop
Pushed by mkozinski@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/c139392fab8a https://hg.mozilla.org/integration/autoland/rev/a1a5e279ba84 Scope listener to activity, to remove it during onStop r=android-reviewers,twhite,jonalmeida
Status: ASSIGNED → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 145 Branch
Pushed by chorotan@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/5db4b7f0be02 https://hg.mozilla.org/mozilla-central/rev/f17c7e0fde9f Revert "Bug 1988993 - Scope listener to activity, to remove it during onStop r=android-reviewers,twhite,jonalmeida" for causing conflict on bug 1986398

Backed out from central for causing conflict on the backout of Bug 1986398
https://hg.mozilla.org/mozilla-central/rev/f17c7e0fde9ffd96c7a9845b6d213f655205d8f5

Status: RESOLVED → REOPENED
Flags: needinfo?(mkozinski)
Resolution: FIXED → ---
Target Milestone: 145 Branch → ---
Pushed by mkozinski@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/b122b69bb68c https://hg.mozilla.org/integration/autoland/rev/82e7f69975e4 Scope listener to activity, to remove it during onStop r=android-reviewers,twhite,jonalmeida
Flags: needinfo?(mkozinski)

The severity field is not set for this bug.
:towhite, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(towhite)
Status: REOPENED → RESOLVED
Closed: 9 months ago9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 146 Branch
Severity: -- → S3
Flags: needinfo?(towhite)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: