Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/ui.js

Issue 29329450: Issue 3208 - Don`t use numerical content types outside nsIContentPolicy.shouldLoad (Closed)
Patch Set: Created Oct. 29, 2015, 12:23 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« lib/requestNotifier.js ('K') | « lib/requestNotifier.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/ui.js
===================================================================
--- a/lib/ui.js
+++ b/lib/ui.js
@@ -1670,17 +1670,17 @@ let UI = exports.UI =
while (node)
{
if (node.nodeType == Ci.nsIDOMNode.ELEMENT_NODE)
{
let style = wnd.getComputedStyle(node, "");
let bgImage = extractImageURL(style, "background-image") || extractImageURL(style, "list-style-image");
if (bgImage)
{
- let data = RequestNotifier.getDataForNode(wnd.document, true, Policy.type.IMAGE, bgImage);
+ let data = RequestNotifier.getDataForNode(wnd.document, true, "IMAGE", bgImage);
if (data && !data[1].filter)
{
addMenuItem(data);
break;
}
}
}
« lib/requestNotifier.js ('K') | « lib/requestNotifier.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld