Bug 816440 - Watch expression evaluations should not display the configurable/enumerable/writable tooltip, r=past
This commit is contained in:
@@ -637,6 +637,7 @@ StackFrames.prototype = {
|
|||||||
let arrow = L10N.getStr("watchExpressionsSeparatorLabel");
|
let arrow = L10N.getStr("watchExpressionsSeparatorLabel");
|
||||||
let scope = DebuggerView.Variables.addScope(label);
|
let scope = DebuggerView.Variables.addScope(label);
|
||||||
scope.separator = arrow;
|
scope.separator = arrow;
|
||||||
|
scope.showDescriptorTooltip = false;
|
||||||
scope.allowNameInput = true;
|
scope.allowNameInput = true;
|
||||||
scope.allowDeletion = true;
|
scope.allowDeletion = true;
|
||||||
scope.contextMenu = "debuggerWatchExpressionsContextMenu";
|
scope.contextMenu = "debuggerWatchExpressionsContextMenu";
|
||||||
|
|||||||
@@ -660,6 +660,13 @@ Scope.prototype = {
|
|||||||
*/
|
*/
|
||||||
set twisty(aFlag) aFlag ? this.showArrow() : this.hideArrow(),
|
set twisty(aFlag) aFlag ? this.showArrow() : this.hideArrow(),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Specifies if the configurable/enumerable/writable tooltip should be shown
|
||||||
|
* whenever a variable or property descriptor is available.
|
||||||
|
* This flag applies non-recursively to the current scope.
|
||||||
|
*/
|
||||||
|
showDescriptorTooltip: true,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specifies if editing variable or property names is allowed.
|
* Specifies if editing variable or property names is allowed.
|
||||||
* This flag applies non-recursively to the current scope.
|
* This flag applies non-recursively to the current scope.
|
||||||
@@ -1256,6 +1263,7 @@ create({ constructor: Variable, proto: Scope.prototype }, {
|
|||||||
this._target.removeEventListener("mouseover", this._displayTooltip, false);
|
this._target.removeEventListener("mouseover", this._displayTooltip, false);
|
||||||
let document = this.document;
|
let document = this.document;
|
||||||
|
|
||||||
|
if (this.ownerView.showDescriptorTooltip) {
|
||||||
let tooltip = document.createElement("tooltip");
|
let tooltip = document.createElement("tooltip");
|
||||||
tooltip.id = "tooltip-" + this.id;
|
tooltip.id = "tooltip-" + this.id;
|
||||||
|
|
||||||
@@ -1275,7 +1283,7 @@ create({ constructor: Variable, proto: Scope.prototype }, {
|
|||||||
|
|
||||||
this._target.appendChild(tooltip);
|
this._target.appendChild(tooltip);
|
||||||
this._target.setAttribute("tooltip", tooltip.id);
|
this._target.setAttribute("tooltip", tooltip.id);
|
||||||
|
}
|
||||||
if (this.ownerView.allowNameInput) {
|
if (this.ownerView.allowNameInput) {
|
||||||
this._name.setAttribute("tooltiptext", L10N.getStr("variablesEditableNameTooltip"));
|
this._name.setAttribute("tooltiptext", L10N.getStr("variablesEditableNameTooltip"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user