Closed
Bug 750283
Opened 13 years ago
Closed 13 years ago
notify observers of a11y init / shutdown in nsAccessibilityService
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
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)
|
4.89 KB,
patch
|
Details | Diff | Splinter Review |
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().
| Assignee | ||
Comment 1•13 years ago
|
||
Quick patch ... builds and tests ok ...
Assignee: nobody → markcapella
Status: NEW → ASSIGNED
Attachment #620468 -
Flags: review?(trev.saunders)
| Reporter | ||
Comment 2•13 years ago
|
||
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 3•13 years ago
|
||
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+
| Assignee | ||
Comment 4•13 years ago
|
||
Updated•13 years ago
|
Attachment #620468 -
Attachment is obsolete: true
Comment 5•13 years ago
|
||
Target Milestone: --- → mozilla15
Comment 6•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•