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

Issue 11364091: Fix ABP pages on refresh (Closed)

Created:
Aug. 8, 2013, 6:45 a.m. by Oleksandr
Modified:
Aug. 13, 2013, 9:48 a.m.
Visibility:
Public.

Description

Fix ABP pages on refresh

Patch Set 1 #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -44 lines) Patch
M src/plugin/PluginTabBase.h View 1 chunk +1 line, -1 line 0 comments Download
M src/plugin/PluginTabBase.cpp View 3 chunks +49 lines, -43 lines 9 comments Download

Messages

Total messages: 13
Oleksandr
This is a really simple fix. Just check if we should inject on both OnDownload ...
Aug. 8, 2013, 6:47 a.m. (2013-08-08 06:47:28 UTC) #1
Oleksandr
Aug. 8, 2013, 6:47 a.m. (2013-08-08 06:47:41 UTC) #2
Felix Dahlke
http://codereview.adblockplus.org/11364091/diff/1/src/plugin/PluginTabBase.cpp File src/plugin/PluginTabBase.cpp (right): http://codereview.adblockplus.org/11364091/diff/1/src/plugin/PluginTabBase.cpp#newcode149 src/plugin/PluginTabBase.cpp:149: DEBUG_ERROR_LOG(hr, PLUGIN_ERROR_CREATE_SETTINGS_JAVASCRIPT, PLUGIN_ERROR_CREATE_SETTINGS_JAVASCRIPT_INVOKE, "CPluginTabBase::OnDocumentComplete - Failed to create Settings ...
Aug. 8, 2013, 8:47 a.m. (2013-08-08 08:47:53 UTC) #3
Oleksandr
http://codereview.adblockplus.org/11364091/diff/1/src/plugin/PluginTabBase.cpp File src/plugin/PluginTabBase.cpp (right): http://codereview.adblockplus.org/11364091/diff/1/src/plugin/PluginTabBase.cpp#newcode149 src/plugin/PluginTabBase.cpp:149: DEBUG_ERROR_LOG(hr, PLUGIN_ERROR_CREATE_SETTINGS_JAVASCRIPT, PLUGIN_ERROR_CREATE_SETTINGS_JAVASCRIPT_INVOKE, "CPluginTabBase::OnDocumentComplete - Failed to create Settings ...
Aug. 8, 2013, 2:08 p.m. (2013-08-08 14:08:47 UTC) #4
Felix Dahlke
http://codereview.adblockplus.org/11364091/diff/1/src/plugin/PluginTabBase.cpp File src/plugin/PluginTabBase.cpp (right): http://codereview.adblockplus.org/11364091/diff/1/src/plugin/PluginTabBase.cpp#newcode180 src/plugin/PluginTabBase.cpp:180: InjectABP(browser); On 2013/08/08 14:08:47, Oleksandr wrote: > No, I ...
Aug. 8, 2013, 2:19 p.m. (2013-08-08 14:19:05 UTC) #5
Felix Dahlke
Aug. 8, 2013, 2:19 p.m. (2013-08-08 14:19:06 UTC) #6
Oleksandr
On 2013/08/08 14:19:06, Felix H. Dahlke wrote: There are some troubles with this and your ...
Aug. 8, 2013, 2:35 p.m. (2013-08-08 14:35:38 UTC) #7
Oleksandr
On 2013/08/08 14:35:38, Oleksandr wrote: > On 2013/08/08 14:19:06, Felix H. Dahlke wrote: > > ...
Aug. 8, 2013, 2:41 p.m. (2013-08-08 14:41:10 UTC) #8
Oleksandr
http://codereview.adblockplus.org/11364091/diff/1/src/plugin/PluginTabBase.cpp File src/plugin/PluginTabBase.cpp (right): http://codereview.adblockplus.org/11364091/diff/1/src/plugin/PluginTabBase.cpp#newcode180 src/plugin/PluginTabBase.cpp:180: InjectABP(browser); No, I got it a bit wrong actually. ...
Aug. 8, 2013, 4 p.m. (2013-08-08 16:00:04 UTC) #9
Felix Dahlke
http://codereview.adblockplus.org/11364091/diff/1/src/plugin/PluginTabBase.cpp File src/plugin/PluginTabBase.cpp (right): http://codereview.adblockplus.org/11364091/diff/1/src/plugin/PluginTabBase.cpp#newcode180 src/plugin/PluginTabBase.cpp:180: InjectABP(browser); On 2013/08/08 16:00:04, Oleksandr wrote: > No, I ...
Aug. 8, 2013, 4:20 p.m. (2013-08-08 16:20:59 UTC) #10
Oleksandr
http://codereview.adblockplus.org/11364091/diff/1/src/plugin/PluginTabBase.cpp File src/plugin/PluginTabBase.cpp (right): http://codereview.adblockplus.org/11364091/diff/1/src/plugin/PluginTabBase.cpp#newcode180 src/plugin/PluginTabBase.cpp:180: InjectABP(browser); InjectABP can get called even more then twice ...
Aug. 9, 2013, 7:07 a.m. (2013-08-09 07:07:48 UTC) #11
Felix Dahlke
LGTM, with this nit fixed: http://codereview.adblockplus.org/11364091/diff/1/src/plugin/PluginTabBase.cpp#newcode149
Aug. 11, 2013, 11:17 a.m. (2013-08-11 11:17:30 UTC) #12
Wladimir Palant
Aug. 13, 2013, 9:48 a.m. (2013-08-13 09:48:34 UTC) #13
LGTM but I would like the cleanup indicated below to be addressed at some point.

http://codereview.adblockplus.org/11364091/diff/1/src/plugin/PluginTabBase.cpp
File src/plugin/PluginTabBase.cpp (right):

http://codereview.adblockplus.org/11364091/diff/1/src/plugin/PluginTabBase.cp...
src/plugin/PluginTabBase.cpp:124: if (pDoc2)
Now that this is a separate function we can avoid the huge indentation here:

if (!pDoc2)
  return;

And similarly for all the other checks.

Powered by Google App Engine
This is Rietveld