Bug 1387791 - Remove [deprecated] Components.reportError. r=bholley

MozReview-Commit-ID: CCqFQid7ZDi

--HG--
extra : rebase_source : bce691e8a83d3a2837fbf28f44f5390aae2c2716
This commit is contained in:
Masatoshi Kimura 2017-08-06 11:04:11 +09:00
Родитель 06311d2e3a
Коммит 436186d6f8
2 изменённых файлов: 0 добавлений и 16 удалений

Просмотреть файл

@ -730,7 +730,4 @@ interface nsIXPCComponents : nsIXPCComponentsBase
// A javascript component can set |returnCode| to specify an nsresult to
// be returned without throwing an exception.
attribute jsval returnCode;
/* @deprecated Use Components.utils.reportError instead. */
[deprecated, implicit_jscontext] void reportError(in jsval error);
};

Просмотреть файл

@ -3489,19 +3489,6 @@ nsXPCComponents::SetReturnCode(JSContext* aCx, HandleValue aCode)
return NS_OK;
}
// static
NS_IMETHODIMP nsXPCComponents::ReportError(HandleValue error, JSContext* cx)
{
NS_WARNING("Components.reportError deprecated, use Components.utils.reportError");
nsCOMPtr<nsIXPCComponents_Utils> utils;
nsresult rv = GetUtils(getter_AddRefs(utils));
if (NS_FAILED(rv))
return rv;
return utils->ReportError(error, cx);
}
/**********************************************/
class ComponentsSH : public nsIXPCScriptable