rem: var loc = frames[0].document.location.href; 
add: var loc = client.currentFrame.document.location.href; 
context: function onViewMenuShowing (){    var loc = frames[0].document.location.href;    loc = loc.substr (loc.indexOf("?") + 1);    var val = (loc == "chrome://chatzilla/skin/output-default.css");    document.getElementById ("menu-view-default").setAttribute ("checked", val);    val = (loc == "chrome://chatzilla/skin/output-dark.css");    document.getElementById ("menu-view-dark").setAttribute ("checked", val);    val = (loc == "chrome://chatzilla/skin/output-light.css");    document.getElementById ("menu-view-light").setAttribute ("checked", val);    val = client.COLLAPSE_MSGS;    document.getElementById ("menu-view-collapse").setAttribute ("checked", val);    val = client.COPY_MESSAGES;    document.getElementById ("menu-view-copymsgs").setAttribute ("checked", val);        val = isStartupURL(client.currentObject.getURL());    document.getElementById ("menu-view-startup").setAttribute ("checked", val);    return true;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/48382cacdb61b942a36cd94d23ee819aa41dbcc2/handlers.js/buggy/extensions/irc/xul/content/handlers.js