Skip to content
  • jianli@chromium.org's avatar
    Fix bug 39285: fast/files/file-reader.html is timing out on all mac bots. · f739487c
    jianli@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=39135
    
    Reviewed by Dmitry Titov.
    
    WebCore:
    
    The timeout is caused by 59659 that changed the GC timer to 0 and thus
    triggered a bug in FileReader code. The fix is to add more states so
    that hasPendingActivity() can do the check correctly.
    
    * html/FileReader.cpp:
    (WebCore::FileReader::FileReader):
    (WebCore::FileReader::hasPendingActivity):
    (WebCore::FileReader::readInternal):
    (WebCore::FileReader::terminate):
    (WebCore::FileReader::didStart):
    (WebCore::FileReader::didGetSize):
    (WebCore::FileReader::didRead):
    (WebCore::FileReader::didFinish):
    (WebCore::FileReader::didFail):
    (WebCore::FileReader::readyState):
    (WebCore::FileReader::result):
    * html/FileReader.h:
    (WebCore::FileReader::):
    
    LayoutTests:
    
    Re-enale the file reader test.
    
    * fast/files/file-reader-expected.txt:
    * fast/files/file-reader.html:
    * platform/mac/Skipped:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59712 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    f739487c