diff --git a/dom/security/FramingChecker.cpp b/dom/security/FramingChecker.cpp index db12ccb3af2a..a32848d66eb6 100644 --- a/dom/security/FramingChecker.cpp +++ b/dom/security/FramingChecker.cpp @@ -78,11 +78,6 @@ FramingChecker::CheckOneFrameOptionsPolicy(nsIHttpChannel* aHttpChannel, MOZ_CRASH(); } - // If the X-Frame-Options value is SAMEORIGIN, then the top frame in the - // parent chain must be from the same origin as this document. - bool checkSameOrigin = aPolicy.LowerCaseEqualsLiteral("sameorigin"); - nsCOMPtr topUri; - // Traverse up the parent chain and stop when we see a docshell whose // parent has a system principal, or a docshell corresponding to //