diff --git a/widget/src/cocoa/nsChildView.mm b/widget/src/cocoa/nsChildView.mm index 59c0880346fa..c71bf583d562 100644 --- a/widget/src/cocoa/nsChildView.mm +++ b/widget/src/cocoa/nsChildView.mm @@ -2249,9 +2249,13 @@ NSEvent* gLastDragEvent = nil; kCorePboardType_urln, nil]]; [[NSNotificationCenter defaultCenter] addObserver:self - selector:@selector(controlTintChanged) + selector:@selector(systemColorChanged) name:NSControlTintDidChangeNotification object:nil]; + [[NSNotificationCenter defaultCenter] addObserver:self + selector:@selector(systemColorChanged) + name:NSSystemColorsDidChangeNotification + object:nil]; return self; @@ -2323,7 +2327,7 @@ NSEvent* gLastDragEvent = nil; } -- (void)controlTintChanged +- (void)systemColorChanged { if (!mGeckoChild) return;