Bug 300539: browser.urlbar.autoFill isn't supported in the Open Location dialog

git-svn-id: svn://10.0.0.236/trunk@179122 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gavin%gavinsharp.com
2005-08-27 03:39:08 +00:00
parent 071809b68b
commit cae2234143

View File

@@ -63,6 +63,12 @@ function onLoad()
dialog.openWhereList.selectedItem = dialog.openTopWindow;
if (pref) {
try {
var useAutoFill = pref.getBoolPref("browser.urlbar.autoFill");
if (useAutoFill)
dialog.input.setAttribute("completedefaultindex", "true");
} catch (ex) {}
try {
var value = pref.getIntPref("general.open_location.last_window_choice");
var element = dialog.openWhereList.getElementsByAttribute("value", value)[0];