summaryrefslogtreecommitdiff
path: root/op_crates/web/01_event.js
diff options
context:
space:
mode:
authorLuca Casonato <lucacasonato@yahoo.com>2021-01-05 22:43:25 +0100
committerGitHub <noreply@github.com>2021-01-05 22:43:25 +0100
commit77048390392a30640ab1fb386a3a4a33094dac5e (patch)
treedc441903d0987b269d33a7bee2b4a8a268627ab4 /op_crates/web/01_event.js
parent096e0905769e7cd9ae3019e4bf511407ed6bff9b (diff)
fix: align AbortSignal to spec using WPT (#9007)
Diffstat (limited to 'op_crates/web/01_event.js')
-rw-r--r--op_crates/web/01_event.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/op_crates/web/01_event.js b/op_crates/web/01_event.js
index 35b269ea4..fb80ea4a6 100644
--- a/op_crates/web/01_event.js
+++ b/op_crates/web/01_event.js
@@ -42,6 +42,13 @@
event.currentTarget = value;
}
+ function setIsTrusted(event, value) {
+ const data = eventData.get(event);
+ if (data) {
+ data.isTrusted = value;
+ }
+ }
+
function setDispatched(event, value) {
const data = eventData.get(event);
if (data) {
@@ -1185,4 +1192,7 @@
window.__bootstrap.eventTarget = {
setEventTargetData,
};
+ window.__bootstrap.event = {
+ setIsTrusted,
+ };
})(this);