NoBugs
NoBugs

Reputation: 9492

Why doesn't XUL load handler work?

In Firefox dev tools, it seems the XUL iframes won't fire after the initial onload. For example, see the bottom of this file, where the extension makes the selected element in the inspector more easy to see. This is working when you open the inspector, but when you click to another page it reverts to the old inspector tree style. I even tried frame.contentWindow.addEventListener('load',styleit);, but it doesn't fire when a link is clicked on the web page, and page has loaded.

Upvotes: 0

Views: 63

Answers (1)

paa
paa

Reputation: 5054

a) get a reference of the InspectorPanel object
b) listen for the ready event

var ip = window.ownerDocument.defaultView.inspector;`
ip.on("ready", styleit)

Upvotes: 1

Related Questions