Closed Bug 352357 Opened 18 years ago Closed 18 years ago

Remove unused XP roles

Categories

(Core :: Disability Access APIs, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: hwaara, Assigned: hwaara)

Details

Attachments

(1 file, 3 obsolete files)

Two unused roles can be removed:

* ROLE_INTERNAL_FRAME
* ROLE_EMBEDDED
I found two other XP roles that are dups: ROLE_WHITESPACE and ROLE_FILLER. Should I remove one of them?
Yes, remove ROLE_FILLER.
This removes it from all rolemaps (except mac's, which I will include with the other changes in bug 352327).
Attachment #238200 - Flags: review?(aaronleventhal)
Attachment #238200 - Flags: review?(aaronleventhal) → review+
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
after remove the roles, the role is not correcly mapped, and got this:

###!!! ASSERTION: ATK role map skewed: 'atkRoleMap[nsIAccessible::ROLE_LAST_ENTRY] == kROLE_ATK_LAST_ENTRY', file ../../../../mozilla/accessible/src/atk/nsAccessibleWrap.cpp, line 823
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attachment #239295 - Flags: review?(hwaara)
Comment on attachment 239295 [details] [diff] [review]
add placeholder for the roleMap array

Gah, I can't believe I didn't see this. Ok, so I suppose it's easier to use placeholders than to change all the nsIAccessible constants.

Please fix mac too though. You can use NSAccessibilityUnknownRole for the placeholders.
Attachment #239295 - Flags: review?(hwaara) → review-
Attached patch also add fix for mac (obsolete) — Splinter Review
Attachment #239295 - Attachment is obsolete: true
Attachment #239333 - Flags: review?(hwaara)
Attachment #239333 - Flags: review?(hwaara) → review+
Comment on attachment 239333 [details] [diff] [review]
also add fix for mac

Aaron, to fix the bug, we can add placeholder as the patch does, or change the constants in nsIAccessible.

which one do you prefer?
Attachment #239333 - Flags: review?(aaronleventhal)
Comment on attachment 239333 [details] [diff] [review]
also add fix for mac

Sorry I missed this in the review. At least we have the assertion!

I suggest removing the gaps out of the nsIAccessible constants instead, this is a bit strange.
Attachment #239333 - Flags: review?(aaronleventhal) → review-
Summary: Remove 2 unused XP roles → Remove unused XP roles
This makes all nsIAccessible role constants be continous, since the value of a constant is used to access the Nth element in our rolemap arrays. There must be no gaps.
Attachment #238200 - Attachment is obsolete: true
Attachment #239333 - Attachment is obsolete: true
Attachment #239364 - Flags: review?(aaronleventhal)
Attachment #239364 - Flags: review?(aaronleventhal) → review+
Checked in. Can you guys verify that win32 and atk are OK now? 

When they are, let's close the bug.
verified on linux
Status: REOPENED → RESOLVED
Closed: 18 years ago18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: