Bug 1615072 Comment 16 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

(In reply to Nathan Froyd [:froydnj] from comment #15)
> Do you have a link to the original intentional leak patch, so I could do a try push with that?

You can add this to BackstagePass::BackstagePass() (I'm not sure the horrible pointer arithmetic is actually necessary):
`NS_LogCtor(((char*)this) + 100, "WayBackstagePass", sizeof(*this));`

Note that you'll still get leaks with this, but some should be "Intermittent leakcheck | tab" in addition to having them "Intermittent leakcheck | default" (which is how they show up in the main process). You could probably guard the NS_LogCtor call to only happen if we're not in the main process to cut down on the noise.
(In reply to Nathan Froyd [:froydnj] from comment #15)
> Do you have a link to the original intentional leak patch, so I could do a try push with that?

You can add this to BackstagePass::BackstagePass() (I'm not sure the horrible pointer arithmetic is actually necessary):
`NS_LogCtor(((char*)this) + 100, "WayBackstagePass", sizeof(*this));`

Note that you'll still get leaks with this, but some should be "leakcheck | tab" in addition to having them "leakcheck | default" (which is how they show up in the main process). You could probably guard the NS_LogCtor call to only happen if we're not in the main process to cut down on the noise.

Back to Bug 1615072 Comment 16