Bug 1389314 Part3: Temporarily disable the input priority events when dnd is active. r=smaug.

MozReview-Commit-ID: AWfYmhjjsq0
This commit is contained in:
Stone Shih
2017-08-02 15:23:35 +08:00
parent c3615a35b6
commit ec09c1464f
3 changed files with 14 additions and 0 deletions

View File

@@ -402,6 +402,9 @@ nsBaseDragService::EndDragSession(bool aDoneDrag, uint32_t aKeyModifiers)
mUserCancelled,
mEndDragPoint,
aKeyModifiers);
// Continue sending input events with input priority when stopping the dnd
// session.
mChildProcesses[i]->SetInputPriorityEventEnabled(true);
}
mChildProcesses.Clear();