Skip to content

Truly independent web browser

448 B
Raw Blame
// https://html.spec.whatwg.org/multipage/interaction.html#closewatcher
[Exposed=Window]
interface CloseWatcher : EventTarget {
    constructor(optional CloseWatcherOptions options = {});

    [ImplementedAs=request_close_for_bindings] undefined requestClose();
    undefined close();
    undefined destroy();

    attribute EventHandler oncancel;
    attribute EventHandler onclose;
};

dictionary CloseWatcherOptions {
    AbortSignal signal;
};