diff --git a/browser-extensions.json b/browser-extensions.json index 704230f5..d880d165 100644 --- a/browser-extensions.json +++ b/browser-extensions.json @@ -1,5 +1,5 @@ -{ - "nordpass": { +[ + { "name": "NordPass", "message": "NordPass performs polyfill-like transformations on navigator.credentials, affecting tests for the CredentialsContainer API.", "affectedTests": ["api.CredentialsContainer"], @@ -7,4 +7,4 @@ "firefoxId": "0ff38d7a-db91-4a1a-a222-00f10d098b22", "safariId": "9F9F9D62-DE32-4B4F-88FD-63D448DACFDC" } -} +] diff --git a/static/resources/harness.js b/static/resources/harness.js index a759ac12..d51f5f1d 100644 --- a/static/resources/harness.js +++ b/static/resources/harness.js @@ -1747,9 +1747,15 @@ renderHarnessLink(resultsEl); // Render code and support for reusable instances - var reInstKeys = Object.keys(reusableInstances.__sources); - for (var i = 0; i < reInstKeys.length; i++) { - renderReInstReportEl(reInstKeys[i], resultsEl); + for (var key in reusableInstances.__sources) { + if ( + Object.prototype.hasOwnProperty.call( + reusableInstances.__sources, + key + ) + ) { + renderReInstReportEl(reusableInstances.__sources[key], resultsEl); + } } // Add divider diff --git a/views/extensioncheck.ejs b/views/extensioncheck.ejs index 0f118cac..7efb19e4 100644 --- a/views/extensioncheck.ejs +++ b/views/extensioncheck.ejs @@ -111,13 +111,11 @@ See the LICENSE file for copyright details return; } - var extensionsToCheck = Object.keys(extensions); - var remaining = extensionsToCheck.length; + var remaining = extensions.length; var foundExtensions = []; - extensionsToCheck.forEach(function(k) { - var extension = extensions[k]; + extensions.forEach(function(extension) { checkExtension(extension, function(result) { if (result) { foundExtensions.push(k);