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

Unified Diff: Source/devtools/front_end/audits/AuditRules.js

Issue 685203003: DevTools: Get rid of synchronous XHRs in the frontend code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments Created 6 years, 1 month 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: Source/devtools/front_end/audits/AuditRules.js
diff --git a/Source/devtools/front_end/audits/AuditRules.js b/Source/devtools/front_end/audits/AuditRules.js
index fdc864cdfea6f7532d5930ad45526540a8e12214..b4d9cd7195a44a459a6160bd5620387084c50749 100644
--- a/Source/devtools/front_end/audits/AuditRules.js
+++ b/Source/devtools/front_end/audits/AuditRules.js
@@ -534,7 +534,7 @@ WebInspector.AuditRules.StyleSheetProcessor.prototype = {
return;
}
this._currentStyleSheetHeader = this._styleSheetHeaders.shift();
- this._parser.fetchAndParse(this._currentStyleSheetHeader, this._onStyleSheetParsed.bind(this));
+ this._parser.fetchAndParse(this._currentStyleSheetHeader).then(this._onStyleSheetParsed.bind(this)).done();
},
/**

Powered by Google App Engine
This is Rietveld 408576698