зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1094968 - Skip tilt visibility for remote toolboxes. r=mratcliffe
--HG-- extra : transplant_source : %B9%D8%87%94%5B%AF%A1%E7%96%94B%28%E9%85w%3E%14I%F9%FF
This commit is contained in:
Родитель
627b62165e
Коммит
2ad98eea62
|
@ -761,6 +761,10 @@ Toolbox.prototype = {
|
||||||
let tiltEnabled = !this.target.isMultiProcess &&
|
let tiltEnabled = !this.target.isMultiProcess &&
|
||||||
Services.prefs.getBoolPref("devtools.command-button-tilt.enabled");
|
Services.prefs.getBoolPref("devtools.command-button-tilt.enabled");
|
||||||
let tiltButton = this.doc.getElementById("command-button-tilt");
|
let tiltButton = this.doc.getElementById("command-button-tilt");
|
||||||
|
// Remote toolboxes don't add the button to the DOM at all
|
||||||
|
if (!tiltButton) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (tiltEnabled) {
|
if (tiltEnabled) {
|
||||||
tiltButton.removeAttribute("hidden");
|
tiltButton.removeAttribute("hidden");
|
||||||
|
|
Загрузка…
Ссылка в новой задаче