rem: if (window.editorShell) 
add: dump("Getting document\n"); var theDoc = editorShell.editorDocument; if (theDoc) 
context: function EditorTestDocument(){  if (window.editorShell)  {    dump("Getting document\n");    var theDoc = window.editorShell.editorDocument;    if (theDoc)    {      dump("Got the doc\n");      dump("Document name:" + theDoc.nodeName + "\n");      dump("Document type:" + theDoc.doctype + "\n");    }    else    {      dump("Failed to get the doc\n");    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/8f1b0f0e2f48f83a0ca1fc5b895d4b1c08312577/EditorCommands.js/buggy/editor/ui/composer/content/EditorCommands.js