зеркало из https://github.com/mozilla/gecko-dev.git
Merge m-c to inbound.
This commit is contained in:
Коммит
e4e09704bb
|
@ -1,5 +0,0 @@
|
|||
ifeq ($(OS_TARGET),WINNT)
|
||||
ifneq (,$(filter nightly,$(MOZ_UPDATE_CHANNEL)))
|
||||
NO_PROFILE_GUIDED_OPTIMIZE := 1 # Don't PGO
|
||||
endif
|
||||
endif
|
|
@ -31,6 +31,7 @@
|
|||
#include "nsGUIEvent.h"
|
||||
#include "mozilla/Preferences.h"
|
||||
#include "mozilla/dom/Element.h"
|
||||
#include "nsEventStateManager.h"
|
||||
|
||||
using namespace mozilla;
|
||||
|
||||
|
@ -378,6 +379,14 @@ nsXBLWindowKeyHandler::HandleEvent(nsIDOMEvent* aEvent)
|
|||
nsCOMPtr<nsIAtom> eventTypeAtom = do_GetAtom(eventType);
|
||||
NS_ENSURE_TRUE(eventTypeAtom, NS_ERROR_OUT_OF_MEMORY);
|
||||
|
||||
if (!mWeakPtrForElement) {
|
||||
nsCOMPtr<mozilla::dom::Element> originalTarget =
|
||||
do_QueryInterface(aEvent->GetInternalNSEvent()->originalTarget);
|
||||
if (nsEventStateManager::IsRemoteTarget(originalTarget)) {
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
|
||||
return WalkHandlers(keyEvent, eventTypeAtom);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
ifeq ($(OS_TARGET),WINNT)
|
||||
ifneq (,$(filter nightly,$(MOZ_UPDATE_CHANNEL)))
|
||||
NO_PROFILE_GUIDED_OPTIMIZE := 1 # Don't PGO
|
||||
endif
|
||||
endif
|
|
@ -1,5 +0,0 @@
|
|||
ifeq ($(OS_TARGET),WINNT)
|
||||
ifneq (,$(filter nightly,$(MOZ_UPDATE_CHANNEL)))
|
||||
NO_PROFILE_GUIDED_OPTIMIZE := 1 # Don't PGO
|
||||
endif
|
||||
endif
|
|
@ -1,5 +0,0 @@
|
|||
ifeq ($(OS_TARGET),WINNT)
|
||||
ifneq (,$(filter nightly,$(MOZ_UPDATE_CHANNEL)))
|
||||
NO_PROFILE_GUIDED_OPTIMIZE := 1 # Don't PGO
|
||||
endif
|
||||
endif
|
|
@ -1,5 +0,0 @@
|
|||
ifeq ($(OS_TARGET),WINNT)
|
||||
ifneq (,$(filter nightly,$(MOZ_UPDATE_CHANNEL)))
|
||||
NO_PROFILE_GUIDED_OPTIMIZE := 1 # Don't PGO
|
||||
endif
|
||||
endif
|
|
@ -1,5 +0,0 @@
|
|||
ifeq ($(OS_TARGET),WINNT)
|
||||
ifneq (,$(filter nightly,$(MOZ_UPDATE_CHANNEL)))
|
||||
NO_PROFILE_GUIDED_OPTIMIZE := 1 # Don't PGO
|
||||
endif
|
||||
endif
|
|
@ -1,5 +0,0 @@
|
|||
ifeq ($(OS_TARGET),WINNT)
|
||||
ifneq (,$(filter nightly,$(MOZ_UPDATE_CHANNEL)))
|
||||
NO_PROFILE_GUIDED_OPTIMIZE := 1 # Don't PGO
|
||||
endif
|
||||
endif
|
|
@ -1,5 +0,0 @@
|
|||
ifeq ($(OS_TARGET),WINNT)
|
||||
ifneq (,$(filter nightly,$(MOZ_UPDATE_CHANNEL)))
|
||||
NO_PROFILE_GUIDED_OPTIMIZE := 1 # Don't PGO
|
||||
endif
|
||||
endif
|
|
@ -1,5 +0,0 @@
|
|||
ifeq ($(OS_TARGET),WINNT)
|
||||
ifneq (,$(filter nightly,$(MOZ_UPDATE_CHANNEL)))
|
||||
NO_PROFILE_GUIDED_OPTIMIZE := 1 # Don't PGO
|
||||
endif
|
||||
endif
|
|
@ -1,5 +0,0 @@
|
|||
ifeq ($(OS_TARGET),WINNT)
|
||||
ifneq (,$(filter nightly,$(MOZ_UPDATE_CHANNEL)))
|
||||
NO_PROFILE_GUIDED_OPTIMIZE := 1 # Don't PGO
|
||||
endif
|
||||
endif
|
|
@ -847,19 +847,6 @@ nsXREDirProvider::DoShutdown()
|
|||
obsSvc->NotifyObservers(nullptr, "profile-change-net-teardown", kShutdownPersist);
|
||||
obsSvc->NotifyObservers(nullptr, "profile-change-teardown", kShutdownPersist);
|
||||
|
||||
// Phase 2c: Now that things are torn down, force JS GC so that things which depend on
|
||||
// resources which are about to go away in "profile-before-change" are destroyed first.
|
||||
|
||||
nsCOMPtr<nsIJSRuntimeService> rtsvc
|
||||
(do_GetService("@mozilla.org/js/xpc/RuntimeService;1"));
|
||||
if (rtsvc)
|
||||
{
|
||||
JSRuntime *rt = nullptr;
|
||||
rtsvc->GetRuntime(&rt);
|
||||
if (rt)
|
||||
::JS_GC(rt);
|
||||
}
|
||||
|
||||
// Phase 3: Notify observers of a profile change
|
||||
obsSvc->NotifyObservers(nullptr, "profile-before-change", kShutdownPersist);
|
||||
}
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
ifeq ($(OS_TARGET),WINNT)
|
||||
ifneq (,$(filter nightly,$(MOZ_UPDATE_CHANNEL)))
|
||||
NO_PROFILE_GUIDED_OPTIMIZE := 1 # Don't PGO
|
||||
endif
|
||||
endif
|
|
@ -1,5 +0,0 @@
|
|||
ifeq ($(OS_TARGET),WINNT)
|
||||
ifneq (,$(filter nightly,$(MOZ_UPDATE_CHANNEL)))
|
||||
NO_PROFILE_GUIDED_OPTIMIZE := 1 # Don't PGO
|
||||
endif
|
||||
endif
|
|
@ -1,5 +0,0 @@
|
|||
ifeq ($(OS_TARGET),WINNT)
|
||||
ifneq (,$(filter nightly,$(MOZ_UPDATE_CHANNEL)))
|
||||
NO_PROFILE_GUIDED_OPTIMIZE := 1 # Don't PGO
|
||||
endif
|
||||
endif
|
|
@ -1,5 +0,0 @@
|
|||
ifeq ($(OS_TARGET),WINNT)
|
||||
ifneq (,$(filter nightly,$(MOZ_UPDATE_CHANNEL)))
|
||||
NO_PROFILE_GUIDED_OPTIMIZE := 1 # Don't PGO
|
||||
endif
|
||||
endif
|
|
@ -1,5 +0,0 @@
|
|||
ifeq ($(OS_TARGET),WINNT)
|
||||
ifneq (,$(filter nightly,$(MOZ_UPDATE_CHANNEL)))
|
||||
NO_PROFILE_GUIDED_OPTIMIZE := 1 # Don't PGO
|
||||
endif
|
||||
endif
|
Загрузка…
Ссылка в новой задаче