Bug 1371298 - support sticky_prefs in devtools addon prefs loader;r=bgrins
MozReview-Commit-ID: BgPvk9ykdrX
--- a/devtools/bootstrap.js
+++ b/devtools/bootstrap.js
@@ -72,17 +72,17 @@ function interpretPreprocessingInstructi
}
ignoring = !ifMap[line];
} else if (line.startsWith("#else")) {
ignoring = !ignoring;
} else if (line.startsWith("#endif")) {
ignoring = false;
}
- let isPrefLine = /^ *pref\("([^"]+)"/.test(line);
+ let isPrefLine = /^ *(sticky_)?pref\("([^"]+)"/.test(line);
if (continuation || (!ignoring && isPrefLine)) {
newLines.push(line);
// The call to pref(...); might span more than one line.
continuation = !/\);/.test(line);
}
}
return newLines.join("\n");