Bug 1519636 - Reformat recent changes to the Google coding style. r=necko-reviewers,emilio
Updated with clang-format version 12.0.0 (taskcluster-FZRqPXamQIOU_i4hF0cAcg) Differential Revision: https://phabricator.services.mozilla.com/D117905
This commit is contained in:
@@ -2635,7 +2635,8 @@ void BrowsingContext::DidSet(FieldIndex<IDX_HasMainMediaController>,
|
||||
auto BrowsingContext::CanSet(FieldIndex<IDX_AllowJavascript>, bool aValue,
|
||||
ContentParent* aSource) -> CanSetResult {
|
||||
if (mozilla::SessionHistoryInParent()) {
|
||||
return XRE_IsParentProcess() && !aSource ? CanSetResult::Allow : CanSetResult::Deny;
|
||||
return XRE_IsParentProcess() && !aSource ? CanSetResult::Allow
|
||||
: CanSetResult::Deny;
|
||||
}
|
||||
|
||||
// Without Session History in Parent, session restore code still needs to set
|
||||
@@ -2647,7 +2648,6 @@ void BrowsingContext::DidSet(FieldIndex<IDX_AllowJavascript>, bool aOldValue) {
|
||||
RecomputeCanExecuteScripts();
|
||||
}
|
||||
|
||||
|
||||
void BrowsingContext::RecomputeCanExecuteScripts() {
|
||||
const bool old = mCanExecuteScripts;
|
||||
if (!AllowJavascript()) {
|
||||
|
||||
Reference in New Issue
Block a user