mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1022765 - Ensure ESC opens the split console on first try in the inspector. r=pbrosset
This commit is contained in:
parent
6015a03490
commit
80c61ed70c
@ -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}) => {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user