Skip to content

Instantly share code, notes, and snippets.

@wellington1993
wellington1993 / Error.jsm
Created February 14, 2020 22:53
chrome://remote/content/Error.jsm
/* 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";
var EXPORTED_SYMBOLS = [
"FatalError",
"RemoteAgentError",
"UnknownMethodError",
@wellington1993
wellington1993 / Error.jsm
Created February 14, 2020 22:55
chrome://remote/content/Error.jsm
/* 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";
var EXPORTED_SYMBOLS = [
"FatalError",
"RemoteAgentError",
"UnknownMethodError",
@wellington1993
wellington1993 / Log.jsm
Created February 14, 2020 22:54
chrome://remote/content/Log.jsm
/* 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";
var EXPORTED_SYMBOLS = ["Log"];
const { Log: StdLog } = ChromeUtils.import("resource://gre/modules/Log.jsm");
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
@wellington1993
wellington1993 / RecommendedPreferences.jsm
Created February 14, 2020 22:54
chrome://remote/content/RecommendedPreferences.jsm
/* 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";
var EXPORTED_SYMBOLS = ["RecommendedPreferences"];
const RecommendedPreferences = {
// Allow the application to have focus even when it runs in the background.
@wellington1993
wellington1993 / Protocol.jsm
Created February 14, 2020 22:54
chrome://remote/content/Protocol.jsm
/* 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";
var EXPORTED_SYMBOLS = ["Protocol"];
// The `Description` below is imported from Chromium Code.
@wellington1993
wellington1993 / AutoScrollChild.jsm
Created February 15, 2020 00:17
resource://gre/actors/AutoScrollChild.jsm
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* 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/. */
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
var EXPORTED_SYMBOLS = ["AutoScrollChild"];
class AutoScrollChild extends JSWindowActorChild {
@wellington1993
wellington1993 / AutoCompleteParent.jsm
Created February 15, 2020 00:17
resource://gre/actors/AutoCompleteParent.jsm
/* vim: set ts=2 sw=2 sts=2 et tw=80: */
/* 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";
/**
* This module handles 2 types of JavaScript-implemented actors.
* The first is implementations of JSWindowActor, registered through DOM IPC
* infrastructure, and are fission-compatible.
@wellington1993
wellington1993 / AudioPlaybackChild.jsm
Created February 15, 2020 00:16
resource://gre/actors/AudioPlaybackChild.jsm
/* vim: set ts=2 sw=2 sts=2 et tw=80: */
/* 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";
/**
* This module handles 2 types of JavaScript-implemented actors.
* The first is implementations of JSWindowActor, registered through DOM IPC
* infrastructure, and are fission-compatible.
@wellington1993
wellington1993 / AudioPlaybackParent.jsm
Created February 15, 2020 00:16
resource://gre/actors/AudioPlaybackParent.jsm
/* vim: set ts=2 sw=2 sts=2 et tw=80: */
/* 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";
var EXPORTED_SYMBOLS = ["AudioPlaybackParent"];
class AudioPlaybackParent extends JSWindowActorParent {
receiveMessage(aMessage) {
@wellington1993
wellington1993 / ActorManagerParent.jsm
Created February 15, 2020 00:15
resource://gre/modules/ActorManagerParent.jsm
/* vim: set ts=2 sw=2 sts=2 et tw=80: */
/* 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";
/**
* This module handles 2 types of JavaScript-implemented actors.
* The first is implementations of JSWindowActor, registered through DOM IPC
* infrastructure, and are fission-compatible.