From c883340a3b45b0af1e16b7168014e62cb281bdb1 Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Mon, 8 Jun 2020 23:35:53 +0000 Subject: [PATCH] Bug 1643495 - Revert contextmenu change in test_bug417418 r=masayuki This change was only needed when the previous version of the patch for Bug 1632425 wanted to move things into contextmenu event handler. This patch reverts the change as 1) the suggested behavior never landed and 2) opening context menu in a test can cause conflict with other tests. Differential Revision: https://phabricator.services.mozilla.com/D78673 --- editor/libeditor/tests/test_bug417418.html | 2 -- 1 file changed, 2 deletions(-) diff --git a/editor/libeditor/tests/test_bug417418.html b/editor/libeditor/tests/test_bug417418.html index c966a6de6080..d319e4e984d9 100644 --- a/editor/libeditor/tests/test_bug417418.html +++ b/editor/libeditor/tests/test_bug417418.html @@ -33,7 +33,6 @@ function resetSelection() { function runTest() { var rightClickDown = {type: "mousedown", button: 2}, rightClickUp = {type: "mouseup", button: 2}, - rightClickEnd = {type: "contextmenu", button: 2}, singleClickDown = {type: "mousedown", button: 0}, singleClickUp = {type: "mouseup", button: 0}; var selection = window.getSelection(); @@ -56,7 +55,6 @@ function runTest() { resetSelection(); synthesizeMouseAtCenter(img, rightClickDown); synthesizeMouseAtCenter(img, rightClickUp); - synthesizeMouseAtCenter(img, rightClickEnd); imgselected = selection.anchorNode == img.parentNode && selection.anchorOffset === 1 && selection.rangeCount === 1;