rem:  var myWrap = window._content.document.getElementById('viewsource'); 
add: var myWrap = window._content.document.body; 
context: function wrapLongLines(){  //get the first pre tag which surrounds the entire viewsource content  var myWrap = window._content.document.getElementById('viewsource');  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: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/736b6f345cf8a3a3ae8423d809985c376eeeffa4/viewsource.js/clean/suite/browser/viewsource.js