bug_1972068_default_search_engine.py (696B)
1 # Any copyright is dedicated to the Public Domain. 2 # http://creativecommons.org/publicdomain/zero/1.0/ 3 4 from fluent.migrate.helpers import transforms_from 5 6 7 def migrate(ctx): 8 """Bug 1972068 - Convert default search engine section of search settings to config-based prefs, part {index}.""" 9 10 target = "browser/browser/preferences/preferences.ftl" 11 12 ctx.add_transforms( 13 target, 14 target, 15 transforms_from( 16 """ 17 search-engine-group = 18 .label = {COPY_PATTERN(from_path, "search-engine-default-header")} 19 search-default-engine = 20 .aria-label = {COPY_PATTERN(from_path, "search-engine-default-header")} 21 """, 22 from_path=target, 23 ), 24 )