rem: var focusedWindow = doc.commandDispatcher.focusedWindow; var sourceDocument = getContentFrameDocument(focusedWindow); 
add: if (!doc) return null;  if (doc == document) doc = getContentFrameDocument(document.commandDispatcher.focusedWindow); 
context: function getReferrer(doc){  var focusedWindow = doc.commandDispatcher.focusedWindow;  var sourceDocument = getContentFrameDocument(focusedWindow);  try {    return makeURI(sourceDocument.location.href, sourceDocument.characterSet);  } catch (e) {    return null;  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/26000a28a69ba396617551db8e97d2d610b28ada/contentAreaUtils.js/clean/suite/common/contentAreaUtils.js