import changes from `dev' branch of rmottola/Arctic-Fox:

- Bug 895274 part.44 Rename NS_POINTER_ENTER to ePointerEnter r=smaug (2055d66902)
- Bug 895274 part.45 Rename NS_POINTER_OUT to ePointerOut r=smaug (efc0b6b1f5)
- Bug 895274 part.46 Rename NS_POINTER_OVER to ePointerOver r=smaug (06898047f7)
- Bug 895274 part.47 Rename NS_POINTER_DOWN to ePointerDown r=smaug (eadcd864c2)
- Bug 895274 part.48 Rename NS_POINTER_UP to ePointerUp r=smaug (9a04678318)
- Bug 895274 part.49 Rename NS_POINTER_MOVE to ePointerMove r=smaug (8963a5e5e3)
- Bug 895274 part.50 Rename NS_CONTEXTMENU_MESSAGE_START to eContextMenuFirst r=smaug (5eea077f97)
- Bug 895274 part.51 Rename NS_CONTEXTMENU to eContextMenu r=smaug (df9153a883)
- Bug 895274 part.52 Get rid of NS_PAGE_RESTORE due to unused r=smaug (5555386a4f)
- Bug 895274 part.53 Rename NS_STREAM_EVENT_START to eStreamEventFirst r=smaug (873f2e5b5c)
- Bug 895274 part.54 Rename NS_READYSTATECHANGE to eReadyStateChange r=smaug (21d91c9a87)
- Bug 895274 part.55 Rename NS_BEFORE_PAGE_UNLOAD to eBeforeUnload r=smaug (1da6db3491)
- Bug 1203272 - Fix build of nsMemoryReporterManager on linux systems without mallinfo(). r=glandium,njn. (4a99986dc4)
- Bug 895274 part.56 Rename NS_POPSTATE to ePopState r=smaug (c51dbbb2e0)
- Bug 895274 part.57 Rename NS_LOAD_ERROR to eLoadError r=smaug (e4b267ec78)
- Bug 895274 part.58 Rename NS_IMAGE_ABORT to eImageAbort r=smaug (88a62156dd)
- Bug 895274 part.59 Rename NS_HASHCHANGE to eHashChange r=smaug (7552f57017)
- Bug 895274 part.60 Rename NS_PAGE_UNLOAD to eUnload r=smaug (20153f814e)
- Bug 895274 part.61 Rename NS_LOAD to eLoad r=smaug (1072bcbb81)
- Bug 895274 part.62 Rename NS_FORM_EVENT_START to eFormEventFirst r=smaug (e99f85df0c)
- Bug 895274 part.63 Rename NS_FORM_SUBMIT to eFormSubmit r=smaug (b7ebab7fe0)
- Bug 895274 part.64 Rename NS_FORM_RESET to eFormReset r=smaug (74a3518bf6)
- Bug 895274 part.65 Rename NS_FORM_CHANGE to eFormChange r=smaug (64dafe9aaa)
- Bug 895274 part.66 Rename NS_FORM_SELECTED to eFormSelect r=smaug (4437b9a60c)
- Bug 895274 part.67 Rename NS_FORM_INVALID to eFormInvalid r=smaug (8122f6e301)
- Bug 895274 part.68 Rename NS_FOCUS_EVENT_START to eFocusEventFirst r=smaug (5066c46dc1)
- Bug 895274 part.69 Rename NS_FOCUS_CONTENT to eFocus r=smaug (79a443a14c)
- Bug 895274 part.70 Rename NS_BLUR_CONTENT to eBlur r=smaug (64515beb6a)
- Bug 895274 part.71 Rename NS_UI_EVENT_START to eLegacyUIEventFirst r=smaug (02b8a5cccd)
- Bug 895274 part.72 Rename NS_UI_ACTIVATE to eLegacyDOMActivate r=smaug (884aa917ec)
- Bug 895274 part.73 Rename NS_UI_FOCUSIN to eLegacyDOMFocusIn r=smaug (905f681593)
- Bug 895274 part.74 Rename NS_UI_FOCUSOUT to eLegacyDOMFocusOut r=smaug (b38a2ab56c)
- Bug 895274 part.75 Rename NS_DRAGDROP_EVENT_START to eDragDropEventFirst, define eDragDropEventLast and correct the type and name of event message in DataTransfer r=smaug (e8ac6a9112)
- Bug 895274 part.76 Rename NS_DRAGDROP_LEAVE to eDragLeave r=smaug (6948c3cddc)
- Bug 895274 part.77 Rename NS_DRAGDROP_DROP to eDrop r=smaug (9e67b051ee)
- Bug 895274 part.78 Rename NS_DRAGDROP_START to eDragStart r=smaug (f13fc7cf41)
- Bug 1184967 P1 Set RequestMode based on LoadInfo securityMode and client request content policy. r=nsm (b6d7f3fed7)
- Bug 1173934 Disable broken fetch-frame-resources.https.html wpt tests. r=jgraham (7d8e203c6a)
- Bug 1187722 Fix bad origins, error page handling, and spec issues in fetch-frame-resources.https.html. r=jgraham (fecdaeddfc)
- Bug 1184967 P2 Update fetch-frame-resource.https.html CORS checks to expect pass. r=jgraham (7550cba86d)
- Bug 1184967 P3 Switch mochitest redirect tests back to returning a CORS Response. r=nsm (2f803e26ac)
- spacing (21c5e1f343)
This commit is contained in:
2022-04-25 09:31:40 +08:00
parent 343d0fbef3
commit 34aef48624
66 changed files with 586 additions and 490 deletions
+13 -13
View File
@@ -6338,14 +6338,14 @@ PresShell::UpdateActivePointerState(WidgetGUIEvent* aEvent)
new PointerInfo(false, mouseEvent->inputSource, true));
}
break;
case NS_POINTER_DOWN:
case ePointerDown:
// In this case we switch pointer to active state
if (WidgetPointerEvent* pointerEvent = aEvent->AsPointerEvent()) {
gActivePointersIds->Put(pointerEvent->pointerId,
new PointerInfo(true, pointerEvent->inputSource, pointerEvent->isPrimary));
}
break;
case NS_POINTER_UP:
case ePointerUp:
// In this case we remove information about pointer or turn off active state
if (WidgetPointerEvent* pointerEvent = aEvent->AsPointerEvent()) {
if(pointerEvent->inputSource != nsIDOMMouseEvent::MOZ_SOURCE_TOUCH) {
@@ -6659,13 +6659,13 @@ DispatchPointerFromMouseOrTouch(PresShell* aShell,
if (mouseEvent->buttons == 0) {
button = -1;
}
pointerMessage = NS_POINTER_MOVE;
pointerMessage = ePointerMove;
break;
case eMouseUp:
pointerMessage = NS_POINTER_UP;
pointerMessage = ePointerUp;
break;
case eMouseDown:
pointerMessage = NS_POINTER_DOWN;
pointerMessage = ePointerDown;
break;
default:
return NS_OK;
@@ -6685,13 +6685,13 @@ DispatchPointerFromMouseOrTouch(PresShell* aShell,
// copy the event
switch (touchEvent->mMessage) {
case NS_TOUCH_MOVE:
pointerMessage = NS_POINTER_MOVE;
pointerMessage = ePointerMove;
break;
case NS_TOUCH_END:
pointerMessage = NS_POINTER_UP;
pointerMessage = ePointerUp;
break;
case NS_TOUCH_START:
pointerMessage = NS_POINTER_DOWN;
pointerMessage = ePointerDown;
break;
case NS_TOUCH_CANCEL:
pointerMessage = ePointerCancel;
@@ -7427,7 +7427,7 @@ PresShell::HandleEvent(nsIFrame* aFrame,
}
if (aEvent->mClass == ePointerEventClass &&
aEvent->mMessage != NS_POINTER_DOWN) {
aEvent->mMessage != ePointerDown) {
if (WidgetPointerEvent* pointerEvent = aEvent->AsPointerEvent()) {
uint32_t pointerId = pointerEvent->pointerId;
nsIContent* pointerCapturingContent = GetPointerCapturingContent(pointerId);
@@ -7442,10 +7442,10 @@ PresShell::HandleEvent(nsIFrame* aFrame,
frame = capturingFrame;
}
if (pointerEvent->mMessage == NS_POINTER_UP ||
if (pointerEvent->mMessage == ePointerUp ||
pointerEvent->mMessage == ePointerCancel) {
// Implicitly releasing capture for given pointer.
// ePointerLostCapture should be send after NS_POINTER_UP or
// ePointerLostCapture should be send after ePointerUp or
// ePointerCancel.
releasePointerCaptureCaller.SetTarget(pointerId, pointerCapturingContent);
}
@@ -7873,7 +7873,7 @@ PresShell::HandleEventInternal(WidgetEvent* aEvent, nsEventStatus* aStatus)
isHandlingUserInput = true;
break;
case NS_DRAGDROP_DROP: {
case eDrop: {
nsCOMPtr<nsIDragSession> session = nsContentUtils::GetDragSession();
if (session) {
bool onlyChromeDrop = false;
@@ -7896,7 +7896,7 @@ PresShell::HandleEventInternal(WidgetEvent* aEvent, nsEventStatus* aStatus)
}
}
if (aEvent->mMessage == NS_CONTEXTMENU) {
if (aEvent->mMessage == eContextMenu) {
WidgetMouseEvent* mouseEvent = aEvent->AsMouseEvent();
if (mouseEvent->context == WidgetMouseEvent::eContextMenuKey &&
!AdjustContextMenuKeyEvent(mouseEvent)) {