Changeset 247163 in webkit
- Timestamp:
- Jul 5, 2019 11:00:54 AM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r247162 r247163 1 2019-07-05 Ryan Haddad <ryanhaddad@apple.com> 2 3 Unreviewed, rolling out r247159. 4 5 IndexedDB layout tests are failing the new assert. 6 7 Reverted changeset: 8 9 "ASSERT that a sessionID is valid when encoding it" 10 https://bugs.webkit.org/show_bug.cgi?id=199302 11 https://trac.webkit.org/changeset/247159 12 1 13 2019-07-05 Ryan Haddad <ryanhaddad@apple.com> 2 14 -
trunk/Source/WebCore/Modules/indexeddb/IDBValue.h
r247159 r247163 51 51 const ThreadSafeDataBuffer& data() const { return m_data; } 52 52 const Vector<String>& blobURLs() const { return m_blobURLs; } 53 const PAL::SessionID& sessionID() const ;53 const PAL::SessionID& sessionID() const { return m_sessionID; } 54 54 const Vector<String>& blobFilePaths() const { return m_blobFilePaths; } 55 55 … … 60 60 ThreadSafeDataBuffer m_data; 61 61 Vector<String> m_blobURLs; 62 mutable Optional<PAL::SessionID>m_sessionID;62 PAL::SessionID m_sessionID; 63 63 Vector<String> m_blobFilePaths; 64 64 }; 65 65 66 inline const PAL::SessionID& IDBValue::sessionID() const67 {68 // FIXME: We should assert m_sessionID is valid or remove m_sessionID.69 if (!m_sessionID)70 m_sessionID = PAL::SessionID { };71 return *m_sessionID;72 }73 66 74 67 template<class Encoder> -
trunk/Source/WebCore/Modules/indexeddb/shared/IDBRequestData.cpp
r247159 r247163 99 99 destination.m_requestType = source.m_requestType; 100 100 101 if (source.m_databaseIdentifier) 102 destination.m_databaseIdentifier = source.m_databaseIdentifier->isolatedCopy(); 101 destination.m_databaseIdentifier = source.m_databaseIdentifier.isolatedCopy(); 103 102 104 103 if (source.m_requestIdentifier) -
trunk/Source/WebCore/Modules/indexeddb/shared/IDBRequestData.h
r247159 r247163 66 66 IDBResourceIdentifier cursorIdentifier() const; 67 67 68 const IDBDatabaseIdentifier& databaseIdentifier() const ;68 const IDBDatabaseIdentifier& databaseIdentifier() const { return m_databaseIdentifier; } 69 69 uint64_t requestedVersion() const; 70 70 … … 90 90 IndexedDB::IndexRecordType m_indexRecordType; 91 91 92 mutable Optional<IDBDatabaseIdentifier>m_databaseIdentifier;92 IDBDatabaseIdentifier m_databaseIdentifier; 93 93 uint64_t m_requestedVersion { 0 }; 94 94 95 95 IndexedDB::RequestType m_requestType { IndexedDB::RequestType::Other }; 96 96 }; 97 98 inline const IDBDatabaseIdentifier& IDBRequestData::databaseIdentifier() const99 {100 ASSERT(m_databaseIdentifier);101 if (!m_databaseIdentifier)102 m_databaseIdentifier = IDBDatabaseIdentifier { };103 return *m_databaseIdentifier;104 }105 97 106 98 template<class Encoder> … … 137 129 return false; 138 130 139 Optional< Optional<IDBDatabaseIdentifier>> databaseIdentifier;131 Optional<IDBDatabaseIdentifier> databaseIdentifier; 140 132 decoder >> databaseIdentifier; 141 133 if (!databaseIdentifier) -
trunk/Source/WebCore/PAL/ChangeLog
r247159 r247163 1 2019-07-05 Ryan Haddad <ryanhaddad@apple.com> 2 3 Unreviewed, rolling out r247159. 4 5 IndexedDB layout tests are failing the new assert. 6 7 Reverted changeset: 8 9 "ASSERT that a sessionID is valid when encoding it" 10 https://bugs.webkit.org/show_bug.cgi?id=199302 11 https://trac.webkit.org/changeset/247159 12 1 13 2019-07-05 Youenn Fablet <youenn@apple.com> 2 14 -
trunk/Source/WebCore/PAL/pal/SessionID.h
r247159 r247163 81 81 void SessionID::encode(Encoder& encoder) const 82 82 { 83 ASSERT(isValid());83 // FIXME: Eliminate places that encode invalid SessionIDs, then ASSERT here that the sessionID is valid. 84 84 encoder << m_sessionID; 85 85 } … … 105 105 return WTF::nullopt; 106 106 107 // FIXME: We should fail to decode an invalid sessionID. 108 ASSERT(SessionID { *sessionID }.isValid()); 107 // FIXME: Eliminate places that encode invalid SessionIDs, then fail to decode an invalid sessionID. 109 108 return SessionID { *sessionID }; 110 109 }
Note: See TracChangeset
for help on using the changeset viewer.