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

Side by Side Diff: background.js

Issue 29329589: Issue 3238 - Adblock Warning List opt in message should not be triggered by frames (Chrome) (Closed)
Patch Set: Created Nov. 2, 2015, 11:25 a.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 | webrequest.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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 var FilterNotifier = require("filterNotifier").FilterNotifier; 45 var FilterNotifier = require("filterNotifier").FilterNotifier;
46 var ElemHide = require("elemHide").ElemHide; 46 var ElemHide = require("elemHide").ElemHide;
47 var defaultMatcher = require("matcher").defaultMatcher; 47 var defaultMatcher = require("matcher").defaultMatcher;
48 var Prefs = require("prefs").Prefs; 48 var Prefs = require("prefs").Prefs;
49 var Synchronizer = require("synchronizer").Synchronizer; 49 var Synchronizer = require("synchronizer").Synchronizer;
50 var Utils = require("utils").Utils; 50 var Utils = require("utils").Utils;
51 var parseFilters = require("filterValidation").parseFilters; 51 var parseFilters = require("filterValidation").parseFilters;
52 var composeFilters = require("filterComposer").composeFilters; 52 var composeFilters = require("filterComposer").composeFilters;
53 var updateIcon = require("icon").updateIcon; 53 var updateIcon = require("icon").updateIcon;
54 var initNotifications = require("notificationHelper").initNotifications; 54 var initNotifications = require("notificationHelper").initNotifications;
55 var showNextNotificationForUrl = require("notificationHelper").showNextNotificat ionForUrl;
55 56
56 var seenDataCorruption = false; 57 var seenDataCorruption = false;
57 var filterlistsReinitialized = false; 58 var filterlistsReinitialized = false;
58 59
59 function init() 60 function init()
60 { 61 {
61 var filtersLoaded = false; 62 var filtersLoaded = false;
62 var prefsLoaded = false; 63 var prefsLoaded = false;
63 64
64 var checkLoaded = function() 65 var checkLoaded = function()
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 } 428 }
428 break; 429 break;
429 } 430 }
430 }); 431 });
431 432
432 // update icon when page changes location 433 // update icon when page changes location
433 ext.pages.onLoading.addListener(function(page) 434 ext.pages.onLoading.addListener(function(page)
434 { 435 {
435 page.sendMessage({type: "clickhide-deactivate"}); 436 page.sendMessage({type: "clickhide-deactivate"});
436 refreshIconAndContextMenu(page); 437 refreshIconAndContextMenu(page);
438 showNextNotificationForUrl(page.url);
437 }); 439 });
OLDNEW
« no previous file with comments | « no previous file | webrequest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld