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

Issue 5630329503088640: Fixed miscellaneous issues with anti-adblock notification port (Closed)

Created:
March 26, 2014, 10:30 a.m. by Thomas Greiner
Modified:
March 28, 2014, 6:50 p.m.
Reviewers:
Felix Dahlke
Visibility:
Public.

Description

This review includes the following issues: - ActiveFilter is no longer needed in background.js - notification isn't shown again if closed or clicked on - added proper Safari support for URL-specific notifications In addition to that I also allowed for chrome.notifications to be used on Linux for Chrome 35+ since I was able to verify that it is indeed working now on Chrome's dev channel.

Patch Set 1 #

Total comments: 7

Patch Set 2 : #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -11 lines) Patch
M background.js View 1 8 chunks +44 lines, -10 lines 5 comments Download
M webrequest.js View 2 chunks +11 lines, -1 line 0 comments Download

Messages

Total messages: 7
Thomas Greiner
After breaking the latest build I decided to do some in-depth testing of the complete ...
March 26, 2014, 10:58 a.m. (2014-03-26 10:58:03 UTC) #1
Felix Dahlke
Looks good, some comments. http://codereview.adblockplus.org/5630329503088640/diff/5629499534213120/background.js File background.js (right): http://codereview.adblockplus.org/5630329503088640/diff/5629499534213120/background.js#newcode358 background.js:358: // Chrome on Linux does ...
March 28, 2014, 1:10 p.m. (2014-03-28 13:10:41 UTC) #2
Thomas Greiner
http://codereview.adblockplus.org/5630329503088640/diff/5629499534213120/background.js File background.js (right): http://codereview.adblockplus.org/5630329503088640/diff/5629499534213120/background.js#newcode358 background.js:358: // Chrome on Linux does not fully support chrome.notifications ...
March 28, 2014, 3:57 p.m. (2014-03-28 15:57:08 UTC) #3
Felix Dahlke
http://codereview.adblockplus.org/5630329503088640/diff/5629499534213120/webrequest.js File webrequest.js (right): http://codereview.adblockplus.org/5630329503088640/diff/5629499534213120/webrequest.js#newcode65 webrequest.js:65: if (platform != "chromium" && type == "sub_frame") On ...
March 28, 2014, 4:16 p.m. (2014-03-28 16:16:38 UTC) #4
Thomas Greiner
Sorry for the lengthy comment. :) http://codereview.adblockplus.org/5630329503088640/diff/5639274879778816/background.js File background.js (right): http://codereview.adblockplus.org/5630329503088640/diff/5639274879778816/background.js#newcode371 background.js:371: if (activeNotification && ...
March 28, 2014, 5:26 p.m. (2014-03-28 17:26:51 UTC) #5
Felix Dahlke
LGTM http://codereview.adblockplus.org/5630329503088640/diff/5639274879778816/background.js File background.js (right): http://codereview.adblockplus.org/5630329503088640/diff/5639274879778816/background.js#newcode371 background.js:371: if (activeNotification && activeNotification.type != "question") On 2014/03/28 ...
March 28, 2014, 5:33 p.m. (2014-03-28 17:33:46 UTC) #6
Thomas Greiner
March 28, 2014, 6:23 p.m. (2014-03-28 18:23:17 UTC) #7
http://codereview.adblockplus.org/5630329503088640/diff/5639274879778816/back...
File background.js (right):

http://codereview.adblockplus.org/5630329503088640/diff/5639274879778816/back...
background.js:371: if (activeNotification && activeNotification.type !=
"question")
For completeness' sake, what I meant for (2) was:

if (activeNotification && activeNotification.type != "question" && !("links" in
activeNotification))

Powered by Google App Engine
This is Rietveld