From 1247897f3fe5262bed85e78e8b4651fdaa757903 Mon Sep 17 00:00:00 2001 From: Brian Grinstead Date: Wed, 25 Jul 2018 09:39:48 -0700 Subject: [PATCH] Bug 1469191 - Use the proper window for synthesizeMouseAtCenter in netmonitor test;r=jdescottes It was using `window` which refers to the browser window, but we actually want to synthesize the click in the devtools window. MozReview-Commit-ID: KeIwq3JIJin --HG-- extra : rebase_source : c769229d19661370d5448f0b5b236ce8b2eb91c4 --- .../client/netmonitor/test/browser_net_filter-autocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devtools/client/netmonitor/test/browser_net_filter-autocomplete.js b/devtools/client/netmonitor/test/browser_net_filter-autocomplete.js index 851ecef15718..126dab8cb8b0 100644 --- a/devtools/client/netmonitor/test/browser_net_filter-autocomplete.js +++ b/devtools/client/netmonitor/test/browser_net_filter-autocomplete.js @@ -51,7 +51,7 @@ add_task(async function() { await waitNetwork; EventUtils.synthesizeMouseAtCenter( - document.querySelector(".devtools-filterinput"), {}, window); + document.querySelector(".devtools-filterinput"), {}, document.defaultView); // Empty Mouse click should keep autocomplete hidden ok(!document.querySelector(".devtools-autocomplete-popup"), "Autocomplete Popup still hidden");