Fix 58633 and 49744: a typo in GetLastVisited() and improving a cmd line help description. r=jag sr=alecf
This commit is contained in:
Родитель
24316a7af4
Коммит
4bace3fe3c
|
@ -54,7 +54,7 @@ interface nsIGlobalHistory : nsISupports
|
|||
string GetURLCompletion(in string aURL);
|
||||
|
||||
// get the last page visited
|
||||
string GetLastPageVisted();
|
||||
string GetLastPageVisited();
|
||||
};
|
||||
|
||||
%{ C++
|
||||
|
|
|
@ -2241,7 +2241,7 @@ nsBrowserContentHandler::~nsBrowserContentHandler()
|
|||
{
|
||||
}
|
||||
|
||||
CMDLINEHANDLER_OTHERS_IMPL(nsBrowserContentHandler,"-chrome","general.startup.browser","Start with browser.",NS_BROWSERSTARTUPHANDLER_CONTRACTID,"Browser Startup Handler", PR_TRUE, PR_FALSE)
|
||||
CMDLINEHANDLER_OTHERS_IMPL(nsBrowserContentHandler,"-chrome","general.startup.browser","Load the specified chrome.",NS_BROWSERSTARTUPHANDLER_CONTRACTID,"Browser Startup Handler", PR_TRUE, PR_FALSE)
|
||||
|
||||
NS_IMETHODIMP nsBrowserContentHandler::GetChromeUrlForTask(char **aChromeUrlForTask) {
|
||||
|
||||
|
@ -2330,7 +2330,7 @@ NS_IMETHODIMP nsBrowserContentHandler::GetDefaultArgs(PRUnichar **aDefaultArgs)
|
|||
case 2:
|
||||
if (history) {
|
||||
nsXPIDLCString curl;
|
||||
rv = history->GetLastPageVisted(getter_Copies(curl));
|
||||
rv = history->GetLastPageVisited(getter_Copies(curl));
|
||||
tmp = NS_ConvertUTF8toUCS2((const char *)curl);
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -54,7 +54,7 @@ interface nsIGlobalHistory : nsISupports
|
|||
string GetURLCompletion(in string aURL);
|
||||
|
||||
// get the last page visited
|
||||
string GetLastPageVisted();
|
||||
string GetLastPageVisited();
|
||||
};
|
||||
|
||||
%{ C++
|
||||
|
|
|
@ -20,8 +20,8 @@
|
|||
* Contributor(s):
|
||||
*/
|
||||
|
||||
function ShowLastPageVisted() {
|
||||
dump("start of ShowLastPageVisted()\n");
|
||||
function ShowLastPageVisited() {
|
||||
dump("start of ShowLastPageVisited()\n");
|
||||
|
||||
var lastpagevisited = "failure...not set";
|
||||
|
||||
|
@ -34,7 +34,7 @@ function ShowLastPageVisted() {
|
|||
}
|
||||
if (history) {
|
||||
try {
|
||||
lastpagevisited = history.GetLastPageVisted();
|
||||
lastpagevisited = history.GetLastPageVisited();
|
||||
document.getElementById('result').value = lastpagevisited;
|
||||
}
|
||||
catch (ex) {
|
||||
|
|
|
@ -17,5 +17,5 @@
|
|||
<html:input id="result" type="text" style="min-width: 400px; min-height: 27px" flex="100%"/>
|
||||
</box>
|
||||
<html:hr/>
|
||||
<html:button onclick="ShowLastPageVisted()">Show Last Page Visted</html:button>
|
||||
<html:button onclick="ShowLastPageVisited();">Show Last Page Visited</html:button>
|
||||
</window>
|
||||
|
|
|
@ -686,7 +686,7 @@ nsGlobalHistory::SaveLastPageVisited(const char *aURL)
|
|||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsGlobalHistory::GetLastPageVisted(char **_retval)
|
||||
nsGlobalHistory::GetLastPageVisited(char **_retval)
|
||||
{
|
||||
nsresult rv;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче