Commit ac95b527 authored by adele@apple.com's avatar adele@apple.com

2008-05-10 Adele Peterson <adele@apple.com>

        Reviewed by Tim Hatcher.

        Fix crash for WebKit clients that don't set a group name for the WebView/Page.

        * page/PageGroup.cpp: (WebCore::PageGroup::PageGroup): Instead of adding the Page directly to the group,
          call the addPage method, since it does extra work initializing m_localStorage.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33029 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 1e8fbf70
2008-05-10 Adele Peterson <adele@apple.com>
Reviewed by Tim Hatcher.
Fix crash for WebKit clients that don't set a group name for the WebView/Page.
* page/PageGroup.cpp: (WebCore::PageGroup::PageGroup): Instead of adding the Page directly to the group,
call the addPage method, since it does extra work initializing m_localStorage.
2008-05-09 Sam Weinig <sam@webkit.org> 2008-05-09 Sam Weinig <sam@webkit.org>
Reviewed by Mark Rowe. Reviewed by Mark Rowe.
...@@ -60,7 +60,7 @@ PageGroup::PageGroup(Page* page) ...@@ -60,7 +60,7 @@ PageGroup::PageGroup(Page* page)
, m_identifier(getUniqueIdentifier()) , m_identifier(getUniqueIdentifier())
{ {
ASSERT(page); ASSERT(page);
m_pages.add(page); addPage(page);
} }
typedef HashMap<String, PageGroup*> PageGroupMap; typedef HashMap<String, PageGroup*> PageGroupMap;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment