Closed Bug 377678 Opened 17 years ago Closed 17 years ago

toolbar.xml cleanup

Categories

(Toolkit :: UI Widgets, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: enndeakin, Assigned: enndeakin)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 2 obsolete files)

- toolbarspacer and toolbarspring should have XULToolbarSeparator accessibility objects
- currentSet setter doesn't return a value
- insertItem doesn't work with no surrounding toolbox
Blocks: 377253
Attached patch cleanup (obsolete) — Splinter Review
confirmed with aaronlev that only Toolbar should use nsIAccessibleProvider.XULToolbar and that the three spacing types should use nsIAccessibleProvider.XULToolbarSeparator.
Attachment #261874 - Attachment is obsolete: true
Attachment #261956 - Flags: first-review?(neil)
Comment on attachment 261956 [details] [diff] [review]
also fix up accessibility references

>+            if (this.localName == "toolbarseparator" ||
>+                this.localName == "toolbarspacer" ||
>+                this.localName == "toolbarspring")
>               return Components.interfaces.nsIAccessibleProvider.XULToolbarSeparator;
>             else
>               return Components.interfaces.nsIAccessibleProvider.XULToolbar;
Wouldn't it be better to override this in the toolbar binding?
(The menubar binding already does, for instance.)

>             if (val == "__empty")
>-              return;
>+              return val;
> 
>             if (val) {
if (val && val != "__empty") perhaps?
(That __empty setting smells like a cheap hack!)
Attachment #261956 - Flags: first-review?(neil) → first-review+
Attached patch more like thisSplinter Review
Attachment #261956 - Attachment is obsolete: true
Attachment #262010 - Flags: review?(neil)
Comment on attachment 262010 [details] [diff] [review]
more like this

>-    <implementation implements="nsIAccessibleProvider">
>     <implementation>
>+      <property name="accessibleType" readonly="true">
r=me with this fixed as mentioned on IRC.
Attachment #262010 - Flags: review?(neil) → review+
Status: NEW → RESOLVED
Closed: 17 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: