Index: Source/WebCore/page/Frame.cpp |
=================================================================== |
--- Source/WebCore/page/Frame.cpp (revision 136273) |
+++ Source/WebCore/page/Frame.cpp (working copy) |
@@ -669,8 +669,13 @@ |
{ |
if (m_doc) |
m_doc->dispatchVisibilityStateChangeEvent(); |
+ |
+ Vector<RefPtr<Frame> > childFrames; |
for (Frame* child = tree()->firstChild(); child; child = child->tree()->nextSibling()) |
- child->dispatchVisibilityStateChangeEvent(); |
+ childFrames.append(child); |
+ |
+ for (size_t i = 0; i < childFrames.size(); ++i) |
+ childFrames[i]->dispatchVisibilityStateChangeEvent(); |
} |
#endif |