Changeset 91943 in webkit


Ignore:
Timestamp:
Jul 28, 2011, 12:27:11 PM (14 years ago)
Author:
beidson@apple.com
Message:

https://bugs.webkit.org/show_bug.cgi?id=65323
r91931 causes NOTREACHED to be hit via StorageTracker

Change the meaning of the "has been initialized" flag to "needs initialization", and only set it to true
if the ::initializeTracker() method has been called.

Reviewed by Sam Weinig.

  • storage/StorageTracker.cpp:

(WebCore::StorageTracker::initializeTracker): Set m_needsInitialization to true since the calling WebKit port expects full

initialization instead of a dummy tracker.

(WebCore::StorageTracker::internalInitialize):
(WebCore::StorageTracker::tracker): Only initialize the tracker if it was created in the above initializeTracker().
(WebCore::StorageTracker::StorageTracker):

  • storage/StorageTracker.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r91936 r91943  
     12011-07-28  Brady Eidson  <beidson@apple.com>
     2
     3        https://bugs.webkit.org/show_bug.cgi?id=65323
     4        r91931 causes NOTREACHED to be hit via StorageTracker
     5
     6        Change the meaning of the "has been initialized" flag to "needs initialization", and only set it to true
     7        if the ::initializeTracker() method has been called.
     8
     9        Reviewed by Sam Weinig.
     10
     11        * storage/StorageTracker.cpp:
     12        (WebCore::StorageTracker::initializeTracker): Set m_needsInitialization to true since the calling WebKit port expects full
     13          initialization instead of a dummy tracker.
     14        (WebCore::StorageTracker::internalInitialize):
     15        (WebCore::StorageTracker::tracker): Only initialize the tracker if it was created in the above initializeTracker().
     16        (WebCore::StorageTracker::StorageTracker):
     17        * storage/StorageTracker.h:
     18
    1192011-07-28  David Kilzer  <ddkilzer@apple.com>
    220
  • trunk/Source/WebCore/storage/StorageTracker.cpp

    r91931 r91943  
    5858   
    5959    storageTracker->m_client = client;
     60    storageTracker->m_needsInitialization = true;
    6061}
    6162
     
    7374    storageTracker->importOriginIdentifiers();
    7475   
    75     m_isInitialized = true;
     76    m_needsInitialization = false;
    7677}
    7778
     
    8081    if (!storageTracker)
    8182        storageTracker = new StorageTracker("");
    82     if (!storageTracker->m_isInitialized)
     83    if (storageTracker->m_needsInitialization)
    8384        storageTracker->internalInitialize();
    8485   
     
    9192    , m_thread(LocalStorageThread::create())
    9293    , m_isActive(false)
    93     , m_isInitialized(false)
     94    , m_needsInitialization(false)
    9495{
    9596}
  • trunk/Source/WebCore/storage/StorageTracker.h

    r91931 r91943  
    113113   
    114114    bool m_isActive;
    115     bool m_isInitialized;
     115    bool m_needsInitialization;
    116116};
    117117   
Note: See TracChangeset for help on using the changeset viewer.