Changeset 33029 in webkit


Ignore:
Timestamp:
May 10, 2008 3:01:34 PM (16 years ago)
Author:
adele@apple.com
Message:

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.
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r33023 r33029  
     12008-05-10  Adele Peterson  <adele@apple.com>
     2
     3        Reviewed by Tim Hatcher.
     4
     5        Fix crash for WebKit clients that don't set a group name for the WebView/Page.
     6
     7        * page/PageGroup.cpp: (WebCore::PageGroup::PageGroup): Instead of adding the Page directly to the group,
     8          call the addPage method, since it does extra work initializing m_localStorage.
     9
    1102008-05-09  Sam Weinig  <sam@webkit.org>
    211
  • trunk/WebCore/page/PageGroup.cpp

    r32948 r33029  
    6161{
    6262    ASSERT(page);
    63     m_pages.add(page);
     63    addPage(page);
    6464}
    6565
Note: See TracChangeset for help on using the changeset viewer.