rem:   if (typeof(browser.__tb_tor_fetched) == 'undefined') { this.logger.log(3, "Untagged window for "+contentLocation.spec); return ok; 
add:   if(wind.top instanceof Components.interfaces.nsIDOMChromeWindow) {  if (!wind.top.browserDOMWindow && typeof(browser.__tb_tor_fetched) == 'undefined') { this.logger.log(3, "Untagged window for "+contentLocation.spec); return ok; }  if(wind.top.browserDOMWindow && contentType == CPolicy.TYPE_DOCUMENT) { this.logger.log(3, "New location for "+contentLocation.spec); return ok; } 
context: 	shouldLoad: function(contentType, contentLocation, requestOrigin, insecNode, mimeTypeGuess, extra) {               /*. Debugging hack. DO NOT UNCOMMENT IN PRODUCTION ENVIRONMENTS        if(contentLocation.spec.search("venkman") != -1) {            this.logger.log(3, "chrome-venk");            return ok;        }*/        if(!insecNode) {            // Happens on startup            this.logger.log(3, "Skipping no insec: "+contentLocation.spec);            return ok;        }        if(!this.isolate_content) {            this.logger.eclog(1, "Content policy disabled");            return ok;        }                var node = wrapNode(insecNode);        var wind = getWindow(node);		// Local stuff has to be eclog because otherwise debuglogger will        // get into an infinite log-loop w/ its chrome updates        if (this.isLocalScheme(unwrapURL(contentLocation.spec))) {            this.logger.eclog(1, "Skipping local: "+contentLocation.spec);			return ok;        } 		// For frame elements go to their window		if (contentType == CPolicy.TYPE_SUBDOCUMENT && node.contentWindow) {			node = node.contentWindow;			wind = node;		}        var tor_state = this.tor_enabled;        if (contentType == 5) { // Object            // Never seems to happen.. But it would be nice if we             // could handle it either here or shouldProcess, instead of in             // the webprogresslistener            if(this.tor_enabled && this.no_tor_plugins) {                this.logger.log(4, "Blocking object at "+contentLocation.spec);                return block;            }        }        if (!wind || !wind.top.location || !wind.top.location.href) {            this.logger.log(4, "Skipping no location: "+contentLocation.spec);			return ok;        }        var doc = wind.top.document;        if(!doc) {            // 1st load of a page in a new location            this.logger.log(3, "Skipping no doc: "+contentLocation.spec);            return ok;        }        var browser = this.wm.getBrowserForContentWindow(wind.top);        if(!browser) {            this.logger.log(5, "No window found: "+contentLocation.spec);            return block;         }        // This happens on the first load of a doc and with non-browser        // chrome..        if (typeof(browser.__tb_tor_fetched) == 'undefined') {            this.logger.log(3, "Untagged window for "+contentLocation.spec);            return ok;        }        if(browser.__tb_tor_fetched == tor_state) {            return ok;        } else {            this.logger.log(3, "Blocking: "+contentLocation.spec);            return block;        }	},
meta: 3444	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3444/075ae96be6f07cf1e4bf5bced6ef7911350096f3/cssblocker.js/clean/src/components/cssblocker.js