mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 07:13:20 +00:00
Bug 1723439 - Ensure we paint so that hit-testing works as we expect. r=nika
Otherwise we get a mouseevent targeted at the window and the autoscroll code gets confused. Differential Revision: https://phabricator.services.mozilla.com/D121525
This commit is contained in:
parent
f73fdc7e79
commit
9f18e86200
@ -190,6 +190,14 @@ body > div > div {width: 1000px;height: 1000px;}\
|
||||
);
|
||||
BrowserTestUtils.loadURI(gBrowser, test.dataUri);
|
||||
await loadedPromise;
|
||||
await ContentTask.spawn(gBrowser.selectedBrowser, {}, async () => {
|
||||
// Wait for a paint so that hit-testing works correctly.
|
||||
await new Promise(resolve =>
|
||||
content.requestAnimationFrame(() =>
|
||||
content.requestAnimationFrame(resolve)
|
||||
)
|
||||
);
|
||||
});
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user