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

Issue 5113230347206656: Issue #1356 - Improve detection of the issuer of the request (Closed)

Created:
Oct. 7, 2014, 9:51 p.m. by Oleksandr
Modified:
Oct. 13, 2014, 12:23 a.m.
Reviewers:
sergei, Felix Dahlke, Eric
Visibility:
Public.

Description

This fixes the problem for IE9+. IE8 is left blocking a bit too much, unfortunately.

Patch Set 1 #

Patch Set 2 : Fix the deadlock #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -2 lines) Patch
M src/plugin/PluginClass.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/plugin/PluginClass.cpp View 1 1 chunk +21 lines, -0 lines 5 comments Download
M src/plugin/PluginWbPassThrough.cpp View 2 chunks +25 lines, -2 lines 3 comments Download

Messages

Total messages: 5
Oleksandr
Oct. 7, 2014, 9:55 p.m. (2014-10-07 21:55:59 UTC) #1
Eric
http://codereview.adblockplus.org/5113230347206656/diff/5741031244955648/src/plugin/PluginClass.cpp File src/plugin/PluginClass.cpp (right): http://codereview.adblockplus.org/5113230347206656/diff/5741031244955648/src/plugin/PluginClass.cpp#newcode1139 src/plugin/PluginClass.cpp:1139: I'm mildly concerned that this version of GetTab is ...
Oct. 8, 2014, 5:37 p.m. (2014-10-08 17:37:53 UTC) #2
sergei
Because it does not exactly correspond to #1356 (see the comment in the code, it's ...
Oct. 9, 2014, 1:46 p.m. (2014-10-09 13:46:22 UTC) #3
sergei
I think CPluginClass::GetTab(const std::wstring& url) is incorrect and we don't need it. We lookup the ...
Oct. 10, 2014, 10:59 a.m. (2014-10-10 10:59:42 UTC) #4
Oleksandr
Oct. 13, 2014, 12:22 a.m. (2014-10-13 00:22:53 UTC) #5
Unfortunately since my previous tests were invalid, and as it has been pointed
out, this patch set doesn't really improve anything - I have to close this code
review.

On 2014/10/10 10:59:42, sergei wrote:
> I think CPluginClass::GetTab(const std::wstring& url) is incorrect and we
don't
> need it.
> 
> We lookup the tab which has GetBrowserUrl() equal to BINDSTRING_ROOTDOC_URL
and
> then use tab->GetDocumentUrl().
> First of all as I understand from CPluginClass::GetBrowserUrl and from
> http://msdn.microsoft.com/en-us/library/aa752130%28v=vs.85%29.aspx ,
theoretically,
> until we receive the first NavigateComplete2
> `browser->get_LocationURL(&bstrURL)` can return an empty string. So we might
> should fix the method, although that particular case seems not too important.
> The important thing is that we should check whether the browser is busy or not
> before get_LocationURL. Debugging it I got, that when it returns that the
> browser is busy, browser->get_LocationURL(&bstrURL) returns the previous
> location instead of expected (e.g, "about:Tabs" or
http://www.bing.com/search...
> while I'm already navigating another page) but m_tab->m_documentUrl (which is
> set in CPluginClass::BeforeNavigate2,CPluginTabBase::OnNavigate) is the actual
> url I've navigated to. So I would say that we should not use
> CPluginClass::GetBrowserUrl here, and use CPluginTabBase::GetDocumentUrl, but
in
> that case we don't need to lookup it, because we have it already. As well see
> #1472.

Powered by Google App Engine
This is Rietveld