Changeset 224790 in webkit
- Timestamp:
- Nov 13, 2017 3:25:00 PM (6 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r224789 r224790 1 2017-11-13 Alex Christensen <achristensen@webkit.org> 2 3 Add logs to debug content extension test failures 4 https://bugs.webkit.org/show_bug.cgi?id=179624 5 6 Reviewed by Chris Dumez. 7 8 * UIProcess/API/APIContentRuleListStore.cpp: 9 (API::compiledToFile): 10 Right now I'm seeing this log: 11 "Rule list compilation failed: Unspecified error during compile." 12 I need more information to debug what is failing on the bots. 13 1 14 2017-11-07 Brian Burg <bburg@apple.com> 2 15 -
trunk/Source/WebKit/UIProcess/API/APIContentRuleListStore.cpp
r224635 r224790 324 324 auto temporaryFileHandle = invalidPlatformFileHandle; 325 325 String temporaryFilePath = openTemporaryFile("ContentRuleList", temporaryFileHandle); 326 if (temporaryFileHandle == invalidPlatformFileHandle) 326 if (temporaryFileHandle == invalidPlatformFileHandle) { 327 WTFLogAlways("Content Rule List compiling failed: Opening temporary file failed."); 327 328 return ContentRuleListStore::Error::CompileFailed; 329 } 328 330 329 331 char invalidHeader[ContentRuleListFileHeaderSize]; … … 331 333 // This header will be rewritten in CompilationClient::finalize. 332 334 if (writeToFile(temporaryFileHandle, invalidHeader, sizeof(invalidHeader)) == -1) { 335 WTFLogAlways("Content Rule List compiling failed: Writing header to file failed."); 333 336 closeFile(temporaryFileHandle); 334 337 return ContentRuleListStore::Error::CompileFailed; … … 338 341 339 342 if (auto compilerError = compileRuleList(compilationClient, WTFMove(json))) { 343 WTFLogAlways("Content Rule List compiling failed: Compiling failed."); 340 344 closeFile(temporaryFileHandle); 341 345 return compilerError; 342 346 } 343 347 if (compilationClient.hadErrorWhileWritingToFile()) { 348 WTFLogAlways("Content Rule List compiling failed: Writing to file failed."); 344 349 closeFile(temporaryFileHandle); 345 350 return ContentRuleListStore::Error::CompileFailed; … … 347 352 348 353 mappedData = adoptAndMapFile(temporaryFileHandle, 0, metaData.fileSize()); 349 if (mappedData.isNull()) 354 if (mappedData.isNull()) { 355 WTFLogAlways("Content Rule List compiling failed: Mapping file failed."); 350 356 return ContentRuleListStore::Error::CompileFailed; 351 352 if (!moveFile(temporaryFilePath, finalFilePath)) 357 } 358 359 if (!moveFile(temporaryFilePath, finalFilePath)) { 360 WTFLogAlways("Content Rule List compiling failed: Moving file failed."); 353 361 return ContentRuleListStore::Error::CompileFailed; 362 } 354 363 355 364 return { };
Note: See TracChangeset
for help on using the changeset viewer.