Merge m-c to inbound.

This commit is contained in:
Ryan VanderMeulen 2013-01-25 12:32:22 -05:00
commit e4e09704bb
17 changed files with 9 additions and 88 deletions

View File

@ -1,5 +0,0 @@
ifeq ($(OS_TARGET),WINNT)
ifneq (,$(filter nightly,$(MOZ_UPDATE_CHANNEL)))
NO_PROFILE_GUIDED_OPTIMIZE := 1 # Don't PGO
endif
endif

View File

@ -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);
}

View File

@ -1,5 +0,0 @@
ifeq ($(OS_TARGET),WINNT)
ifneq (,$(filter nightly,$(MOZ_UPDATE_CHANNEL)))
NO_PROFILE_GUIDED_OPTIMIZE := 1 # Don't PGO
endif
endif

View File

@ -1,5 +0,0 @@
ifeq ($(OS_TARGET),WINNT)
ifneq (,$(filter nightly,$(MOZ_UPDATE_CHANNEL)))
NO_PROFILE_GUIDED_OPTIMIZE := 1 # Don't PGO
endif
endif

View File

@ -1,5 +0,0 @@
ifeq ($(OS_TARGET),WINNT)
ifneq (,$(filter nightly,$(MOZ_UPDATE_CHANNEL)))
NO_PROFILE_GUIDED_OPTIMIZE := 1 # Don't PGO
endif
endif

View File

@ -1,5 +0,0 @@
ifeq ($(OS_TARGET),WINNT)
ifneq (,$(filter nightly,$(MOZ_UPDATE_CHANNEL)))
NO_PROFILE_GUIDED_OPTIMIZE := 1 # Don't PGO
endif
endif

View File

@ -1,5 +0,0 @@
ifeq ($(OS_TARGET),WINNT)
ifneq (,$(filter nightly,$(MOZ_UPDATE_CHANNEL)))
NO_PROFILE_GUIDED_OPTIMIZE := 1 # Don't PGO
endif
endif

View File

@ -1,5 +0,0 @@
ifeq ($(OS_TARGET),WINNT)
ifneq (,$(filter nightly,$(MOZ_UPDATE_CHANNEL)))
NO_PROFILE_GUIDED_OPTIMIZE := 1 # Don't PGO
endif
endif

View File

@ -1,5 +0,0 @@
ifeq ($(OS_TARGET),WINNT)
ifneq (,$(filter nightly,$(MOZ_UPDATE_CHANNEL)))
NO_PROFILE_GUIDED_OPTIMIZE := 1 # Don't PGO
endif
endif

View File

@ -1,5 +0,0 @@
ifeq ($(OS_TARGET),WINNT)
ifneq (,$(filter nightly,$(MOZ_UPDATE_CHANNEL)))
NO_PROFILE_GUIDED_OPTIMIZE := 1 # Don't PGO
endif
endif

View File

@ -1,5 +0,0 @@
ifeq ($(OS_TARGET),WINNT)
ifneq (,$(filter nightly,$(MOZ_UPDATE_CHANNEL)))
NO_PROFILE_GUIDED_OPTIMIZE := 1 # Don't PGO
endif
endif

View File

@ -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);
}

View File

@ -1,5 +0,0 @@
ifeq ($(OS_TARGET),WINNT)
ifneq (,$(filter nightly,$(MOZ_UPDATE_CHANNEL)))
NO_PROFILE_GUIDED_OPTIMIZE := 1 # Don't PGO
endif
endif

View File

@ -1,5 +0,0 @@
ifeq ($(OS_TARGET),WINNT)
ifneq (,$(filter nightly,$(MOZ_UPDATE_CHANNEL)))
NO_PROFILE_GUIDED_OPTIMIZE := 1 # Don't PGO
endif
endif

View File

@ -1,5 +0,0 @@
ifeq ($(OS_TARGET),WINNT)
ifneq (,$(filter nightly,$(MOZ_UPDATE_CHANNEL)))
NO_PROFILE_GUIDED_OPTIMIZE := 1 # Don't PGO
endif
endif

View File

@ -1,5 +0,0 @@
ifeq ($(OS_TARGET),WINNT)
ifneq (,$(filter nightly,$(MOZ_UPDATE_CHANNEL)))
NO_PROFILE_GUIDED_OPTIMIZE := 1 # Don't PGO
endif
endif

View File

@ -1,5 +0,0 @@
ifeq ($(OS_TARGET),WINNT)
ifneq (,$(filter nightly,$(MOZ_UPDATE_CHANNEL)))
NO_PROFILE_GUIDED_OPTIMIZE := 1 # Don't PGO
endif
endif