Changeset 91943 in webkit
- Timestamp:
- Jul 28, 2011, 12:27:11 PM (14 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r91936 r91943 1 2011-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 1 19 2011-07-28 David Kilzer <ddkilzer@apple.com> 2 20 -
trunk/Source/WebCore/storage/StorageTracker.cpp
r91931 r91943 58 58 59 59 storageTracker->m_client = client; 60 storageTracker->m_needsInitialization = true; 60 61 } 61 62 … … 73 74 storageTracker->importOriginIdentifiers(); 74 75 75 m_ isInitialized = true;76 m_needsInitialization = false; 76 77 } 77 78 … … 80 81 if (!storageTracker) 81 82 storageTracker = new StorageTracker(""); 82 if ( !storageTracker->m_isInitialized)83 if (storageTracker->m_needsInitialization) 83 84 storageTracker->internalInitialize(); 84 85 … … 91 92 , m_thread(LocalStorageThread::create()) 92 93 , m_isActive(false) 93 , m_ isInitialized(false)94 , m_needsInitialization(false) 94 95 { 95 96 } -
trunk/Source/WebCore/storage/StorageTracker.h
r91931 r91943 113 113 114 114 bool m_isActive; 115 bool m_ isInitialized;115 bool m_needsInitialization; 116 116 }; 117 117
Note:
See TracChangeset
for help on using the changeset viewer.