Closed Bug 2018688 Opened 9 months ago Closed 8 months ago

Windows 11 Nov 2025 patch changed AltRight key behavior breaks test_keycodes.xhtml

Categories

(Core :: Widget: Win32, defect)

x86_64
Windows 11
defect

Tracking

()

RESOLVED FIXED
150 Branch
Tracking Status
firefox-esr140 --- fixed
firefox150 --- fixed

People

(Reporter: jmoss, Assigned: masayuki)

References

(Blocks 1 open bug)

Details

(Whiteboard: [stockwell needswork:owner])

Attachments

(4 external files)

Starting with Windows 11 build 26100.7171 (KB5068861, November 2025), the runAltRightKeyOnWindows subtest fails on keyboard layouts without AltGr support.

Some task failures from gecko-t/win11-64-25h2-alpha:

https://firefox-ci-tc.services.mozilla.com/tasks/fYrwK2PwSwa8u8cBn65iVQ
https://firefox-ci-tc.services.mozilla.com/tasks/eHJ75xxPT0OB1itEvsmTNg

We bisected across Windows patch levels: builds 26100.6584 (Sep 2025) and 26100.6899 (Oct 2025) pass, while 26100.7171 (Nov 2025), 26100.7462 (Dec 2025), 26100.7623 (Jan 2026), and Windows 25H2 all fail.

We had to pin the win11-64-24h2 worker pools to the October 2025 patch level to avoid this in CI. That blocks upgrading 24H2 workers past October 2025 and also affects our 25H2 pool.

Feel free to ping me with questions on #relops in slack or NI me. Happy to help here!

Blocks: 2017315
Assignee: nobody → jmoss
Status: NEW → ASSIGNED
Flags: needinfo?(masayuki)
Assignee: jmoss → nobody
Status: ASSIGNED → NEW
Assignee: nobody → jmoss
Status: NEW → ASSIGNED
Flags: needinfo?(masayuki)
Pushed by gstoll@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/f923569c95ef https://hg.mozilla.org/integration/autoland/rev/564e816c93a1 Handle AltRight AltGr-style events on newer Windows builds in test_keycodes.xhtml r=masayuki
Pushed by asilaghi@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/8991d3a805b7 https://hg.mozilla.org/integration/autoland/rev/89ed9d597163 Revert "Bug 2018688 - Handle AltRight AltGr-style events on newer Windows builds in test_keycodes.xhtml r=masayuki" for causing browser chrome failures

(In reply to Pulsebot from comment #3)

Pushed by asilaghi@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/8991d3a805b7
https://hg.mozilla.org/integration/autoland/rev/89ed9d597163
Revert "Bug 2018688 - Handle AltRight AltGr-style events on newer Windows
builds in test_keycodes.xhtml r=masayuki" for causing browser chrome failures

:asilaghi can you provide link to browser chrome failures?

Flags: needinfo?(asilaghi)

Backed out for causing browser chrome failures
Backout Link
Push with failures
Failure Log
Failure line TEST-UNEXPECTED-FAIL | browser/components/aboutlogins/tests/browser/browser_loginFilter.js | focus_filter_by_ctrl_f - Uncaught exception in test - ReferenceError: navigator is not defined

Flags: needinfo?(asilaghi) → needinfo?(jmoss)
Flags: needinfo?(jmoss)
Pushed by hneiva@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/4a8367052a08 https://hg.mozilla.org/integration/autoland/rev/ce12969fe520 Handle AltRight AltGr-style events in test_keycodes.xhtml without EventUtils changes r=masayuki
Pushed by smolnar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/6c6b36a2387d https://hg.mozilla.org/integration/autoland/rev/ba656672d086 Revert "Bug 2018688 - Handle AltRight AltGr-style events in test_keycodes.xhtml without EventUtils changes r=masayuki" for causing mochitest failures @ widget/tests/test_keycodes.xhtml

Adding :masayuki as I'm not sure what the right approach is here.

Flags: needinfo?(jmoss) → needinfo?(masayuki)
Assignee: jmoss → masayuki

KB5070311 shipped AltGr key of Arabic keyboard layouts on
Windows 11 24H2 and 25H2. Therefore, we need to make it a getter which
checks the build ID of Windows.

Note that it shouldn't be referred when running on non-Windows
platforms. Thus, we don't need to handle the exceptions.

The original patch was written by Jonathan Moss <jmoss@mozilla.com>.

Pushed by masayuki@d-toybox.com: https://github.com/mozilla-firefox/firefox/commit/7db5fb5d7550 https://hg.mozilla.org/integration/autoland/rev/1fc016eaeaa5 Make `KEYBOARD_LAYOUT_ARABIC.hasAltGrOnWin` return true if running on Win11 build 26100+ r=edgar
Flags: needinfo?(masayuki)
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch
QA Whiteboard: [qa-triage-done-c151/b150]

hi, could this also reach esr140? there are some mochitest failures there

Flags: needinfo?(masayuki)

firefox-esr140 Uplift Approval Request

  • User impact if declined/Reason for urgency: None, not part of the build
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: no
  • Steps to reproduce for manual QE testing:
  • Risk associated with taking this patch: low
  • Explanation of risk level: not part of the build
  • String changes made/needed?: none
  • Is Android affected?: no
Attachment #9583623 - Flags: approval-mozilla-esr140?

KB5070311 shipped AltGr key of Arabic keyboard layouts on
Windows 11 24H2 and 25H2. Therefore, we need to make it a getter which
checks the build ID of Windows.

Note that it shouldn't be referred when running on non-Windows
platforms. Thus, we don't need to handle the exceptions.

The original patch was written by Jonathan Moss <jmoss@mozilla.com>.

Original Revision: https://phabricator.services.mozilla.com/D287281

Attachment #9583623 - Flags: approval-mozilla-esr140? → approval-mozilla-esr140+

Thank you for uplifting it!

Flags: needinfo?(masayuki)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: