Opened on 11/24/2017 at 11:38:45 AM

Closed on 01/29/2019 at 03:51:55 PM

#6091 closed defect (worksforme)

"Hide targeted messages?" notification shown for websites which don't use targeted messaging

Reported by: kzar Assignee: jsonesen
Priority: P2 Milestone:
Module: User-Interface Keywords:
Cc: mapx, jsonesen, sebastian, mjethani, Ross, greiner, arthur, SMed79 Blocked By:
Blocking: Platform: Unknown / Cross platform
Ready: yes Confidential: no
Tester: Unknown Verified working: no
Review URL(s):

https://codereview.adblockplus.org/29785581/

Description (last modified by kzar)

Background

We're getting multiple reports from users (and some of the team) that the "Hide targeted messages?" notification is showing up whenever they open a new page.

Environment

Chrome (62.0.3202.94), Windows 10 OR Ubuntu 16.04 LTS
Adblock Plus 1.13.4 installed in a fresh Chrome profile

How to reproduce

  1. Browse to https://github.com OR ​https://happyasis.com/ OR many other websites

Observed behaviour

"Hide targeted messages?" notification is displayed.

Expected behaviour

The notification should only show up for websites that do use targeted messaging.

Notes

  • User reports: topic 54550, topic 54551, topic 54555.
  • Earliest report of the problem is yesterday (Thursday 23rd November) afternoon German time, but we're not sure when exactly the problem begun.
  • Relevant code is in adblockplusui/lib/antiadblockInit.js and string is notification_antiadblock_message.
  • Likely cause is this antiadblockfilters change which added the filter com,fr,info##div#ab-message[style^="display: block;"].

What to change

Adjust the logic in the addAntiAdblockNotification function in adblockplusui/lib/antiadblockInit.js to avoid overly generic filters from triggering the antiadblock notification. Currently filters with a domain specified trigger the notification, but we should also check that the domain is not a TLD like ".com" nor in the publicSuffixList.

Attachments (0)

Change History (41)

comment:1 Changed on 11/24/2017 at 11:43:04 AM by kzar

  • Description modified (diff)

comment:2 Changed on 11/24/2017 at 11:50:25 AM by arthur

  • Cc greiner added

I can reproduce it with a fresh Chrome (62.0.3202.94 (Official Build) (64-bit)) browser profile on Windows 10, installed ABP from https://adblockplus.org/. When I go to google.com, I'm redirected to google.de but I can click on "use Google.com" in the bottom right corner. The message appears there for me. Also when I just go to https://happyasis.com/.

comment:3 Changed on 11/24/2017 at 11:52:58 AM by greiner

Note that this issue doesn't occur in the latest development build but can be reproduced using the latest stable build and going to github.com, for instance.

comment:4 Changed on 11/24/2017 at 11:58:03 AM by kzar

  • Cc arthur added
  • Description modified (diff)

Thanks guys, I've updated the description to add those steps.

comment:5 Changed on 11/24/2017 at 11:58:57 AM by kzar

  • Description modified (diff)

comment:6 Changed on 11/24/2017 at 12:02:36 PM by kzar

  • Description modified (diff)

comment:7 Changed on 11/24/2017 at 12:04:55 PM by kzar

  • Description modified (diff)

comment:8 follow-up: Changed on 11/24/2017 at 12:12:09 PM by Ross

I haven't reproduced this yet. I can trigger the message but it only appears once, not matter if I answer yes or no.

ABP 1.13.4
Chrome 62 / Windows 10

comment:9 Changed on 11/24/2017 at 12:14:21 PM by kzar

  • Description modified (diff)

comment:10 in reply to: ↑ 8 Changed on 11/24/2017 at 12:21:46 PM by greiner

Replying to Ross:

I haven't reproduced this yet. I can trigger the message but it only appears once, not matter if I answer yes or no.

