Index: Source/core/html/HTMLLinkElement.cpp |
diff --git a/Source/core/html/HTMLLinkElement.cpp b/Source/core/html/HTMLLinkElement.cpp |
index 88eb3153294a2626b80f893111ef2134e4ec70c0..11257d8cbd118da2b48794182e2fbeb9f6214b83 100644 |
--- a/Source/core/html/HTMLLinkElement.cpp |
+++ b/Source/core/html/HTMLLinkElement.cpp |
@@ -627,7 +627,7 @@ void LinkStyle::process() |
return; |
if (!document().contentSecurityPolicy()->allowImageFromSource(builder.url())) |
return; |
- if (document().frame()) |
+ if (document().frame() && document().frame()->loader().client()) |
document().frame()->loader().client()->dispatchDidChangeIcons(m_owner->relAttribute().iconType()); |
} |