diff --git a/lib/util/abortable_operation.js b/lib/util/abortable_operation.js index 37fe63d0b0..4013d509f5 100644 --- a/lib/util/abortable_operation.js +++ b/lib/util/abortable_operation.js @@ -166,6 +166,9 @@ shaka.util.AbortableOperation = class { */ chain(onSuccess, onError) { const newPromise = new shaka.util.PublicPromise(); + // Silence uncaught rejection errors, which may otherwise occur any place + // we don't explicitly handle aborted operations. + newPromise.catch(() => {}); const abortError = shaka.util.AbortableOperation.abortError(); // If called before "this" completes, just abort "this".