forked from upstream/UXP-mirror
[DOM] Add nullcheck on thumb dragging event ranges.
This commit is contained in:
1 file changed
+6
-2
@@ -4130,7 +4130,9 @@ HTMLInputElement::StartRangeThumbDrag(WidgetGUIEvent* aEvent)
|
||||
// have changed it by then).
|
||||
GetValue(mFocusedValue);
|
||||
|
||||
SetValueOfRangeForUserEvent(rangeFrame->GetValueAtEventPoint(aEvent));
|
||||
if (rangeFrame) {
|
||||
SetValueOfRangeForUserEvent(rangeFrame->GetValueAtEventPoint(aEvent));
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
@@ -4143,7 +4145,9 @@ HTMLInputElement::FinishRangeThumbDrag(WidgetGUIEvent* aEvent)
|
||||
}
|
||||
if (aEvent) {
|
||||
nsRangeFrame* rangeFrame = do_QueryFrame(GetPrimaryFrame());
|
||||
SetValueOfRangeForUserEvent(rangeFrame->GetValueAtEventPoint(aEvent));
|
||||
if (rangeFrame) {
|
||||
SetValueOfRangeForUserEvent(rangeFrame->GetValueAtEventPoint(aEvent));
|
||||
}
|
||||
}
|
||||
mIsDraggingRange = false;
|
||||
FireChangeEventIfNeeded();
|
||||
|
||||
Reference in new issue
Block a user