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

Side by Side Diff: lib/objectTabs.js

Issue 29329450: Issue 3208 - Don`t use numerical content types outside nsIContentPolicy.shouldLoad (Closed)
Patch Set: Removed unrelated change Created Nov. 4, 2015, 9:27 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/elemHide.js ('k') | lib/requestNotifier.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 194
195 if (this.objtabElement) 195 if (this.objtabElement)
196 this.objtabElement.style.setProperty("opacity", "1", "important"); 196 this.objtabElement.style.setProperty("opacity", "1", "important");
197 197
198 if (this.currentElement != element) 198 if (this.currentElement != element)
199 { 199 {
200 this._hideTab(); 200 this._hideTab();
201 201
202 let {Policy} = require("contentPolicy"); 202 let {Policy} = require("contentPolicy");
203 let {RequestNotifier} = require("requestNotifier"); 203 let {RequestNotifier} = require("requestNotifier");
204 let data = RequestNotifier.getDataForNode(element, true, Policy.type.OBJEC T); 204 let data = RequestNotifier.getDataForNode(element, true, "OBJECT");
205 if (data) 205 if (data)
206 { 206 {
207 if (this.initialized) 207 if (this.initialized)
208 this._showTab(element, data[1]); 208 this._showTab(element, data[1]);
209 else 209 else
210 this._initCSS(element, data[1]); 210 this._initCSS(element, data[1]);
211 } 211 }
212 } 212 }
213 }, 213 },
214 214
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 event.stopPropagation(); 489 event.stopPropagation();
490 490
491 objTabs.doBlock(); 491 objTabs.doBlock();
492 } 492 }
493 else if (event.type == "mouseover") 493 else if (event.type == "mouseover")
494 objTabs.showTabFor(objTabs.currentElement); 494 objTabs.showTabFor(objTabs.currentElement);
495 else if (event.type == "mouseout") 495 else if (event.type == "mouseout")
496 objTabs.hideTabFor(objTabs.currentElement); 496 objTabs.hideTabFor(objTabs.currentElement);
497 } 497 }
498 exports.objectMouseEventHander = objectMouseEventHander; 498 exports.objectMouseEventHander = objectMouseEventHander;
OLDNEW
« no previous file with comments | « lib/elemHide.js ('k') | lib/requestNotifier.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld