rem: var myWrap = window._content.document.body; 
add: var myWrap = window.content.document.body; 
context: function wrapLongLines(){  var myWrap = window._content.document.body;  if (myWrap.className == '')    myWrap.className = 'wrap';  else myWrap.className = '';  //since multiple viewsource windows are possible, another window could have   //affected the pref, so instead of determining the new pref value via the current  //pref value, we use myWrap.className    if (gPrefs){    try {      if (myWrap.className == '') {        gPrefs.setBoolPref("view_source.wrap_long_lines", false);      }      else {        gPrefs.setBoolPref("view_source.wrap_long_lines", true);      }    } catch (ex) {    }  }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/766d404cfe3d0b6d61d9fede0b76e1d13ab33d52/viewsource.js/clean/xpfe/browser/resources/content/viewsource.js