Closed Bug 986973 Opened 11 years ago Closed 3 years ago

do_GetService abuse in ContentParent.cpp

Categories

(Core :: DOM: Content Processes, defect, P5)

defect

Tracking

()

RESOLVED FIXED
100 Branch
Tracking Status
firefox100 --- fixed

People

(Reporter: neil, Assigned: saschanaz)

References

Details

Attachments

(1 file)

The code nsCOMPtr<nsConsoleService> consoleService(do_GetService(consoleServiceCID)); which appears ContentParent.cpp is an abuse of do_GetService, since nsConsoleService is not an interface, so what happens is that the nsIConsoleService pointer gets reinterpreted as an nsConsoleService*. consoleService should probably be changed to an nsCOMPtr<nsIConsoleService>, and then mConsoleService should be statically cast from consoleService.get().
Blocks: 514280
Component: IPC → DOM: Content Processes
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5

D132270 removed the problematic line, so it's not needed anymore.

Assignee: nobody → krosylight
Status: NEW → ASSIGNED
Pushed by krosylight@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5cbfa9fc80d2 Remove nsConsoleService hack in ContentParent r=smaug
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 100 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: