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
This commit is contained in:
Luca Greco 2017-11-13 17:53:56 +01:00
Родитель fb1208b237
Коммит 4ae90d3d3a
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -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) {