rem: webNav.loadURI(url, loadFlags); 
add: docShellElement.webNavigation.loadURI(url, loadFlags); 
context: function viewSource(url){  if (!url)    return false; // throw Components.results.NS_ERROR_FAILURE;  try {    createBrowserInstance();    if (appCore == null) {    // Give up.    window.close();    return false;    }    // Initialize browser instance..    appCore.setWebShellWindow(window);  }  catch(ex) {  }  var docShellElement = document.getElementById("content-frame");  var docShell = docShellElement.docShell;  docShell.viewMode = Components.interfaces.nsIDocShell.viewSource;  var webNav = docShell.QueryInterface(Components.interfaces.nsIWebNavigation);  try {      if (window.arguments && window.arguments[1]) {          if (window.arguments[1].indexOf('charset=') != -1) {              var arrayArgComponents = window.arguments[1].split('=');              if (arrayArgComponents) {                appCore.SetDocumentCharset(arrayArgComponents[1]);              }           }      }  }  catch(ex) {  }  var loadFlags = Components.interfaces.nsIWebNavigation.LOAD_FLAGS_NONE;  webNav.loadURI(url, loadFlags);  return true;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6c87329333eb65f621fa2925146ab8133f3449bd/viewsource.js/buggy/xpfe/browser/resources/content/viewsource.js