Skip to content

Commit

Permalink
Set abort event isTrusted to true
Browse files Browse the repository at this point in the history
  • Loading branch information
Zirro authored and domenic committed Apr 1, 2018
1 parent c91440a commit d80648f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/jsdom/living/aborting/AbortSignal-impl.js
Expand Up @@ -26,7 +26,14 @@ class AbortSignalImpl extends EventTargetImpl {
algorithm();
}
this.abortAlgorithms.clear();
this._dispatch(Event.createImpl(["abort"]), false);

this._dispatch(Event.createImpl(
[
"abort",
{ bubbles: false, cancelable: false }
],
{ isTrusted: true }
));
}

_addAlgorithm(algorithm) {
Expand Down

0 comments on commit d80648f

Please sign in to comment.