Changeset 224900 in webkit


Ignore:
Timestamp:
Nov 15, 2017 2:07:10 PM (6 years ago)
Author:
achristensen@apple.com
Message:

Revert r224885
https://bugs.webkit.org/show_bug.cgi?id=179719

  • UIProcess/API/APIContentRuleListStore.cpp:

(API::compiledToFile):
r224885 was a speculative fix that did not fix anything on the bots.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r224890 r224900  
     12017-11-15  Alex Christensen  <achristensen@webkit.org>
     2
     3        Revert r224885
     4        https://bugs.webkit.org/show_bug.cgi?id=179719
     5
     6        * UIProcess/API/APIContentRuleListStore.cpp:
     7        (API::compiledToFile):
     8        r224885 was a speculative fix that did not fix anything on the bots.
     9
    1102017-11-15  Brent Fulgham  <bfulgham@apple.com>
    211
  • trunk/Source/WebKit/UIProcess/API/APIContentRuleListStore.cpp

    r224885 r224900  
    351351    }
    352352
    353     if (!moveFile(temporaryFilePath, finalFilePath)) {
    354         WTFLogAlways("Content Rule List compiling failed: Moving file failed.");
    355         return ContentRuleListStore::Error::CompileFailed;
    356     }
    357 
    358353    mappedData = adoptAndMapFile(temporaryFileHandle, 0, metaData.fileSize());
    359354    if (mappedData.isNull()) {
    360355        WTFLogAlways("Content Rule List compiling failed: Mapping file failed.");
    361         deleteFile(finalFilePath);
     356        return ContentRuleListStore::Error::CompileFailed;
     357    }
     358
     359    if (!moveFile(temporaryFilePath, finalFilePath)) {
     360        WTFLogAlways("Content Rule List compiling failed: Moving file failed.");
    362361        return ContentRuleListStore::Error::CompileFailed;
    363362    }
Note: See TracChangeset for help on using the changeset viewer.