tracking change of name of window.content to _content. (bug 33650) r=hyatt

This commit is contained in:
danm%netscape.com 2006-07-27 14:51:21 +00:00
Родитель a32e75a067
Коммит fac002f991
4 изменённых файлов: 24 добавлений и 24 удалений

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

@ -73,7 +73,7 @@ function OnClick(event)
var selectedItem = tree.selectedItems[0]; var selectedItem = tree.selectedItems[0];
//if( selectedItem.getAttribute( "type" ) == "FILE" ) //if( selectedItem.getAttribute( "type" ) == "FILE" )
window.content.location.href = selectedItem.getAttribute('id'); window._content.location.href = selectedItem.getAttribute('id');
} }
} }

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

@ -33,7 +33,7 @@ function debug(msg)
} }
// The content window that we're supposed to be observing. // The content window that we're supposed to be observing.
var ContentWindow = window.content; var ContentWindow = window._content;
// The related links handler // The related links handler
var Handler = Components.classes["component://netscape/related-links-handler"].createInstance(); var Handler = Components.classes["component://netscape/related-links-handler"].createInstance();

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

@ -36,9 +36,9 @@ function searchResultsOpenURL(event, node)
return(false); return(false);
dump("Opening URL: " + url + "\n"); dump("Opening URL: " + url + "\n");
if( top.content ) if( top._content )
{ {
top.content.location.href = url; top._content.location.href = url;
} }
return true; return true;
} }

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

@ -478,7 +478,7 @@ function doStop()
// show appropriate column(s) // show appropriate column(s)
if ((rdf) && (internetSearch)) if ((rdf) && (internetSearch))
{ {
var resultsTree = top.content.document.getElementById("internetresultstree"); var resultsTree = top._content.document.getElementById("internetresultstree");
if( !resultsTree ) if( !resultsTree )
return(false); return(false);
var searchURL = resultsTree.getAttribute("ref"); var searchURL = resultsTree.getAttribute("ref");
@ -499,38 +499,38 @@ function doStop()
if(hasPriceFlag == true) if(hasPriceFlag == true)
{ {
var colNode = top.content.document.getElementById("PriceColumn"); var colNode = top._content.document.getElementById("PriceColumn");
if (colNode) if (colNode)
{ {
colNode.removeAttribute("style", "width: 0; visibility: collapse;"); colNode.removeAttribute("style", "width: 0; visibility: collapse;");
if (sortSetFlag == false) if (sortSetFlag == false)
{ {
top.content.setInitialSort(colNode, "ascending"); top._content.setInitialSort(colNode, "ascending");
sortSetFlag = true; sortSetFlag = true;
} }
} }
} }
if (hasAvailabilityFlag == true) if (hasAvailabilityFlag == true)
{ {
colNode = top.content.document.getElementById("AvailabilityColumn"); colNode = top._content.document.getElementById("AvailabilityColumn");
if (colNode) if (colNode)
colNode.removeAttribute("style", "width: 0; visibility: collapse;"); colNode.removeAttribute("style", "width: 0; visibility: collapse;");
} }
if (hasDateFlag == true) if (hasDateFlag == true)
{ {
colNode = top.content.document.getElementById("DateColumn"); colNode = top._content.document.getElementById("DateColumn");
if (colNode) if (colNode)
colNode.removeAttribute("style", "width: 0; visibility: collapse;"); colNode.removeAttribute("style", "width: 0; visibility: collapse;");
} }
if (hasRelevanceFlag == true) if (hasRelevanceFlag == true)
{ {
colNode = top.content.document.getElementById("RelevanceColumn"); colNode = top._content.document.getElementById("RelevanceColumn");
if (colNode) if (colNode)
{ {
colNode.removeAttribute("style", "width: 0; visibility: collapse;"); colNode.removeAttribute("style", "width: 0; visibility: collapse;");
if (sortSetFlag == false) if (sortSetFlag == false)
{ {
top.content.setInitialSort(colNode, "descending"); top._content.setInitialSort(colNode, "descending");
sortSetFlag = true; sortSetFlag = true;
} }
} }
@ -539,9 +539,9 @@ function doStop()
if (sortSetFlag == false) if (sortSetFlag == false)
{ {
colNode = top.content.document.getElementById("PageRankColumn"); colNode = top._content.document.getElementById("PageRankColumn");
if (colNode) if (colNode)
top.content.setInitialSort(colNode, "ascending"); top._content.setInitialSort(colNode, "ascending");
} }
switchTab(0); switchTab(0);
} }
@ -589,12 +589,12 @@ function doSearch()
return; return;
// hide various columns // hide various columns
if( parent.content.isMozillaSearchWindow ) { if( parent._content.isMozillaSearchWindow ) {
colNode = parent.content.document.getElementById("RelevanceColumn"); colNode = parent._content.document.getElementById("RelevanceColumn");
if (colNode) colNode.setAttribute("style", "width: 0; visibility: collapse;"); if (colNode) colNode.setAttribute("style", "width: 0; visibility: collapse;");
colNode = parent.content.document.getElementById("PriceColumn"); colNode = parent._content.document.getElementById("PriceColumn");
if (colNode) colNode.setAttribute("style", "width: 0; visibility: collapse;"); if (colNode) colNode.setAttribute("style", "width: 0; visibility: collapse;");
colNode = parent.content.document.getElementById("AvailabilityColumn"); colNode = parent._content.document.getElementById("AvailabilityColumn");
if (colNode) colNode.setAttribute("style", "width: 0; visibility: collapse;"); if (colNode) colNode.setAttribute("style", "width: 0; visibility: collapse;");
} }
@ -665,8 +665,8 @@ function doSearch()
function checkSearchProgress( aSearchURL ) function checkSearchProgress( aSearchURL )
{ {
var activeSearchFlag = false; var activeSearchFlag = false;
var resultsTree = top.content.document.getElementById("internetresultstree"); var resultsTree = top._content.document.getElementById("internetresultstree");
var enginesBox = top.content.document.getElementById("engineTabs"); var enginesBox = top._content.document.getElementById("engineTabs");
if( !resultsTree || !enginesBox ) if( !resultsTree || !enginesBox )
{ {
doStop(); doStop();
@ -784,8 +784,8 @@ function sidebarOpenURL(event, treeitem, root)
{ {
} }
if ( window.content ) if ( window._content )
window.content.location = id; window._content.location = id;
else { else {
window.openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", id ); window.openDialog( getBrowserURL(), "_blank", "chrome,all,dialog=no", id );
} }
@ -865,7 +865,7 @@ function OpenSearch( tabName, forceDialogFlag, aSearchStr, engineURIs )
} }
// load the results page of selected or default engine in the content area // load the results page of selected or default engine in the content area
if( defaultSearchURL ) if( defaultSearchURL )
top.content.location.href = defaultSearchURL; top._content.location.href = defaultSearchURL;
} }
else { else {
// multiple providers // multiple providers
@ -882,7 +882,7 @@ function OpenSearch( tabName, forceDialogFlag, aSearchStr, engineURIs )
gURL = searchURL; gURL = searchURL;
top.content.location.href = "chrome://communicator/content/search/internetresults.xul"; top._content.location.href = "chrome://communicator/content/search/internetresults.xul";
} }
} }
catch(ex) catch(ex)
@ -1039,4 +1039,4 @@ function doEnabling()
if ( searchButton.getAttribute("disabled") == "true") if ( searchButton.getAttribute("disabled") == "true")
searchButton.removeAttribute( "disabled"); searchButton.removeAttribute( "disabled");
} }
} }