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

Unified 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.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrequest.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: background.js
===================================================================
--- a/background.js
+++ b/background.js
@@ -47,16 +47,17 @@ var ElemHide = require("elemHide").ElemH
var defaultMatcher = require("matcher").defaultMatcher;
var Prefs = require("prefs").Prefs;
var Synchronizer = require("synchronizer").Synchronizer;
var Utils = require("utils").Utils;
var parseFilters = require("filterValidation").parseFilters;
var composeFilters = require("filterComposer").composeFilters;
var updateIcon = require("icon").updateIcon;
var initNotifications = require("notificationHelper").initNotifications;
+var showNextNotificationForUrl = require("notificationHelper").showNextNotificationForUrl;
var seenDataCorruption = false;
var filterlistsReinitialized = false;
function init()
{
var filtersLoaded = false;
var prefsLoaded = false;
@@ -429,9 +430,10 @@ ext.onMessage.addListener(function (msg,
}
});
// update icon when page changes location
ext.pages.onLoading.addListener(function(page)
{
page.sendMessage({type: "clickhide-deactivate"});
refreshIconAndContextMenu(page);
+ showNextNotificationForUrl(page.url);
});
« no previous file with comments | « no previous file | webrequest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld