rem:  gPrefs = GetPrefsService(); 
add: gPrefs = GetPrefs(); 
context: function EditorSharedStartup(){  // Just for convenience  gContentWindow = window._content;  // set up JS-implemented commands for Text or HTML editing  switch (editorShell.editorType)  {      case "html":      case "htmlmail":        SetupHTMLEditorCommands();        editorShell.contentsMIMEType = "text/html";        break;      case "text":      case "textmail":        SetupTextEditorCommands();        editorShell.contentsMIMEType = "text/plain";        break;      default:        dump("INVALID EDITOR TYPE: "+editorShell.editorType+"\n");        SetupTextEditorCommands();        editorShell.contentsMIMEType = "text/plain";        break;  }  var isMac = (GetOS() == gMac);  // Set platform-specific hints for how to select cells  // Mac uses "Cmd", all others use "Ctrl"  var tableKey = GetString(isMac ? "XulKeyMac" : "TableSelectKey");  var dragStr = tableKey+GetString("Drag");  var clickStr = tableKey+GetString("Click");  var delStr = GetString(isMac ? "Clear" : "Del");  SafeSetAttribute("menu_SelectCell", "acceltext", clickStr);  SafeSetAttribute("menu_SelectRow", "acceltext", dragStr);  SafeSetAttribute("menu_SelectColumn", "acceltext", dragStr);  SafeSetAttribute("menu_SelectAllCells", "acceltext", dragStr);  // And add "Del" or "Clear"  SafeSetAttribute("menu_DeleteCellContents", "acceltext", delStr);  // Set text for indent, outdent keybinding  // hide UI that we don't have components for  RemoveInapplicableUIElements();  // gPrefs and GetPrefsService() are in editorUtilities.js  gPrefs = GetPrefsService();  // Use browser colors as initial values for editor's default colors  var BrowserColors = GetDefaultBrowserColors();  if (BrowserColors)  {    gDefaultTextColor = BrowserColors.TextColor;    gDefaultBackgroundColor = BrowserColors.BackgroundColor;  }  // For new window, no default last-picked colors  gColorObj.LastTextColor = "";  gColorObj.LastBackgroundColor = "";}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/30e4db28ced4996c2a5c609b374b1fc75f175370/editor.js/buggy/editor/ui/composer/content/editor.js