-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Per the spec, calling clearInterval
in the interval's callback has no effect
#7356
Comments
andreubotella
pushed a commit
to web-platform-tests/wpt
that referenced
this issue
Nov 22, 2021
andreubotella
pushed a commit
to web-platform-tests/wpt
that referenced
this issue
Nov 23, 2021
domenic
added a commit
that referenced
this issue
Nov 23, 2021
3 tasks
annevk
pushed a commit
that referenced
this issue
Nov 24, 2021
moz-v2v-gh
pushed a commit
to mozilla/gecko-dev
that referenced
this issue
Nov 30, 2021
…he interval's callback, a=testonly Automatic update from web-platform-tests Test that `clearInterval` works inside the interval's callback (#31698) Ref: whatwg/html#7356 -- wpt-commits: 2948653c47c2d84d14fbac0706d2b86ada41323a wpt-pr: 31698
jamienicol
pushed a commit
to jamienicol/gecko
that referenced
this issue
Nov 30, 2021
…he interval's callback, a=testonly Automatic update from web-platform-tests Test that `clearInterval` works inside the interval's callback (#31698) Ref: whatwg/html#7356 -- wpt-commits: 2948653c47c2d84d14fbac0706d2b86ada41323a wpt-pr: 31698
mfreed7
pushed a commit
to mfreed7/html
that referenced
this issue
Jun 3, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In every browser, clearing an interval in that very interval's callback correctly cancels it, but the spec has a bug that makes that not work:
repeat
flag is true, the timer initialization steps run again (timer initialization steps 6.3). This happens whether or nothandle
has been removed from the map of active timers since step 6.1.handle
to the map of active timers.Step 6.3 should check whether
handle
is in the map of active timers, as 6.1 does, before running the timer initialization steps again.The text was updated successfully, but these errors were encountered: