| Index: third_party/WebKit/Source/devtools/front_end/timeline/TimelineController.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineController.js b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineController.js
|
| index 8a943494d9a49ab5a20e4831dc6cbe8d1fa4b07e..eeb468e9e0eee65797346da267bfbfab2ccfdd58 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineController.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineController.js
|
| @@ -110,7 +110,7 @@ WebInspector.TimelineController.prototype = {
|
| */
|
| _startProfilingOnTarget: function(target)
|
| {
|
| - return target.profilerAgent().start();
|
| + return target.hasJSCapability() ? target.profilerAgent().start() : Promise.resolve();
|
| },
|
|
|
| /**
|
| @@ -130,7 +130,7 @@ WebInspector.TimelineController.prototype = {
|
| */
|
| _stopProfilingOnTarget: function(target)
|
| {
|
| - return target.profilerAgent().stop(this._addCpuProfile.bind(this, target.id()));
|
| + return target.hasJSCapability() ? target.profilerAgent().stop(this._addCpuProfile.bind(this, target.id())) : Promise.resolve();
|
| },
|
|
|
| /**
|
|
|