Skip to content

Fix title cancellation#11631

Merged
feerrenrut merged 5 commits into
masterfrom
fixTitleCancellation
Sep 21, 2020
Merged

Fix title cancellation#11631
feerrenrut merged 5 commits into
masterfrom
fixTitleCancellation

Conversation

@feerrenrut

Copy link
Copy Markdown
Contributor

Link to issue number:

Fixes #11397

Summary of the issue:

When changing tabs in firefox, the title of the tab was no longer announced.
This was a little confusing because the document seems to have focus, and thus it should still be announced.

Description of how this pull request fixes the issue:

The reason this speech was being cancelled was that the focused object was not the same instance, despite pointing to the same underlying object (the document). This is due to the interceptor having a cache of this object and intercepting the event.

Testing performed:

Steps in #11397

Known issues with pull request:

Change log entry:

Bug fixes:

Despite unit test logging being hardcoded to False, it
appeared that these messages were showing in the log.

This was caused by the extra frame before the log call.
In this case the speech is triggered by a tree interceptor (see
event_treeInterceptor_gainFocus in source/browseMode.py)

which calls speech.speakObject(self.rootNVDAObject ....),
and even thought self.rootNVDAObject may refer to the same object, it may
not be exactly the same instance.
michaelDCurran
michaelDCurran previously approved these changes Sep 21, 2020
@feerrenrut feerrenrut merged commit 36a74bd into master Sep 21, 2020
@feerrenrut feerrenrut deleted the fixTitleCancellation branch September 21, 2020 12:07
@nvaccessAuto nvaccessAuto added this to the 2020.4 milestone Sep 21, 2020
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.

Cancelable speech: NVDA does not report tab titles when switching with ctrl+tab or ctrl+shift+tab

3 participants