зеркало из https://github.com/mozilla/gecko-dev.git
Bug 221934 - Display page title in DOM Inspector Window
patch by Michael Gall <michael@wakeless.net> r=db48x, sr=neil
This commit is contained in:
Родитель
1784054605
Коммит
af197d575f
|
@ -179,7 +179,17 @@ InspectorApp.prototype =
|
|||
if (aEvent.target == this.mDocPanel.viewer &&
|
||||
aEvent.subject && "location" in aEvent.subject) {
|
||||
this.locationText = aEvent.subject.location; // display document url
|
||||
|
||||
var docTitle = aEvent.subject.title || aEvent.subject.location;
|
||||
if (/Mac/.test(navigator.platform)) {
|
||||
document.title = docTitle;
|
||||
} else {
|
||||
document.title = docTitle + " - " +
|
||||
document.documentElement.getAttribute("title");
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче