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 692e4d1071
commit 473d103b44

View File

@ -56,6 +56,7 @@ ToolSidebar.prototype = {
iframe.setAttribute("src", url); iframe.setAttribute("src", url);
let tab = this._tabbox.tabs.appendItem(); let tab = this._tabbox.tabs.appendItem();
tab.setAttribute("label", ""); // Avoid showing "undefined" while the tab is loading
let onIFrameLoaded = function() { let onIFrameLoaded = function() {
tab.setAttribute("label", iframe.contentDocument.title); tab.setAttribute("label", iframe.contentDocument.title);