commit c59563c89f496102936e568f2416a1f5f885b1a3
parent fe3adabeb5c7c69b5ff429eb2d68a13c1157fbac
Author: Timothy Nikkel <tnikkel@gmail.com>
Date: Fri, 7 Nov 2025 15:15:02 +0000
Bug 1998333. Disable a11y during test that checks platform event coord code and not clicking on anything clickable. r=ayeddi
Differential Revision: https://phabricator.services.mozilla.com/D271536
Diffstat:
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/gfx/layers/apz/test/mochitest/browser_test_popup_menu_in_parent_process_content.js b/gfx/layers/apz/test/mochitest/browser_test_popup_menu_in_parent_process_content.js
@@ -134,6 +134,13 @@ async function runTest(aTestFile) {
await ensureApzReadyForPopup(popup, contentWin);
await promiseApzFlushedRepaints(popup);
+ // We are just testing the platform event coord calculation code to not hit
+ // an assert, rather than clicking on any specific button. Disable a11y
+ // checks for this portion.
+ AccessibilityUtils.setEnv({
+ mustHaveAccessibleRule: false,
+ });
+
// Do a mouse click in the popup.
const popupRect = popup.getBoundingClientRect();
ok(popupRect.width > 10, "non-zero popup width");
@@ -148,6 +155,8 @@ async function runTest(aTestFile) {
// Just wait to make sure that's processed without hitting an assert.
await twoRafsInContent(browser);
+ AccessibilityUtils.resetEnv();
+
// Close the popup.
const popuphiddenPromise = new Promise(resolve => {
popup.addEventListener("popuphidden", resolve());