settings.window.screenX = window.screenX; settings.window.screenY = window.screenY; settings.window.width = window.outerWidth; settings.window.height = window.outerHeight; 
settings.window.state = window.windowState; if (window.windowState == window.STATE_NORMAL) { settings.window.screenX = window.screenX; settings.window.screenY = window.screenY; settings.window.width = window.outerWidth; settings.window.height = window.outerHeight; } 
  _saveSettings : function() {      var settings = {};      settings.version = "1";      settings.window = {};      settings.window.screenX = window.screenX;      settings.window.screenY = window.screenY;      settings.window.width = window.outerWidth;      settings.window.height = window.outerHeight;      settings.sidebar = {};      settings.sidebar.visible = (document.getElementById("splitter_sidebar").getAttribute("state") == "open");      settings.sidebar.width = document.getElementById("box_sidebar").width;      // Save using JSON format      if (this._profile.hasOwnProperty("id")) {        var json = JSON.toString(settings);        var file = IO.getFile("Profile", null);        file.append("webapps");        file.append(this._profile.id);        file.append("localstore.json");        if (!file.exists())          file.create(Ci.nsIFile.NORMAL_FILE_TYPE, 0600);        var stream = IO.newOutputStream(file, "text write create truncate");        stream.writeString(json);        stream.close();      }  },
705	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/705/5b47f203849f035472fe039ad14af4c777eefb72/webrunner.js/buggy/app/chrome/content/webrunner.js