mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
5a966347fc
This patch implements the IO.read() method to allow reading streams for files and blobs. Therefor all the methods in the IO domain need a registry for streams. Those have to be stored globally because they need to be kept existent across different client connections. Differential Revision: https://phabricator.services.mozilla.com/D55968 --HG-- extra : moz-landing-system : lando
25 lines
961 B
JavaScript
25 lines
961 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";
|
|
|
|
var EXPORTED_SYMBOLS = ["ParentProcessDomains"];
|
|
|
|
const { XPCOMUtils } = ChromeUtils.import(
|
|
"resource://gre/modules/XPCOMUtils.jsm"
|
|
);
|
|
|
|
const ParentProcessDomains = {};
|
|
|
|
XPCOMUtils.defineLazyModuleGetters(ParentProcessDomains, {
|
|
Browser: "chrome://remote/content/domains/parent/Browser.jsm",
|
|
Emulation: "chrome://remote/content/domains/parent/Emulation.jsm",
|
|
Input: "chrome://remote/content/domains/parent/Input.jsm",
|
|
IO: "chrome://remote/content/domains/parent/IO.jsm",
|
|
Network: "chrome://remote/content/domains/parent/Network.jsm",
|
|
Page: "chrome://remote/content/domains/parent/Page.jsm",
|
|
Security: "chrome://remote/content/domains/parent/Security.jsm",
|
|
Target: "chrome://remote/content/domains/parent/Target.jsm",
|
|
});
|