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

Unified Diff: lib/objectTabs.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
Index: lib/objectTabs.js
===================================================================
--- a/lib/objectTabs.js
+++ b/lib/objectTabs.js
@@ -196,17 +196,17 @@ var objTabs =
this.objtabElement.style.setProperty("opacity", "1", "important");
if (this.currentElement != element)
{
this._hideTab();
let {Policy} = require("contentPolicy");
let {RequestNotifier} = require("requestNotifier");
- let data = RequestNotifier.getDataForNode(element, true, Policy.type.OBJECT);
+ let data = RequestNotifier.getDataForNode(element, true, "OBJECT");
if (data)
{
if (this.initialized)
this._showTab(element, data[1]);
else
this._initCSS(element, data[1]);
}
}

Powered by Google App Engine
This is Rietveld