The issue is not that it reappears. In fact, you're describing the expected behavior because it's only supposed to reappear if you close the popup without answering the question.

The issue is that the message appears even on sites which don't contain any anti-adblock messages.

Last edited on 11/24/2017 at 12:22:02 PM by greiner

comment:11 Changed on 11/24/2017 at 12:26:29 PM by kzar

  • Description modified (diff)
  • Summary changed from "Hide targeted messages" notification showing up everywhere to "Hide targeted messages?" notification shown for websites which don't use targeted messaging

comment:12 Changed on 11/24/2017 at 12:42:29 PM by trev

I started seeing this message myself in Thunderbird, on the xkcd.com RSS feed. I am running Adblock Plus 2.9.1.4260-beta which is quite old (released on August 22). So it's most likely a change in the Anti-Adblock list that triggered this issue.

comment:13 Changed on 11/24/2017 at 12:49:22 PM by trev

Found the filter causing this:

com,fr,info##div#ab-message[style^="display: block;"]

Added here: https://hg.adblockplus.org/antiadblockfilters/rev/189f8049d8d9

comment:14 Changed on 11/24/2017 at 12:54:49 PM by mapx

  • Cc SMed79 added

comment:15 Changed on 11/24/2017 at 12:55:05 PM by mapx

yep, I asked hours ago smed79 why that filter ..

comment:16 Changed on 11/24/2017 at 01:25:59 PM by mapx

However, even if the wrong filter but the users disabled the list and still got that message ?!

comment:17 Changed on 11/24/2017 at 01:37:51 PM by trev

The messages show up only if the filter list is disabled - the point of the message is asking you whether you want to enable it.

comment:18 Changed on 11/24/2017 at 01:39:38 PM by kzar

  • Description modified (diff)

comment:19 Changed on 11/24/2017 at 01:40:22 PM by mapx

Well, it's one of those features I'd remove immediately (like the total ads blocked over the time)

comment:20 Changed on 11/24/2017 at 02:20:45 PM by kzar

  • Component changed from Platform to User-Interface
  • Description modified (diff)

Assuming we don't remove the feature entirely I've added a suggestion of what we could do to avoid this kind of problem happening in the future.

comment:21 Changed on 11/24/2017 at 03:49:55 PM by kzar

  • Description modified (diff)

comment:22 Changed on 11/24/2017 at 06:20:19 PM by trev

For reference, the problematic rule has been removed: https://hg.adblockplus.org/antiadblockfilters/rev/5a6e5f1bb887. Nothing wrong with preventing this kind of issue in future however.

comment:23 follow-up: Changed on 11/25/2017 at 03:46:42 PM by rhana@getadblock.com

We started getting these reports on Tuesday or Wednesday.

Will refreshing the filter lists fix this?

comment:24 in reply to: ↑ 23 Changed on 11/25/2017 at 03:52:36 PM by mapx

Replying to rhana@…:

We started getting these reports on Tuesday or Wednesday.

Will refreshing the filter lists fix this?

Yes.

comment:25 Changed on 11/25/2017 at 04:01:55 PM by rhana@getadblock.com

Oh, thank God. Thanks, mapx!

comment:26 Changed on 11/29/2017 at 10:08:07 AM by jsonesen

  • Owner set to jsonesen

comment:27 Changed on 12/21/2017 at 11:26:28 AM by fhd

  • Cc trev removed

comment:28 Changed on 01/15/2018 at 05:59:16 PM by greiner

  • Resolution set to invalid
  • Status changed from new to closed

Resolving this as invalid since it turned out to be a filter issue.

comment:29 Changed on 01/15/2018 at 06:02:52 PM by kzar

I don't think this should be resolved as invalid since although this is triggered by a filter the antiadblockInit code can prevent showing notifications for overly broad filters like these. (The description already explains what to change as well.)

comment:30 Changed on 01/15/2018 at 06:05:56 PM by kzar

