gecko-dev/tools/quitter/contentscript.js
Kris Maglione 0df1d1fa1e Bug 1451463: Make Quitter a WebExtension experiment. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D12478

--HG--
extra : rebase_source : 1a89085a191d3bdda5b49f178644e5766a9fb5c2
extra : amend_source : 0685f35163593b596d50c45567b5d64b68935f04
2018-04-03 17:19:26 -07:00

14 lines
411 B
JavaScript

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
/* eslint-env webextensions */
const Quitter = {
quit() { browser.runtime.sendMessage("quit"); },
};
window.wrappedJSObject.Quitter = cloneInto(Quitter, window, {cloneFunctions: true});