Bug 1184974 - The submissionURL should not be recorded for packed add-ons in the profile, r=markh.

This commit is contained in:
Florian Quèze 2015-07-21 23:12:07 +02:00
parent 5405e256f3
commit 9d69ef2be7
2 changed files with 2 additions and 3 deletions

View File

@ -4910,7 +4910,7 @@ SearchService.prototype = {
// For privacy, we only collect the submission URL for engines
// from the application or distribution folder...
let sendSubmissionURL =
/^(?:jar:|\[app\]|\[distribution\])/.test(result.loadPath);
/^(?:jar:)?(?:\[app\]|\[distribution\])/.test(result.loadPath);
// ... or engines sorted by default near the top of the list.
if (!sendSubmissionURL) {

View File

@ -1033,8 +1033,7 @@ add_task(function* test_defaultSearchEngine() {
Assert.equal(data.settings.defaultSearchEngine, "telemetrySearchIdentifier");
let expectedSearchEngineData = {
name: "telemetrySearchIdentifier",
loadPath: "jar:[other]/searchTest.jar!testsearchplugin/telemetrySearchIdentifier.xml",
submissionURL: "http://ar.wikipedia.org/wiki/%D8%AE%D8%A7%D8%B5:%D8%A8%D8%AD%D8%AB?search=&sourceid=Mozilla-search"
loadPath: "jar:[other]/searchTest.jar!testsearchplugin/telemetrySearchIdentifier.xml"
};
Assert.deepEqual(data.settings.defaultSearchEngineData, expectedSearchEngineData);