| Index: chrome/tools/test/reference_build/chrome_linux/resources/inspector/SourceView.js
|
| diff --git a/chrome/tools/test/reference_build/chrome_linux/resources/inspector/SourceView.js b/chrome/tools/test/reference_build/chrome_linux/resources/inspector/SourceView.js
|
| index ce90dc818945af11856ec3947e48bf7ce2675b55..97a5bd5d2c8b2516529f3cbe296fdeeaa9582233 100644
|
| --- a/chrome/tools/test/reference_build/chrome_linux/resources/inspector/SourceView.js
|
| +++ b/chrome/tools/test/reference_build/chrome_linux/resources/inspector/SourceView.js
|
| @@ -95,12 +95,20 @@ WebInspector.SourceView.prototype = {
|
|
|
| this.attach();
|
|
|
| - if (!InspectorController.addResourceSourceToFrame(this.resource.identifier, this.sourceFrame.element))
|
| - return;
|
| -
|
| delete this._frameNeedsSetup;
|
| -
|
| - if (this.resource.type === WebInspector.Resource.Type.Script) {
|
| + this.sourceFrame.addEventListener("content loaded", this._contentLoaded, this);
|
| + InspectorController.addResourceSourceToFrame(this.resource.identifier, this.sourceFrame.element);
|
| + },
|
| +
|
| + _contentLoaded: function()
|
| + {
|
| + delete this._frameNeedsSetup;
|
| + this.sourceFrame.removeEventListener("content loaded", this._contentLoaded, this);
|
| +
|
| + if (this.resource.type === WebInspector.Resource.Type.Script
|
| + || this.resource.mimeType === 'application/json'
|
| + || this.resource.mimeType === 'application/javascript'
|
| + || /\.js(on)?$/.test(this.resource.lastPathComponent) ) {
|
| this.sourceFrame.addEventListener("syntax highlighting complete", this._syntaxHighlightingComplete, this);
|
| this.sourceFrame.syntaxHighlightJavascript();
|
| } else
|
|
|