Index: WebKit/chromium/src/StorageEventDispatcherImpl.cpp |
=================================================================== |
--- WebKit/chromium/src/StorageEventDispatcherImpl.cpp (revision 113961) |
+++ WebKit/chromium/src/StorageEventDispatcherImpl.cpp (working copy) |
@@ -49,6 +49,7 @@ |
ASSERT(m_pageGroup); |
} |
+// FIXME(michaeln): add a sourceStorageArea parameter to this |
void StorageEventDispatcherImpl::dispatchStorageEvent(const String& key, const String& oldValue, |
const String& newValue, SecurityOrigin* securityOrigin, |
const KURL& url, StorageType storageType) |
@@ -65,6 +66,8 @@ |
HashSet<Page*>::const_iterator end = pages.end(); |
for (HashSet<Page*>::const_iterator it = pages.begin(); it != end; ++it) { |
for (Frame* frame = (*it)->mainFrame(); frame; frame = frame->tree()->traverseNext()) { |
+ // FIXME(michaeln): identify the srcFrame while in this loop too, |
+ // and exclude it from 'frames'. |
if (frame->document()->securityOrigin()->equal(securityOrigin)) |
frames.append(frame); |
} |