Skip to content

Commit

Permalink
Merge branch 'master' of github.com:firebug/firebug
Browse files Browse the repository at this point in the history
  • Loading branch information
janodvarko committed Aug 3, 2012
2 parents 03eb829 + 0d91ff1 commit f9c02bf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions extension/content/firebug/net/netReps.js
Expand Up @@ -1169,6 +1169,14 @@ Firebug.NetMonitor.NetInfoBody = domplate(Firebug.Rep, new Firebug.Listener(),
this.htmlPreview = netInfoBox.getElementsByClassName("netInfoHtmlPreview").item(0);
this.htmlPreview.contentWindow.document.body.innerHTML = text;

// Workaround for issue 5774 (it's not clear why the 'load' event is actually
// sent to the iframe when the user swithes Firebug panels).
// The event is sent only for the iframes in the Console panel.
context.addEventListener(this.htmlPreview, "load", function(event)
{
event.target.contentDocument.body.innerHTML = text;
});

var defaultHeight = parseInt(Options.get("netHtmlPreviewHeight"));
if (!isNaN(defaultHeight))
this.htmlPreview.style.height = defaultHeight + "px";
Expand Down

0 comments on commit f9c02bf

Please sign in to comment.