Bug 106386 Correct misspellings in source code

Changes strings which meant "referring"
patch by ajvincent@juno.com r=timeless sr=dmose
This commit is contained in:
timeless%mozdev.org 2003-11-17 10:05:45 +00:00
Родитель b5a9ce9cef
Коммит 3a6d6c90fd
19 изменённых файлов: 30 добавлений и 30 удалений

Просмотреть файл

@ -103,7 +103,7 @@ interface nsIDocShell : nsISupports
* of an nsIDocShellLoadInfo object...
*
* @param aURI - The URI to load.
* @param aReferrer - Refering URI
* @param aReferrer - Referring URI
* @param aOwner - Owner (security principal)
* @param aInheritOwner - Flag indicating whether the owner of the current
* document should be inherited if aOwner is null.

Просмотреть файл

@ -379,7 +379,7 @@ nsWebShell::LoadDocument(const char* aURL,
mCharsetReloadState = eCharsetReloadRequested;
LoadURI(NS_ConvertASCIItoUCS2(aURL).get(), // URI string
LOAD_FLAGS_NONE, // Load flags
nsnull, // Refering URI
nsnull, // Referring URI
nsnull, // Post data stream
nsnull); // Header stream
}
@ -939,7 +939,7 @@ nsresult nsWebShell::EndPageLoad(nsIWebProgress *aProgress,
return LoadURI(newSpecW.get(), // URI string
LOAD_FLAGS_NONE, // Load flags
nsnull, // Refering URI
nsnull, // Referring URI
nsnull, // Post data stream
nsnull); // Headers stream
}
@ -1048,7 +1048,7 @@ nsresult nsWebShell::EndPageLoad(nsIWebProgress *aProgress,
postDataSeekable->Seek(nsISeekableStream::NS_SEEK_SET, 0);
}
InternalLoad(url, // URI
referrer, // Refering URI
referrer, // Referring URI
nsnull, // Owner
PR_TRUE, // Inherit owner
nsnull, // No window target

Просмотреть файл

@ -209,7 +209,7 @@ function ShowInputErrorMessage(message)
}
// Get the text appropriate to parent container
// to determine what a "%" value is refering to.
// to determine what a "%" value is referring to.
// elementForAtt is element we are actually setting attributes on
// (a temporary copy of element in the doc to allow canceling),
// but elementInDoc is needed to find parent context in document

Просмотреть файл

@ -382,7 +382,7 @@ EmbedPrivate::LoadCurrentURI(void)
if (mURI.Length())
mNavigation->LoadURI(mURI.get(), // URI string
nsIWebNavigation::LOAD_FLAGS_NONE, // Load flags
nsnull, // Refering URI
nsnull, // Referring URI
nsnull, // Post data
nsnull); // extra headers
}

Просмотреть файл

@ -348,7 +348,7 @@ EmbedPrivate::LoadCurrentURI(void)
if (mURI.Length())
mNavigation->LoadURI(mURI.get(), // URI string
nsIWebNavigation::LOAD_FLAGS_NONE, // Load flags
nsnull, // Refering URI
nsnull, // Referring URI
nsnull, // Post data
nsnull); // extra headers
}

Просмотреть файл

@ -140,7 +140,7 @@ function nsIWebNavTests(webNav, urlTotal, loadFlagTotal)
dump("The current uri = " + getCurrURI.spec + "\n");
/* not implemented yet */
// var getRefURI = testReferingURI(webNav);
// var getRefURI = testReferringURI(webNav);
// dump("getRefURI object = " + getRefURI + "\n");
var getsHistory = testSessionHistory(webNav);

Просмотреть файл

@ -87,7 +87,7 @@ function nsIWebNavTests()
dump("The current uri = " + getCurrURI.spec + "\n");
/* not implemented yet */
// var getRefURI = testReferingURI(webNav);
// var getRefURI = testReferringURI(webNav);
// dump("getRefURI object = " + getRefURI + "\n");
var getsHistory = testSessionHistory(webNav);

