Bug 1892217 - Remove Components.utils.getDOMClassInfo. r=mccr8

Differential Revision: https://phabricator.services.mozilla.com/D207855
This commit is contained in:
Peter Van der Beken 2024-04-18 14:29:19 +00:00
Родитель 248e804a1a
Коммит ced541b139
3 изменённых файлов: 0 добавлений и 14 удалений

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

@ -682,12 +682,6 @@ interface nsIXPCComponents_Utils : nsISupports
[implicit_jscontext]
string getClassName(in jsval aObj, in boolean aUnwrap);
/**
* Get a DOM classinfo for the given classname. Only some class
* names are supported.
*/
nsIClassInfo getDOMClassInfo(in AString aClassName);
/**
* Gets the incument global for the execution of this function. For internal
* and testing use only.

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

@ -2181,13 +2181,6 @@ nsXPCComponents_Utils::GetClassName(HandleValue aObj, bool aUnwrap,
return NS_OK;
}
NS_IMETHODIMP
nsXPCComponents_Utils::GetDOMClassInfo(const nsAString& aClassName,
nsIClassInfo** aClassInfo) {
*aClassInfo = nullptr;
return NS_ERROR_NOT_AVAILABLE;
}
NS_IMETHODIMP
nsXPCComponents_Utils::GetIncumbentGlobal(HandleValue aCallback, JSContext* aCx,
MutableHandleValue aOut) {

1
tools/@types/lib.gecko.xpcom.d.ts поставляемый
Просмотреть файл

@ -14748,7 +14748,6 @@ interface nsIXPCComponents_Utils extends nsISupports {
waiveXrays(aVal: any): any;
unwaiveXrays(aVal: any): any;
getClassName(aObj: any, aUnwrap: boolean): string;
getDOMClassInfo(aClassName: string): nsIClassInfo;
getIncumbentGlobal(callback?: any): any;
getDebugName(obj: any): string;
getWatchdogTimestamp(aCategory: string): PRTime;