Bug 495058 - Location bar emptyText not shown when deteaching blank tab or about:privatebrowsing into a new window. r=gavin

This commit is contained in:
Dão Gottwald 2009-06-11 01:10:09 +02:00
parent 9d8fa4032b
commit b3741649cc
2 changed files with 2 additions and 2 deletions

View File

@ -1237,7 +1237,7 @@ function delayedStartup(isLoadingBlank, mustLoadSidebar) {
focusElement(content);
if (gURLBar)
gURLBar.setAttribute("emptytext", gURLBarEmptyText.value);
gURLBar.emptyText = gURLBarEmptyText.value;
gNavToolbox.customizeDone = BrowserToolboxCustomizeDone;
gNavToolbox.customizeChange = BrowserToolboxCustomizeChange;

View File

@ -38,7 +38,7 @@ function next() {
is(win.document.activeElement, win.gBrowser.selectedBrowser, uri + ": browser is focused");
is(win.gURLBar.value, "", uri + ": urlbar is empty");
ok(win.gURLBar.emptyText, uri + ": emptytext is present");
todo(win.gURLBar.hasAttribute("isempty"), uri + ": emptytext is displayed");
ok(win.gURLBar.hasAttribute("isempty"), uri + ": emptytext is displayed");
win.close();
if (uris.length)