support about:newtab (update for changes introduced by https://bugzilla.mozilla.org/show_bug.cgi?id=455553 )

This commit is contained in:
Piro / SHIMODA Hiroshi 2012-01-30 23:42:40 +09:00
parent ed46793caa
commit 00d6ef7609

View File

@ -88,6 +88,7 @@ var PseudoTreeBuilder = {
createTabItem : function TB_createTabItem(aTab)
{
var doc = aTab.ownerDocument;
var w = doc.defaultView;
var item = doc.createElement('hbox');
item.setAttribute('class', this.kTREEROW);
@ -100,7 +101,7 @@ var PseudoTreeBuilder = {
label.setAttribute('value', aTab.label);
var tooltip = aTab.label;
var uri = aTab.linkedBrowser.currentURI.spec;
if (uri != 'about:blank') tooltip += '\n' + uri;
if (w.isBlankPageURL ? !w.isBlankPageURL(uri) : (uri != 'about:blank')) tooltip += '\n' + uri;
label.setAttribute('tooltiptext', tooltip);
label.setAttribute('class', 'text-link '+this.kTREEITEM);
label.setAttribute('tab-id', this.getTabValue(aTab, this.kID));