1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
// https://html.spec.whatwg.org/multipage/interaction.html#closewatcher
[
ActiveDOMObject,
Exposed=Window,
EnabledBySetting=CloseWatcherEnabled,
] interface CloseWatcher : EventTarget {
[CallWith=CurrentScriptExecutionContext, RaisesException] constructor(optional CloseWatcherOptions options = {});
undefined requestClose();
undefined close();
undefined destroy();
attribute EventHandler oncancel;
attribute EventHandler onclose;
};
dictionary CloseWatcherOptions {
AbortSignal signal;
};
|