mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-24 09:27:31 +09:00
Issue #2676 - Implement AbortSignal.timeout()
This is a stub implementation because of the considerable abuse risk and bad web code risk causing DoS, e.g. when using bad timeout values and callbacks on the AbortSignal (e.g. recursive). Considering the abort-ability of these signals otherwise there is never a guarantee to websites that these signals will be triggered anyway, so it should be considered an optional signal - meaning we can safely just ignore the timeout, which allows us to avoid a ton of complexity and potential sec/privacy issues. Primary use in the wild seems to be detailed profiling/ad metrics anyway; we don't really want to encourage that!
This commit is contained in:
parent
9fa4b6fd5d
commit
14c84e22a9
3 changed files with 15 additions and 0 deletions
|
|
@ -8,6 +8,8 @@
|
|||
Func="AbortController::IsEnabled"]
|
||||
interface AbortSignal : EventTarget {
|
||||
[NewObject] static AbortSignal abort();
|
||||
[NewObject] static AbortSignal timeout(unsigned long long milliseconds);
|
||||
|
||||
readonly attribute boolean aborted;
|
||||
|
||||
attribute EventHandler onabort;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue