Closed Bug 1536724 Opened 5 years ago Closed 5 years ago

Consider allowing RefPtr temporaries in MOZ_CAN_RUN_SCRIPT analysis

Categories

(Developer Infrastructure :: Source Code Analysis, enhancement)

enhancement
Not set
normal

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: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: