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

Issue 103373003: [Telemetry] Fix page_cycler for pages with client side redirects. (Closed)

Created:
7 years ago by pdr.
Modified:
7 years ago
CC:
chromium-reviews, chrome-speed-team+watch_google.com, telemetry+watch_chromium.org
Visibility:
Public.

Description

[Telemetry] Fix page_cycler for pages with client side redirects. Page.disable clears all scripts to evaluate on commit. There is no way to detect client side redirects because linkedin, for example, performs its client side redirect after the page has fully loaded. In order for the page_cyclers to work on pages with client side redirects, the script to evaluate on commit must execute on the redirected page. So to workaround this, we avoid ever calling Page.disable. I don't expect continuing to listen for notifications here to impact performance, but if we do see any performance reduction on the bots we should revert and search for another approach. This was originally landed as r209505 but had to be rolled out. This patch simply updates the original patch since the regression was unrelated and has been fixed. BUG=253604 NOTRY=true TEST=tools/perf/run_measurement --browser=canary page_cycler tools/perf/page_sets/top_10_mobile.json --pageset-repeat=2 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=239532

Patch Set 1 #

Total comments: 1

Patch Set 2 : Update per reviewer comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -27 lines) Patch
M tools/telemetry/telemetry/core/backends/chrome/inspector_page.py View 1 4 chunks +40 lines, -27 lines 1 comment Download

Messages

Total messages: 11 (0 generated)
pdr.
7 years ago (2013-12-07 01:29:18 UTC) #1
tonyg
lgtm Thanks for resurrecting this! https://codereview.chromium.org/103373003/diff/1/tools/telemetry/telemetry/core/backends/chrome/inspector_page.py File tools/telemetry/telemetry/core/backends/chrome/inspector_page.py (left): https://codereview.chromium.org/103373003/diff/1/tools/telemetry/telemetry/core/backends/chrome/inspector_page.py#oldcode68 tools/telemetry/telemetry/core/backends/chrome/inspector_page.py:68: except util.TimeoutException: Per our ...
7 years ago (2013-12-07 01:44:26 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pdr@chromium.org/103373003/20001
7 years ago (2013-12-09 19:18:56 UTC) #3
commit-bot: I haz the power
Change committed as 239532
7 years ago (2013-12-09 19:39:59 UTC) #4
achuithb
On 2013/12/09 19:39:59, I haz the power (commit-bot) wrote: > Change committed as 239532 I'm ...
7 years ago (2013-12-09 23:06:36 UTC) #5
pdr.
On 2013/12/09 23:06:36, achuith.bhandarkar wrote: > On 2013/12/09 19:39:59, I haz the power (commit-bot) wrote: ...
7 years ago (2013-12-09 23:08:05 UTC) #6
pdr.
Can you paste a link to the log? I'll roll out immediately.
7 years ago (2013-12-09 23:08:26 UTC) #7
achuithb
https://codereview.chromium.org/103373003/diff/20001/tools/telemetry/telemetry/core/backends/chrome/inspector_page.py File tools/telemetry/telemetry/core/backends/chrome/inspector_page.py (right): https://codereview.chromium.org/103373003/diff/20001/tools/telemetry/telemetry/core/backends/chrome/inspector_page.py#newcode20 tools/telemetry/telemetry/core/backends/chrome/inspector_page.py:20: self._EnablePageNotifications() I think we need to initialize self._navigation_pending (and ...
7 years ago (2013-12-09 23:08:43 UTC) #8
pdr.
A revert of this CL has been created in https://codereview.chromium.org/110813003/ by pdr@chromium.org. The reason for ...
7 years ago (2013-12-09 23:08:53 UTC) #9
pdr.
On 2013/12/09 23:08:26, pdr wrote: > Can you paste a link to the log? > ...
7 years ago (2013-12-09 23:09:14 UTC) #10
achuithb
7 years ago (2013-12-09 23:09:20 UTC) #11
Message was sent while issue was closed.
On 2013/12/09 23:08:26, pdr wrote:
> Can you paste a link to the log?
> 
> I'll roll out immediately.

this is on my desktop, I'm running telemetry on cros-chrome.

Powered by Google App Engine
This is Rietveld 408576698