Bug 518014: preference about:fennec button doesn't show webpage, r=gavin

This commit is contained in:
Mark Finkle 2009-09-22 18:05:20 -04:00
parent 1a46dafde6
commit fa72057b3b
4 changed files with 6 additions and 12 deletions

View File

@ -537,10 +537,6 @@ var BrowserUI = {
this.goToURI(list.selectedItem.value);
},
showHistory : function() {
// XXX Fix me with a real UI
},
showBookmarks : function () {
BookmarkList.show();
},
@ -549,6 +545,8 @@ var BrowserUI = {
aURI = aURI || "about:blank";
let tab = Browser.addTab(aURI, true);
this.hidePanel();
if (aURI == "about:blank") {
this.showToolbar(true);
this.showAutoComplete();

View File

@ -358,9 +358,9 @@
#ifdef MOZ_OFFICIAL_BRANDING
# these two point to the same page, this just matters for what shows up in the
# URL bar
oncommand="Browser.addTab('about:firefox', true);"/>
oncommand="BrowserUI.newTab('about:firefox', true);"/>
#else
oncommand="Browser.addTab('about:fennec', true);"/>
oncommand="BrowserUI.newTab('about:fennec', true);"/>
#endif
</setting>
<setting id="prefs-uilanguage" title="&language.title;" type="control">

View File

@ -380,10 +380,8 @@ var DownloadsView = {
showPage: function dv_showPage(aItem) {
let uri = this._getReferrerOrSource(aItem);
if (uri) {
if (uri)
BrowserUI.newTab(uri);
BrowserUI.hidePanel();
}
},
observe: function (aSubject, aTopic, aData) {

View File

@ -502,10 +502,8 @@ var ExtensionsView = {
showPage: function ev_showPage(aItem) {
let uri = aItem.getAttribute("homepageURL");
if (uri) {
if (uri)
BrowserUI.newTab(uri);
BrowserUI.hidePanel();
}
},
resetSearch: function ev_resetSearch() {