Index: lib/ui.js |
=================================================================== |
--- a/lib/ui.js |
+++ b/lib/ui.js |
@@ -1607,17 +1607,17 @@ let UI = exports.UI = |
if (!target) |
return; |
let window = popup.ownerDocument.defaultView; |
let menuItems = []; |
let addMenuItem = function([node, nodeData]) |
{ |
- let type = nodeData.typeDescr.toLowerCase(); |
+ let type = nodeData.type.toLowerCase(); |
if (type == "background") |
{ |
type = "image"; |
node = null; |
} |
let label = this.overlay.attributes[type + "contextlabel"]; |
if (!label) |
@@ -1633,17 +1633,17 @@ let UI = exports.UI = |
}.bind(this); |
// Look up data that we have for the node |
let data = RequestNotifier.getDataForNode(target); |
let hadImage = false; |
if (data && !data[1].filter) |
{ |
addMenuItem(data); |
- hadImage = (data[1].typeDescr == "IMAGE"); |
+ hadImage = (data[1].type == "IMAGE"); |
} |
// Look for frame data |
let wnd = Utils.getWindow(target); |
if (wnd.frameElement) |
{ |
let data = RequestNotifier.getDataForNode(wnd.frameElement, true); |
if (data && !data[1].filter) |