From 4cb2c169f833be37a69e47d45da53bc972042e64 Mon Sep 17 00:00:00 2001 From: "andreas.otte%primus-online.de" Date: Sun, 4 Jul 1999 20:56:29 +0000 Subject: [PATCH] NECKO only: fixing MakeAbsolute when using link --- content/base/src/nsGenericElement.cpp | 4 +++- layout/base/src/nsGenericElement.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/content/base/src/nsGenericElement.cpp b/content/base/src/nsGenericElement.cpp index dff660c8bafd..6fd4e34b50f5 100644 --- a/content/base/src/nsGenericElement.cpp +++ b/content/base/src/nsGenericElement.cpp @@ -1225,8 +1225,10 @@ nsGenericElement::TriggerLink(nsIPresContext& aPresContext, if (NS_FAILED(rv)) return; char *absUrl = nsnull; - const char *uriStr = aURLSpec.GetBuffer(); + const char *uriStr = aURLSpec.ToNewCString(); + rv = service->MakeAbsolute(uriStr, baseUri, &absUrl); + nsCRT::free(uriStr); NS_RELEASE(baseUri); if (NS_FAILED(rv)) return; absURLSpec = absUrl; diff --git a/layout/base/src/nsGenericElement.cpp b/layout/base/src/nsGenericElement.cpp index dff660c8bafd..6fd4e34b50f5 100644 --- a/layout/base/src/nsGenericElement.cpp +++ b/layout/base/src/nsGenericElement.cpp @@ -1225,8 +1225,10 @@ nsGenericElement::TriggerLink(nsIPresContext& aPresContext, if (NS_FAILED(rv)) return; char *absUrl = nsnull; - const char *uriStr = aURLSpec.GetBuffer(); + const char *uriStr = aURLSpec.ToNewCString(); + rv = service->MakeAbsolute(uriStr, baseUri, &absUrl); + nsCRT::free(uriStr); NS_RELEASE(baseUri); if (NS_FAILED(rv)) return; absURLSpec = absUrl;