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

Issue 646447 link

Starred by 2 users

Issue metadata

Status: Started
Owner:
Last visit > 30 days ago
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 1
Type: Bug



Sign in to add a comment

Timeouts during cross-process navigation

Project Member Reported by samu...@chromium.org, Sep 13 2016

Issue description

This is a hard bug to reproduce, but some of our internal tests can repro it. See b/31024981 for context (Googlers only, sorry), but I've copied the important details into this bug.

The problem happens when the test clicks something which triggers a cross-process navigation to a page hosted on another domain. Frame ids  "697729.1", "697951.1" and "697951.4" start loading. We receive Page.frameStoppedLoading events for "697951.1" and "697951.4", but not "697729.1".

I think "697729.1" is from the old discarded renderer process. ChromeDriver should not wait for the Page.frameStoppedLoading event for this frame.

Here are the lines of interest from chromedriver.log:

[8.843][DEBUG]: DEVTOOLS EVENT Page.frameNavigated {
      "url": "<url from first domain>"
[10.587][INFO]: COMMAND ClickElement {
[10.683][DEBUG]: DEVTOOLS EVENT Page.frameStartedLoading {
   "frameId": "697729.1"
[11.427][DEBUG]: DEVTOOLS EVENT Page.frameStartedLoading {
   "frameId": "697951.1"
[11.555][DEBUG]: DEVTOOLS EVENT Page.frameNavigated {
      "id": "697951.1",
      "url": "<url from second domain>"
[11.682][DEBUG]: DEVTOOLS EVENT Page.frameAttached {
   "frameId": "697951.4",
   "parentFrameId": "697951.1"
[11.683][DEBUG]: DEVTOOLS EVENT Page.frameStartedLoading {
   "frameId": "697951.4"
[11.683][DEBUG]: DEVTOOLS EVENT Page.frameNavigated {
      "id": "697951.4",
      "securityOrigin": "<url from second domain>",
      "url": "about:blank"
[11.684][DEBUG]: DEVTOOLS EVENT Page.frameStoppedLoading {
   "frameId": "697951.4"
[12.809][DEBUG]: DEVTOOLS EVENT Page.frameStoppedLoading {
   "frameId": "697951.1"
[310.656][INFO]: RESPONSE ClickElement timeout: cannot determine loading status
 
Project Member

Comment 1 by bugdroid1@chromium.org, Sep 21 2016

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

commit eeb7279129a81aedf02efd7b2ece7537dec22789
Author: samuong <samuong@chromium.org>
Date: Wed Sep 21 14:48:21 2016

[chromedriver] Discard pending frames except for the frame we just navigated to.

BUG=646447

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

[modify] https://crrev.com/eeb7279129a81aedf02efd7b2ece7537dec22789/chrome/test/chromedriver/chrome/navigation_tracker.cc

You started fixing this bug over two years ago. Are you still working on it? 

Sign in to add a comment