Bug 1336481 - Window is not used in the ErrorCallback runnable in the Entries API, r=qdot

This commit is contained in:
Andrea Marchesini 2017-02-03 19:51:24 +01:00
Родитель e194de018f
Коммит f7dc102b1b
1 изменённых файлов: 0 добавлений и 5 удалений

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

@ -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;