Bug 1312260 - Part 1: Allow access to execCommand("paste") with permission r=bz
MozReview-Commit-ID: B1sfhsQWWQa
This commit is contained in:
@@ -3201,7 +3201,8 @@ nsHTMLDocument::ExecCommand(const nsAString& commandID,
|
||||
}
|
||||
|
||||
bool restricted = commandID.LowerCaseEqualsLiteral("paste");
|
||||
if (restricted && !nsContentUtils::IsSystemPrincipal(&aSubjectPrincipal)) {
|
||||
if (restricted && !nsContentUtils::PrincipalHasPermission(&aSubjectPrincipal,
|
||||
NS_LITERAL_STRING("clipboardRead"))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user