зеркало из https://github.com/mozilla/gecko-dev.git
Bug 818424 - [toolbox] remove references to devtools.debugger.ui.height, r=rcampbell
This commit is contained in:
Родитель
557be94dd2
Коммит
9a72e8ff2a
|
@ -1035,7 +1035,6 @@ pref("devtools.debugger.remote-connection-retries", 3);
|
|||
pref("devtools.debugger.remote-timeout", 20000);
|
||||
|
||||
// The default Debugger UI settings
|
||||
pref("devtools.debugger.ui.height", 250);
|
||||
pref("devtools.debugger.ui.win-x", 0);
|
||||
pref("devtools.debugger.ui.win-y", 0);
|
||||
pref("devtools.debugger.ui.win-width", 900);
|
||||
|
|
|
@ -173,12 +173,6 @@ DebuggerUI.prototype = {
|
|||
return '_chromeDebugger' in this ? this._chromeDebugger : null;
|
||||
},
|
||||
|
||||
/**
|
||||
* Get the preferences associated with the debugger frontend.
|
||||
* @return object
|
||||
*/
|
||||
get preferences() Prefs,
|
||||
|
||||
/**
|
||||
* Currently, there can only be one debugger per tab.
|
||||
* Show an asynchronous notification which asks the user to switch the
|
||||
|
@ -279,7 +273,6 @@ DebuggerPane.prototype = {
|
|||
this._splitter.setAttribute("class", "devtools-horizontal-splitter");
|
||||
|
||||
this._frame = ownerDocument.createElement("iframe");
|
||||
this._frame.height = Prefs.height;
|
||||
|
||||
this._nbox = gBrowser.getNotificationBox(this._tab.linkedBrowser);
|
||||
this._nbox.appendChild(this._splitter);
|
||||
|
@ -326,7 +319,6 @@ DebuggerPane.prototype = {
|
|||
}, true)
|
||||
}
|
||||
|
||||
Prefs.height = this._frame.height;
|
||||
this._frame.removeEventListener("Debugger:Unloaded", this.close, true);
|
||||
this._nbox.removeChild(this._splitter);
|
||||
this._nbox.removeChild(this._frame);
|
||||
|
@ -599,21 +591,7 @@ XPCOMUtils.defineLazyGetter(L10N, "stringBundle", function() {
|
|||
/**
|
||||
* Shortcuts for accessing various debugger preferences.
|
||||
*/
|
||||
let Prefs = {
|
||||
/**
|
||||
* Gets the preferred height of the debugger pane.
|
||||
* @return number
|
||||
*/
|
||||
get height()
|
||||
Services.prefs.getIntPref("devtools.debugger.ui.height"),
|
||||
|
||||
/**
|
||||
* Sets the preferred height of the debugger pane.
|
||||
* @param number aValue
|
||||
*/
|
||||
set height(aValue)
|
||||
Services.prefs.setIntPref("devtools.debugger.ui.height", aValue)
|
||||
};
|
||||
let Prefs = {};
|
||||
|
||||
/**
|
||||
* Gets the preferred default remote debugging host.
|
||||
|
|
|
@ -1609,7 +1609,6 @@ let Prefs = {
|
|||
}
|
||||
};
|
||||
|
||||
Prefs.map("Int", "height", "devtools.debugger.ui.height");
|
||||
Prefs.map("Int", "windowX", "devtools.debugger.ui.win-x");
|
||||
Prefs.map("Int", "windowY", "devtools.debugger.ui.win-y");
|
||||
Prefs.map("Int", "windowWidth", "devtools.debugger.ui.win-width");
|
||||
|
|
Загрузка…
Ссылка в новой задаче