Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop using MS Edge specific code for Internet Explorer edit fields. #10652

Merged
merged 2 commits into from
Jan 29, 2020

Conversation

lukaszgo1
Copy link
Contributor

This is opened against beta.

Link to issue number:

Fixes #10613

Summary of the issue:

When support for Microsoft Edge was introduced in 2015 we started using Edge specific code for some controls in Internet Explorer. It started to be problematic when support for landmarks was introduced, as Edge specific code for landmarks was failing in IE.

Description of how this pull request fixes the issue:

The edgeNode is not used when in IE.

Testing performed:

With braille display connected:

  1. Opened IE 11 on Windows 7
  2. went to tyfloswiat.pl
  3. moved to the last edit field and pressed NVDA+space,

Without this change the focus mode sound was not played, whereas now it plays.

Known issues with pull request:

None known

Change log entry:

None needed this is not in a release.

@AppVeyorBot
Copy link

See test results for failed build of commit 942e34cb1d

@@ -853,7 +853,11 @@ def findOverlayClasses(self,clsList):
# Windows 8.x toast, although a form of tool tip, is covered separately.
elif UIAControlType==UIAHandler.UIA_ToolTipControlTypeId:
clsList.append(ToolTip)
elif self.UIAElement.cachedFrameworkID in ("InternetExplorer","MicrosoftEdge"):
elif(
self.UIAElement.cachedFrameworkID in ("InternetExplorer", "MicrosoftEdge")
Copy link
Member

Choose a reason for hiding this comment

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

I'm pretty confident that Internet Explorer can be removed here, as that would only be true for the mshtml implementation, not edgeHTML. And, we would want this fix for any mshtml embedding, not just the Internet Explorer application.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removing InternetExplorer from there would break Edge on older builds of Windows 10 (it is used at least on 1507, 1511 and possibly Anniversary Update) as an FrameworkID. The fact that UIA is used for Internet Explorer controls on Windows 7 is however strange, because this is not occurring on Windows 10, I am not sure why.
Would it be acceptable to simply add Internet Explorer_Server to the bad UIA class names when running on anything lower than Windows 10?

@feerrenrut
Copy link
Contributor

It would be good to get this change merged into beta ASAP. @michaelDCurran can you advise if you are happy with this change based on: Does it fix the issue, and is unlikely to introduce further regressions?

@michaelDCurran
Copy link
Member

This is fine with the understanding that this does not fully address the issue, as mshtml controls outside of Internet Explorer may still show the bug. Not that it contains an edit field as such, but just for an example where mshtml is embedded: NVDA's formatting viewer dialog (NVDA+f twice quickly) is an embedded MSHTML control, but the appModule is NVDA, not iexplore. Out of curiosity, Do the older EdgeNodes that have a UIA className of Internet Explorer_Server have a window class of Internet Explorer_Server, or something else? If something else, then we can use the window class.

@feerrenrut
Copy link
Contributor

In that case I'll merge this. Better to fix it in at least one situation than not at all.

Copy link
Contributor

@feerrenrut feerrenrut left a comment

Choose a reason for hiding this comment

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

Thanks @lukaszgo1

Would you be able to look at other situations that may not covered by this change as suggested by @michaelDCurran.

@feerrenrut feerrenrut dismissed michaelDCurran’s stale review January 29, 2020 12:37

The change is beneficial to the beta, even if it does not handle all situations.

@feerrenrut feerrenrut merged commit 486ed0d into nvaccess:beta Jan 29, 2020
@nvaccessAuto nvaccessAuto added this to the 2019.3 milestone Jan 29, 2020
@lukaszgo1 lukaszgo1 deleted the I10613 branch January 29, 2020 13:25
@lukaszgo1
Copy link
Contributor Author

@feerrenrut wrote:

Would you be able to look at other situations that may not covered by this change as suggested by @michaelDCurran.

I'll certainly do that, however do not expect anything fast - certainly not in time for 2019.3

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.

5 participants