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

Issue 11165026: Show notifications on startup (Closed)

Created:
July 19, 2013, 1:41 p.m. by Felix Dahlke
Modified:
July 21, 2013, 12:20 p.m.
Reviewers:
Wladimir Palant
Visibility:
Public.

Description

Show notifications on startup

Patch Set 1 #

Total comments: 11

Patch Set 2 : Addressed issues #

Total comments: 4

Patch Set 3 : Address remaining issue #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -0 lines) Patch
M chrome/content/ui/overlay.xul View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/skin/overlay.css View 2 chunks +11 lines, -0 lines 0 comments Download
M lib/notification.js View 1 3 chunks +34 lines, -0 lines 0 comments Download
M lib/ui.js View 1 2 4 chunks +83 lines, -0 lines 0 comments Download

Messages

Total messages: 8
Felix Dahlke
July 19, 2013, 1:42 p.m. (2013-07-19 13:42:53 UTC) #1
Felix Dahlke
Uploaded a review with the getLocalizedTexts tests: http://codereview.adblockplus.org/11174072/ http://codereview.adblockplus.org/11165026/diff/1/lib/ui.js File lib/ui.js (right): http://codereview.adblockplus.org/11165026/diff/1/lib/ui.js#newcode425 lib/ui.js:425: let ...
July 19, 2013, 1:53 p.m. (2013-07-19 13:53:52 UTC) #2
Wladimir Palant
http://codereview.adblockplus.org/11165026/diff/1/lib/notification.js File lib/notification.js (right): http://codereview.adblockplus.org/11165026/diff/1/lib/notification.js#newcode54 lib/notification.js:54: let defaultLocale = "en"; Actually, our default locale is ...
July 19, 2013, 3:17 p.m. (2013-07-19 15:17:52 UTC) #3
Felix Dahlke
Uploaded a new patch set addressing all the issues. http://codereview.adblockplus.org/11165026/diff/1/lib/notification.js File lib/notification.js (right): http://codereview.adblockplus.org/11165026/diff/1/lib/notification.js#newcode54 lib/notification.js:54: ...
July 19, 2013, 5:07 p.m. (2013-07-19 17:07:01 UTC) #4
Wladimir Palant
LGTM with the comments addressed. http://codereview.adblockplus.org/11165026/diff/6/lib/ui.js File lib/ui.js (right): http://codereview.adblockplus.org/11165026/diff/6/lib/ui.js#newcode434 lib/ui.js:434: onShutdown.add(function() notificationTimer.cancel()); We need ...
July 20, 2013, 7:18 a.m. (2013-07-20 07:18:07 UTC) #5
Felix Dahlke
Pushed my changes, since I think they're fine now. Do note my comment about cancelling ...
July 20, 2013, 11 p.m. (2013-07-20 23:00:51 UTC) #6
Wladimir Palant
http://codereview.adblockplus.org/11165026/diff/6/lib/ui.js File lib/ui.js (right): http://codereview.adblockplus.org/11165026/diff/6/lib/ui.js#newcode434 lib/ui.js:434: onShutdown.add(function() notificationTimer.cancel()); On 2013/07/20 23:00:51, Felix H. Dahlke wrote: ...
July 21, 2013, 11:30 a.m. (2013-07-21 11:30:17 UTC) #7
Felix Dahlke
July 21, 2013, 12:20 p.m. (2013-07-21 12:20:28 UTC) #8
On 2013/07/21 11:30:17, Wladimir Palant wrote:
> http://codereview.adblockplus.org/11165026/diff/6/lib/ui.js
> File lib/ui.js (right):
> 
> http://codereview.adblockplus.org/11165026/diff/6/lib/ui.js#newcode434
> lib/ui.js:434: onShutdown.add(function() notificationTimer.cancel());
> On 2013/07/20 23:00:51, Felix H. Dahlke wrote:
> > I haven't see us do that in other places, so it
> > seems to be fine, does it?
> 
> I other places we are using repeating timers, not one-time timers.
> 
> > Just tested this by closing Firefox after the notification has been shown.
No
> > errors or anything, so it seems to be fine.
> 
> The way to test this would be to disable Adblock Plus - it's extension
shutdown,
> not the browser shutdown ;)
> 
> Either way, I verified that nsITimer.cancel() doesn't throw errors even when
> called multiple times.

Oh, I thought it was browser shutdown :P Well thanks for verifying this, closing
the review then.

Powered by Google App Engine
This is Rietveld