Skip to content

Add a appModule for taskMan, to fix some bugs in windows ten.#8147

Merged
michaelDCurran merged 2 commits into
nvaccess:masterfrom
derekriemer:taskman-content
Apr 30, 2018
Merged

Add a appModule for taskMan, to fix some bugs in windows ten.#8147
michaelDCurran merged 2 commits into
nvaccess:masterfrom
derekriemer:taskman-content

Conversation

@derekriemer

Copy link
Copy Markdown
Collaborator

Link to issue number:

None

Summary of the issue:

In windows ten, task manager has a bug where the columns for CPU usage, memory, and other information about a process are UIA layout, not content. This fix makes these columns UIA content, so NVDA shows them when using simple review mode.

Testing performed:

Built NVDA, installed it, and ran it on task manager on windows ten, version 1709.

Known issues with pull request:

It might or might not work on 8 and 7, I need someone to test this if possible.### Change log entry:

  • Bug fixes:
    • Fix a bug in task manager causing NVDA to not allow users to access the contents of specific details about processes.

@derekriemer derekriemer requested a review from LeonarddeR April 8, 2018 04:30
@derekriemer

Copy link
Copy Markdown
Collaborator Author

should I request a review from NV Access?

@Brian1Gaff

Brian1Gaff commented Apr 8, 2018 via email

Copy link
Copy Markdown

Comment thread source/appModules/taskmgr.py Outdated
from NVDAObjects import NVDAObject
from NVDAObjects.UIA import UIA

def appropriateDescendant(obj):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Either a docstring here or a name that better explains what this function is for.

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.

I'd say the doc string is now clear, but still personally I'd prefer a name like isChildOfRow

Comment thread source/appModules/taskmgr.py Outdated
obj = obj.parent
return False

class BrokenUIAChild(NVDAObject):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should inherit from UIA as it would not work with any other type of NVDAObject.

Comment thread source/appModules/taskmgr.py Outdated
from NVDAObjects import NVDAObject
from NVDAObjects.UIA import UIA

def appropriateDescendant(obj):

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.

I'd say the doc string is now clear, but still personally I'd prefer a name like isChildOfRow

Comment thread source/appModules/taskmgr.py Outdated
#This is an icon and really is layout. Don't show it.
return
if obj.presentationType == obj.presType_layout and appropriateDescendant(obj):
clsList.insert(0, BrokenUIAChild) No newline at end of file

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.

Please add an empty line below.

@LeonarddeR

Copy link
Copy Markdown
Collaborator

It is actually interesting to compare this issue with what I described in #7949 (comment) . There seem to be several similarities, particularly the fact that both the task manager and the outlook conversations view are kind of a data grid tree view hybrid. I wonder whether these issues have the same underlying UIA bug.

@beqabeqa473

beqabeqa473 commented Apr 9, 2018 via email

Copy link
Copy Markdown
Contributor

@PratikP1

PratikP1 commented Apr 9, 2018 via email

Copy link
Copy Markdown

@derekriemer

Copy link
Copy Markdown
Collaborator Author

Is it broken with simple review? I just tested it in simple review, and it worked.

@derekriemer

Copy link
Copy Markdown
Collaborator Author

Okay guys, I addressed @LeonarddeR review actions. I'm ready.

@LeonarddeR LeonarddeR left a comment

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.

Just one thing, not related to the code as such. Furthermore, if we could somehow report this at Microsoft to get fixed, that would be preferred.

Comment thread source/appModules/taskmgr.py Outdated
return
if obj.presentationType == obj.presType_layout and isChildOfRow(obj):
clsList.insert(0, BrokenUIAChild)

No newline at end of file

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.

Please make this an empty line

@derekriemer

Copy link
Copy Markdown
Collaborator Author

done

@PratikP1

Copy link
Copy Markdown

I have an open bug regarding this with Microsoft. The last I heard about it was that they're not intending to fix because it sort of works with Narrator. If one of you can provide me ith a little more technical info, I can go back and make another argument for a fix. Thank you.

@PratikP1

Copy link
Copy Markdown

Should this pull request be linked to issue #7148?

@LeonarddeR

LeonarddeR commented Apr 13, 2018 via email

Copy link
Copy Markdown
Collaborator

@LeonarddeR

LeonarddeR commented Apr 13, 2018

Copy link
Copy Markdown
Collaborator

@PratikP1 commented on 13 Apr 2018, 14:15 CEST:

I have an open bug regarding this with Microsoft. The last I heard about it was that they're not intending to fix because it sort of works with Narrator. If one of you can provide me ith a little more technical info, I can go back and make another argument for a fix. Thank you.

Could #7949 (comment) help you in any way? I'm still pretty sure it's related.

@PratikP1 commented on 9 Apr 2018, 16:19 CEST:

I wonder if app list in the “apps and features” setting is the same.

That is a list, no tree view I believe.

@LeonarddeR

Copy link
Copy Markdown
Collaborator

@PratikP1 commented on 13 Apr 2018, 14:17 CEST:

Should this pull request be linked to issue #7148?

If you think that this pr will fix it, and I think it does, then sure.

@derekriemer

Copy link
Copy Markdown
Collaborator Author

I just rebased the fixes for review on master.

michaelDCurran added a commit that referenced this pull request Apr 15, 2018
@michaelDCurran michaelDCurran merged commit 3dcd74d into nvaccess:master Apr 30, 2018
@nvaccessAuto nvaccessAuto added this to the 2018.2 milestone Apr 30, 2018
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.

7 participants