Index: Source/devtools/front_end/profiler/ProfilesPanel.js |
diff --git a/Source/devtools/front_end/profiler/ProfilesPanel.js b/Source/devtools/front_end/profiler/ProfilesPanel.js |
index ccf5e9895f60e8dd0310bc215ea66bffea65415a..3cd1333363ccfce0ee602d3eb71835e572847c4a 100644 |
--- a/Source/devtools/front_end/profiler/ProfilesPanel.js |
+++ b/Source/devtools/front_end/profiler/ProfilesPanel.js |
@@ -509,7 +509,7 @@ WebInspector.ProfileTypeRegistry = function() { |
this.trackingHeapSnapshotProfileType = new WebInspector.TrackingHeapSnapshotProfileType(); |
this._addProfileType(this.trackingHeapSnapshotProfileType); |
- if (Capabilities.isMainFrontend && WebInspector.experimentsSettings.canvasInspection.isEnabled()) { |
+ if (!WebInspector.isWorkerFrontend() && WebInspector.experimentsSettings.canvasInspection.isEnabled()) { |
this.canvasProfileType = new WebInspector.CanvasProfileType(); |
this._addProfileType(this.canvasProfileType); |
} |