Bug 672843 part A - Create the new macro NS_WARN_IF and deprecate NS_ENSURE_* in favor of the explicit warning/return style. Also localize each macro so that it's debug and non-debug versions are local in the file, because that makes it easier for new contributors to understand. r=froydnj sr=jst
Bug 672843 part B - Remove NS_ENSURE_PROPER_AGGREGATION, r=froydnj
Bug 672843 part C - convert most of XPCOM except for xpcom/tests, r=vdjeric
Bug 672843 part D - make NS_ERROR_INVALID_POINTER an alias of NS_ERROR_INVALID_ARG, r=froydnj
Bug 939906 - Make Promise.resolve(), Promise.reject(), Promise.prototype.then() and Promise.prototype.catch() spec compliant. r=baku

--HG--
extra : rebase_source : 7f32dd1222e4ab04f3f0cb4f450b734a4014c805