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

Issue 10955040: Fix domain whitelisting and remove unused code (Closed)

Created:
June 25, 2013, 9:42 a.m. by Felix Dahlke
Modified:
July 2, 2013, 10 a.m.
Visibility:
Public.

Description

My original intention was to just remove the unused code I didn't remove here: http://codereview.adblockplus.org/10948032/ However, domain-based whitelisting was currently broken and implemented differently to ABP, so I changed that. Please note my comments.

Patch Set 1 #

Total comments: 5

Patch Set 2 : #

Total comments: 2

Patch Set 3 : Addressed all issues #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -105 lines) Patch
M src/engine/main.cpp View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M src/plugin/AdblockPlusClient.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/plugin/AdblockPlusClient.cpp View 1 2 3 chunks +29 lines, -24 lines 3 comments Download
M src/plugin/AdblockPlusDomTraverser.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/plugin/PluginClass.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/plugin/PluginClientBase.h View 1 1 chunk +0 lines, -5 lines 0 comments Download
M src/plugin/PluginClientBase.cpp View 1 2 chunks +0 lines, -41 lines 0 comments Download
M src/plugin/PluginFilter.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/plugin/PluginFilter.cpp View 1 chunk +0 lines, -15 lines 0 comments Download
M src/plugin/PluginSettings.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/plugin/PluginSettings.cpp View 1 chunk +0 lines, -13 lines 0 comments Download
M src/plugin/PluginTabBase.cpp View 1 2 2 chunks +13 lines, -1 line 2 comments Download
M src/plugin/PluginWbPassThrough.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/shared/Communication.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 9
Felix Dahlke
http://codereview.adblockplus.org/10955040/diff/1/src/plugin/AdblockPlusClient.cpp File src/plugin/AdblockPlusClient.cpp (right): http://codereview.adblockplus.org/10955040/diff/1/src/plugin/AdblockPlusClient.cpp#newcode204 src/plugin/AdblockPlusClient.cpp:204: bool CAdblockPlusClient::IsUrlWhiteListed(const CString& url) Do you think I should ...
June 25, 2013, 9:46 a.m. (2013-06-25 09:46:58 UTC) #1
Felix Dahlke
On 2013/06/25 09:46:58, Felix H. Dahlke wrote: > http://codereview.adblockplus.org/10955040/diff/1/src/plugin/AdblockPlusClient.cpp > File src/plugin/AdblockPlusClient.cpp (right): > > ...
June 25, 2013, 10:21 a.m. (2013-06-25 10:21:51 UTC) #2
Wladimir Palant
LGTM with the nits addressed. http://codereview.adblockplus.org/10955040/diff/4001/src/engine/main.cpp File src/engine/main.cpp (right): http://codereview.adblockplus.org/10955040/diff/4001/src/engine/main.cpp#newcode127 src/engine/main.cpp:127: AdblockPlus::FilterPtr match = filterEngine->Matches(url, ...
June 25, 2013, 11:55 a.m. (2013-06-25 11:55:13 UTC) #3
Wladimir Palant
http://codereview.adblockplus.org/10955040/diff/1/src/plugin/AdblockPlusClient.cpp File src/plugin/AdblockPlusClient.cpp (right): http://codereview.adblockplus.org/10955040/diff/1/src/plugin/AdblockPlusClient.cpp#newcode204 src/plugin/AdblockPlusClient.cpp:204: bool CAdblockPlusClient::IsUrlWhiteListed(const CString& url) On 2013/06/25 09:46:58, Felix H. ...
June 25, 2013, noon (2013-06-25 12:00:40 UTC) #4
Oleksandr
LGTM http://codereview.adblockplus.org/10955040/diff/1/src/plugin/PluginClientBase.cpp File src/plugin/PluginClientBase.cpp (left): http://codereview.adblockplus.org/10955040/diff/1/src/plugin/PluginClientBase.cpp#oldcode175 src/plugin/PluginClientBase.cpp:175: if (scheme == L"res:" || scheme == L"file:") ...
June 25, 2013, 12:13 p.m. (2013-06-25 12:13:58 UTC) #5
Felix Dahlke
Uploaded a new patch set addressing all the issues.
June 25, 2013, 2:20 p.m. (2013-06-25 14:20:05 UTC) #6
Wladimir Palant
http://codereview.adblockplus.org/10955040/diff/12001/src/plugin/AdblockPlusClient.cpp File src/plugin/AdblockPlusClient.cpp (right): http://codereview.adblockplus.org/10955040/diff/12001/src/plugin/AdblockPlusClient.cpp#newcode204 src/plugin/AdblockPlusClient.cpp:204: bool CAdblockPlusClient::IsWhitelistedUrl(const std::string& url) I would actually expect to ...
June 25, 2013, 6:03 p.m. (2013-06-25 18:03:58 UTC) #7
Felix Dahlke
http://codereview.adblockplus.org/10955040/diff/12001/src/plugin/AdblockPlusClient.cpp File src/plugin/AdblockPlusClient.cpp (right): http://codereview.adblockplus.org/10955040/diff/12001/src/plugin/AdblockPlusClient.cpp#newcode204 src/plugin/AdblockPlusClient.cpp:204: bool CAdblockPlusClient::IsWhitelistedUrl(const std::string& url) On 2013/06/25 18:03:58, Wladimir Palant ...
June 26, 2013, 9:32 a.m. (2013-06-26 09:32:55 UTC) #8
Wladimir Palant
June 27, 2013, 5:55 a.m. (2013-06-27 05:55:02 UTC) #9
LGTM

http://codereview.adblockplus.org/10955040/diff/12001/src/plugin/AdblockPlusC...
File src/plugin/AdblockPlusClient.cpp (right):

http://codereview.adblockplus.org/10955040/diff/12001/src/plugin/AdblockPlusC...
src/plugin/AdblockPlusClient.cpp:204: bool
CAdblockPlusClient::IsWhitelistedUrl(const std::string& url)
Yes, the other methods seem wrong as well. I'm fine with changing it all later
then.

Powered by Google App Engine
This is Rietveld