Bug 1022765 - Ensure ESC opens the split console on first try in the inspector. r=pbrosset

This commit is contained in:
Alexandre Poirot 2015-04-21 13:01:40 -07:00
parent 6015a03490
commit 80c61ed70c
2 changed files with 1 additions and 3 deletions

View File

@ -2162,7 +2162,7 @@ MarkupElementContainer.prototype = Heritage.extend(MarkupContainer.prototype, {
*/
isImagePreviewTarget: function(target, tooltip) {
if (!this.tooltipData || this.tooltipData.target !== target) {
return promise.reject();
return promise.reject(false);
}
return this.tooltipData.data.then(({data, size}) => {

View File

@ -453,8 +453,6 @@ Tooltip.prototype = {
if (res && res.then) {
return res.then(arg => {
return arg instanceof Ci.nsIDOMNode ? arg : target;
}, () => {
return false;
});
} else {
let newTarget = res instanceof Ci.nsIDOMNode ? res : target;