Bug 1303800 - Turn on javascript.options.asyncstack pref for Netmonitor tests that need it. r=ochameau

MozReview-Commit-ID: 6XuKt7ZqTdr
This commit is contained in:
Jarda Snajdr 2016-09-19 23:10:00 +02:00
parent f2cfe86ef2
commit f62ea10691
2 changed files with 6 additions and 0 deletions

View File

@ -78,6 +78,9 @@ const EXPECTED_REQUESTS = [
];
add_task(function* () {
// Async stacks aren't on by default in all builds
yield SpecialPowers.pushPrefEnv({ set: [["javascript.options.asyncstack", true]] });
// the initNetMonitor function clears the network request list after the
// page is loaded. That's why we first load a bogus page from SIMPLE_URL,
// and only then load the real thing from CAUSE_URL - we want to catch

View File

@ -147,6 +147,9 @@ const EXPECTED_REQUESTS_SUB = [
const REQUEST_COUNT = EXPECTED_REQUESTS_TOP.length + EXPECTED_REQUESTS_SUB.length;
add_task(function* () {
// Async stacks aren't on by default in all builds
yield SpecialPowers.pushPrefEnv({ set: [["javascript.options.asyncstack", true]] });
// the initNetMonitor function clears the network request list after the
// page is loaded. That's why we first load a bogus page from SIMPLE_URL,
// and only then load the real thing from TOP_URL - we want to catch