mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1222097 - Resolve the openWindow URL using the service worker URL as the base URL. r=bkelly
This commit is contained in:
parent
bd3dcb2d49
commit
88ac32aa3c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user