fix(ff): follow up to the roll, fix permissions

This commit is contained in:
Pavel Feldman 2019-12-13 20:56:21 -08:00
Родитель 0b5c0a76ab
Коммит 4fd241e4ae
2 изменённых файлов: 20 добавлений и 2 удалений

Просмотреть файл

@ -1 +1 @@
1006
1007

Просмотреть файл

@ -256,9 +256,18 @@ index fb7692aa0337..66805103f6ff 100644
nsContentUtils::TrimWhitespace<nsContentUtils::IsHTMLWhitespace>(
aPolicyStr));
diff --git a/extensions/permissions/nsPermissionManager.cpp b/extensions/permissions/nsPermissionManager.cpp
index 9f40b6123b2d..d2709ec9c61e 100644
index 9f40b6123b2d..45ea8152d545 100644
--- a/extensions/permissions/nsPermissionManager.cpp
+++ b/extensions/permissions/nsPermissionManager.cpp
@@ -167,7 +167,7 @@ void MaybeStripOAs(OriginAttributes& aOriginAttributes) {
}
if (flags != 0) {
- aOriginAttributes.StripAttributes(flags);
+ // aOriginAttributes.StripAttributes(flags);
}
}
@@ -199,6 +199,8 @@ nsresult GetOriginFromPrincipal(nsIPrincipal* aPrincipal, nsACString& aOrigin) {
OriginAppendOASuffix(attrs, aOrigin);
@ -268,6 +277,15 @@ index 9f40b6123b2d..d2709ec9c61e 100644
return NS_OK;
}
@@ -317,7 +319,7 @@ already_AddRefed<nsIPrincipal> GetNextSubDomainPrincipal(
if (!StaticPrefs::permissions_isolateBy_userContext()) {
// Disable userContext for permissions.
- attrs.StripAttributes(mozilla::OriginAttributes::STRIP_USER_CONTEXT_ID);
+ // attrs.StripAttributes(mozilla::OriginAttributes::STRIP_USER_CONTEXT_ID);
}
nsCOMPtr<nsIPrincipal> principal =
diff --git a/parser/html/nsHtml5TreeOpExecutor.cpp b/parser/html/nsHtml5TreeOpExecutor.cpp
index 0d62c2cd2b67..9a5d68c9daa8 100644
--- a/parser/html/nsHtml5TreeOpExecutor.cpp