bug 1523104: remote: remove unused informative remote.httpd.* preferences; r=ato

This commit is contained in:
Alexandre Poirot 2019-03-04 09:54:51 -08:00 коммит произвёл Andreas Tolfsen
Родитель 636c17a22e
Коммит f1759b3885
2 изменённых файлов: 0 добавлений и 33 удалений

Просмотреть файл

@ -25,10 +25,6 @@ XPCOMUtils.defineLazyGetter(this, "log", Log.get);
const ENABLED = "remote.enabled"; const ENABLED = "remote.enabled";
const FORCE_LOCAL = "remote.force-local"; const FORCE_LOCAL = "remote.force-local";
const HTTPD = "remote.httpd";
const SCHEME = `${HTTPD}.scheme`;
const HOST = `${HTTPD}.host`;
const PORT = `${HTTPD}.port`;
const DEFAULT_HOST = "localhost"; const DEFAULT_HOST = "localhost";
const DEFAULT_PORT = 9222; const DEFAULT_PORT = 9222;
@ -85,9 +81,6 @@ class ParentRemoteAgent {
} }
Preferences.set(RecommendedPreferences); Preferences.set(RecommendedPreferences);
Preferences.set(SCHEME, this.scheme);
Preferences.set(HOST, this.host);
Preferences.set(PORT, this.port);
} }
async close() { async close() {
@ -95,7 +88,6 @@ class ParentRemoteAgent {
try { try {
await this.server.stop(); await this.server.stop();
Preferences.resetBranch(HTTPD);
Preferences.reset(Object.keys(RecommendedPreferences)); Preferences.reset(Object.keys(RecommendedPreferences));
this.tabs.stop(); this.tabs.stop();

Просмотреть файл

@ -24,28 +24,3 @@ Defines the verbosity of the internal logger. Available levels
are, in descending order of severity, `Trace`, `Debug`, `Config`, are, in descending order of severity, `Trace`, `Debug`, `Config`,
`Info`, `Warn`, `Error`, and `Fatal`. Note that the value is `Info`, `Warn`, `Error`, and `Fatal`. Note that the value is
treated case-sensitively. treated case-sensitively.
Informative preferences
-----------------------
The following preferences are set when the remote agent starts the
HTTPD frontend:
### `remote.httpd.scheme`
Scheme the server is listening on, e.g. `httpd`.
### `remote.httpd.host`
Hostname the server is bound to.
### `remote.httpd.port`
The port bound by the server. When starting Firefox with
`--remote-debugger` you can ask the remote agent to listen on port
0 to have the system atomically allocate a free port. You can then
later check this preference to find out on what port it is listening:
./firefox --remote-debugger :0
1548002326113 RemoteAgent INFO Remote debugging agent listening on http://localhost:16738/