Bug 1410072 - browser/base/content/test/performance tests should not modify startupRecorder data in order to pass test-verify, r=johannh.

This commit is contained in:
Florian Quèze 2018-01-04 22:23:48 +01:00
parent 4b4ce8d720
commit 54388800fe
2 changed files with 2 additions and 2 deletions

View File

@ -153,7 +153,7 @@ add_task(async function() {
let loader = Cc["@mozilla.org/moz/jsloader;1"].getService(Ci.xpcIJSModuleLoader);
let componentStacks = new Map();
let data = startupRecorder.data.code;
let data = Cu.cloneInto(startupRecorder.data.code, {});
// Keep only the file name for components, as the path is an absolute file
// URL rather than a resource:// URL like for modules.
for (let phase in data) {

View File

@ -93,7 +93,7 @@ add_task(async function() {
let startupRecorder = Cc["@mozilla.org/test/startuprecorder;1"].getService().wrappedJSObject;
await startupRecorder.done;
let data = startupRecorder.data.images;
let data = Cu.cloneInto(startupRecorder.data.images, {});
let filteredWhitelist = whitelist.filter(el => {
return el.platforms.includes(AppConstants.platform);
});