icecat: add release icecat-140.6.0-1gnu1 for ecne
This commit is contained in:
parent
618c9f4145
commit
7d0f5dab3b
3382 changed files with 457689 additions and 569094 deletions
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include "EventStateManager.h"
|
||||
|
||||
#include "mozilla/AppShutdown.h"
|
||||
#include "mozilla/AsyncEventDispatcher.h"
|
||||
#include "mozilla/Attributes.h"
|
||||
#include "mozilla/EditorBase.h"
|
||||
|
|
@ -302,7 +303,10 @@ NS_IMPL_ISUPPORTS(UITimerCallback, nsITimerCallback, nsINamed)
|
|||
NS_IMETHODIMP
|
||||
UITimerCallback::Notify(nsITimer* aTimer) {
|
||||
nsCOMPtr<nsIObserverService> obs = mozilla::services::GetObserverService();
|
||||
if (!obs) return NS_ERROR_FAILURE;
|
||||
// ObserverService shutdown happens after XPCOMShutdownThreads.
|
||||
if (!obs || AppShutdown::IsInOrBeyond(ShutdownPhase::XPCOMShutdownThreads)) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
if ((gMouseOrKeyboardEventCounter == mPreviousCount) || !aTimer) {
|
||||
gMouseOrKeyboardEventCounter = 0;
|
||||
obs->NotifyObservers(nullptr, "user-interaction-inactive", nullptr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue