~mozillateam/firefox/firefox.disco

« back to all changes in this revision

Viewing changes to debian/patches/mark-distribution-search-engines-as-read-only.patch

  • Committer: Olivier Tilloy
  • Date: 2019-06-20 14:18:28 UTC
  • Revision ID: olivier.tilloy@canonical.com-20190620141828-3vtlnpvp49lahe9w
* New upstream stable release (67.0.4build1)

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
--- a/toolkit/components/search/SearchService.jsm
14
14
+++ b/toolkit/components/search/SearchService.jsm
15
15
@@ -3267,7 +3267,7 @@ SearchService.prototype = {
 
16
       try {
 
17
         let file = Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsIFile);
16
18
         file.initWithPath(osfile.path);
17
 
         addedEngine = new SearchEngine({
18
 
           fileURI: file,
19
 
-          readOnly: false,
20
 
+          readOnly: true,
21
 
         });
 
19
-        addedEngine = new Engine(file, false);
 
20
+        addedEngine = new Engine(file, true);
22
21
         await addedEngine._initFromFile(file);
23
22
         engines.push(addedEngine);
 
23
       } catch (ex) {