зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1742797 - Fix intermittent test failures, r=hiro.
Differential Revision: https://phabricator.services.mozilla.com/D151480
This commit is contained in:
Родитель
a576a80a90
Коммит
b34ac7abcf
|
@ -38,16 +38,12 @@ add_task(
|
|||
DownloadsPanel.panel,
|
||||
"popuphidden"
|
||||
);
|
||||
EventUtils.synthesizeNativeMouseEvent({
|
||||
type: "click",
|
||||
target: downloadsButton,
|
||||
atCenter: true,
|
||||
});
|
||||
|
||||
await Promise.all([
|
||||
hiddenPromise,
|
||||
TestUtils.waitForCondition(() => !ChromeUtils.vsyncEnabled()),
|
||||
]);
|
||||
EventUtils.synthesizeKey("VK_ESCAPE", {}, window);
|
||||
await hiddenPromise;
|
||||
await TestUtils.waitForCondition(
|
||||
() => !ChromeUtils.vsyncEnabled(),
|
||||
"wait for vsync to be disabled again"
|
||||
);
|
||||
|
||||
ok(!ChromeUtils.vsyncEnabled(), "vsync should still be off");
|
||||
is(
|
||||
|
|
|
@ -1099,7 +1099,7 @@ void nsMenuPopupFrame::HidePopup(bool aDeselectMenu, nsPopupState aNewState) {
|
|||
mHFlip = mVFlip = false;
|
||||
|
||||
if (auto* widget = GetWidget()) {
|
||||
widget->ClearCachedWebrenderResources();
|
||||
widget->ClearWebrenderAnimationResources();
|
||||
}
|
||||
|
||||
nsView* view = GetView();
|
||||
|
|
Загрузка…
Ссылка в новой задаче