Bug 819181 - Inspector sidebar items show undefined during load. r=jwalker

This commit is contained in:
Paul Rouget 2013-01-09 02:15:00 +02:00
parent 12ee7b8bff
commit 9a0ecdb350

View File

@ -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);