rem: if (window && (window.windowtype == "navigator:browser") && window.content && window.content.document) 
add: if (window && (window.windowtype == "navigator:browser") && window._content && window._content.document) 
context: function OpenBrowserWindow(){  dump("In OpenBrowserWindw()...\n");  var charsetArg = new String();  var handler = Components.classes['component://netscape/commandlinehandler/general-startup-browser'];  handler = handler.getService();  handler = handler.QueryInterface(Components.interfaces.nsICmdLineHandler);  var startpage = handler.defaultArgs;  var url = handler.chromeUrlForTask;  // if and only if the current window is a browser window and it has a document with a character  // set, then extract the current charset menu setting from the current document and use it to  // initialize the new browser window...  if (window && (window.windowtype == "navigator:browser") && window.content && window.content.document)  {    var DocCharset = window.content.document.characterSet;    charsetArg = "charset="+DocCharset;    dump("*** Current document charset: " + DocCharset + "\n");    //we should "inherit" the charset menu setting in a new window    window.openDialog(url, "_blank", "chrome,all,dialog=no", startpage, charsetArg);  }  else // forget about the charset information.  {    window.openDialog(url, "_blank", "chrome,all,dialog=no", startpage);  }}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/dbca8886472e8bebc4390822e4521ae44d56117b/tasksOverlay.js/buggy/suite/common/tasksOverlay.js