Closed Bug 1007734 Opened 10 years ago Closed 10 years ago

UpdatePanZoomControllerTree() could leave an APZC with a stale parent pointer

Categories

(Core :: Panning and Zooming, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla32

People

(Reporter: botond, Assigned: botond)

Details

Attachments

(1 file)

Quoting Kats from https://bugzilla.mozilla.org/show_bug.cgi?id=961289#c73

"It occurs to me that in the case where the apzc is recycled (i.e. code flow didn't take the |if (newApzc)| branch above) and also we go through the |mRootApzc = apzc| branch, then it's possible for apzc->GetParent() to be some stale pointer. I don't think this ever happens in practice but maybe we should explicitly null out the parent pointer when setting mRootApzc to apzc."
Attached patch bug1007734.patchSplinter Review
Assignee: nobody → botond
Attachment #8419503 - Flags: review?(bugmail.mozilla)
Comment on attachment 8419503 [details] [diff] [review]
bug1007734.patch

Review of attachment 8419503 [details] [diff] [review]:
-----------------------------------------------------------------

Nice! :)
Attachment #8419503 - Flags: review?(bugmail.mozilla) → review+
Keywords: checkin-needed
Try push is green but inbound is still (or again) closed, re-flagging as checkin-needed.
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/825990d5d74d
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: