rem:     _content.defaultCharacterset = getBrowser().docShell.contentViewer.QueryInterface(Components.interfaces.nsIMarkupDocumentViewer).defaultCharacterSet; 
add: _content.defaultCharacterset = getMarkupDocumentViewer().defaultCharacterSet; 
context: function checkForDirectoryListing(){  if ("HTTPIndex" in _content &&      typeof _content.HTTPIndex == "object" &&      !_content.HTTPIndex.constructor) {    // Give directory .xul/.js access to browser instance.    // XXX The following line leaks (bug 61821), so the next line is a hack    // to avoid the leak.    // _content.defaultCharacterset = getBrowser().markupDocumentViewer.defaultCharacterSet;    _content.defaultCharacterset = getBrowser().docShell.contentViewer.QueryInterface(Components.interfaces.nsIMarkupDocumentViewer).defaultCharacterSet;    _content.parentWindow = window;  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6c87329333eb65f621fa2925146ab8133f3449bd/navigator.js/buggy/xpfe/browser/resources/content/navigator.js