nvda icon indicating copy to clipboard operation
nvda copied to clipboard

Chromium: extra first-line announcement after native modal dismissal

Open melodiouscode opened this issue 2 months ago • 1 comments

Brief summary

Closing a native modal in Chromium can announce the first page link before, or instead of, the restored trigger. DOM focus returns correctly. A framework-free reproduction and controlled variations follow. This was observed in automated NVDA runs; help isolating browser/NVDA/automation ownership is welcome.

Environment

  • NVDA 2026.2, automated through Guidepup 0.34.0 / Playwright adapter 0.19.1.
  • Playwright 1.63.0 Chromium 153.0.8010.12.
  • Fresh GitHub-hosted Windows Server 2025, build 10.0.26100, image revision 20260922.246.2.
  • Light appearance, 1280 by 720 viewport.
  • Speech canary verified the synthetic browser before observations were accepted.

Reproduction

Open this standalone page, enter browse mode, navigate to New Collection, activate it, then press Escape. Capture automatic speech before issuing any focus or reading-position query.

<!doctype html>
<html lang="en">
  <head>
    <title>Dialog dismissal reproduction</title>
  </head>
  <body>
    <a href="#main">Skip to main content</a>
    <main id="main">
      <h1>My Collections</h1>
      <button id="trigger">New Collection</button>
      <p>After collection controls</p>
    </main>
    <dialog id="dialog" aria-labelledby="title">
      <h2 id="title">Create Collection</h2>
      <button id="close">Close</button>
      <label>Collection Name <input /></label>
    </dialog>
    <script>
      const dialog = document.querySelector("#dialog");
      document
        .querySelector("#trigger")
        .addEventListener("click", () => dialog.showModal());
      document
        .querySelector("#close")
        .addEventListener("click", () => dialog.close());
    </script>
  </body>
</html>

Expected: automatic dismissal speech identifies the restored New Collection trigger without announcing the unrelated first page link.

Observed: same page, link, Skip to main content. main landmark, New Collection, button. A shorter capture can contain only the skip-link phrase. The default native Escape behavior and an explicit close() followed by trigger focus both reproduce it. No DOM focus event targets the skip link. After the extended diagnostic capture, separate NVDA read-current-line and report-current-focus commands identify New Collection correctly.

Isolation performed

The symptom reproduces without React or application services, and with or without an explicit aria-modal attribute. It also reproduces with a role=dialog implementation that makes the background inert. Changing initial dialog focus to its input does not fix it. Setting body/document aria-busy around close does not fix it.

A role=dialog negative control that leaves the background exposed announces New Collection without the extra first line. That is an isolation probe, not a proposed workaround: it does not establish modal accessibility containment.

The longer diagnostic capture observes 2.5 seconds after dismissal before Guidepup's normal quiet-period completion; no navigation or explicit query runs in that interval. The unrelated phrase remains. NVDA's parent browse-buffer re-entry announcement preceding its focused-object update is a hypothesis. The observations do not yet identify the exact browser or NVDA event responsible.

An additional native comparison that explicitly blurs/refocuses the trigger after closing still announces the first link. A role=dialog comparison that hides the background with aria-hidden also announces the first link, and its subsequent read-current-line query remains on that link even though report-current-focus identifies the trigger. Chromium's accessibility-tree inspection confirms that the background controls are absent while both native and ARIA-hidden comparisons are open; they remain exposed in the non-inert control.

The native comparison was executed in the automated environment above. A direct human reproduction with a stock installed Chrome/NVDA combination remains useful before attributing the defect exclusively to NVDA.

The original application regression sends Escape through NVDA and uses Guidepup's normal one-second quiet-period capture. In the latest run, it captured only the skip-link announcement; an immediate read-current-line query also returned that link, while a separate report-current-focus query identified New Collection. The longer minimal diagnostics send Escape through Playwright and observe automatic NVDA speech without additional input for 2.5 seconds. These execution differences are retained rather than treated as equivalent timing evidence. We are asking for help distinguishing NVDA/Chromium behavior from automation interaction; we have not established permanent loss of keyboard focus or a conformance violation.

Additional template details

  • NVDA type: portable copy, Guidepup asset 0.2.1-2026.2.
  • Other NVDA versions: not tested.
  • Restart: reproduced across fresh disposable Windows VMs; an in-place reboot was not separately tested.
  • Add-ons disabled: not independently tested; the automation uses the Guidepup-provided NVDA remote integration.
  • System Accessibility Repair Tool: not run separately.
  • NVDA logs/crash dumps: no internal NVDA debug log or crash dump is attached. The speech above is the actual synthetic speech captured by the remote integration, and focus events were observed independently in Chromium. No crash is claimed.

melodiouscode avatar Sep 28 '26 19:09 melodiouscode

Welcome @melodiouscode

We are unable to process this issue as it stands.

  • Please open a new issue using our bug template and fill out the issue template fully.
  • To be able to reproduce this issue, we need a code sample. Provide a minimal HTML sample to reproduce this using codepen.
  • Please reproduce this issue and provide a log file of the behaviour. Ensure your log level is set to debug in NVDA's Privacy and Security Settings.

Kind Regards, NV Access Software Developers

seanbudd avatar Sep 28 '26 23:09 seanbudd