| Index: third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js
|
| index 42d7afb550c137e8f5cd232b92e63e878bb48440..088f36583caee731220481aca4302988db9683c5 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js
|
| @@ -162,12 +162,8 @@ SDK.ResourceTreeModel = class extends SDK.SDKModel {
|
| if (this._frames.has(frameId))
|
| return null;
|
|
|
| - var callFrames = null;
|
| - if (stackTrace && stackTrace.callFrames)
|
| - callFrames = stackTrace.callFrames;
|
| -
|
| var parentFrame = parentFrameId ? (this._frames.get(parentFrameId) || null) : null;
|
| - var frame = new SDK.ResourceTreeFrame(this, parentFrame, frameId, null, callFrames);
|
| + var frame = new SDK.ResourceTreeFrame(this, parentFrame, frameId, null, stackTrace || null);
|
| if (frame.isMainFrame() && this.mainFrame) {
|
| // Navigation to the new backend process.
|
| this._frameDetached(this.mainFrame.id);
|
| @@ -493,7 +489,7 @@ SDK.ResourceTreeFrame = class {
|
| * @param {?SDK.ResourceTreeFrame} parentFrame
|
| * @param {!Protocol.Page.FrameId} frameId
|
| * @param {?Protocol.Page.Frame} payload
|
| - * @param {?Array<!Protocol.Runtime.CallFrame>} creationStackTrace
|
| + * @param {?Protocol.Runtime.StackTrace} creationStackTrace
|
| */
|
| constructor(model, parentFrame, frameId, payload, creationStackTrace) {
|
| this._model = model;
|
| @@ -582,6 +578,13 @@ SDK.ResourceTreeFrame = class {
|
| }
|
|
|
| /**
|
| + * @return {?Protocol.Runtime.StackTrace}
|
| + */
|
| + creationStackTrace() {
|
| + return this._creationStackTrace;
|
| + }
|
| +
|
| + /**
|
| * @return {boolean}
|
| */
|
| isMainFrame() {
|
|
|