DOM string changes. All nsString& in DOM interfaces (and interfaces needed by DOM implementations) have been changed to nsAReadableString& and nsAWritableString&. String implementation additions (sanctioned by scc) to support DOM needs. Bug 49091. r=vidur,jst,scc
git-svn-id: svn://10.0.0.236/trunk@76967 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -515,14 +515,15 @@ nsWebShell::GetReferrer(nsIURI **aReferrer)
|
||||
void
|
||||
nsWebShell::SetReferrer(const PRUnichar* aReferrer)
|
||||
{
|
||||
NS_NewURI(getter_AddRefs(mReferrerURI), nsAutoString(aReferrer), nsnull);
|
||||
NS_NewURI(getter_AddRefs(mReferrerURI), nsLiteralString(aReferrer), nsnull);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsWebShell::SetURL(const PRUnichar* aURL)
|
||||
{
|
||||
nsCOMPtr<nsIURI> uri;
|
||||
NS_ENSURE_SUCCESS(NS_NewURI(getter_AddRefs(uri), nsAutoString(aURL), nsnull),
|
||||
NS_ENSURE_SUCCESS(NS_NewURI(getter_AddRefs(uri), nsLiteralString(aURL),
|
||||
nsnull),
|
||||
NS_ERROR_FAILURE);
|
||||
SetCurrentURI(uri);
|
||||
return NS_OK;
|
||||
@@ -828,7 +829,7 @@ nsWebShell::HandleLinkClickEvent(nsIContent *aContent,
|
||||
// and down in the load document code we'll detect this and
|
||||
// set the correct uri loader command
|
||||
nsCOMPtr<nsIURI> uri;
|
||||
NS_NewURI(getter_AddRefs(uri), nsAutoString(aURLSpec), nsnull);
|
||||
NS_NewURI(getter_AddRefs(uri), nsLiteralString(aURLSpec), nsnull);
|
||||
|
||||
nsCOMPtr<nsISupports> owner;
|
||||
GetCurrentDocumentOwner(getter_AddRefs(owner));
|
||||
|
||||
Reference in New Issue
Block a user