Bug 330887: revert previous change since it had no effect on Ts
git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@195171 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1077,10 +1077,6 @@ function BrowserShutdown()
|
||||
gBrowser.removeProgressListener(window.XULBrowserWindow);
|
||||
} catch (ex) {
|
||||
}
|
||||
|
||||
var searchBar = BrowserSearch.getSearchBar();
|
||||
if (searchBar)
|
||||
searchBar.init();
|
||||
|
||||
#ifndef MOZ_PLACES
|
||||
try {
|
||||
@@ -1230,12 +1226,12 @@ FormFillPrefListener.prototype =
|
||||
var formController = Components.classes["@mozilla.org/satchel/form-fill-controller;1"].getService(Components.interfaces.nsIAutoCompleteInput);
|
||||
formController.disableAutoComplete = !gFormFillEnabled;
|
||||
|
||||
var searchBar = BrowserSearch.getSearchBar();
|
||||
if (searchBar) {
|
||||
var searchBar = document.getElementsByTagName("searchbar");
|
||||
for (var i=0; i<searchBar.length;i++) {
|
||||
if (gFormFillEnabled)
|
||||
searchBar.removeAttribute("disableautocomplete");
|
||||
searchBar[i].removeAttribute("disableautocomplete");
|
||||
else
|
||||
searchBar.setAttribute("disableautocomplete", "true");
|
||||
searchBar[i].setAttribute("disableautocomplete", "true");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2951,7 +2947,7 @@ const BrowserSearch = {
|
||||
getSearchBar: function BrowserSearch_getSearchBar() {
|
||||
var searchBar = document.getElementById("searchbar");
|
||||
if (searchBar && !searchBar.parentNode.parentNode.collapsed &&
|
||||
window.getComputedStyle(searchBar.parentNode, null).display != "none")
|
||||
!(window.getComputedStyle(searchBar.parentNode, null).display == "none"))
|
||||
return searchBar;
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -80,6 +80,10 @@
|
||||
</content>
|
||||
<implementation implements="nsIObserver">
|
||||
|
||||
<constructor><![CDATA[
|
||||
setTimeout(function (a) { a.init(); }, 0, this);
|
||||
]]></constructor>
|
||||
|
||||
<method name="init">
|
||||
<body><![CDATA[
|
||||
// Refresh the display (updating icon, etc)
|
||||
|
||||
Reference in New Issue
Block a user