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

Issue 13926007: [Telemetry] Fix race in tab.Navigate's script_to_evaluate_on_commit. (Closed)

Created:
7 years, 8 months ago by tonyg
Modified:
7 years, 8 months ago
Reviewers:
dtu, nduca
CC:
chromium-reviews, chrome-speed-team+watch_google.com, telemetry+watch_chromium.org
Visibility:
Public.

Description

[Telemetry] Fix race in tab.Navigate's script_to_evaluate_on_commit. I believe this is what was causing the page cyclers to hang on the bots. We must add the script to evaluate on load prior to performing the navigation. If we add it after, it is racy. The reason it wasn't like this before is that Page.addScriptToEvaluateOnLoad didn't work on cross-renderer navigations. But that problem is being fixed by https://codereview.chromium.org/13949006/ The current file-based page cyclers don't do cross renderer navigations, so will be fine even without the above fix. However, the above fix will be necessary for the new WPR-based page sets. BUG=None TEST=page set based page cyclers on linux NOTRY=True Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=194470

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -8 lines) Patch
M tools/telemetry/telemetry/core/chrome/inspector_page.py View 2 chunks +8 lines, -8 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
tonyg
7 years, 8 months ago (2013-04-16 21:22:08 UTC) #1
dtu
lgtm. Will this be a problem for the new WPR-based page sets on reference builds ...
7 years, 8 months ago (2013-04-16 21:25:57 UTC) #2
tonyg
On 2013/04/16 21:25:57, Dave Tu wrote: > lgtm. Will this be a problem for the ...
7 years, 8 months ago (2013-04-16 21:32:04 UTC) #3
nduca
dumb drive by quesiton: what happens when the commit script raises an exception? Does that ...
7 years, 8 months ago (2013-04-16 21:34:27 UTC) #4
tonyg
On 2013/04/16 21:34:27, nduca wrote: > dumb drive by quesiton: what happens when the commit ...
7 years, 8 months ago (2013-04-16 21:44:05 UTC) #5
tonyg
7 years, 8 months ago (2013-04-16 22:33:34 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 manually as r194470 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698