mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
980ffb55da
From browser.js's point of view there's no difference between restricted and guest profiles. Both use the parental controls API. So there are only two "simple" solutions here: * 1) Add a method to nsIParentalControlsService to determine whether the current profiles is a restricted or a guest profile (Something like isGuest()). But then every platform using this interface would require to at least implement a stub for this method. * 2) Add a new restriction that controls installing the theme. This patch implements option 2. While this restriction is not of much use besides deciding whether we need to install a specialized theme (DISALLOW_DEFAULT_THEME), it still offers the most flexibility. In a follow-up bug we could decide to make the restriction configurable by the device admin (requires localized strings). |
||
---|---|---|
.. | ||
moz.build | ||
nsIParentalControlsService.idl | ||
nsParentalControlsService.h | ||
nsParentalControlsServiceAndroid.cpp | ||
nsParentalControlsServiceCocoa.mm | ||
nsParentalControlsServiceDefault.cpp | ||
nsParentalControlsServiceWin.cpp |