I'm registering a content policy (implemented in JavaScript) from the startup() 
function of my bootstrap.js. When I do so, I get an error in the Error Console:

Timestamp: 5/10/13 4:50:56 PM
Error: this.webNavigation is null
Source File: chrome://global/content/bindings/browser.xml
Line: 721

Apparently the <browser> constructor is being called before the docShell is 
there. I can't see why registering a category entry with type "content-policy" 
would cause this, however. From the code it looks like the entry just gets put 
into the list maintained by nsContentPolicy (it uses nsCategoryCache for this). 
The list is iterated in CheckPolicy. Why this would cause the <browser> to be 
instantiated prematurely is not clear to me.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to