Open Bug 986973 Opened 7 years ago Updated 3 years ago

do_GetService abuse in ContentParent.cpp


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





(Reporter: neil, Unassigned)



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

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
You need to log in before you can comment on or make changes to this bug.