Bug 965860 - patch 2 - ConsoleAPI written in C++, r=bz