Bug 1224237 - Remove the !baseURL check from ServiceWorkerContainer::Register;r=bkelly

This commit is contained in:
Eddy Bruel 2015-11-13 10:48:49 +01:00
parent c4719a75e5
commit 0841e8beae

View File

@ -158,12 +158,6 @@ ServiceWorkerContainer::Register(const nsAString& aScriptURL,
}
}
if (!baseURI) {
aRv.Throw(NS_ERROR_DOM_INVALID_STATE_ERR);
return nullptr;
}
nsresult rv;
nsCOMPtr<nsIURI> scriptURI;
rv = NS_NewURI(getter_AddRefs(scriptURI), aScriptURL, nullptr, baseURI);