New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 638596 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Sep 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Migrate in_process_browser_test_browsertest.cc away from deprecated WebContentsObserver callback

Project Member Reported by blundell@chromium.org, Aug 17 2016

Issue description

In in_process_browser_test_browsertest.cc, LoadFailObserver currently listens for the  DidFailProvisionalLoad() WebContentsObserver callback. However, these callbacks are deprecated and cannot be relied on when PlzNavigate is enabled. LoadFailObserver should migrate to listening for  DidFinishNavigation().

This bug is the cause of the following browser_tests failures when run with PlzNavigate enabled:

InProcessBrowserTest.ExternalConnectionFail
 
Components: Test
Cc: yzshen@chromium.org

Comment 3 by yzshen@chromium.org, Sep 16 2016

Cc: -yzshen@chromium.org
Owner: yzshen@chromium.org
Project Member

Comment 4 by bugdroid1@chromium.org, Sep 19 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/cd3181872bd0e0ee72e080e0c120049fd936718c

commit cd3181872bd0e0ee72e080e0c120049fd936718c
Author: yzshen <yzshen@chromium.org>
Date: Mon Sep 19 16:20:02 2016

Change LoadFailObserver to use WebContentsObserver::DidFinishNavigation notification.

This fixes the following browser test for PlzNavigate:
  InProcessBrowserTest.ExternalConnectionFail

BUG= 638596 

Review-Url: https://codereview.chromium.org/2349893002
Cr-Commit-Position: refs/heads/master@{#419477}

[modify] https://crrev.com/cd3181872bd0e0ee72e080e0c120049fd936718c/chrome/test/base/in_process_browser_test_browsertest.cc

Project Member

Comment 5 by bugdroid1@chromium.org, Sep 19 2016

Comment 6 by yzshen@chromium.org, Sep 19 2016

Status: Fixed (was: Available)

Sign in to add a comment