mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:30:27 +00:00
import changes from `dev' branch of rmottola/Arctic-Fox:
- Bug 1170039: Fix printf format specifiers in GC stats. r=terrence (739a9203f)
- Bug 1169222 - Add --debugger option to jittests to run tests under the specified debugger r=terrence (7d7d6f93b)
- Bug 1170596 - JitSpewer: Always flush after dumping the graph to the files. r=bbouvier (cabece9da)
- Bug 1018628 - Part 3: Add test for default parameter with destructuring default value. r=jorendorff (923a193ea)
- Bug 1142816 - js/src/jsapi-tests/testGCHeapPostBarriers.cpp has leaks. r=erahm (cc543a475)
- Bug 1252075 - use UniquePtr instead of ScopedDeletePtr in testGCHeapPostBarriers; r=terrence (f58ddfed2)
- Bug 1168293 - Remove MOZ_GLUE_IN_PROGRAM from config/config.mk. r=mshal (93877bb3a)
- Bug 1179695 - Remove mWasAsync from WidgetQueryContentEvent. r=masayuki,nchen (734c1a93f)
- Bug 1185316 TabParent should flush pending IME notifications after child process handles all sending events r=smaug (d2eb7c359)
- Bug 1153586 - Prevent the same BUTTON_DOWN event from opening the dropdown menu again on platforms that don't consume the event. r=enndeakin (5b8bf9156)
- No bug - Add a bug number to the historical.html expectations. (9377c1ff6)
- Bug 1161950 - Remove support for createEvent("CloseEvent") / initCloseEvent, r=smaug (9f2e5b970)
- Bug 1161950 - patch 2 - fix the webplatform test, r=Ms2ger (04046e15a)
- Bug 1171294 - Stop warning if piTarget is null. r=smaug (5ab612a71)
- Bug 873923, add a method to allow popups to be anchored at a rectangle, r=tn,mark,khuey (08b7902c9)
- Bug 873923, anchored at popup test, r=test (36bb7091a)
- Bug 250091, support page up and page down in menulists, r=neil (6e455d5c6)
This commit is contained in:
@@ -2120,6 +2120,9 @@ nsListControlFrame::KeyDown(nsIDOMEvent* aKeyEvent)
|
||||
|
||||
// Don't check defaultPrevented value because other browsers don't prevent
|
||||
// the key navigation of list control even if preventDefault() is called.
|
||||
// XXXmats 2015-04-16: the above is not true anymore, Chrome prevents all
|
||||
// XXXmats keyboard events, even tabbing, when preventDefault() is called
|
||||
// XXXmats in onkeydown. That seems sub-optimal though.
|
||||
|
||||
const WidgetKeyboardEvent* keyEvent =
|
||||
aKeyEvent->GetInternalNSEvent()->AsKeyboardEvent();
|
||||
@@ -2477,16 +2480,33 @@ nsListEventListener::HandleEvent(nsIDOMEvent* aEvent)
|
||||
|
||||
nsAutoString eventType;
|
||||
aEvent->GetType(eventType);
|
||||
if (eventType.EqualsLiteral("keydown"))
|
||||
if (eventType.EqualsLiteral("keydown")) {
|
||||
return mFrame->nsListControlFrame::KeyDown(aEvent);
|
||||
if (eventType.EqualsLiteral("keypress"))
|
||||
}
|
||||
if (eventType.EqualsLiteral("keypress")) {
|
||||
return mFrame->nsListControlFrame::KeyPress(aEvent);
|
||||
if (eventType.EqualsLiteral("mousedown"))
|
||||
}
|
||||
if (eventType.EqualsLiteral("mousedown")) {
|
||||
bool defaultPrevented = false;
|
||||
aEvent->GetDefaultPrevented(&defaultPrevented);
|
||||
if (defaultPrevented) {
|
||||
return NS_OK;
|
||||
}
|
||||
return mFrame->nsListControlFrame::MouseDown(aEvent);
|
||||
if (eventType.EqualsLiteral("mouseup"))
|
||||
}
|
||||
if (eventType.EqualsLiteral("mouseup")) {
|
||||
bool defaultPrevented = false;
|
||||
aEvent->GetDefaultPrevented(&defaultPrevented);
|
||||
if (defaultPrevented) {
|
||||
return NS_OK;
|
||||
}
|
||||
return mFrame->nsListControlFrame::MouseUp(aEvent);
|
||||
if (eventType.EqualsLiteral("mousemove"))
|
||||
}
|
||||
if (eventType.EqualsLiteral("mousemove")) {
|
||||
// I don't think we want to honor defaultPrevented on mousemove
|
||||
// in general, and it would only prevent highlighting here.
|
||||
return mFrame->nsListControlFrame::MouseMove(aEvent);
|
||||
}
|
||||
|
||||
NS_ABORT();
|
||||
return NS_OK;
|
||||
|
||||
Reference in New Issue
Block a user