зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 83c2ba6648ac (bug 1773696) for causing mochitest failures on TimeStamp.h CLOSED TREE
This commit is contained in:
Родитель
71f807bd57
Коммит
ff9c07ed1b
|
@ -777,13 +777,7 @@ nsDOMWindowUtils::SendWheelEvent(float aX, float aY, double aDeltaX,
|
|||
wheelEvent.mRefPoint =
|
||||
nsContentUtils::ToWidgetPoint(CSSPoint(aX, aY), offset, presContext);
|
||||
|
||||
if (StaticPrefs::test_events_async_enabled()) {
|
||||
widget->DispatchInputEvent(&wheelEvent);
|
||||
} else {
|
||||
nsEventStatus status = nsEventStatus_eIgnore;
|
||||
nsresult rv = widget->DispatchEvent(&wheelEvent, status);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
}
|
||||
widget->DispatchInputEvent(&wheelEvent);
|
||||
|
||||
if (widget->AsyncPanZoomEnabled()) {
|
||||
// Computing overflow deltas is not compatible with APZ, so if APZ is
|
||||
|
|
|
@ -31,8 +31,7 @@ SimpleTest.waitForFocus(function() {
|
|||
"set":[["general.smoothScroll", false],
|
||||
["mousewheel.min_line_scroll_amount", 1],
|
||||
["mousewheel.system_scroll_override.enabled", false],
|
||||
["mousewheel.transaction.timeout", 100000],
|
||||
["test.events.async.enabled", true]]}, runTests)}, window);
|
||||
["mousewheel.transaction.timeout", 100000]]}, runTests)}, window);
|
||||
|
||||
function runTests()
|
||||
{
|
||||
|
|
|
@ -181,8 +181,7 @@ window.onload = function() {
|
|||
"set":[["general.smoothScroll", false],
|
||||
["mousewheel.acceleration.start", -1],
|
||||
["mousewheel.system_scroll_override.enabled", false],
|
||||
["mousewheel.with_control.action", 3],
|
||||
["test.events.async.enabled", true]]}, runTest);
|
||||
["mousewheel.with_control.action", 3]]}, runTest);
|
||||
}
|
||||
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
|
|
|
@ -3283,9 +3283,7 @@ function runTests()
|
|||
["mousewheel.with_shift.delta_multiplier_z", 100],
|
||||
["mousewheel.with_win.delta_multiplier_x", 100],
|
||||
["mousewheel.with_win.delta_multiplier_y", 100],
|
||||
["mousewheel.with_win.delta_multiplier_z", 100],
|
||||
|
||||
["test.events.async.enabled", true]
|
||||
["mousewheel.with_win.delta_multiplier_z", 100]
|
||||
]}, continueTest);
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -542,8 +542,7 @@ SimpleTest.waitForExplicitFinish();
|
|||
|
||||
pushPrefs([["general.smoothScroll", false],
|
||||
["mousewheel.transaction.timeout", 0],
|
||||
["mousewheel.transaction.ignoremovedelay", 0],
|
||||
["test.events.async.enabled", true]])
|
||||
["mousewheel.transaction.ignoremovedelay", 0]])
|
||||
.then(waitUntilApzStable)
|
||||
.then(test)
|
||||
.then(SimpleTest.finish, SimpleTest.finishWithFailure);
|
||||
|
|
|
@ -39,8 +39,7 @@ async function test() {
|
|||
SimpleTest.waitForExplicitFinish();
|
||||
|
||||
pushPrefs([["general.smoothScroll", false],
|
||||
["mousewheel.transaction.timeout", 1000000],
|
||||
["test.events.async.enabled", true]])
|
||||
["mousewheel.transaction.timeout", 1000000]])
|
||||
.then(waitUntilApzStable)
|
||||
.then(test)
|
||||
.then(SimpleTest.finish, SimpleTest.finishWithFailure);
|
||||
|
|
|
@ -105,8 +105,7 @@ SimpleTest.waitForExplicitFinish();
|
|||
|
||||
pushPrefs([["general.smoothScroll", false],
|
||||
["mousewheel.transaction.timeout", 0],
|
||||
["mousewheel.transaction.ignoremovedelay", 0],
|
||||
["test.events.async.enabled", true]])
|
||||
["mousewheel.transaction.ignoremovedelay", 0]])
|
||||
.then(waitUntilApzStable)
|
||||
.then(test)
|
||||
.then(SimpleTest.finish, SimpleTest.finishWithFailure);
|
||||
|
|
Загрузка…
Ссылка в новой задаче