Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit bf41732

Browse files
committed
Bug 1705373 - Part 1: Only set WDBA and Update Agent configs on Firefox (browser app). r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D114306
1 parent b845f71 commit bf41732

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

build/moz.configure/update-programs.configure

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,16 @@ set_config(
4040
# check for, download, and install updates.
4141
# ==============================================================
4242

43+
44+
@depends("--enable-backgroundtasks", build_project)
45+
def update_agent_default(backgroundtasks, build_project):
46+
return bool(backgroundtasks) and build_project == "browser"
47+
48+
4349
option(
4450
"--disable-update-agent",
4551
when=target_is_windows | target_is_osx,
46-
default=depends("--enable-backgroundtasks")(lambda x: bool(x)),
52+
default=update_agent_default,
4753
help="{Enable|Disable} building update agent",
4854
)
4955

@@ -71,9 +77,9 @@ def check_update_agent(update_agent, backgroundtasks):
7177
# ==============================================================================
7278

7379

74-
@depends(target)
75-
def default_browser_agent_default(target):
76-
return target.os == "WINNT"
80+
@depends(target, build_project)
81+
def default_browser_agent_default(target, build_project):
82+
return target.os == "WINNT" and build_project == "browser"
7783

7884

7985
option(

0 commit comments

Comments
 (0)