  }
  
  NS_IMETHODIMP
-@@ -159,7 +175,8 @@ nsColorPicker::Open(nsIColorPickerShownCallback* aCallback)
+@@ -159,7 +176,8 @@ nsColorPicker::Open(nsIColorPickerShownCallback* aCallback)
    mCallback = aCallback;
  
    [sColorPanelWrapper open:GetNSColorFromHexString(mColor)

 - (void)retarget:(nsColorPicker*)aPicker;
 - (void)colorChanged:(NSColorPanel*)aPanel;
 @end
@@ -52,14 +56,15 @@ HexStrToInt(NSString* str)
   return self;
 }
 

 
   if (sColorPanelWrapper) {
     // Update current wrapper to target the new input instead
@@ -123,33 +130,43 @@ nsColorPicker::Init(mozIDOMWindowProxy* aParent, const nsAString& aTitle,
 /* static */ NSColor*
 nsColorPicker::GetNSColorFromHexString(const nsAString& aColor)
 {
