Open Bug 854586 Opened 12 years ago Updated 2 years ago

NetworkStatsManager's init method should return a non-XPCOM object

Categories

(Core :: Networking, defect, P5)

x86
All
defect

Tracking

()

People

(Reporter: ggp, Unassigned)

References

Details

(Whiteboard: [necko-would-take])

The object returned from init() in an implementation of nsIDOMGlobalPropertyInitializer should be a different object implementing only the API to be exposed, and nothing more. If the XPCOM object itself is returned -- and note that returning nothing from init() also causes the XPCOM object to be used -- it is possible to QI into that object and, for example, call init() again, which might not be safe.
Whiteboard: [necko-would-take]
Priority: -- → P5
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.