| 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 } | 171 } |
| 172 }, | 172 }, |
| 173 | 173 |
| 174 /** | 174 /** |
| 175 * Called to show object tab for an element. | 175 * Called to show object tab for an element. |
| 176 */ | 176 */ |
| 177 showTabFor: function(/**Element*/ element) | 177 showTabFor: function(/**Element*/ element) |
| 178 { | 178 { |
| 179 // Object tabs aren't usable in Fennec | 179 // Object tabs aren't usable in Fennec |
| 180 let {application} = require("info"); | 180 let {application} = require("info"); |
| 181 if (application == "fennec" || application == "fennec2") | 181 if (application == "fennec" || application == "fennec2" || |
| 182 application == "adblockbrowser") |
| 182 return; | 183 return; |
| 183 | 184 |
| 184 let {Prefs} = require("prefs"); | 185 let {Prefs} = require("prefs"); |
| 185 if (!Prefs.frameobjects) | 186 if (!Prefs.frameobjects) |
| 186 return; | 187 return; |
| 187 | 188 |
| 188 if (this.hideTimer) | 189 if (this.hideTimer) |
| 189 { | 190 { |
| 190 this.hideTimer.cancel(); | 191 this.hideTimer.cancel(); |
| 191 this.hideTimer = null; | 192 this.hideTimer = null; |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 event.stopPropagation(); | 489 event.stopPropagation(); |
| 489 | 490 |
| 490 objTabs.doBlock(); | 491 objTabs.doBlock(); |
| 491 } | 492 } |
| 492 else if (event.type == "mouseover") | 493 else if (event.type == "mouseover") |
| 493 objTabs.showTabFor(objTabs.currentElement); | 494 objTabs.showTabFor(objTabs.currentElement); |
| 494 else if (event.type == "mouseout") | 495 else if (event.type == "mouseout") |
| 495 objTabs.hideTabFor(objTabs.currentElement); | 496 objTabs.hideTabFor(objTabs.currentElement); |
| 496 } | 497 } |
| 497 exports.objectMouseEventHander = objectMouseEventHander; | 498 exports.objectMouseEventHander = objectMouseEventHander; |
| OLD | NEW |