WebKit2.Download.prototype.cancel
function cancel(): void {
// Gjs wrapper for webkit_download_cancel()
}
Cancels the download. When the ongoing download operation is effectively cancelled the signal WebKit2.Download::failed is emitted with WebKit2.DownloadError.cancelled_by_user error.