rem: var docCharset; 
context: function BrowserViewSourceOfDocument(aDocument){  var docCharset;  var pageCookie;  var webNav;  // Get the document charset  docCharset = "charset=" + aDocument.characterSet;  // Get the nsIWebNavigation associated with the document  try {      var win;      var ifRequestor;      // Get the DOMWindow for the requested document.  If the DOMWindow      // cannot be found, then just use the content window...      //      // XXX:  This is a bit of a hack...      win = aDocument.defaultView;      if (win == window) {        win = content;      }      ifRequestor = win.QueryInterface(Components.interfaces.nsIInterfaceRequestor);      webNav = ifRequestor.getInterface(nsIWebNavigation);  } catch(err) {      // If nsIWebNavigation cannot be found, just get the one for the whole      // window...      webNav = getWebNavigation();  }  //  // Get the 'PageDescriptor' for the current document. This allows the  // view-source to access the cached copy of the content rather than  // refetching it from the network...  //  try{    var PageLoader = webNav.QueryInterface(Components.interfaces.nsIWebPageDescriptor);    pageCookie = PageLoader.currentDescriptor;  } catch(err) {    // If no page descriptor is available, just use the view-source URL...  }  BrowserViewSourceOfURL(webNav.currentURI.spec, docCharset, pageCookie);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/a40ff71595a44bcf326020e43c455b5bb7366070/browser.js/clean/browser/base/content/browser.js