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

Issue 5538776168267776: Implemented anti-adblock message notification (Closed)

Created:
Feb. 7, 2014, 5:08 p.m. by Thomas Greiner
Modified:
Feb. 13, 2014, 1:14 p.m.
Reviewers:
Felix Dahlke
Visibility:
Public.

Description

Implementation overview: - On first startup: Download filterlist but don't enable it yet. - On startup: Add notification with domains mentioned in filterlist. - On new frame: Show notification with following options: - yes: enable filterlist, don't show notification again - no: disable filterlist, don't show notification again - cancel: show notification again - Handling filterlist changes. Extended notification mechanism as follows: - "message" property can now also be a string - renamed "severity" into "type" - added "question" type - added methods for adding, removing and marking notifications as shown - getNextToShow can now be passed an URL

Patch Set 1 #

Total comments: 29

Patch Set 2 : #

Total comments: 13

Patch Set 3 : #

Total comments: 13

Patch Set 4 : #

Total comments: 4

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+262 lines, -19 lines) Patch
M chrome/content/ui/overlay.xul View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M chrome/locale/en-US/global.properties View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/locale/en-US/overlay.dtd View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/skin/overlay.css View 1 chunk +16 lines, -0 lines 0 comments Download
M defaults/prefs.js View 1 chunk +1 line, -0 lines 0 comments Download
M lib/notification.js View 1 2 3 4 8 chunks +122 lines, -13 lines 0 comments Download
M lib/ui.js View 1 2 3 9 chunks +110 lines, -5 lines 0 comments Download

Messages

Total messages: 12
Thomas Greiner
To be honest I'm not too happy with the matcher approach but all alternatives seem ...
Feb. 7, 2014, 5:29 p.m. (2014-02-07 17:29:16 UTC) #1
Felix Dahlke
Almost done with the review, but I didn't get to lib/ui.js yet. Some of my ...
Feb. 11, 2014, 10:35 a.m. (2014-02-11 10:35:27 UTC) #2
Thomas Greiner
http://codereview.adblockplus.org/5538776168267776/diff/5629499534213120/chrome/content/ui/overlay.xul File chrome/content/ui/overlay.xul (right): http://codereview.adblockplus.org/5538776168267776/diff/5629499534213120/chrome/content/ui/overlay.xul#newcode127 chrome/content/ui/overlay.xul:127: <html:p id="abp-notification-message"/> On 2014/02/11 10:35:27, Felix H. Dahlke wrote: ...
Feb. 11, 2014, 4:53 p.m. (2014-02-11 16:53:30 UTC) #3
Felix Dahlke
LGTM http://codereview.adblockplus.org/5538776168267776/diff/5629499534213120/chrome/content/ui/overlay.xul File chrome/content/ui/overlay.xul (right): http://codereview.adblockplus.org/5538776168267776/diff/5629499534213120/chrome/content/ui/overlay.xul#newcode127 chrome/content/ui/overlay.xul:127: <html:p id="abp-notification-message"/> On 2014/02/11 16:53:31, Thomas Greiner wrote: ...
Feb. 11, 2014, 5:11 p.m. (2014-02-11 17:11:11 UTC) #4
Felix Dahlke
Oh crap, was in the middle of reviewing this still, wrong window... it's _not_ yet ...
Feb. 11, 2014, 5:19 p.m. (2014-02-11 17:19:44 UTC) #5
Felix Dahlke
Everything's reviewed now, sorry for the confusion! http://codereview.adblockplus.org/5538776168267776/diff/5629499534213120/chrome/content/ui/overlay.xul File chrome/content/ui/overlay.xul (right): http://codereview.adblockplus.org/5538776168267776/diff/5629499534213120/chrome/content/ui/overlay.xul#newcode127 chrome/content/ui/overlay.xul:127: <html:p id="abp-notification-message"/> ...
Feb. 11, 2014, 5:57 p.m. (2014-02-11 17:57:17 UTC) #6
Thomas Greiner
http://codereview.adblockplus.org/5538776168267776/diff/5629499534213120/chrome/content/ui/overlay.xul File chrome/content/ui/overlay.xul (right): http://codereview.adblockplus.org/5538776168267776/diff/5629499534213120/chrome/content/ui/overlay.xul#newcode127 chrome/content/ui/overlay.xul:127: <html:p id="abp-notification-message"/> On 2014/02/11 17:57:17, Felix H. Dahlke wrote: ...
Feb. 12, 2014, 11:58 a.m. (2014-02-12 11:58:49 UTC) #7
Felix Dahlke
Starting to look good, some more comments. http://codereview.adblockplus.org/5538776168267776/diff/5733935958982656/lib/ui.js File lib/ui.js (right): http://codereview.adblockplus.org/5538776168267776/diff/5733935958982656/lib/ui.js#newcode551 lib/ui.js:551: onApproved: function() ...
Feb. 12, 2014, 3:09 p.m. (2014-02-12 15:09:26 UTC) #8
Thomas Greiner
http://codereview.adblockplus.org/5538776168267776/diff/6601759870943232/lib/notification.js File lib/notification.js (right): http://codereview.adblockplus.org/5538776168267776/diff/6601759870943232/lib/notification.js#newcode44 lib/notification.js:44: return (notification.severity in SEVERITY ? SEVERITY[notification.severity] : SEVERITY.information); On ...
Feb. 12, 2014, 6:28 p.m. (2014-02-12 18:28:01 UTC) #9
Felix Dahlke
Looking pretty good now, just one more thing really. http://codereview.adblockplus.org/5538776168267776/diff/6601759870943232/lib/ui.js File lib/ui.js (right): http://codereview.adblockplus.org/5538776168267776/diff/6601759870943232/lib/ui.js#newcode403 lib/ui.js:403: ...
Feb. 13, 2014, 10:22 a.m. (2014-02-13 10:22:04 UTC) #10
Thomas Greiner
http://codereview.adblockplus.org/5538776168267776/diff/5203516087861248/lib/notification.js File lib/notification.js (right): http://codereview.adblockplus.org/5538776168267776/diff/5203516087861248/lib/notification.js#newcode34 lib/notification.js:34: let TYPES = { On 2014/02/13 10:22:04, Felix H. ...
Feb. 13, 2014, 12:57 p.m. (2014-02-13 12:57:54 UTC) #11
Felix Dahlke
Feb. 13, 2014, 1 p.m. (2014-02-13 13:00:32 UTC) #12
Awesome, LGTM!

Powered by Google App Engine
This is Rietveld