зеркало из https://github.com/mozilla/gecko-dev.git
Bug 900500 - Add pref to bypass devtool's prompt on remote connection. r=robcee, r=mgoodwin
This commit is contained in:
Родитель
0006d15061
Коммит
ca9b0fb21c
|
@ -453,7 +453,8 @@ pref("devtools.debugger.remote-enabled", false);
|
|||
pref("devtools.debugger.remote-port", 6000);
|
||||
// Force debugger server binding on the loopback interface
|
||||
pref("devtools.debugger.force-local", true);
|
||||
|
||||
// Display a prompt when a new connection starts to accept/reject it
|
||||
pref("devtools.debugger.prompt-connection", true);
|
||||
// Temporary setting to enable webapps actors
|
||||
pref("devtools.debugger.enable-content-actors", false);
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@ const DBG_STRINGS_URI = "chrome://global/locale/devtools/debugger.properties";
|
|||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
let wantLogging = Services.prefs.getBoolPref("devtools.debugger.log");
|
||||
const promptConnections = Services.prefs.getBoolPref("devtools.debugger.prompt-connection");
|
||||
|
||||
Cu.import("resource://gre/modules/jsdebugger.jsm");
|
||||
addDebuggerToGlobal(this);
|
||||
|
@ -443,7 +444,7 @@ var DebuggerServer = {
|
|||
|
||||
onSocketAccepted:
|
||||
makeInfallible(function DS_onSocketAccepted(aSocket, aTransport) {
|
||||
if (!this._allowConnection()) {
|
||||
if (promptConnections && !this._allowConnection()) {
|
||||
return;
|
||||
}
|
||||
dumpn("New debugging connection on " + aTransport.host + ":" + aTransport.port);
|
||||
|
|
Загрузка…
Ссылка в новой задаче