Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Issue 1412113006: Prevent the destruction of WebContents in NavigationThrottle methods (Closed)

Created:
5 years, 1 month ago by clamy
Modified:
5 years, 1 month ago
Reviewers:
nasko
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Prevent the destruction of WebContents in NavigationThrottle methods This CL adds an explicit warning in the NavigationThrottle interface that the WebContents should remain alive during the execution of the NavigationThrottle methods. It also postpone the TabClosure in the ExternalNavigationDelegateImpl on Android, since this methode can be called from the InterceptNavigationThrottle. BUG=537634

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -19 lines) Patch
M components/navigation_interception/intercept_navigation_throttle.h View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M components/navigation_interception/intercept_navigation_throttle.cc View 1 2 3 2 chunks +25 lines, -7 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl.cc View 1 2 3 6 chunks +34 lines, -8 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl_unittest.cc View 1 2 3 5 chunks +95 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_request.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/loader/navigation_resource_throttle.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/public/browser/navigation_throttle.h View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (2 generated)
clamy
@nasko: this what the change would look like, when telling explicitly to the handle that ...
5 years, 1 month ago (2015-11-02 17:39:02 UTC) #3
clamy
On 2015/11/02 17:39:02, clamy wrote: > @nasko: this what the change would look like, when ...
5 years, 1 month ago (2015-11-04 15:43:06 UTC) #4
nasko
5 years, 1 month ago (2015-11-06 18:25:11 UTC) #5
On 2015/11/04 15:43:06, clamy wrote:
> On 2015/11/02 17:39:02, clamy wrote:
> > @nasko: this what the change would look like, when telling explicitly to the
> > handle that it was destroyed.
> > 
> > Note: I did not mention it in the meeting, but outside fixing the android
> code,
> > there is also the possibility to do the check for the navigation
interception
> > asynchronously. In that case we would return DEFER, post task the check and
> then
> > resume/cancel the deferred handle if it is still alive. Main issue with this
> is
> > performance of doing a post task instead of a direct return.
> 
> I did upload a patch that does the check asynchronously at
> https://codereview.chromium.org/1414723008/. Let me know what you prefer.

As discussed, I will ignore the CL and it should be closed.

Powered by Google App Engine
This is Rietveld 408576698