| Index: third_party/WebKit/Source/devtools/front_end/console/ConsoleContextSelector.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/console/ConsoleContextSelector.js b/third_party/WebKit/Source/devtools/front_end/console/ConsoleContextSelector.js
|
| index de1ceda9ada0601dab31484c5a3a3162797ee512..8073bead6351b1c6aa60d160cfd4e4749698734d 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/console/ConsoleContextSelector.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/console/ConsoleContextSelector.js
|
| @@ -34,7 +34,8 @@ WebInspector.ConsoleContextSelector.prototype = {
|
| var result;
|
| if (executionContext.isDefault) {
|
| if (executionContext.frameId) {
|
| - var frame = executionContext.target().resourceTreeModel.frameForId(executionContext.frameId);
|
| + var resourceTreeModel = WebInspector.ResourceTreeModel.fromTarget(executionContext.target());
|
| + var frame = resourceTreeModel && resourceTreeModel.frameForId(executionContext.frameId);
|
| result = frame ? frame.displayName() : executionContext.label();
|
| } else {
|
| result = executionContext.target().decorateLabel(executionContext.label());
|
|
|