Bug 1401487 - replace nsIDOMChromeWindow.getAttention(), code by :bz. rs=jorgk
--HG-- extra : rebase_source : b68d164668a8f375a1bc23b025477e997ab5e323
This commit is contained in:
Родитель
7585dfc162
Коммит
503cf3611f
|
@ -77,6 +77,9 @@ EXTRA_COMPONENTS += [
|
|||
EXTRA_JS_MODULES += [
|
||||
'virtualFolderWrapper.js',
|
||||
]
|
||||
LOCAL_INCLUDES += [
|
||||
'/mozilla/dom/base'
|
||||
]
|
||||
|
||||
FINAL_LIBRARY = 'mail'
|
||||
|
||||
|
|
|
@ -48,6 +48,8 @@
|
|||
#include "nsServiceManagerUtils.h"
|
||||
#include "mozINewMailNotificationService.h"
|
||||
#include "mozilla/mailnews/MimeHeaderParser.h"
|
||||
#include "nsGlobalWindow.h"
|
||||
#include "mozilla/ErrorResult.h"
|
||||
|
||||
#include <Carbon/Carbon.h>
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
@ -489,10 +491,12 @@ nsMessengerOSXIntegration::BounceDockIcon()
|
|||
mediator->GetMostRecentWindow(u"mail:3pane", getter_AddRefs(domWindow));
|
||||
if (domWindow)
|
||||
{
|
||||
nsCOMPtr<nsIDOMChromeWindow> chromeWindow(do_QueryInterface(domWindow));
|
||||
// Temporay fix, see https://bugzilla.mozilla.org/show_bug.cgi?id=1401487#c3
|
||||
// chromeWindow->GetAttention();
|
||||
chromeWindow = nullptr; // avoid unused variable warning.
|
||||
nsPIDOMWindowOuter* outer = nsPIDOMWindowOuter::From(domWindow);
|
||||
nsPIDOMWindowInner* inner = outer->GetCurrentInnerWindow();
|
||||
if (inner) {
|
||||
mozilla::IgnoredErrorResult rv;
|
||||
nsGlobalWindow::Cast(inner)->GetAttention(rv);
|
||||
}
|
||||
}
|
||||
}
|
||||
return NS_OK;
|
||||
|
|
Загрузка…
Ссылка в новой задаче