I've tried to fix it myself, with no luck. First of all, I've tried it with both NoScript 2.2.8 and 2.3.1, as well as Firefox 10.0b5 and 11.0b4. It doesn't work. When I disable NoScript + restart, it works perfectly -- so it's definitely related to NoScript.
Here's the strangest part...first of all, VSC has always had a weird bug where, if you try to load a url in the new tab generated by VSC, it starts loading, but then VSC overlays the chart on top. You'd have to try it yourself to see what I mean, it's hard to explain. Anyway, I accidentally discovered that if I purposely do this in the VSC tab and have the "Temporarily allow top-level domains..." option set in NoScript (or already have the new URL in your whitelist), when VSC makes the new overlay, the collapsing works! And if I look at NoScript, it thinks the top-level domain is that new site, so I assume that's why it's loaded!
When the VSC chart is first created (after doing right click --> "View Source Chart" on any page), it loads in an about:blank tab. This is already in my whitelist, and I don't see what else I could add to allow this script to run.
Based on the code and the "Developer's Comments" from the add-on page, I think it has something to do with how collapse.js is imported.
Relevant info from the Developer's Comments:
I have no idea how to make the script work.* To Collapse, click any hot area, indicated by a pointer style cursor.
* To Expand, click anywhere in the collapsed container.
************************************
Source Charts are based on the post-rendered source returned by the browser, the same source you see when selecting "View Selection Source" (CTRL + A then right click).
Any ideas?!?!?
Edit: How to understand all the behaviour I've described above:
See how it normally works:
- Download VSC (link is above) and disable NoScript. Restart Firefox.
- Go to any website, right-click, and choose "View Source Chart".
- Click on an HTML tag like <head> or <div> and watch the cool way it collapses!
- Enable NoScript. Restart Firefox.
- Go to any website, right-click, and choose "View Source Chart".
- Click on an HTML tag like <head> or <div> and watch NOTHING happen.
- In a VSC tab, enter a URL that is definitely in your whitelist, like http://noscript.net/, and load the page.
- Watch how the page starts to load but then VSC takes over
- Click on an HTML tag and see that collapsing works again!