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

Side by Side Diff: lib/contentPolicy.js

Issue 6309488109813760: Issue 2236 - Worked around JsDoc bug with inline annotations (Closed)
Patch Set: Created March 30, 2015, 2:11 p.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 | « no previous file | lib/objectTabs.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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 * @param wnd {nsIDOMWindow} 301 * @param wnd {nsIDOMWindow}
302 * @return {Filter} matching exception rule or null if not whitelisted 302 * @return {Filter} matching exception rule or null if not whitelisted
303 */ 303 */
304 isWindowWhitelisted: function(wnd) 304 isWindowWhitelisted: function(wnd)
305 { 305 {
306 return Policy.isWhitelisted(getWindowLocation(wnd)); 306 return Policy.isWhitelisted(getWindowLocation(wnd));
307 }, 307 },
308 308
309 /** 309 /**
310 * Asynchronously re-checks filters for given nodes. 310 * Asynchronously re-checks filters for given nodes.
311 * @param {Node[]} nodes
312 * @param {RequestEntry} entry
311 */ 313 */
312 refilterNodes: function(/**Node[]*/ nodes, /**RequestEntry*/ entry) 314 refilterNodes: function(nodes, entry)
313 { 315 {
314 // Ignore nodes that have been blocked already 316 // Ignore nodes that have been blocked already
315 if (entry.filter && !(entry.filter instanceof WhitelistFilter)) 317 if (entry.filter && !(entry.filter instanceof WhitelistFilter))
316 return; 318 return;
317 319
318 for (let node of nodes) 320 for (let node of nodes)
319 Utils.runAsync(refilterNode, this, node, entry); 321 Utils.runAsync(refilterNode, this, node, entry);
320 } 322 }
321 }; 323 };
322 Policy.init(); 324 Policy.init();
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 if (!wnd || wnd.closed) 781 if (!wnd || wnd.closed)
780 return; 782 return;
781 783
782 if (entry.type == Policy.type.OBJECT) 784 if (entry.type == Policy.type.OBJECT)
783 { 785 {
784 node.removeEventListener("mouseover", objectMouseEventHander, true); 786 node.removeEventListener("mouseover", objectMouseEventHander, true);
785 node.removeEventListener("mouseout", objectMouseEventHander, true); 787 node.removeEventListener("mouseout", objectMouseEventHander, true);
786 } 788 }
787 Policy.processNode(wnd, node, entry.type, Utils.makeURI(entry.location), true) ; 789 Policy.processNode(wnd, node, entry.type, Utils.makeURI(entry.location), true) ;
788 } 790 }
OLDNEW
« no previous file with comments | « no previous file | lib/objectTabs.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld