Plugins:PrivateMode: Difference between revisions

Line 19: Line 19:
When the browser turns private mode on or off it will call NPP_SetValue for "NPNVprivateModeBool" (assigned enum value 18) with a pointer to an NPBool value on all applicable instances. Plugins should check the boolean value pointed to, not the pointer itself. The value will be true when private mode is on.
When the browser turns private mode on or off it will call NPP_SetValue for "NPNVprivateModeBool" (assigned enum value 18) with a pointer to an NPBool value on all applicable instances. Plugins should check the boolean value pointed to, not the pointer itself. The value will be true when private mode is on.


Plugins can query the browser for private mode state by calling NPN_GetValue for the variable "NPNVprivateModeBool". This allows instances to know about private mode state before opening any streams.
Plugins can query the browser for private mode state by calling NPN_GetValue for the variable "NPNVprivateModeBool". The result will be a pointer to an NPBool. This allows instances to know about private mode state before opening any streams.


Changes in private mode affect new streams only - not previously created streams.
Changes in private mode affect new streams only - not previously created streams.
Confirmed users, Bureaucrats and Sysops emeriti
1,680

edits