mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1184974 - The submissionURL should not be recorded for packed add-ons in the profile, r=markh.
This commit is contained in:
parent
5405e256f3
commit
9d69ef2be7
@ -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) {
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user