• Andreas Haas's avatar
    [wasm][streaming] Do not reject promise upon abort without reason · 56fe2437
    Andreas Haas authored
    This is the V8 side change of crrev.com/c/876103.
    
    Message:
    It can happen that WebAssembly.compileStreaming gets aborted when we
    are not allowed to execute JavaScript code, and therefore are also not
    allowed to reject the promise returned by WebAssembly.compileStreaming.
    This can happen e.g. when the Chrome tab gets refreshed, which aborts
    all downloads.
    
    With this CL we do not pass a reason to Abort if we are not allowed to
    execute JavaScript code. On the V8 side we can check the reason passed
    to Abort and do not reject the promise if there is no reason passed.
    
    CC=mtrofin@chromium.org
    R=titzer@chromium.org
    
    Bug: chromium:803838
    Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng
    Change-Id: Ie5cc85c72b60383e9221318c18a4e1812d230692
    Reviewed-on: https://chromium-review.googlesource.com/876091Reviewed-by: 's avatarBen Titzer <titzer@chromium.org>
    Commit-Queue: Andreas Haas <ahaas@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#50749}
    56fe2437
api.cc 389 KB