Skip to content

Commit

Permalink
Bug 1922961 - Don't append the browser subdirectory in Thunderbird. r…
Browse files Browse the repository at this point in the history
…=win-reviewers,handyman, a=dmeehan
  • Loading branch information
Ponchale committed Nov 5, 2024
1 parent 0661479 commit 4e27152
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions widget/windows/ToastNotification.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,11 @@ bool ToastNotification::RegisterRuntimeAumid(nsAutoString& aInstallHash,
rv = appdir->Clone(getter_AddRefs(icon));
NS_ENSURE_SUCCESS(rv, false);

// Add browser subdirectory only for Firefox
#ifdef MOZ_BUILD_APP_IS_BROWSER
rv = icon->Append(u"browser"_ns);
NS_ENSURE_SUCCESS(rv, false);
#endif

rv = icon->Append(u"VisualElements"_ns);
NS_ENSURE_SUCCESS(rv, false);
Expand Down
3 changes: 3 additions & 0 deletions widget/windows/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ LOCAL_INCLUDES += [
"/xpcom/base",
]

if CONFIG["MOZ_BUILD_APP"] == "browser":
DEFINES["MOZ_BUILD_APP_IS_BROWSER"] = True

DEFINES["MOZ_UNICODE"] = True
DEFINES["MOZ_APP_NAME"] = '"%s"' % CONFIG["MOZ_APP_NAME"]
# Turn `firefox` into `Firefox`.
Expand Down

0 comments on commit 4e27152

Please sign in to comment.