`nsCOMPtr` instance is not known to be live when called in method annotated with `MOZ_CAN_RUN_SCRIPT`
Categories
(Developer Infrastructure :: Source Code Analysis, defect, P2)
Tracking
(Not tracked)
People
(Reporter: mbrodesser-Igalia, Unassigned)
References
Details
Happens in https://phabricator.services.mozilla.com/D74383.
Comment 1•4 years ago
|
||
The severity field is not set for this bug.
:andi, could you have a look please?
For more information, please visit auto_nag documentation.
Comment 2•4 years ago
|
||
maybe I'm missing something but can you specify what were you expecting here to happen?
Reporter | ||
Updated•4 years ago
|
Comment 3•4 years ago
|
||
(In reply to Andi-Bogdan Postelnicu [:andi] from comment #2)
maybe I'm missing something but can you specify what were you expecting here to happen?
I think the point is that offsets
lives on the stack and is therefore holding its members (including the nsCOMPtr
) alive. This case shouldn't be considered any different from a bare nsCOMPtr
that lives on the stack.
Reporter | ||
Comment 4•4 years ago
|
||
(In reply to Nathan Froyd [:froydnj] from comment #3)
(In reply to Andi-Bogdan Postelnicu [:andi] from comment #2)
maybe I'm missing something but can you specify what were you expecting here to happen?
I think the point is that
offsets
lives on the stack and is therefore holding its members (including thensCOMPtr
) alive. This case shouldn't be considered any different from a barensCOMPtr
that lives on the stack.
Yes, that's what I meant. Thanks for the explanation.
Comment 5•4 years ago
|
||
The severity field is not set for this bug.
:andi, could you have a look please?
For more information, please visit auto_nag documentation.
Updated•4 years ago
|
Reporter | ||
Comment 6•3 years ago
|
||
When fixing this bug, we should also remove the corresponding MOZ_KnownLive
s (e.g. https://searchfox.org/mozilla-central/rev/07342ce09126c513540c1c343476e026cfa907bf/layout/generic/nsFrameSelection.cpp#1311).
Updated•2 years ago
|
Description
•