Index: Source/WebCore/page/Frame.cpp |
=================================================================== |
--- Source/WebCore/page/Frame.cpp (revision 136272) |
+++ Source/WebCore/page/Frame.cpp (working copy) |
@@ -667,8 +667,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 |