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

Side by Side Diff: include.postload.js

Issue 6500163518464000: Issue 1612 - Remove prisoner when user blocks an element with an overlay (Closed)
Patch Set: Created Nov. 26, 2014, 12:31 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 | no next file » | 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 <http://adblockplus.org/>, 2 * This file is part of Adblock Plus <http://adblockplus.org/>,
3 * Copyright (C) 2006-2014 Eyeo GmbH 3 * Copyright (C) 2006-2014 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 695 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 } 706 }
707 break; 707 break;
708 case "clickhide-move": 708 case "clickhide-move":
709 if (clickHideFiltersDialog) 709 if (clickHideFiltersDialog)
710 { 710 {
711 clickHideFiltersDialog.style.left = (parseInt(clickHideFiltersDialog.s tyle.left, 10) + msg.x) + "px"; 711 clickHideFiltersDialog.style.left = (parseInt(clickHideFiltersDialog.s tyle.left, 10) + msg.x) + "px";
712 clickHideFiltersDialog.style.top = (parseInt(clickHideFiltersDialog.st yle.top, 10) + msg.y) + "px"; 712 clickHideFiltersDialog.style.top = (parseInt(clickHideFiltersDialog.st yle.top, 10) + msg.y) + "px";
713 } 713 }
714 break; 714 break;
715 case "clickhide-close": 715 case "clickhide-close":
716 if (clickHideFiltersDialog) 716 if (clickHideFiltersDialog && msg.remove)
717 { 717 {
718 // Explicitly get rid of currentElement 718 // Explicitly get rid of currentElement
719 if (msg.remove && currentElement && currentElement.parentNode) 719 var element = currentElement.prisoner || currentElement;
720 currentElement.parentNode.removeChild(currentElement); 720 if (element && element.parentNode)
721 element.parentNode.removeChild(element);
721 } 722 }
722 clickHide_deactivate(); 723 clickHide_deactivate();
723 break; 724 break;
724 default: 725 default:
725 sendResponse({}); 726 sendResponse({});
726 break; 727 break;
727 } 728 }
728 }); 729 });
729 730
730 if (window == window.top) 731 if (window == window.top)
731 ext.backgroundPage.sendMessage({type: "report-html-page"}); 732 ext.backgroundPage.sendMessage({type: "report-html-page"});
732 } 733 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld