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

Issue 29396582: Issue 5039 - add support of nullable non-object values in settings

Created:
March 28, 2017, 9:25 a.m. by sergei
Modified:
Dec. 21, 2017, 10:38 a.m.
CC:
Felix Dahlke
Visibility:
Public.

Description

Do it for allowed_connection_type.

Patch Set 1 #

Patch Set 2 : fix comment and rename local var #

Total comments: 3

Patch Set 3 : address comment and rename local var #

Patch Set 4 : fix comparison with undefined #

Patch Set 5 : add proper support of nullable setting values #

Total comments: 2

Patch Set 6 : rebase #

Patch Set 7 : add comment #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -7 lines) Patch
M include/AdblockPlus/JsEngine.h View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M lib/prefs.js View 1 2 3 4 5 6 4 chunks +24 lines, -3 lines 0 comments Download
M src/FilterEngine.cpp View 1 2 3 4 5 2 chunks +3 lines, -4 lines 0 comments Download
M src/JsEngine.cpp View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 19
sergei
March 28, 2017, 9:26 a.m. (2017-03-28 09:26:42 UTC) #1
Oleksandr
I think it is more of a question to @Sebastian or @Dave, but I don't ...
March 28, 2017, 12:42 p.m. (2017-03-28 12:42:08 UTC) #2
sergei
Adding Sebastian, Dave and Thomas. Could some of you please review it to ensure that ...
March 28, 2017, 12:54 p.m. (2017-03-28 12:54:22 UTC) #3
sergei
BTW, it won't be too late to leave a comment here even if we commit ...
March 28, 2017, 12:59 p.m. (2017-03-28 12:59:06 UTC) #4
Sebastian Noack
I don't really feel comfortable reviewing this code, as I never have seen any code ...
March 28, 2017, 1:10 p.m. (2017-03-28 13:10:36 UTC) #5
sergei
On 2017/03/28 13:10:36, Sebastian Noack wrote: > I don't really feel comfortable reviewing this code, ...
March 28, 2017, 2:31 p.m. (2017-03-28 14:31:41 UTC) #6
Oleksandr
https://codereview.adblockplus.org/29396582/diff/29396633/lib/prefs.js File lib/prefs.js (right): https://codereview.adblockplus.org/29396582/diff/29396633/lib/prefs.js#newcode49 lib/prefs.js:49: allowed_connection_type: null I think it would be better to ...
March 28, 2017, 2:45 p.m. (2017-03-28 14:45:01 UTC) #7
sergei
https://codereview.adblockplus.org/29396582/diff/29396633/lib/prefs.js File lib/prefs.js (right): https://codereview.adblockplus.org/29396582/diff/29396633/lib/prefs.js#newcode49 lib/prefs.js:49: allowed_connection_type: null On 2017/03/28 14:45:01, Oleksandr wrote: > I ...
March 28, 2017, 2:46 p.m. (2017-03-28 14:46:35 UTC) #8
Oleksandr
On 2017/03/28 14:46:35, sergei wrote: > https://codereview.adblockplus.org/29396582/diff/29396633/lib/prefs.js > File lib/prefs.js (right): > > https://codereview.adblockplus.org/29396582/diff/29396633/lib/prefs.js#newcode49 > ...
March 28, 2017, 2:52 p.m. (2017-03-28 14:52:32 UTC) #9
Wladimir Palant
For what it's worth, I consider the use of preferences in https://issues.adblockplus.org/ticket/4931 the root issue ...
March 28, 2017, 3:20 p.m. (2017-03-28 15:20:32 UTC) #10
sergei
On 2017/03/28 15:20:32, Wladimir Palant wrote: > For what it's worth, I consider the use ...
March 28, 2017, 4:32 p.m. (2017-03-28 16:32:42 UTC) #11
Wladimir Palant
On 2017/03/28 16:32:42, sergei wrote: > If there are no strong objections against having that ...
March 28, 2017, 6:03 p.m. (2017-03-28 18:03:09 UTC) #12
sergei
On 2017/03/28 18:03:09, Wladimir Palant wrote: > On 2017/03/28 16:32:42, sergei wrote: > > If ...
March 28, 2017, 6:41 p.m. (2017-03-28 18:41:53 UTC) #13
anton
On 2017/03/28 18:41:53, sergei wrote: > On 2017/03/28 18:03:09, Wladimir Palant wrote: > > On ...
March 29, 2017, 5:36 a.m. (2017-03-29 05:36:27 UTC) #14
sergei
Just in case I would like to clarify: This change is for libadblockplus repository, so ...
March 29, 2017, 8:32 a.m. (2017-03-29 08:32:36 UTC) #15
anton
On 2017/03/29 08:32:36, sergei wrote: > Just in case I would like to clarify: > ...
March 29, 2017, 8:37 a.m. (2017-03-29 08:37:09 UTC) #16
Eric
On 2017/03/29 08:37:09, anton wrote: > I was confused by Wladimir's comment related to adblcokpluscore. ...
March 29, 2017, 2:48 p.m. (2017-03-29 14:48:53 UTC) #17
sergei
On 2017/03/29 14:48:53, Eric wrote: > On 2017/03/29 08:37:09, anton wrote: > > I was ...
March 29, 2017, 4:25 p.m. (2017-03-29 16:25:07 UTC) #18
sergei
March 29, 2017, 4:44 p.m. (2017-03-29 16:44:21 UTC) #19
On 2017/03/29 16:25:07, sergei wrote:
...
> If you insist I can even hide preferences
> mentioned in nullableValues_ExpectedTypes in the getter of
> require("prefs").Prefs. Should I do it?
Actually, I thought a bit how to hide preferences mentioned in
nullableValues_ExpectedTypes in accessors of require("prefs").Prefs and I think
it does not worth the efforts. Even more, we do have already additional
preferences in libadblockplus which are not used by adblockpluscore and no one
cares about hiding of them.

Powered by Google App Engine
This is Rietveld