Bug 882076 - C++ callbacks to DOM Promises. r=baku,mccr8