| 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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 // Turn on the choose element to create filter thing | 338 // Turn on the choose element to create filter thing |
| 339 function clickHide_activate() { | 339 function clickHide_activate() { |
| 340 if(document == null) | 340 if(document == null) |
| 341 return; | 341 return; |
| 342 | 342 |
| 343 // If we are already selecting, abort now | 343 // If we are already selecting, abort now |
| 344 if (clickHide_activated || clickHideFiltersDialog) | 344 if (clickHide_activated || clickHideFiltersDialog) |
| 345 clickHide_deactivate(); | 345 clickHide_deactivate(); |
| 346 | 346 |
| 347 // Add overlays for blockable elements that don't emit mouse events that they
can still be selected | 347 // Add overlays for blockable elements that don't emit mouse events that they
can still be selected |
| 348 var elts = document.querySelectorAll('object,embed,iframe'); | 348 var elts = document.querySelectorAll('object,embed,iframe,frame'); |
| 349 for(var i=0; i<elts.length; i++) | 349 for(var i=0; i<elts.length; i++) |
| 350 { | 350 { |
| 351 var element = elts[i]; | 351 var element = elts[i]; |
| 352 if (isBlockable(element)) | 352 if (isBlockable(element)) |
| 353 addElementOverlay(element); | 353 addElementOverlay(element); |
| 354 } | 354 } |
| 355 | 355 |
| 356 clickHide_activated = true; | 356 clickHide_activated = true; |
| 357 document.addEventListener("mouseover", clickHide_mouseOver, true); | 357 document.addEventListener("mouseover", clickHide_mouseOver, true); |
| 358 document.addEventListener("mouseout", clickHide_mouseOut, true); | 358 document.addEventListener("mouseout", clickHide_mouseOut, true); |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 729 lastRightClickEventValid = false; | 729 lastRightClickEventValid = false; |
| 730 else | 730 else |
| 731 lastRightClickEvent = null; | 731 lastRightClickEvent = null; |
| 732 break; | 732 break; |
| 733 } | 733 } |
| 734 }); | 734 }); |
| 735 | 735 |
| 736 if (window == window.top) | 736 if (window == window.top) |
| 737 ext.backgroundPage.sendMessage({type: "report-html-page"}); | 737 ext.backgroundPage.sendMessage({type: "report-html-page"}); |
| 738 } | 738 } |
| OLD | NEW |