Privacy/Reviews/OSIdleAPI: Difference between revisions

Line 52: Line 52:


* Idle observer requested idle times are in seconds.
* Idle observer requested idle times are in seconds.
* Randomly generated fuzz times for 'idle' and 'active' events are in seconds.
* Randomly generated fuzz times for 'idle' and 'active' events are in milli-seconds.


* Idle Notifications:
* Idle Notifications:
Line 92: Line 92:
| ''In:''  
| ''In:''  
| addIdleObserver()
| addIdleObserver()
| * Requested idle time in seconds. * Idle callback function. * Active callback function.
| Requested idle time in seconds. Idle callback function. Active callback function.
| Web pages can use the idle state knowledge for malicious purposes. A fuzz time has been added to both the idle and active nofications to prevent this so this.
| The requested idle time in seconds is the amount of idle time that needs to elapse before the idle observer receives 'idle'/ 'active' notifications. The notifications are the idle and active callback functions. The mininum requested idle time in seconds must be 1 second.
|-
|-
| ''In:''  
| ''In:''  
| removeIdleObserver()
| removeIdleObserver()
| Time in seconds after which to recieve an idle notification. Callback function when the user is idle for the requested time. Callback function when the user is active.
| Requested idle time in seconds. Idle callback function. Active callback function.
| Web pages can use the idle state knowledge for malicious purposes. A fuzz time has been added to both the idle and active nofications to prevent this so this.
| The requested idle time in seconds is the amount of idle time that needs to elapse before the idle observer receives 'idle'/ 'active' notifications. The notifications are the idle and active callback functions. The mininum requested idle time in seconds must be 1 second.
|-
|-
| ''Out:''  
| ''Out:''  
| Idle callback function. Active callback function.
| Idle callback function. Active callback function.
| Data, knowledge that the user is currently idle or active.
| None
| A fuzz time has been added to each notification to prevent web pages from using the user state knowledge in a malicious manner.
| The idle callback function is called when the user transitions to the idle state and the requested amount of idle time, converted to milli-seconds, plus a random fuzz time (milli-seconds) have elapsed.
|}
|}


76

edits