It's hardly unimportant we do something to avoid this happening again and also Jon apparently already started working on it.

comment:31 Changed on 01/15/2018 at 06:15:44 PM by greiner

  • Resolution invalid deleted
  • Status changed from closed to reopened

Sorry, didn't notice the text in the "What to change" section. From the conversation it sounded like that fix would be done separately.

comment:32 Changed on 01/15/2018 at 06:17:06 PM by greiner

  • Priority changed from Unknown to P2
  • Ready set

comment:33 follow-up: Changed on 03/09/2018 at 07:08:49 PM by jsonesen

Hey guys,

Once I saw the ticket close a couple months ago I pretty much just moved on mentally. However, I just noticed it was reopened (my bad) I tried adding the filter to ABP but it doesn't cause the behavior to occur. Sort of stumped on how to reproduce this. Any ideas?

comment:34 in reply to: ↑ 33 ; follow-up: Changed on 03/09/2018 at 07:22:53 PM by greiner

Replying to jsonesen:

Once I saw the ticket close a couple months ago I pretty much just moved on mentally. However, I just noticed it was reopened (my bad) I tried adding the filter to ABP but it doesn't cause the behavior to occur.

The issue itself is triggered by overly broad filters in the filter list which were removed in this filter list change. That's why you don't encounter the issue in the wild anymore.

The change that's proposed here, however, is meant to prevent that same issue from reappearing in case such filters make it into the filter list again.

Sort of stumped on how to reproduce this. Any ideas?

You could create a local build that uses a fake filter list instead of antiadblockfilters.txt in which you include the filter that caused this issue.

comment:35 in reply to: ↑ 34 ; follow-up: Changed on 03/09/2018 at 07:37:20 PM by jsonesen

Sort of stumped on how to reproduce this. Any ideas?

You could create a local build that uses a fake filter list instead of antiadblockfilters.txt in which you include the filter that caused this issue.

Thanks, yeah I added it to the custom filter in ABP options but that had no effect. I will add my own antiadblockfilters.txt for testing.

comment:36 in reply to: ↑ 35 ; follow-up: Changed on 03/12/2018 at 10:59:32 AM by greiner

Replying to jsonesen:

You could create a local build that uses a fake filter list instead of antiadblockfilters.txt in which you include the filter that caused this issue.

Thanks, yeah I added it to the custom filter in ABP options but that had no effect. I will add my own antiadblockfilters.txt for testing.

As I mentioned, you need to fake the antiadblockfilters.txt filter list so adding custom filters won't do anything.

Alternatively, you could add your own local notification using addNotification() from adblockpluscore/lib/notification.js and passing it a notification that has the "urlFilters" property which is an array that contains filter in text form that look like "||" + domain + "^$document" (see adblockplusui/lib/antiadblockInit.js).

comment:37 in reply to: ↑ 36 Changed on 03/12/2018 at 09:11:48 PM by jsonesen

Replying to greiner:

As I mentioned, you need to fake the antiadblockfilters.txt filter list so adding custom filters won't do anything.

Yeah, I was just giving an example of what I had tried. Contextually I realize now that would have been better in the first comment hehe my bad. Thanks for providing options though!

comment:38 Changed on 05/18/2018 at 08:20:07 PM by jsonesen

  • Review URL(s) modified (diff)
  • Status changed from reopened to reviewing

comment:39 Changed on 05/22/2018 at 01:12:29 PM by kzar

  • Blocked By 6690 added

comment:40 Changed on 05/22/2018 at 01:27:05 PM by kzar

  • Blocked By 6690 removed

comment:41 Changed on 01/29/2019 at 03:51:55 PM by jsonesen

  • Resolution set to worksforme
  • Status changed from reviewing to closed

According to greiner this behavior is no longer reproducible and this feature plans to be dropped so i am closing this

Add Comment

Modify Ticket

Change Properties
Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from jsonesen.
 
Note: See TracTickets for help on using tickets.