Changeset 273144 in webkit
- Timestamp:
- Feb 19, 2021 9:55:36 AM (3 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r273143 r273144 1 2021-02-19 Kate Cheney <katherine_cheney@apple.com> 2 3 Add better error handling to ResourceLoadStatisticsDatabaseStore::needsUpdatedPrivateClickMeasurementSchema() 4 https://bugs.webkit.org/show_bug.cgi?id=222169 5 <rdar://problem/74522283> 6 7 Reviewed by Darin Adler. 8 9 Add better error handling for the case where the query to find the 10 UnattributedPrivateClickMeasurement table fails. This is unlikely to 11 happen in practice, however, if it does, we should add logging and 12 a debug ASSERT. 13 14 * NetworkProcess/Classifier/ResourceLoadStatisticsDatabaseStore.cpp: 15 (WebKit::ResourceLoadStatisticsDatabaseStore::needsUpdatedPrivateClickMeasurementSchema): 16 1 17 2021-02-19 Devin Rousso <drousso@apple.com> 2 18 -
trunk/Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsDatabaseStore.cpp
r273134 r273144 436 436 SQLiteStatement statement(m_database, "SELECT type, sql FROM sqlite_master WHERE tbl_name='UnattributedPrivateClickMeasurement' AND type = 'table'"); 437 437 if (statement.prepare() != SQLITE_OK) { 438 LOG_ERROR("Unable to prepare statement to fetch schema for the UnattributedPrivateClickMeasurement table."); 439 ASSERT_NOT_REACHED(); 440 return false; 441 } 442 443 if (statement.step() == SQLITE_ROW) 444 currentSchema = statement.getColumnText(1); 438 RELEASE_LOG_ERROR(Network, "%p - ResourceLoadStatisticsDatabaseStore::needsUpdatedPrivateClickMeasurementSchema Unable to prepare statement to fetch schema for the UnattributedPrivateClickMeasurement table, error message: %{private}s", this, m_database.lastErrorMsg()); 439 ASSERT_NOT_REACHED(); 440 return false; 441 } 442 443 if (statement.step() != SQLITE_ROW) { 444 RELEASE_LOG_ERROR(Network, "%p - ResourceLoadStatisticsDatabaseStore::needsUpdatedPrivateClickMeasurementSchema error executing statement to fetch UnattributedPrivateClickMeasurement schema, error message: %{private}s", this, m_database.lastErrorMsg()); 445 ASSERT_NOT_REACHED(); 446 return false; 447 } 448 449 currentSchema = statement.getColumnText(1); 445 450 446 451 if (!currentSchema.isEmpty()
Note: See TracChangeset
for help on using the changeset viewer.