Don't set window.location or document.location in chrome code; set
location.href instead. Bug 295040, r+sr=jst, a=asa git-svn-id: svn://10.0.0.236/trunk@173725 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
151b3b148e
commit
318f94c11b
@ -1920,8 +1920,8 @@ function cmdGotoURL(e)
|
||||
if (e.url.search(/^x-cz-command:/i) == 0)
|
||||
{
|
||||
var ary = e.url.match(/^x-cz-command:(.*)$/i);
|
||||
e.sourceObject.frame.contentWindow.location = "javascript:void(view.dispatch('" +
|
||||
decodeURI(ary[1]) + "'))";
|
||||
e.sourceObject.frame.contentWindow.location.href =
|
||||
"javascript:void(view.dispatch('" + decodeURI(ary[1]) + "'))";
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@ -728,7 +728,7 @@ function AboutXMLTerm() {
|
||||
}
|
||||
|
||||
function Redirect() {
|
||||
window.location = window.redirectURL;
|
||||
window.location.href = window.redirectURL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -124,7 +124,7 @@
|
||||
if (window.xmltbrowser) {
|
||||
dump("Load:xmltbrowser.location.href="+window.xmltbrowser.location.href+"\n");
|
||||
if (window.xmltbrowser.location.href.length) {
|
||||
window.xmltbrowser.location = url;
|
||||
window.xmltbrowser.location.href = url;
|
||||
succeeded = true;
|
||||
}
|
||||
}
|
||||
|
||||
@ -498,7 +498,7 @@ function loadStartPage()
|
||||
var startpage = pref.getComplexValue("mailnews.start_page.url", Components.interfaces.nsIPrefLocalizedString).data;
|
||||
if (startpage != "")
|
||||
{
|
||||
GetMessagePaneFrame().location = startpage;
|
||||
GetMessagePaneFrame().location.href = startpage;
|
||||
//dump("start message pane with: " + startpage + "\n");
|
||||
ClearMessageSelection();
|
||||
}
|
||||
@ -533,7 +533,7 @@ function ShowingAccountCentral()
|
||||
document.getElementById("threadpane-splitter").collapsed = true;
|
||||
gSearchBox.collapsed = true;
|
||||
|
||||
window.frames["accountCentralPane"].location = acctCentralPage;
|
||||
window.frames["accountCentralPane"].location.href = acctCentralPage;
|
||||
|
||||
if (!IsFolderPaneCollapsed())
|
||||
GetFolderTree().focus();
|
||||
@ -550,7 +550,7 @@ function HidingAccountCentral()
|
||||
{
|
||||
try
|
||||
{
|
||||
window.frames["accountCentralPane"].location = "about:blank";
|
||||
window.frames["accountCentralPane"].location.href = "about:blank";
|
||||
}
|
||||
catch (ex)
|
||||
{
|
||||
|
||||
@ -1264,8 +1264,8 @@ function ClearMessagePane()
|
||||
{
|
||||
gHaveLoadedMessage = false;
|
||||
gCurrentDisplayedMessage = null;
|
||||
if (GetMessagePaneFrame().location != "about:blank")
|
||||
GetMessagePaneFrame().location = "about:blank";
|
||||
if (GetMessagePaneFrame().location.href != "about:blank")
|
||||
GetMessagePaneFrame().location.href = "about:blank";
|
||||
|
||||
// hide the message header view AND the message pane...
|
||||
HideMessageHeaderPane();
|
||||
|
||||
@ -537,7 +537,7 @@ function loadStartPage() {
|
||||
// first, clear out the charset setting.
|
||||
messenger.setDisplayCharset("");
|
||||
|
||||
GetMessagePaneFrame().location = startpage;
|
||||
GetMessagePaneFrame().location.href = startpage;
|
||||
//dump("start message pane with: " + startpage + "\n");
|
||||
ClearMessageSelection();
|
||||
}
|
||||
@ -566,7 +566,7 @@ function ShowAccountCentral()
|
||||
gSearchBox.collapsed = true;
|
||||
GetThreadTree().collapsed = true;
|
||||
document.getElementById("accountCentralBox").collapsed = false;
|
||||
window.frames["accountCentralPane"].location = acctCentralPage;
|
||||
window.frames["accountCentralPane"].location.href = acctCentralPage;
|
||||
if (!IsFolderPaneCollapsed())
|
||||
GetFolderTree().focus();
|
||||
gAccountCentralLoaded = true;
|
||||
@ -585,7 +585,7 @@ function HideAccountCentral()
|
||||
{
|
||||
try
|
||||
{
|
||||
window.frames["accountCentralPane"].location = "about:blank";
|
||||
window.frames["accountCentralPane"].location.href = "about:blank";
|
||||
document.getElementById("accountCentralBox").collapsed = true;
|
||||
GetThreadTree().collapsed = false;
|
||||
gSearchBox.collapsed = false;
|
||||
|
||||
@ -1131,8 +1131,8 @@ function ClearMessagePane()
|
||||
{
|
||||
gHaveLoadedMessage = false;
|
||||
gCurrentDisplayedMessage = null;
|
||||
if (GetMessagePaneFrame().location != "about:blank")
|
||||
GetMessagePaneFrame().location = "about:blank";
|
||||
if (GetMessagePaneFrame().location.href != "about:blank")
|
||||
GetMessagePaneFrame().location.href = "about:blank";
|
||||
// hide the message header view AND the message pane...
|
||||
HideMessageHeaderPane();
|
||||
|
||||
|
||||
@ -287,8 +287,8 @@ function InitPrintEngineWindow()
|
||||
|
||||
function ClearPrintEnginePane()
|
||||
{
|
||||
if (window.frames["content"].location != "about:blank")
|
||||
window.frames["content"].location = "about:blank";
|
||||
if (window.frames["content"].location.href != "about:blank")
|
||||
window.frames["content"].location.href = "about:blank";
|
||||
}
|
||||
|
||||
function StopUrls()
|
||||
|
||||
@ -182,7 +182,8 @@ function doEngineClick( event, aNode )
|
||||
}
|
||||
}
|
||||
else
|
||||
frames[0].document.location = "chrome://communicator/locale/search/default.htm";
|
||||
frames[0].document.location.href =
|
||||
"chrome://communicator/locale/search/default.htm";
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user