-
weinig@apple.com authored
2009-05-29 Sam Weinig <sam@webkit.org> Reviewed by Anders Carlsson. Fix for https://bugs.webkit.org/show_bug.cgi?id=26091 Make storage events match the current spec. - Storage event listeners are added to the window. - Storage events are dispatched to the window. Updated existing tests. * dom/Document.cpp: (WebCore::Document::dispatchWindowEvent): * dom/Document.h: * dom/Node.cpp: * dom/Node.h: * html/HTMLBodyElement.cpp: (WebCore::HTMLBodyElement::parseMappedAttribute): * storage/LocalStorageArea.cpp: (WebCore::LocalStorageArea::dispatchStorageEvent): * storage/SessionStorageArea.cpp: (WebCore::SessionStorageArea::dispatchStorageEvent): LayoutTests: 2009-05-29 Sam Weinig <sam@webkit.org> Reviewed by Anders Carlsson. Fix for https://bugs.webkit.org/show_bug.cgi?id=26091 Make storage events match the current spec. - Storage event listeners are added to the window. - Storage events are dispatched to the window. * storage/domstorage/localstorage/iframe-events.html: * storage/domstorage/localstorage/index-get-and-set.html: * storage/domstorage/localstorage/resources/iframe-events-second.html: * storage/domstorage/localstorage/simple-events.html: * storage/domstorage/sessionstorage/iframe-events.html: * storage/domstorage/sessionstorage/index-get-and-set.html: * storage/domstorage/sessionstorage/resources/iframe-events-second.html: * storage/domstorage/sessionstorage/simple-events.html: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@44293 268f45cc-cd09-0410-ab3c-d52691b4dbfc
6dfb60ca