tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit d4b368388187f412d7207d8212f045e2149e3977
parent df9514326f7388a0e854334430092d1cfbd72471
Author: Edgar Chen <echen@mozilla.com>
Date:   Sun, 14 Dec 2025 19:19:59 +0000

Bug 2005717 - Wait for page full loaded before starting test_drag_image_file.html tests; r=masayuki

Differential Revision: https://phabricator.services.mozilla.com/D276166

Diffstat:
Mdom/events/test/mochitest.toml | 3---
Mdom/events/test/test_drag_image_file.html | 5+++++
2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/dom/events/test/mochitest.toml b/dom/events/test/mochitest.toml @@ -493,9 +493,6 @@ run-if = [ tags = "os_integration" ["test_drag_image_file.html"] -skip-if = [ - "xorigin", # Bug 1802904 -] support-files = ["green.png"] ["test_draggableprop.html"] diff --git a/dom/events/test/test_drag_image_file.html b/dom/events/test/test_drag_image_file.html @@ -65,6 +65,11 @@ async function synthesizeDragAndCheck(aImgId, aImageAsFile) { } } +add_setup(async function init() { + // Wait for page full loaded. + await SimpleTest.promiseFocus(); +}); + [true, false].forEach((pref) => { add_task(async function test_drag_standard_image() { info(`test with dom.events.dataTransfer.imageAsFile.enabled=${pref}`);