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

Issue 5447868882092032: Issue 1793 - check whether the frame is whitelisted before injecting CSS (Closed)

Created:
Dec. 19, 2014, 9:57 a.m. by sergei
Modified:
Dec. 1, 2015, 11:17 a.m.
Reviewers:
Eric, Oleksandr
Visibility:
Public.

Description

# depends on #1794 [done] http://codereview.adblockplus.org/4806567450902528/

Patch Set 1 : update #

Total comments: 31

Patch Set 2 : rebase and address comments #

Total comments: 6

Patch Set 3 : fix according to comments #

Patch Set 4 : rebase #

Total comments: 2

Patch Set 5 : add link #

Total comments: 14

Patch Set 6 : address comments #

Total comments: 7

Patch Set 7 : reduce the amount of code #

Total comments: 7

Patch Set 8 : use SID_SWebBrowserApp as service ID #

Patch Set 9 : rebase and rename webBrowser to parentBrowser #

Unified diffs Side-by-side diffs Delta from patch set Stats (+490 lines, -414 lines) Patch
M src/engine/Main.cpp View 1 2 3 4 5 2 chunks +40 lines, -11 lines 0 comments Download
M src/plugin/AdblockPlusClient.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -3 lines 0 comments Download
M src/plugin/AdblockPlusClient.cpp View 1 2 3 2 chunks +6 lines, -6 lines 0 comments Download
M src/plugin/PluginTabBase.cpp View 1 2 3 4 5 6 7 8 1 chunk +441 lines, -394 lines 0 comments Download

Messages

