OLD | NEW |
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 11 matching lines...) Expand all Loading... |
22 "use strict"; | 22 "use strict"; |
23 | 23 |
24 let {XPCOMUtils} = Cu.import("resource://gre/modules/XPCOMUtils.jsm", {}); | 24 let {XPCOMUtils} = Cu.import("resource://gre/modules/XPCOMUtils.jsm", {}); |
25 let {Services} = Cu.import("resource://gre/modules/Services.jsm", {}); | 25 let {Services} = Cu.import("resource://gre/modules/Services.jsm", {}); |
26 | 26 |
27 let {Utils} = require("utils"); | 27 let {Utils} = require("utils"); |
28 let {Prefs} = require("prefs"); | 28 let {Prefs} = require("prefs"); |
29 let {FilterStorage} = require("filterStorage"); | 29 let {FilterStorage} = require("filterStorage"); |
30 let {BlockingFilter, WhitelistFilter, RegExpFilter} = require("filterClasses"); | 30 let {BlockingFilter, WhitelistFilter, RegExpFilter} = require("filterClasses"); |
31 let {defaultMatcher} = require("matcher"); | 31 let {defaultMatcher} = require("matcher"); |
32 let {objectMouseEventHander} = require("objectTabs"); | |
33 let {ElemHide} = require("elemHide"); | 32 let {ElemHide} = require("elemHide"); |
34 | 33 |
35 /** | 34 /** |
36 * Public policy checking functions and auxiliary objects | 35 * Public policy checking functions and auxiliary objects |
37 * @class | 36 * @class |
38 */ | 37 */ |
39 var Policy = exports.Policy = | 38 var Policy = exports.Policy = |
40 { | 39 { |
41 /** | 40 /** |
42 * Set of explicitly supported content types | 41 * Set of explicitly supported content types |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 if (!wnd || wnd.closed) | 399 if (!wnd || wnd.closed) |
401 return; | 400 return; |
402 | 401 |
403 if (entry.type == "OBJECT") | 402 if (entry.type == "OBJECT") |
404 { | 403 { |
405 node.removeEventListener("mouseover", objectMouseEventHander, true); | 404 node.removeEventListener("mouseover", objectMouseEventHander, true); |
406 node.removeEventListener("mouseout", objectMouseEventHander, true); | 405 node.removeEventListener("mouseout", objectMouseEventHander, true); |
407 } | 406 } |
408 Policy.processNode(wnd, node, entry.type, entry.location, true); | 407 Policy.processNode(wnd, node, entry.type, entry.location, true); |
409 } | 408 } |
OLD | NEW |