Annotation of annozilla/service/TODO, revision 1.2
1.2 ! rainking 1: * fix serverName to be serverURI in IDL for annotation, and then fix everything that effects
! 3: * make serverURI readonly
! 5: * change everything that we can from throwing an exception to returning null instead, which seems to work
! 7: * change things called URL to URI when necessary
! 9: * add code to check status of XMLHttpRequest objects, and make error messages better in general in the remote server error callback functions
! 12: * test autoLoad on same page in a row, to ensure that annotations don't come through twice
! 14: * in AnnotationsService.onEndLoad, testing the autoLoadServersResponded == serverCount could be a problem if servers are added or removed. test this case.
! 16: DONE:
! 19: * surround code that makes client callbacks and then does more stuff in try/catch, with a console-print of any error message in the catch. this prevents client code from jacking the service
! 20: - update --> XPCOM may do this for us, so unneccessary
! 22: * design data structure setup such that each app registered for autoLoad gets one AnnotationsEnum with all of the annotations for its servers
! 23: - this should be done by having an array for each application, and as servers respond in we need a server --> array of application map
! 24: - this could be done each time we autoLoad, but that's expensive. instead, we could update this as observers and servers and autoLoad stuff changes for each app, and keep this sort of thing in the app itself. since autoLoad happens much more often than updating preferences, this is the way to go.
! 26: * Need to clone annotations *and* enumerator *every* time we give out annotations to multiple observers--this should be the job of the ObserverAlerter for multiple observers within an application, as well as the AnnotationsService whenever a particular annotation is sent to multiple applications