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

Unified Diff: tools/telemetry/telemetry/core/backends/chrome_inspector/devtools_client_backend.py

Issue 884573004: Check the context type in StopChromeTracing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: disable test Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/telemetry/telemetry/core/platform/tracing_controller_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/backends/chrome_inspector/devtools_client_backend.py
diff --git a/tools/telemetry/telemetry/core/backends/chrome_inspector/devtools_client_backend.py b/tools/telemetry/telemetry/core/backends/chrome_inspector/devtools_client_backend.py
index 4dc7f755b5684ff3e83df506e1f0eef14f454bb2..347bcb6f73ff2b3cf4df2c1b00dfab591abf333c 100644
--- a/tools/telemetry/telemetry/core/backends/chrome_inspector/devtools_client_backend.py
+++ b/tools/telemetry/telemetry/core/backends/chrome_inspector/devtools_client_backend.py
@@ -134,6 +134,8 @@ class DevToolsClientBackend(object):
def StopChromeTracing(self, trace_data_builder, timeout=30):
context_map = self.GetUpdatedInspectableContexts()
for context in context_map.contexts:
+ if context['type'] not in ['iframe', 'page', 'webview']:
+ continue
context_id = context['id']
backend = context_map.GetInspectorBackend(context_id)
success = backend.EvaluateJavaScript(
« no previous file with comments | « no previous file | tools/telemetry/telemetry/core/platform/tracing_controller_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698