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

Issue 29350137: Issue 3247 - Closing the browser shortly after initial launch(s) causes no filters lists to be sele… (Closed)

Created:
Aug. 24, 2016, 10:35 a.m. by diegocarloslima
Modified:
Nov. 2, 2016, 1:49 p.m.
Reviewers:
anton, Felix Dahlke
CC:
René Jeschke
Visibility:
Public.

Description

Issue 3247 - Closing the browser shortly after initial launch(s) causes no filters lists to be sele…

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -0 lines) Patch
M adblockplus/Api.jsm View 2 chunks +55 lines, -0 lines 6 comments Download

Messages

Total messages: 5
diegocarloslima
Aug. 24, 2016, 10:37 a.m. (2016-08-24 10:37:02 UTC) #1
anton
https://codereview.adblockplus.org/29350137/diff/29350138/adblockplus/Api.jsm File adblockplus/Api.jsm (right): https://codereview.adblockplus.org/29350137/diff/29350138/adblockplus/Api.jsm#newcode82 adblockplus/Api.jsm:82: return null; LGTM in general if hiding exception with ...
Sept. 30, 2016, 6:39 a.m. (2016-09-30 06:39:04 UTC) #2
Felix Dahlke
Looks good, but see my comment. https://codereview.adblockplus.org/29350137/diff/29350138/adblockplus/Api.jsm File adblockplus/Api.jsm (right): https://codereview.adblockplus.org/29350137/diff/29350138/adblockplus/Api.jsm#newcode61 adblockplus/Api.jsm:61: UI.addSubscription(UI.currentWindow, Prefs.currentVersion); This'll ...
Sept. 30, 2016, 7:44 a.m. (2016-09-30 07:44:12 UTC) #3
diegocarloslima
https://codereview.adblockplus.org/29350137/diff/29350138/adblockplus/Api.jsm File adblockplus/Api.jsm (right): https://codereview.adblockplus.org/29350137/diff/29350138/adblockplus/Api.jsm#newcode61 adblockplus/Api.jsm:61: UI.addSubscription(UI.currentWindow, Prefs.currentVersion); On 2016/09/30 07:44:12, Felix Dahlke wrote: > ...
Oct. 25, 2016, 4:16 p.m. (2016-10-25 16:16:20 UTC) #4
Felix Dahlke
Oct. 27, 2016, 5:12 p.m. (2016-10-27 17:12:50 UTC) #5
LGTM

https://codereview.adblockplus.org/29350137/diff/29350138/adblockplus/Api.jsm
File adblockplus/Api.jsm (right):

https://codereview.adblockplus.org/29350137/diff/29350138/adblockplus/Api.jsm...
adblockplus/Api.jsm:61: UI.addSubscription(UI.currentWindow,
Prefs.currentVersion);
On 2016/10/25 16:16:20, diegocarloslima wrote:
> On 2016/09/30 07:44:12, Felix Dahlke wrote:
> > This'll solve the subscription issue I guess, but shouldn't we run all the
> first
> > run actions (i.e. `UI.firstRunActions`) again if they weren't previously
> > completed, not just the `addSubscription` step? (I might be missing
something,
> > it's been a little while since I was working on this code.)
> 
> Actually firstRunActions is always performed. The issue is on this snipped
from
> ui.js:
>     let prevVersion = Prefs.currentVersion;
>     if (prevVersion != addonVersion)
>     {
>       Prefs.currentVersion = addonVersion;
>       this.addSubscription(window, prevVersion);
> 
> Here, Prefs.currentVersion is stored before addSubscription completes. So if
we
> kill the app before addSubscription is stored on disk, next time this is run,
it
> will fail for the prevVersion != addonVersion check, because it was already
> stored and it will never complete the addSubscription call

Acknowledged.

Powered by Google App Engine
This is Rietveld