Opened on 03/22/2018 at 09:15:23 AM
Closed on 03/24/2018 at 10:55:24 AM
Last modified on 03/28/2018 at 07:42:16 AM
#6511 closed defect (fixed)
Actions inside popup ui notifications do not properly remove notification
Reported by: | Ross | Assignee: | kzar |
---|---|---|---|
Priority: | P1 | Milestone: | Adblock-Plus-3.0.3-for-Chrome-Opera-Firefox |
Module: | Platform | Keywords: | |
Cc: | sebastian, kzar, greiner, saroyanm | Blocked By: | #6476, #6510, #6512 |
Blocking: | Platform: | Unknown / Cross platform | |
Ready: | yes | Confidential: | no |
Tester: | Ross | Verified working: | yes |
Review URL(s): |
Description (last modified by kzar)
Environment
ABP 3.0.2.1983
Chrome 49 / 65 / Windows 7
Opera 49 / Windows 7
How to reproduce
- Save the notification below into a directory.
- Serve it python -m SimpleHTTPServer
- Install ABP.
- [ABP Icon] > [Right Click Popup] > [Inspect].
- In the popup console, set the notification url: browser.runtime.sendMessage({type: "prefs.set", key: "notificationurl", value: "<serveurl>"})
- Wait for ABP to request notifications.
- Open the popup UI to see notification.
- Select the [X] and [Close this notification].
- Open popup UI again.
- Select the [X] and [Stop showing notifications]
Test data
{ "notifications": [ { "id": "1", "message": { "en-US": "This is a information notification." }, "severity": "information", "title": { "en-US": "Test Normal Notification" } } ], "version": "201707281538" }
Observed behaviour
The [Close this notification] action closes the notification. But the notification reappears again when the popup ui is reopened.
The [Stop showing notifications] action seems to unset the [Show useful notifications] option in [Advanced]. But does not remove the notification from the popup ui as with [Close this notification] above.
Expected behaviour
In the 3.0.2 release, selecting [Close this notification] removes the notification from the UI and it is not present when the popup ui is reopened. The same with [Stop showing notifications].
What to change
- Update the adblockplusui dependency to hg:9546f62e182f git:7411639 which will include the fixes for #6511 and #6510.
- Send a "notifications.clicked" message instead of calling notification.onClicked() from the popup code.
- Implement notificationHelpre.notificationClicked.
Notes
- This regression was caused by Issue 5593 - Use messaging for the popup's notification code.
- Seems like this line is the problem. We'll need to send a message back instead of attempting to call notification.onClicked().
- This fix will update the adblockplusui dependency, pulling in #6510 and #6512.
Hints for testers
Attachments (0)
Change History (12)
comment:1 Changed on 03/22/2018 at 10:29:56 AM by kzar
- Cc greiner saroyanm added
- Owner set to kzar
- Priority changed from Unknown to P1
- Ready set
comment:2 Changed on 03/22/2018 at 11:56:38 AM by kzar
- Description modified (diff)
- Priority changed from P1 to P2
comment:4 Changed on 03/22/2018 at 02:39:33 PM by kzar
- Blocked By 6512 added
comment:5 Changed on 03/22/2018 at 02:45:42 PM by kzar
- Review URL(s) modified (diff)
- Status changed from new to reviewing
comment:6 Changed on 03/22/2018 at 02:50:03 PM by kzar
- Priority changed from P2 to P1
Despite the problematic commit landing in October 2017 this is a regression since the last Chrome release. Putting it back to P1.
comment:7 Changed on 03/22/2018 at 06:05:54 PM by sebastian
- Blocked By 6476 added
- Milestone set to Adblock-Plus-3.0.3-for-Chrome-Opera-Firefox
comment:8 Changed on 03/23/2018 at 03:45:51 PM by sebastian
- Blocked By 6510 added
- Description modified (diff)
comment:10 Changed on 03/24/2018 at 10:53:25 AM by abpbot
A commit referencing this issue has landed:
Issue 6511 - Use messaging to register popup notification clicks
comment:11 Changed on 03/24/2018 at 10:55:24 AM by kzar
- Resolution set to fixed
- Status changed from reviewing to closed
comment:12 Changed on 03/28/2018 at 07:41:42 AM by Ross
- Tester changed from Unknown to Ross
- Verified working set
Fixed.
ABP 3.0.2.1998
Chrome 49 / 65 / Windows 7
I can reproduce this, investigating now.