Skip to content

Instantly share code, notes, and snippets.

class AppDownload {
WebExtension.DownloadItem mExtensionDownload;
// Cancels the download
GeckoResult<Void> cancel() {
// Actually cancel the download
// Notifies extension
DownloadItemUpdate update = mExtensionDownload.updateCanceled(true).commit();
DownloadItemUpdate.Builder b = new DownloadItem.Builder(mExtensionDownload, update);
@owlishDeveloper
owlishDeveloper / js-crypto-libraries.md
Created February 11, 2019 19:04 — forked from jo/js-crypto-libraries.md
List of JavaScript Crypto libraries.

JavaScript Crypto Libraries

I start with a list and plan to create a comparison table.

WebCryptoAPI

http://www.w3.org/TR/WebCryptoAPI/

This specification describes a JavaScript API for performing basic cryptographic operations in web applications, such as hashing, signature generation and verification, and encryption and decryption. Additionally, it describes an API for applications to generate and/or manage the keying material necessary to perform these operations. Uses for this API range from user or service authentication, document or code signing, and the confidentiality and integrity of communications.