Bug 1470046 - Follow-up: Fix copy/paste errors in CloneInternal() functions and fix test_nsLDAPURL.js by replacing clone. r=aceman
This commit is contained in:
Родитель
ba3de82084
Коммит
d9bfc6c250
|
@ -391,7 +391,7 @@ nsLDAPURL::CloneInternal(RefHandlingEnum aRefHandlingMode,
|
|||
|
||||
nsresult rv;
|
||||
if (aRefHandlingMode == eHonorRef) {
|
||||
rv = NS_MutateURI(mBaseURL).Finalize(mBaseURL);
|
||||
rv = NS_MutateURI(mBaseURL).Finalize(clone->mBaseURL);
|
||||
} else if (aRefHandlingMode == eReplaceRef) {
|
||||
rv = mBaseURL->CloneWithNewRef(newRef, getter_AddRefs(clone->mBaseURL));
|
||||
} else {
|
||||
|
|
|
@ -276,7 +276,7 @@ function run_test() {
|
|||
|
||||
url = url.mutate().setSpec("ldap://localhost/dc=short?abc,def,ghi,jkl?one?(objectclass=*)").finalize();
|
||||
|
||||
var newUrl = url.clone();
|
||||
var newUrl = url.mutate().finalize();
|
||||
|
||||
Assert.equal(newUrl.spec,
|
||||
"ldap://localhost/dc=short?abc,def,ghi,jkl?one?(objectclass=*)");
|
||||
|
|
|
@ -191,7 +191,7 @@ nsAddbookUrl::CloneInternal(RefHandlingEnum aRefHandlingMode,
|
|||
|
||||
nsresult rv;
|
||||
if (aRefHandlingMode == eHonorRef) {
|
||||
rv = NS_MutateURI(m_baseURL).Finalize(m_baseURL);
|
||||
rv = NS_MutateURI(m_baseURL).Finalize(clone->m_baseURL);
|
||||
} else if (aRefHandlingMode == eReplaceRef) {
|
||||
rv = m_baseURL->CloneWithNewRef(newRef, getter_AddRefs(clone->m_baseURL));
|
||||
} else {
|
||||
|
|
|
@ -533,7 +533,7 @@ nsMailtoUrl::CloneInternal(RefHandlingEnum aRefHandlingMode,
|
|||
|
||||
nsresult rv;
|
||||
if (aRefHandlingMode == eHonorRef) {
|
||||
rv = NS_MutateURI(m_baseURL).Finalize(m_baseURL);
|
||||
rv = NS_MutateURI(m_baseURL).Finalize(clone->m_baseURL);
|
||||
} else if (aRefHandlingMode == eReplaceRef) {
|
||||
rv = m_baseURL->CloneWithNewRef(newRef, getter_AddRefs(clone->m_baseURL));
|
||||
} else {
|
||||
|
|
Загрузка…
Ссылка в новой задаче