| Index: Source/devtools/front_end/sources/JavaScriptSourceFrame.js
|
| diff --git a/Source/devtools/front_end/sources/JavaScriptSourceFrame.js b/Source/devtools/front_end/sources/JavaScriptSourceFrame.js
|
| index a64f2d74ac34abb47061f240c254f5923f10053f..12d4c4514133c71a3c7cac06ef9382ee120ff059 100644
|
| --- a/Source/devtools/front_end/sources/JavaScriptSourceFrame.js
|
| +++ b/Source/devtools/front_end/sources/JavaScriptSourceFrame.js
|
| @@ -225,14 +225,21 @@ WebInspector.JavaScriptSourceFrame.prototype = {
|
| WebInspector.ConsoleModel.evaluateCommandInConsole(currentExecutionContext, expression);
|
| },
|
|
|
| - // View events
|
| + /**
|
| + * @override
|
| + */
|
| wasShown: function()
|
| {
|
| WebInspector.UISourceCodeFrame.prototype.wasShown.call(this);
|
| - if (this._executionLocation && this.loaded)
|
| - this._generateValuesInSource();
|
| + if (this._executionLocation && this.loaded) {
|
| + // We need CodeMirrorTextEditor to be initialized prior to this call. @see crbug.com/499889
|
| + setImmediate(this._generateValuesInSource.bind(this));
|
| + }
|
| },
|
|
|
| + /**
|
| + * @override
|
| + */
|
| willHide: function()
|
| {
|
| WebInspector.UISourceCodeFrame.prototype.willHide.call(this);
|
|
|