Index: Source/core/loader/FrameLoader.cpp |
diff --git a/Source/core/loader/FrameLoader.cpp b/Source/core/loader/FrameLoader.cpp |
index ebe34a1d4fcf6e8e4dd5ab000a0f280f6041668d..256b9548120d3b1748198bcadafd32c20d3476c7 100644 |
--- a/Source/core/loader/FrameLoader.cpp |
+++ b/Source/core/loader/FrameLoader.cpp |
@@ -1400,9 +1400,7 @@ bool FrameLoader::shouldTreatURLAsSrcdocDocument(const KURL& url) const |
if (!equalIgnoringCase(url.string(), "about:srcdoc")) |
return false; |
HTMLFrameOwnerElement* ownerElement = m_frame->ownerElement(); |
- if (!ownerElement) |
- return false; |
- if (!ownerElement->hasTagName(iframeTag)) |
+ if (!isHTMLIFrameElement(ownerElement)) |
return false; |
return ownerElement->fastHasAttribute(srcdocAttr); |
} |