Skip to content

Conversation

@SaschaCowley
Copy link
Member

No description provided.

### Summary of the issue:

A recent update to chrome has introduced a "Ask Google about this page"
option in the omnibox (address bar). This option is sometimes spoken,
even though it isn't focused, when focusing the address bar. This causes
system tests which rely on Chrome to fail, as they are unable to
recognise that the address bar has been focused.
This breaks some tests in the Chrome, symbols, and image descriptions
system test suites.

### Description of user facing changes:

None.

### Description of developer facing changes:

System tests work again.

### Description of development approach:

When setting up a system test that uses Chrome, after sending `alt+d` to
focus the address bar, if the speech is not what we expect, try
reporting the focused object (`NVDA+tab`) to double-check.
This works because "Address and search bar" speech is cancelled by the
"Ask Google about this page" speech, so the system tests are unaware
where the focus has landed. By explicitly checking the current focus, we
work around this issue.

### Testing strategy:

Ran the Chrome system test "checkbox labelled by inner element" locally,
with and without this patch, to ensure that it was broken on my machine
without the patch, and fixed with it.
Ran in CI.

### Known issues with pull request:

This does not fix the underlying issue, which will still likely
inconvenience users. However, as this is stopping us being able to
create snapshot, beta, rc or release builds, this fix needed to be
prioritised.
@SaschaCowley SaschaCowley requested a review from a team as a code owner October 20, 2025 21:32
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR merges changes from the RC (release candidate) branch to the beta branch, incorporating bug fixes and code style improvements. The changes include a test stability enhancement for Chrome browser testing and formatting corrections for consistency with Python linting standards.

Key changes:

  • Added a retry mechanism in Chrome system tests to handle intermittent UI element announcements
  • Fixed trailing comma formatting in logging statements across multiple methods

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
tests/system/libraries/ChromeLib.py Added fallback logic to handle "Ask Google about this page" button interference in address bar focus detection
source/_remoteClient/secureDesktop.py Added trailing commas to multi-line log statements for PEP 8 compliance

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

if not closeHandle(self._mapFile):
log.debugWarning(
"Failed to close handle to memory mapped IPC file. {GetLastError()}: {FormatError()}"
"Failed to close handle to memory mapped IPC file. {GetLastError()}: {FormatError()}",
Copy link

Copilot AI Oct 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error message uses a plain string without f-string prefix, preventing the interpolation of {GetLastError()} and {FormatError()}. This should be changed to an f-string like the other similar log statements in this file.

Suggested change
"Failed to close handle to memory mapped IPC file. {GetLastError()}: {FormatError()}",
f"Failed to close handle to memory mapped IPC file. {GetLastError()}: {FormatError()}",

Copilot uses AI. Check for mistakes.
@SaschaCowley SaschaCowley merged commit 5dc1922 into beta Oct 20, 2025
33 of 34 checks passed
@github-actions github-actions bot added this to the 2026.1 milestone Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants