rem: if (gBackgroundImage.match( /url\((.*)\)/ )) 
add: if (/url\((.*)\)/.test( gBackgroundImage )) 
context: function InitDialog(){  // Get image from document  gBackgroundImage = GetHTMLOrCSSStyleValue(globalElement, backgroundStr, cssBackgroundImageStr);  if (gBackgroundImage.match( /url\((.*)\)/ ))    gBackgroundImage = RegExp.$1;  gDialog.BackgroundImageInput.value = gBackgroundImage;  if (gBackgroundImage)    gDialog.ColorPreview.setAttribute(styleStr, backImageStyle+gBackgroundImage+");");  SetRelativeCheckbox();  customTextColor        = GetHTMLOrCSSStyleValue(globalElement, textStr, cssColorStr);  customTextColor        = ConvertRGBColorIntoHEXColor(customTextColor);  customLinkColor        = globalElement.getAttribute(linkStr);  customActiveColor      = globalElement.getAttribute(alinkStr);  customVisitedColor     = globalElement.getAttribute(vlinkStr);  customBackgroundColor  = GetHTMLOrCSSStyleValue(globalElement, bgcolorStr, cssBackgroundColorStr);  customBackgroundColor  = ConvertRGBColorIntoHEXColor(customBackgroundColor);  var haveCustomColor =         customTextColor       ||        customLinkColor       ||        customVisitedColor    ||        customActiveColor     ||        customBackgroundColor;  // Set default color explicitly for any that are missing  // PROBLEM: We are using "windowtext" and "window" for the Windows OS  //   default color values. This works with CSS in preview window,  //   but we should NOT use these as values for HTML attributes!  if (!customTextColor) customTextColor = defaultTextColor;  if (!customLinkColor) customLinkColor = defaultLinkColor;  if (!customActiveColor) customActiveColor = defaultActiveColor;  if (!customVisitedColor) customVisitedColor = defaultVisitedColor;  if (!customBackgroundColor) customBackgroundColor = defaultBackgroundColor;  if (haveCustomColor)  {    // If any colors are set, then check the "Custom" radio button    gDialog.PageColorGroup.selectedItem = gDialog.CustomColorsRadio;    UseCustomColors();  }  else   {    gDialog.PageColorGroup.selectedItem = gDialog.DefaultColorsRadio;    UseDefaultColors();  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/ef89dc7875ad2bc4063999e22dacf0dff13459cf/EdColorProps.js/buggy/editor/ui/dialogs/content/EdColorProps.js