From 4ae90d3d3a0a5901eb0c70b435eb332789f6e574 Mon Sep 17 00:00:00 2001 From: Luca Greco Date: Mon, 13 Nov 2017 17:53:56 +0100 Subject: [PATCH] Bug 1378524 - Fix "TypeError: tab is null" exception raised from browser_inspector_extension_sidebar.js when running on beta. r=pbro MozReview-Commit-ID: DZPA07695VS --HG-- extra : rebase_source : 93e24b7fa597c35535197b174ce55502ed134187 --- devtools/client/inspector/test/head.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/devtools/client/inspector/test/head.js b/devtools/client/inspector/test/head.js index e46c79bc4e4f..a854d68ca938 100644 --- a/devtools/client/inspector/test/head.js +++ b/devtools/client/inspector/test/head.js @@ -46,7 +46,10 @@ registerCleanupFunction(function* () { // somewhere over inspector the pointer is considered to be there when the // next test begins. This might cause unexpected events to be emitted when // another test moves the mouse. - EventUtils.synthesizeMouseAtPoint(1, 1, {type: "mousemove"}, window); + // Move the mouse at the top-right corner of the browser, to prevent + // the mouse from triggering the tab tooltip to be shown while the tab is + // being closed because the test is exiting (See Bug 1378524 for rationale). + EventUtils.synthesizeMouseAtPoint(window.innerWidth, 1, {type: "mousemove"}, window); }); var navigateTo = Task.async(function* (inspector, url) {