Total messages: 30
sergei
Jan. 13, 2015, 2:57 p.m. (2015-01-13 14:57:16 UTC) #1
Eric
http://codereview.adblockplus.org/5447868882092032/diff/5685265389584384/src/engine/Main.cpp File src/engine/Main.cpp (right): http://codereview.adblockplus.org/5447868882092032/diff/5685265389584384/src/engine/Main.cpp#newcode34 src/engine/Main.cpp:34: bool isWhitelisted = false; I dislike identifiers that differ ...
Jan. 13, 2015, 7:52 p.m. (2015-01-13 19:52:52 UTC) #2
Oleksandr
Not sure why I was not a reviewer here. Adding myself and my 2 cents ...
March 13, 2015, 10 a.m. (2015-03-13 10:00:27 UTC) #3
sergei
http://codereview.adblockplus.org/5447868882092032/diff/5685265389584384/src/engine/Main.cpp File src/engine/Main.cpp (right): http://codereview.adblockplus.org/5447868882092032/diff/5685265389584384/src/engine/Main.cpp#newcode34 src/engine/Main.cpp:34: bool isWhitelisted = false; On 2015/01/13 19:52:52, Eric wrote: ...
April 13, 2015, 8:06 a.m. (2015-04-13 08:06:41 UTC) #4
Eric
Just a few issues with style. http://codereview.adblockplus.org/5447868882092032/diff/5634387206995968/src/engine/Main.cpp File src/engine/Main.cpp (right): http://codereview.adblockplus.org/5447868882092032/diff/5634387206995968/src/engine/Main.cpp#newcode46 src/engine/Main.cpp:46: auto GetWhitelistingFilter = ...
May 14, 2015, 5:07 p.m. (2015-05-14 17:07:26 UTC) #5
sergei
http://codereview.adblockplus.org/5447868882092032/diff/5634387206995968/src/engine/Main.cpp File src/engine/Main.cpp (right): http://codereview.adblockplus.org/5447868882092032/diff/5634387206995968/src/engine/Main.cpp#newcode46 src/engine/Main.cpp:46: auto GetWhitelistingFilter = [&type](const std::string& url, const std::string& parent)->std::string ...
May 15, 2015, 11:55 a.m. (2015-05-15 11:55:55 UTC) #6
Oleksandr
I think this makes sense overall and I have been able to manually apply it ...
Oct. 26, 2015, 11:44 p.m. (2015-10-26 23:44:07 UTC) #7
sergei
On 2015/10/26 23:44:07, Oleksandr wrote: > I think this makes sense overall and I have ...
Oct. 27, 2015, 11:02 a.m. (2015-10-27 11:02:03 UTC) #8
Oleksandr
LGTM. Excited about CSS injection! https://codereview.adblockplus.org/5447868882092032/diff/29329412/src/plugin/PluginTabBase.cpp File src/plugin/PluginTabBase.cpp (right): https://codereview.adblockplus.org/5447868882092032/diff/29329412/src/plugin/PluginTabBase.cpp#newcode216 src/plugin/PluginTabBase.cpp:216: // The InternetExplorer application ...
Oct. 28, 2015, 10:12 a.m. (2015-10-28 10:12:13 UTC) #9
sergei
https://codereview.adblockplus.org/5447868882092032/diff/29329412/src/plugin/PluginTabBase.cpp File src/plugin/PluginTabBase.cpp (right): https://codereview.adblockplus.org/5447868882092032/diff/29329412/src/plugin/PluginTabBase.cpp#newcode216 src/plugin/PluginTabBase.cpp:216: // The InternetExplorer application always returns a pointer to ...
Oct. 28, 2015, 10:33 a.m. (2015-10-28 10:33:29 UTC) #10
Eric
Also, there's a typo in the review title: "whitelisted" (one lowercase-l) https://codereview.adblockplus.org/5447868882092032/diff/29329422/src/engine/Main.cpp File src/engine/Main.cpp (right): ...
Nov. 14, 2015, 8:28 p.m. (2015-11-14 20:28:14 UTC) #11
sergei
https://codereview.adblockplus.org/5447868882092032/diff/29329422/src/engine/Main.cpp File src/engine/Main.cpp (right): https://codereview.adblockplus.org/5447868882092032/diff/29329422/src/engine/Main.cpp#newcode115 src/engine/Main.cpp:115: std::string parentUrl; On 2015/11/14 20:28:13, Eric wrote: > This ...
Nov. 17, 2015, 8:16 p.m. (2015-11-17 20:16:00 UTC) #12
Eric
https://codereview.adblockplus.org/5447868882092032/diff/29329422/src/plugin/PluginTabBase.cpp File src/plugin/PluginTabBase.cpp (right): https://codereview.adblockplus.org/5447868882092032/diff/29329422/src/plugin/PluginTabBase.cpp#newcode221 src/plugin/PluginTabBase.cpp:221: } On 2015/11/17 20:16:00, sergei wrote: > Smart pointers ...
Nov. 17, 2015, 9 p.m. (2015-11-17 21:00:17 UTC) #13
sergei
https://codereview.adblockplus.org/5447868882092032/diff/29329422/src/plugin/PluginTabBase.cpp File src/plugin/PluginTabBase.cpp (right): https://codereview.adblockplus.org/5447868882092032/diff/29329422/src/plugin/PluginTabBase.cpp#newcode221 src/plugin/PluginTabBase.cpp:221: } On 2015/11/17 21:00:16, Eric wrote: > On 2015/11/17 ...
Nov. 17, 2015, 9:05 p.m. (2015-11-17 21:05:23 UTC) #14
Eric
https://codereview.adblockplus.org/5447868882092032/diff/29329422/src/plugin/PluginTabBase.cpp File src/plugin/PluginTabBase.cpp (right): https://codereview.adblockplus.org/5447868882092032/diff/29329422/src/plugin/PluginTabBase.cpp#newcode221 src/plugin/PluginTabBase.cpp:221: } On 2015/11/17 21:05:23, sergei wrote: > We should ...
Nov. 17, 2015, 10:30 p.m. (2015-11-17 22:30:23 UTC) #15
sergei
https://codereview.adblockplus.org/5447868882092032/diff/29329422/src/plugin/PluginTabBase.cpp File src/plugin/PluginTabBase.cpp (right): https://codereview.adblockplus.org/5447868882092032/diff/29329422/src/plugin/PluginTabBase.cpp#newcode221 src/plugin/PluginTabBase.cpp:221: } On 2015/11/17 22:30:22, Eric wrote: > On 2015/11/17 ...
Nov. 18, 2015, 10:07 a.m. (2015-11-18 10:07:51 UTC) #16
Eric
https://codereview.adblockplus.org/5447868882092032/diff/29330342/src/plugin/PluginTabBase.cpp File src/plugin/PluginTabBase.cpp (right): https://codereview.adblockplus.org/5447868882092032/diff/29330342/src/plugin/PluginTabBase.cpp#newcode221 src/plugin/PluginTabBase.cpp:221: } On 2015/11/18 10:07:50, sergei wrote: > Yes, this ...
Nov. 18, 2015, 2:24 p.m. (2015-11-18 14:24:02 UTC) #17
sergei
https://codereview.adblockplus.org/5447868882092032/diff/29330342/src/plugin/PluginTabBase.cpp File src/plugin/PluginTabBase.cpp (right): https://codereview.adblockplus.org/5447868882092032/diff/29330342/src/plugin/PluginTabBase.cpp#newcode221 src/plugin/PluginTabBase.cpp:221: } On 2015/11/18 14:24:02, Eric wrote: > On 2015/11/18 ...
Nov. 18, 2015, 2:28 p.m. (2015-11-18 14:28:17 UTC) #18
Eric
On 2015/11/18 14:28:17, sergei wrote: > In your snippet > > ATL::CComQIPtr<IWebBrowser2> parent = parentDispatch; ...
Nov. 18, 2015, 2:40 p.m. (2015-11-18 14:40:41 UTC) #19
sergei
On 2015/11/18 14:40:41, Eric wrote: > On 2015/11/18 14:28:17, sergei wrote: > > In your ...
Nov. 18, 2015, 2:57 p.m. (2015-11-18 14:57:19 UTC) #20
sergei
https://codereview.adblockplus.org/5447868882092032/diff/29330395/src/plugin/PluginTabBase.cpp File src/plugin/PluginTabBase.cpp (right): https://codereview.adblockplus.org/5447868882092032/diff/29330395/src/plugin/PluginTabBase.cpp#newcode227 src/plugin/PluginTabBase.cpp:227: ATL::CComPtr<IWebBrowser2> webBrowser; Changed to use QueryService obtaining IWebBrowser2 without ...
Nov. 18, 2015, 3:06 p.m. (2015-11-18 15:06:38 UTC) #21
Eric
On 2015/11/18 14:57:19, sergei wrote: > According to documentation > https://msdn.microsoft.com/en-us/library/aa752136(v=vs.85).aspx > > If the ...
Nov. 18, 2015, 3:11 p.m. (2015-11-18 15:11:42 UTC) #22
Eric
https://codereview.adblockplus.org/5447868882092032/diff/29329422/src/plugin/PluginTabBase.cpp File src/plugin/PluginTabBase.cpp (right): https://codereview.adblockplus.org/5447868882092032/diff/29329422/src/plugin/PluginTabBase.cpp#newcode221 src/plugin/PluginTabBase.cpp:221: } On 2015/11/18 10:07:50, sergei wrote: > That makes ...
Nov. 18, 2015, 3:25 p.m. (2015-11-18 15:25:23 UTC) #23
Oleksandr
https://codereview.adblockplus.org/5447868882092032/diff/29330395/src/plugin/PluginTabBase.cpp File src/plugin/PluginTabBase.cpp (right): https://codereview.adblockplus.org/5447868882092032/diff/29330395/src/plugin/PluginTabBase.cpp#newcode228 src/plugin/PluginTabBase.cpp:228: if (FAILED(parentDocumentServiceProvider->QueryService(IID_IWebBrowserApp, &webBrowser))) On 2015/11/18 15:25:22, Eric wrote: > ...
Nov. 20, 2015, 3:03 a.m. (2015-11-20 03:03:15 UTC) #24
Eric
https://codereview.adblockplus.org/5447868882092032/diff/29330395/src/plugin/PluginTabBase.cpp File src/plugin/PluginTabBase.cpp (right): https://codereview.adblockplus.org/5447868882092032/diff/29330395/src/plugin/PluginTabBase.cpp#newcode227 src/plugin/PluginTabBase.cpp:227: ATL::CComPtr<IWebBrowser2> webBrowser; For what it's worth, I suggest naming ...
Nov. 20, 2015, 3:43 p.m. (2015-11-20 15:43:52 UTC) #25
Oleksandr
On 2015/11/20 15:43:52, Eric wrote: > The previous patch set did that. The present one ...
Nov. 20, 2015, 3:54 p.m. (2015-11-20 15:54:24 UTC) #26
Eric
On 2015/11/20 15:54:24, Oleksandr wrote: > It accordingly queries for the service and returns the ...
Nov. 20, 2015, 4:03 p.m. (2015-11-20 16:03:33 UTC) #27
sergei
https://codereview.adblockplus.org/5447868882092032/diff/29330395/src/plugin/PluginTabBase.cpp File src/plugin/PluginTabBase.cpp (right): https://codereview.adblockplus.org/5447868882092032/diff/29330395/src/plugin/PluginTabBase.cpp#newcode228 src/plugin/PluginTabBase.cpp:228: if (FAILED(parentDocumentServiceProvider->QueryService(IID_IWebBrowserApp, &webBrowser))) On 2015/11/20 15:43:51, Eric wrote: > ...
Nov. 30, 2015, 3:29 p.m. (2015-11-30 15:29:37 UTC) #28
Eric
LGTM Oleksandr, you might want to take one more look at all this before it ...
Nov. 30, 2015, 5:23 p.m. (2015-11-30 17:23:27 UTC) #29
Oleksandr
Dec. 1, 2015, 1:01 a.m. (2015-12-01 01:01:18 UTC) #30
LGTM

Powered by Google App Engine
This is Rietveld