mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-27 02:43:07 +00:00
Bug 1082224 - Don't block all urls in guest sessions. r=mfinkle
This commit is contained in:
parent
ef75628de9
commit
f875fc820e
@ -163,11 +163,6 @@ public class RestrictedProfiles {
|
|||||||
|
|
||||||
@WrapElementForJNI
|
@WrapElementForJNI
|
||||||
public static boolean isAllowed(int action, String url) {
|
public static boolean isAllowed(int action, String url) {
|
||||||
// Guest users can't do anything.
|
|
||||||
if (getInGuest()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
final Restriction restriction;
|
final Restriction restriction;
|
||||||
try {
|
try {
|
||||||
restriction = geckoActionToRestriction(action);
|
restriction = geckoActionToRestriction(action);
|
||||||
@ -178,8 +173,13 @@ public class RestrictedProfiles {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Restriction.DISALLOW_BROWSE_FILES == restriction) {
|
if (getInGuest()) {
|
||||||
return canLoadUrl(url);
|
if (Restriction.DISALLOW_BROWSE_FILES == restriction) {
|
||||||
|
return canLoadUrl(url);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Guest users can't do anything.
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// NOTE: Restrictions hold the opposite intention, so we need to flip it.
|
// NOTE: Restrictions hold the opposite intention, so we need to flip it.
|
||||||
|
Loading…
Reference in New Issue
Block a user