--- a/browser/tools/mozscreenshots/mozscreenshots/extension/TestRunner.jsm
+++ b/browser/tools/mozscreenshots/mozscreenshots/extension/TestRunner.jsm
@@ -296,16 +296,17 @@ this.TestRunner = {
},
_comboName(combo) {
return combo.reduce(function(a, b) {
return a + "_" + b.name;
}, "");
},
+ // random change
async _cropImage(window, srcPath, rect, targetPath) {
const { document, Image } = window;
const promise = new Promise((resolve, reject) => {
const img = new Image();
img.onload = function() {
// Make sure that the cropping region is valid and that the cropping
// region is inside the screenshot we are cropping
if (rect.x < 0 || rect.y < 0 || rect.width < 0 || rect.height < 0 ||