Просмотреть файл

@ -236,9 +236,9 @@ function testCurrentURI(webNav)
/* not implemented yet
// *************************************************************************
// testReferingURI() gets the referring URI. It accepts the webNav
// testReferringURI() gets the referring URI. It accepts the webNav
// object for the parameter.
function testReferingURI(webNav)
function testReferringURI(webNav)
{
if (!webNav) {
alert("Didn't get web navigation object");
@ -246,7 +246,7 @@ function testReferingURI(webNav)
}
// Get the refering URI
getRefURI = webNav.referringURI;
// alert("The refering uri = " + getRefURI.spec);
// alert("The referring uri = " + getRefURI.spec);
return getRefURI;
}

Просмотреть файл

@ -177,7 +177,7 @@ BEGIN_MESSAGE_MAP(CTests, CWnd)
ON_COMMAND(ID_INTERFACES_NSIWEBNAV_GETCANGOBACK, OnInterfacesNsiwebnav)
ON_COMMAND(ID_INTERFACES_NSIWEBNAV_GETCANGOFORWARD, OnInterfacesNsiwebnav)
ON_COMMAND(ID_INTERFACES_NSIWEBNAV_GETCURRENTURI, OnInterfacesNsiwebnav)
ON_COMMAND(ID_INTERFACES_NSIWEBNAV_GETREFERINGURI, OnInterfacesNsiwebnav)
ON_COMMAND(ID_INTERFACES_NSIWEBNAV_GETREFERRINGURI, OnInterfacesNsiwebnav)
ON_COMMAND(ID_INTERFACES_NSIWEBNAV_GETDOCUMENT, OnInterfacesNsiwebnav)
ON_COMMAND(ID_INTERFACES_NSIWEBNAV_GETSESSIONHISTORY, OnInterfacesNsiwebnav)
ON_COMMAND(ID_INTERFACES_NSIWEBNAV_GOBACK, OnInterfacesNsiwebnav)

Просмотреть файл

@ -129,8 +129,8 @@ void CNsIWebNav::OnStartTests(UINT nMenuID)
case ID_INTERFACES_NSIWEBNAV_GETCURRENTURI :
GetCurrentURITest(2);
break ;
case ID_INTERFACES_NSIWEBNAV_GETREFERINGURI:
GetReferingURITest(2);
case ID_INTERFACES_NSIWEBNAV_GETREFERRINGURI:
GetReferringURITest(2);
break;
case ID_INTERFACES_NSIWEBNAV_GETSESSIONHISTORY :
GetSHTest(2);
@ -189,7 +189,7 @@ void CNsIWebNav::RunAllTests()
// uri test
GetCurrentURITest(1);
GetReferingURITest(1);
GetReferringURITest(1);
// session history test
SetSHTest(1);
@ -442,7 +442,7 @@ void CNsIWebNav::GetCurrentURITest(PRInt16 displayMode)
FormatAndPrintOutput("the nsIWebNav uri = ", uriString, displayMode);
}
void CNsIWebNav::GetReferingURITest(PRInt16 displayMode)
void CNsIWebNav::GetReferringURITest(PRInt16 displayMode)
{
nsCOMPtr<nsIURI> theURI;
nsCAutoString uriString;
@ -456,7 +456,7 @@ void CNsIWebNav::GetReferingURITest(PRInt16 displayMode)
else
QAOutput("We DIDN'T GET the URI.", 1);
rv = qaWebNav->GetReferringURI(getter_AddRefs(theURI));
RvTestResult(rv, "GetReferingURI() test", displayMode);
RvTestResult(rv, "GetReferringURI() test", displayMode);
// rv = qaWebNav->LoadURI(NS_ConvertASCIItoUCS2(myDialog.m_urlfield).get(),
// myDialog.m_flagvalue, theURI, nsnull, nsnull);
}

Просмотреть файл

@ -78,7 +78,7 @@ public:
void StopUriTest(char *, PRUint32, PRInt16);
void GetDocumentTest(PRInt16);
void GetCurrentURITest(PRInt16);
void GetReferingURITest(PRInt16);
void GetReferringURITest(PRInt16);
void GetSHTest(PRInt16);
void SetSHTest(PRInt16);
void LoadUriandReload(int);

Просмотреть файл

@ -307,7 +307,7 @@
#define ID_INTERFACES_NSIHTTPCHANNEL_GETRESPONSESTATUS 33044
#define ID_INTERFACES_NSIHTTPCHANNEL_GETRESPONSESTATUSTEXT 33045
#define ID_TESTS_ADDTOOLTIPLISTENER 33046
#define ID_INTERFACES_NSIWEBNAV_GETREFERINGURI 33047
#define ID_INTERFACES_NSIWEBNAV_GETREFERRINGURI 33047
#define ID_CLIPBOARDCMD_PASTE 42789
#define ID_CLIPBOARDCMD_COPYSELECTION 42790
#define ID_CLIPBOARDCMD_SELECTALL 42791

Просмотреть файл

@ -256,7 +256,7 @@ BEGIN
MENUITEM "GetCurrentURI", ID_INTERFACES_NSIWEBNAV_GETCURRENTURI
MENUITEM "GetReferingURI", ID_INTERFACES_NSIWEBNAV_GETREFERINGURI
MENUITEM "GetReferringURI", ID_INTERFACES_NSIWEBNAV_GETREFERRINGURI
MENUITEM "GetSessionHistory", ID_INTERFACES_NSIWEBNAV_GETSESSIONHISTORY

Просмотреть файл

@ -717,7 +717,7 @@ void CBrowserView::OpenURL(const PRUnichar* pUrl)
if(mWebNav)
mWebNav->LoadURI(pUrl, // URI string
nsIWebNavigation::LOAD_FLAGS_NONE, // Load flags
nsnull, // Refering URI
nsnull, // Referring URI
nsnull, // Post data
nsnull); // Extra headers
}

Просмотреть файл

@ -579,7 +579,7 @@ nsMessenger::OpenURL(const char *aURL)
if(webNav)
rv = webNav->LoadURI(NS_ConvertASCIItoUCS2(unescapedUrl).get(), // URI string
nsIWebNavigation::LOAD_FLAGS_NONE, // Load flags
nsnull, // Refering URI
nsnull, // Referring URI
nsnull, // Post stream
nsnull); // Extra headers
}

Просмотреть файл

@ -556,7 +556,7 @@ nsMsgPrintEngine::FireThatLoadOperation(nsString *uri)
if (webNav)
rv = webNav->LoadURI(uri->get(), // URI string
nsIWebNavigation::LOAD_FLAGS_NONE, // Load flags
nsnull, // Refering URI
nsnull, // Referring URI
nsnull, // Post data
nsnull); // Extra headers
}

Просмотреть файл

@ -133,7 +133,7 @@ private:
//
// This array will accept null as an argument for any object, and will
// store null in the array, just like nsVoidArray. But that also means
// that methods like ObjectAt() may return null when refering to an
// that methods like ObjectAt() may return null when referring to an
// existing, but null entry in the array.
template <class T>
class nsCOMArray : public nsCOMArray_base

Просмотреть файл

@ -530,7 +530,7 @@ main()
cout << "foo1p allowed compare with in" << endl;
#endif
cout << endl << "### Test 14: how about when two |nsCOMPtr|s refering to the same object go out of scope?" << endl;
cout << endl << "### Test 14: how about when two |nsCOMPtr|s referring to the same object go out of scope?" << endl;
}
{

Просмотреть файл

@ -494,7 +494,7 @@ nsBrowserInstance::LoadUrl(const PRUnichar * urlToLoad)
// Normal browser.
rv = webNav->LoadURI( urlToLoad, // URI string
nsIWebNavigation::LOAD_FLAGS_NONE, // Load flags
nsnull, // Refering URI
nsnull, // Referring URI
nsnull, // Post data
nsnull ); // Extra headers