Index: core/frame/WindowTimers.idl |
diff --git a/core/frame/WindowTimers.idl b/core/frame/WindowTimers.idl |
index 47f394fc249175fc435305994fd8e972a4f1f1ca..0840392f0fd1bac9cc20eb2b9a1d0b0aa14ec569 100644 |
--- a/core/frame/WindowTimers.idl |
+++ b/core/frame/WindowTimers.idl |
@@ -25,21 +25,21 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-// http://www.whatwg.org/specs/web-apps/current-work/multipage/timers.html#windowtimers |
+// https://html.spec.whatwg.org/#timers |
[ |
ImplementedAs=DOMWindowTimers, |
LegacyTreatAsPartialInterface, |
NoInterfaceObject, // Always used on target of 'implements' |
+ Exposed=(Window,Worker), |
] interface WindowTimers { |
- // FIXME: currently using [Custom] and |any| because overload algorithm |
- // can't handle Function/DOMString overload properly |
- // http://crbug.com/293561 |
// FIXME: would be clearer as a union type, like: |
// typedef (Function or DOMString) Handler |
// Needs spec update and better union support: http://crbug.com/240176 |
- [Custom] long setTimeout(any handler, [Default=Undefined] optional long timeout); |
- void clearTimeout([Default=Undefined] optional long handle); |
- [Custom] long setInterval(any handler, [Default=Undefined] optional long timeout); |
- void clearInterval([Default=Undefined] optional long handle); |
+ [CallWith=ScriptState] long setTimeout(Function handler, optional long timeout = 0, any... arguments); |
+ [CallWith=ScriptState] long setTimeout(DOMString handler, optional long timeout = 0, any... arguments); |
+ void clearTimeout(optional long handle = 0); |
+ [CallWith=ScriptState] long setInterval(Function handler, optional long timeout = 0, any... arguments); |
+ [CallWith=ScriptState] long setInterval(DOMString handler, optional long timeout = 0, any... arguments); |
+ void clearInterval(optional long handle = 0); |
}; |