Bug 1498433: Ensure that crash reporter is in the foreground and focused on macOS. r=mstange
authorStephen A Pohl <spohl.mozilla.bugs@gmail.com>
Fri, 12 Oct 2018 22:46:40 -0400
changeset 499550 2aede0d5656f05304e2a584cabd0ce9c0337723f
parent 499549 3ee73bef9537d1d2f09d397150238523be4f6891
child 499551 64298e3625ed2a90ec6b64bfba0fb630ab607d2b
push id1864
push userffxbld-merge
push dateMon, 03 Dec 2018 15:51:40 +0000
treeherdermozilla-release@f040763d99ad [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmstange
bugs1498433
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1498433: Ensure that crash reporter is in the foreground and focused on macOS. r=mstange
toolkit/crashreporter/client/crashreporter_osx.mm
--- a/toolkit/crashreporter/client/crashreporter_osx.mm
+++ b/toolkit/crashreporter/client/crashreporter_osx.mm
@@ -96,16 +96,17 @@ static bool RestartApplication()
 
 -(void)awakeFromNib
 {
   gUI = self;
   [mWindow center];
 
   [mWindow setTitle:[[NSBundle mainBundle]
                       objectForInfoDictionaryKey:@"CFBundleName"]];
+  [NSApp activateIgnoringOtherApps:YES];
 }
 
 -(void)showCrashUI:(const StringTable&)files
    queryParameters:(const StringTable&)queryParameters
            sendURL:(const string&)sendURL
 {
   gFiles = files;
   gQueryParameters = queryParameters;