• Alex Danilo's avatar
    Stop quickview display on image decode fail · 03b3cd97
    Alex Danilo authored
    Quickview loads image previews by calling decode() on the <img> element
    after its 'src' attribute is set. When the image is finished decoding it
    should replace the previous decoded image.
    
    Changes decode() failures to send a message to the container that decode
    failed and in turn, set the contentURL to '' which in turn unloads the
    webview and displays the 'no preview available' icon.
    
    Bug: 645021
    Tests: browser_tests --gtest_filter="*QuickViewBrokenImage"
    Change-Id: Ie1d19f1a4f1014486eaaec9581007f25d4c7f165
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1992954
    Commit-Queue: Noel Gordon <noel@chromium.org>
    Reviewed-by: default avatarNoel Gordon <noel@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#730129}
    03b3cd97
broken.jpg 1 Byte