Privacy/Reviews/OSIdleAPI: Difference between revisions

Jump to navigation Jump to search
Line 59: Line 59:
** Use interacting with the device that the browser is currently running on.
** Use interacting with the device that the browser is currently running on.


=== Component IdleService ===
=== Component Websites ===


This component receives requests to add and remove idle observers. The global window registers with the idle service as an idle observer. The idle service component notifies the global window of idle and 'back'/active events. The global window performs functions based on the 'idle'/'back' notifications received.
* Websites loaded onto a web browser.
 
* Ensure that maliscious websites do not have direct access to find out whether the user is idle or not.
The tables below simply summarize the data encountered by this component.  


'''Stored Data:'''  
'''Stored Data:'''  
{| border="1" cellpadding="2"
* No stored data.
| Class || nsIObserver
|-
| What || Observer that observes an event corresponding to a topic, in this case 'idle' and 'back' topics.
|-
| Where || xpcom/ds/nsIObserver.idl
|-
| Data type || nsIObserver
|-
| Where stored || an nsIObserver object is stored within an EventListener object
|}
 
<br>
'''Communication with Component nsGlobalWindow'''
 
{| border="1" cellpadding="2"
| Class || "nsGlobalWindow"
|-
| Direction || nsIdleService to nsGlobalWindow and vice-versa
|-
| Message || - nsIdleService sends a topic of 'idle' or 'back' to nsGlobalWindow <br> - nsGlobalWindow requests an add idle observer or remove idle observer from nsIdleService.
|-
| Data || Pointer to a nsIObserver object.
|-
| Notes || None
|}
 
<br>


=== Component nsGlobalWindow  ===
=== Component nsGlobalWindow  ===
76

edits

Navigation menu