Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Unified Diff: chrome/tools/test/reference_build/chrome_linux/resources/inspector/SourceView.js

Issue 177049: On Linux, move the passing of filedescriptors to a dedicated socketpair(). (Closed)
Patch Set: Removed *.d files from reference build Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698