diff options
author | marja@chromium.org <marja@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-14 19:30:04 +0000 |
---|---|---|
committer | marja@chromium.org <marja@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-14 19:30:04 +0000 |
commit | 6c70eeb6d75752cf322548f8b4b82324ab9456ba (patch) | |
tree | 745e9cbe8f86188430824f3dce4840183a6d8b14 | |
parent | cee22ec7d8fc36df823bd56e6f23ab365e5bd0da (diff) | |
download | chromium_src-6c70eeb6d75752cf322548f8b4b82324ab9456ba.zip chromium_src-6c70eeb6d75752cf322548f8b4b82324ab9456ba.tar.gz chromium_src-6c70eeb6d75752cf322548f8b4b82324ab9456ba.tar.bz2 |
Telemetry: Fix memory benchmark.
Apparently we sometimes receive navigation events with the URL "about:blank",
and this confuses the code which is waiting for a navigation to occur (it stops
waiting before the real navigation has occured).
TBR=nduca
BUG=none
Review URL: https://codereview.chromium.org/11879022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176696 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | tools/telemetry/telemetry/inspector_page.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/telemetry/telemetry/inspector_page.py b/tools/telemetry/telemetry/inspector_page.py index 2e04767..fc8389d 100644 --- a/tools/telemetry/telemetry/inspector_page.py +++ b/tools/telemetry/telemetry/inspector_page.py @@ -23,7 +23,7 @@ class InspectorPage(object): logging.debug('Notification: %s', json.dumps(msg, indent=2)) if msg['method'] == 'Page.frameNavigated' and self._navigation_pending: url = msg['params']['frame']['url'] - if not url == 'chrome://newtab/': + if not url == 'chrome://newtab/' and not url == 'about:blank': # Marks the navigation as complete and unblocks the # PerformActionAndWaitForNavigate call. self._navigation_pending = False |