зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1336481 - Window is not used in the ErrorCallback runnable in the Entries API, r=qdot
This commit is contained in:
Родитель
e194de018f
Коммит
f7dc102b1b
|
@ -51,11 +51,6 @@ ErrorCallbackRunnable::ErrorCallbackRunnable(nsIGlobalObject* aGlobalObject,
|
|||
NS_IMETHODIMP
|
||||
ErrorCallbackRunnable::Run()
|
||||
{
|
||||
nsCOMPtr<nsPIDOMWindowInner> window = do_QueryInterface(mGlobal);
|
||||
if (NS_WARN_IF(!window)) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
RefPtr<DOMException> exception = DOMException::Create(mError);
|
||||
mCallback->HandleEvent(*exception);
|
||||
return NS_OK;
|
||||
|
|
Загрузка…
Ссылка в новой задаче