Closed Bug 750283 Opened 12 years ago Closed 12 years ago

notify observers of a11y init / shutdown in nsAccessibilityService

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla15

People

(Reporter: tbsaunde, Assigned: capella)

References

(Blocks 1 open bug)

Details

(Whiteboard: [good first bug][mentor=trev.saunders@gmail.com][lang=c++])

Attachments

(1 file, 1 obsolete file)

move the call to NotifyObservers() to nsAccessibilityService.cpp (Init() and Shutdown()) from nsAccessNode.cpp InitXPAccessibility / ShutdownXPAccessibility().  both of those functions already have a ref to the observer service, so you can just call NotifyObservers() directly instead of through nsAccessNode::NotifyA11yInitOrShutdown().
Attached patch Patch (v1) (obsolete) — Splinter Review
Quick patch ... builds and tests ok ...
Assignee: nobody → markcapella
Status: NEW → ASSIGNED
Attachment #620468 - Flags: review?(trev.saunders)
Comment on attachment 620468 [details] [diff] [review]
Patch (v1)

/nsAccessNode.cpp
>--- a/accessible/src/base/nsAccessNode.cpp
>+++ b/accessible/src/base/nsAccessNode.cpp
>@@ -166,33 +166,16 @@ void nsAccessNode::InitXPAccessibility()

this file no longer uses nsIObserverService so remove that header from being included
Attachment #620468 - Flags: review?(trev.saunders)
Attachment #620468 - Flags: review+
Attachment #620468 - Flags: feedback?(surkov.alexander)
Comment on attachment 620468 [details] [diff] [review]
Patch (v1)

Review of attachment 620468 [details] [diff] [review]:
-----------------------------------------------------------------

::: accessible/src/base/nsAccessibilityService.cpp
@@ +1290,1 @@
>      observerService->RemoveObserver(this, NS_XPCOM_SHUTDOWN_OBSERVER_ID);

perhaps i'd have empty lines between these
Attachment #620468 - Flags: feedback?(surkov.alexander) → feedback+
Blocks: 750287
Attachment #620468 - Attachment is obsolete: true
https://hg.mozilla.org/mozilla-central/rev/86f237e55dd9
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: