Bug 1222097 - Resolve the openWindow URL using the service worker URL as the base URL. r=bkelly

This commit is contained in:
Marco Castelluccio 2015-11-06 08:39:00 +01:00
Родитель 19232bc3e9
Коммит aafd2c9f63
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -424,7 +424,7 @@ public:
WorkerPrivate::LocationInfo& info = workerPrivate->GetLocationInfo();
nsCOMPtr<nsIURI> baseURI;
nsresult rv = NS_NewURI(getter_AddRefs(baseURI), info.mOrigin);
nsresult rv = NS_NewURI(getter_AddRefs(baseURI), info.mHref);
if (NS_WARN_IF(NS_FAILED(rv))) {
return NS_ERROR_FAILURE;
}
@ -484,7 +484,7 @@ private:
WorkerPrivate::LocationInfo& info = workerPrivate->GetLocationInfo();
nsCOMPtr<nsIURI> baseURI;
nsresult rv = NS_NewURI(getter_AddRefs(baseURI), info.mOrigin);
nsresult rv = NS_NewURI(getter_AddRefs(baseURI), info.mHref);
if (NS_WARN_IF(NS_FAILED(rv))) {
return NS_ERROR_TYPE_ERR;
}