зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1222097 - Resolve the openWindow URL using the service worker URL as the base URL. r=bkelly
This commit is contained in:
Родитель
19232bc3e9
Коммит
aafd2c9f63
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче