Skip to content

Edge: announce notifications fired by main Edge process such as reading view availability#8424

Merged
michaelDCurran merged 4 commits into
nvaccess:masterfrom
josephsl:i8423edgeNotifications
Jul 27, 2018
Merged

Edge: announce notifications fired by main Edge process such as reading view availability#8424
michaelDCurran merged 4 commits into
nvaccess:masterfrom
josephsl:i8423edgeNotifications

Conversation

@josephsl

Copy link
Copy Markdown
Contributor

Link to issue number:

Fixes #8423

Summary of the issue:

Edge: notifications such as reading view availability is not announced.

Description of how this pull request fixes the issue:

Certain notifications, including reading view availability are fired by main Edge process, not the content process. This means NvDA will ignore such notifications. Resolved by adding a dedicated app module for Edge main process that'll catch notifications and announce them, and propogate them no more.

Testing performed:

Tested on Windows 10 April 2018 Update (UIA notification event is part of Fall Creators Update and later).

Known issues with pull request:

None

Change log entry:

Bug fixes: In Microsoft Edge, NVDA will announce notifications such as reading view availability and page load progress.

…ng view availability. Re nvaccess#8423.

Certain notifications, including reading view availability are fired by main Edge process, not the content process. This means NvDA will ignore such notifications. Resolved by adding a dedicated app module for Edge main process that'll catch notifications and announce them, and propogate them no more.
@josephsl

Copy link
Copy Markdown
Contributor Author

Hi,

Ideally someone using Edge should also help out with reviewing this PR to catch bugs and such. Thanks.

Comment thread source/appModules/microsoftedge.py Outdated
def event_UIA_notification(self, obj, nextHandler, displayString=None, **kwargs):
# #8423: even though content process is focused, notifications are fired by main Edge process.
# The base object will simply ignore this, so notifications must be announced here and no more.
ui.message(displayString)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Could you please end the file with an empty line?


def event_UIA_notification(self, obj, nextHandler, displayString=None, **kwargs):
# #8423: even though content process is focused, notifications are fired by main Edge process.
# The base object will simply ignore this, so notifications must be announced here and no more.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

If I understand this correctly, these notifications will be announced regardless of what application has the foreground. It is imaginable that notifications are fired even though either this or a child process doesn't have focus. Could you somehow make sure that notifications are only announced within the context of Edge?

Furthermore, how to make sure that this appModule loads? Does it ever receive focus and if so, when?

@josephsl

josephsl commented Jun 21, 2018 via email

Copy link
Copy Markdown
Contributor Author

@josephsl

Copy link
Copy Markdown
Contributor Author

Hi,

The Edge process loads when you run Edge and move to the app UI elements such as address omnibar, Settings window and what not.

As for limiting this to Edge context, that's next (thanks for reminding me about this).

Thanks,

@LeonarddeR

LeonarddeR commented Jun 21, 2018 via email

Copy link
Copy Markdown
Collaborator

…s#8423.

Reviewed by @LeonarddeR: limit Edge notificaiton context to Edge only. This is done by checking to make sure focused element is indeed part of Edge, and if not, notifications will be silenced. This resolves an issue where Edge notifications are heard while using other apps.
@josephsl

josephsl commented Jun 21, 2018 via email

Copy link
Copy Markdown
Contributor Author

LeonarddeR
LeonarddeR previously approved these changes Jul 3, 2018
@LeonarddeR LeonarddeR requested a review from michaelDCurran July 3, 2018 18:49
@josephsl

josephsl commented Jul 3, 2018 via email

Copy link
Copy Markdown
Contributor Author

@michaelDCurran michaelDCurran merged commit b1acfd1 into nvaccess:master Jul 27, 2018
@nvaccessAuto nvaccessAuto added this to the 2018.3 milestone Jul 27, 2018
@josephsl josephsl deleted the i8423edgeNotifications branch July 30, 2018 20:31
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.

Microsoft Edge: Reading View notification is not announced

4 participants