Skip to content
  • beidson@apple.com's avatar
    WebCore: · b61999d6
    beidson@apple.com authored
    2008-04-15  Brady Eidson  <beidson@apple.com>
    
            Reviewed by Anders
    
            Hook up event dispatching for window.localStorage changes.
    
            Tests: storage/domstorage/localstorage/enumerate-storage.html
                   storage/domstorage/localstorage/iframe-events.html
                   storage/domstorage/localstorage/index-get-and-set.html
                   storage/domstorage/localstorage/onstorage-attribute-markup.html
                   storage/domstorage/localstorage/onstorage-attribute-setattribute.html
                   storage/domstorage/localstorage/simple-events.html
                   storage/domstorage/localstorage/simple-usage.html
                   storage/domstorage/localstorage/window-open.html
    
            * storage/LocalStorage.cpp:
            (WebCore::LocalStorage::dispatchStorageEvent): Walk every Page in the PageGroup, adding
              each Frame that matches the storage area's security origin to a Vector.  Then dispatch
              the StorageEvent to each Frame in the Vector
    
            * storage/SessionStorage.cpp:
            (WebCore::SessionStorage::dispatchStorageEvent): Adopt the technique used in LocalStorage,
              which is to only add the Frames to the Vector if their security origin matches
    
    LayoutTests:
    
    2008-04-15  Brady Eidson  <beidson@apple.com>
    
            Reviewed by Anders
    
            Hook up event dispatching for window.localStorage changes.
            Now a meaningful LayoutTest suite can be landed for window.localStorage.
    
            * storage/domstorage/localstorage/enumerate-storage-expected.txt: Added.
            * storage/domstorage/localstorage/enumerate-storage.html: Added.
            * storage/domstorage/localstorage/iframe-events-expected.txt: Added.
            * storage/domstorage/localstorage/iframe-events.html: Added.
            * storage/domstorage/localstorage/index-get-and-set-expected.txt: Added.
            * storage/domstorage/localstorage/index-get-and-set.html: Added.
            * storage/domstorage/localstorage/onstorage-attribute-markup-expected.txt: Added.
            * storage/domstorage/localstorage/onstorage-attribute-markup.html: Added.
            * storage/domstorage/localstorage/onstorage-attribute-setattribute-expected.txt: Added.
            * storage/domstorage/localstorage/onstorage-attribute-setattribute.html: Added.
            * storage/domstorage/localstorage/resources: Added.
            * storage/domstorage/localstorage/resources/clearLocalStorage.js: Added.
            * storage/domstorage/localstorage/resources/iframe-events-second.html: Added.
            * storage/domstorage/localstorage/resources/window-open-second.html: Added.
            * storage/domstorage/localstorage/simple-events-expected.txt: Added.
            * storage/domstorage/localstorage/simple-events.html: Added.
            * storage/domstorage/localstorage/simple-usage-expected.txt: Added.
            * storage/domstorage/localstorage/simple-usage.html: Added.
            * storage/domstorage/localstorage/window-open-expected.txt: Added.
            * storage/domstorage/localstorage/window-open.html: Added.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31908 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    b61999d6