зеркало из https://github.com/mozilla/gecko-dev.git
Bug 819181 - Inspector sidebar items show undefined during load. r=jwalker
This commit is contained in:
Родитель
0123dab9c4
Коммит
4ff1ea49b7
|
@ -56,6 +56,7 @@ ToolSidebar.prototype = {
|
|||
iframe.setAttribute("src", url);
|
||||
|
||||
let tab = this._tabbox.tabs.appendItem();
|
||||
tab.setAttribute("label", ""); // Avoid showing "undefined" while the tab is loading
|
||||
|
||||
let onIFrameLoaded = function() {
|
||||
tab.setAttribute("label", iframe.contentDocument.title);
|
||||
|
|
Загрузка…
Ссылка в новой задаче