• abarth@webkit.org's avatar
    2009-06-13 Ben Murdoch <benm@google.com> · ea665a21
    abarth@webkit.org authored
            Reviewed by David Kilzer.  Landed by Adam Barth.
            This patch changes the way PageGroups create their localStorage
            objects. Rather than creating a local storage object for the page group
            when a page is added to the group, the local storage object is now
            created lazily when the local storage object is requested by the
            * page/PageGroup.cpp:
            (WebCore::PageGroup::closeLocalStorage): Before attempting to close a local storage object for a page group, ensure one has been created.
            (WebCore::PageGroup::addPage): Do not automatically try to create a local storage object when a page is added to the group.
            (WebCore::PageGroup::localStorage): Create a local storage object if one does not exist and return it.
            * page/PageGroup.h: Add private hasLocalStorage method to PageGroup.
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@44663 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ChangeLog 3.89 MB
The source could not be displayed because it is larger than 1 MB. You can load it anyway or download it instead.