Bug 1477202 - Avoid shipping PerTestCoverageUtils.jsm to users by only adding it to Marionette when MOZ_CODE_COVERAGE is defined. r=florian

This commit is contained in:
Marco Castelluccio
2018-07-20 11:37:52 +02:00
parent 6f8a0f5893
commit 7b43d811af
3 changed files with 13 additions and 1 deletions
@@ -132,7 +132,6 @@ var whitelist = [
{file: "chrome://marionette/content/test_anonymous_content.xul"},
{file: "chrome://marionette/content/test_dialog.properties"},
{file: "chrome://marionette/content/test_dialog.xul"},
{file: "chrome://marionette/content/PerTestCoverageUtils.jsm"},
// Bug 1348533
{file: "chrome://mozapps/skin/downloads/buttons.png", platforms: ["macosx"]},
{file: "chrome://mozapps/skin/downloads/downloadButtons.png", platforms: ["linux", "win"]},
@@ -203,6 +202,10 @@ if (!isDevtools) {
}
if (AppConstants.MOZ_CODE_COVERAGE) {
whitelist.add("chrome://marionette/content/PerTestCoverageUtils.jsm");
}
const gInterestingCategories = new Set([
"agent-style-sheets", "addon-provider-module", "webextension-modules",
"webextension-scripts", "webextension-schemas", "webextension-scripts-addon",
+2
View File
@@ -46,5 +46,7 @@ marionette.jar:
content/test_dialog.xul (chrome/test_dialog.xul)
content/test_nested_iframe.xul (chrome/test_nested_iframe.xul)
content/test.xul (chrome/test.xul)
#ifdef MOZ_CODE_COVERAGE
content/PerTestCoverageUtils.jsm (../../tools/code-coverage/PerTestCoverageUtils.jsm)
#endif
#endif
+7
View File
@@ -319,4 +319,11 @@ this.AppConstants = Object.freeze({
#else
false,
#endif
MOZ_CODE_COVERAGE:
#ifdef MOZ_CODE_COVERAGE
true,
#else
false,
#endif
});