From 6694976ecd5582dc9e8d43b614773a73012722e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Mon, 2 Sep 2019 08:22:30 +0000 Subject: [PATCH] Bug 1577834 - Remove now-useless promise array in ensureCSSErrorReportingEnabled. r=nchevobbe Now that we no longer do anything when they all resolve, this can go away. Differential Revision: https://phabricator.services.mozilla.com/D44222 --HG-- extra : moz-landing-system : lando --- devtools/server/actors/targets/browsing-context.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/devtools/server/actors/targets/browsing-context.js b/devtools/server/actors/targets/browsing-context.js index ecea9b1724d2..c7f02d6e6053 100644 --- a/devtools/server/actors/targets/browsing-context.js +++ b/devtools/server/actors/targets/browsing-context.js @@ -1133,17 +1133,14 @@ const browsingContextTargetPrototype = { docShell.document, /* documentOnly = */ true ); - const promises = []; for (const sheet of sheets) { if (InspectorUtils.hasRulesModifiedByCSSOM(sheet)) { continue; } // Reparse the sheet so that we see the existing errors. - promises.push( - getSheetText(sheet, this._consoleActor).then(text => { - InspectorUtils.parseStyleSheet(sheet, text, /* aUpdate = */ false); - }) - ); + getSheetText(sheet, this._consoleActor).then(text => { + InspectorUtils.parseStyleSheet(sheet, text, /* aUpdate = */ false); + }); } }