Closed Bug 1536724 Opened 8 months ago Closed 8 months ago

Consider allowing RefPtr temporaries in MOZ_CAN_RUN_SCRIPT analysis

Categories

(Firefox Build System :: Source Code Analysis, enhancement)

enhancement
Not set

Tracking

(firefox68 fixed)

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

Details

Attachments

(1 file)

So something like this should work in a MOZ_CAN_RUN_SCRIPT function:

RefPtr<Foo>(mFoo)->DoStuff();

Blocks: 1536825
Pushed by bzbarsky@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e2551303c5cf
Consider a smartptr temporary to be live for MOZ_CAN_RUN_SCRIPT analysis purposes.  r=andi
Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in before you can comment on or make changes to this bug.