Re: Venkman XUL debugging access denied

"James Ross" <[email protected]> Sat, 18 Apr 2009 09:51:33 +0100
Newsgroups gmane.comp.mozilla.devel.jsdebugger
Message-ID <[email protected]>
"izi" <[email protected]> wrote in message 
news:mailman.82.1240043499.17127.dev-apps-js-debugger@lists.mozilla.org...
> Error loading URL <chrome://chatzilla/content/static.js ->
> file:///$chatzillaProfile/sampleplugin/init.js>: [Exception... "Access to
> restricted URI denied" code: "1012" nsresult: "0x805303f4
> (NS_ERROR_DOM_BAD_URI)" location:
> "chrome://venkman/content/venkman-url-loader.js Line: 54"].
>
> Any ideas?

Use Pretty Print.

The URI is deliberately invalid - it's created by the subscript loader 
(which ChatZilla uses to load scripts) so that they get treated correctly by 
the security system (IIRC), but they can't be loaded as-is because it is 
really two URIs stuck together (which Venkman is not splitting apart in the 
current version). Pretty Print avoids the need to load the script's reported 
URI and instead displays the parsed code directly.

-- 
James Ross <[email protected]>