зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1435483
part 20. Remove nsIException::GetData. r=qdot
MozReview-Commit-ID: 9cDzCeddOmh
This commit is contained in:
Родитель
2e3807bdc2
Коммит
d023fa0839
|
@ -256,16 +256,6 @@ Exception::GetFilename(JSContext* aCx, nsAString& aFilename)
|
|||
aFilename.Truncate();
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
Exception::GetData(nsISupports** aData)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(aData);
|
||||
|
||||
nsCOMPtr<nsISupports> data = mData;
|
||||
data.forget(aData);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
Exception::ToString(JSContext* aCx, nsACString& _retval)
|
||||
{
|
||||
|
@ -345,11 +335,10 @@ Exception::GetLocation() const
|
|||
return location.forget();
|
||||
}
|
||||
|
||||
already_AddRefed<nsISupports>
|
||||
nsISupports*
|
||||
Exception::GetData() const
|
||||
{
|
||||
nsCOMPtr<nsISupports> data = mData;
|
||||
return data.forget();
|
||||
return mData;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -97,7 +97,7 @@ public:
|
|||
|
||||
already_AddRefed<nsIStackFrame> GetLocation() const;
|
||||
|
||||
already_AddRefed<nsISupports> GetData() const;
|
||||
nsISupports* GetData() const;
|
||||
|
||||
void GetStack(JSContext* aCx, nsAString& aStack) const;
|
||||
|
||||
|
|
|
@ -971,11 +971,8 @@ nsXPCWrappedJSClass::CheckForException(XPCCallContext & ccx,
|
|||
(do_GetService(XPC_CONSOLE_CONTRACTID));
|
||||
if (nullptr != consoleService) {
|
||||
nsresult rv;
|
||||
nsCOMPtr<nsIScriptError> scriptError;
|
||||
nsCOMPtr<nsISupports> errorData;
|
||||
rv = xpc_exception->GetData(getter_AddRefs(errorData));
|
||||
if (NS_SUCCEEDED(rv))
|
||||
scriptError = do_QueryInterface(errorData);
|
||||
nsCOMPtr<nsIScriptError> scriptError =
|
||||
do_QueryInterface(xpc_exception->GetData());
|
||||
|
||||
if (nullptr == scriptError) {
|
||||
// No luck getting one from the exception, so
|
||||
|
|
|
@ -68,9 +68,6 @@ interface nsIStackFrame : nsISupports
|
|||
[scriptable, builtinclass, uuid(4371b5bf-6845-487f-8d9d-3f1e4a9badd2)]
|
||||
interface nsIException : nsISupports
|
||||
{
|
||||
// Arbitary data for the implementation.
|
||||
readonly attribute nsISupports data;
|
||||
|
||||
// A generic formatter - make it suitable to print, etc.
|
||||
[implicit_jscontext]
|
||||
AUTF8String toString();
|
||||
|
|
Загрузка…
Ссылка в новой задаче