Bug 1736742 part 1: Add missing a11y COM interfaces to Appx Manifest. r=nalexander

Differential Revision: https://phabricator.services.mozilla.com/D129949
This commit is contained in:
James Teh 2021-11-05 06:25:44 +00:00
Родитель ddfe54e593
Коммит 76ad0164ca
2 изменённых файлов: 24 добавлений и 12 удалений

Просмотреть файл

@ -81,6 +81,12 @@
Path="VFS\ProgramFiles\@APPX_INSTDIR@\AccessibleMarshal.dll" /> Path="VFS\ProgramFiles\@APPX_INSTDIR@\AccessibleMarshal.dll" />
<com:Interface Id="@MOZ_IGECKOBACKCHANNEL_IID@" <com:Interface Id="@MOZ_IGECKOBACKCHANNEL_IID@"
ProxyStubClsid="@MOZ_IGECKOBACKCHANNEL_IID@" /> ProxyStubClsid="@MOZ_IGECKOBACKCHANNEL_IID@" />
<com:Interface Id="@MOZ_IHANDLERCONTROL_IID@"
ProxyStubClsid="@MOZ_IGECKOBACKCHANNEL_IID@"
AsynchronousInterface="@MOZ_ASYNCIHANDLERCONTROL_IID@" />
<com:Interface Id="@MOZ_ASYNCIHANDLERCONTROL_IID@"
ProxyStubClsid="@MOZ_IGECKOBACKCHANNEL_IID@"
SynchronousInterface="@MOZ_IHANDLERCONTROL_IID@" />
<com:Interface Id="4e747be5-2052-4265-8af0-8ecad7aad1c0" <com:Interface Id="4e747be5-2052-4265-8af0-8ecad7aad1c0"
ProxyStubClsid="1814ceeb-49e2-407f-af99-fa755a7d2607" /> ProxyStubClsid="1814ceeb-49e2-407f-af99-fa755a7d2607" />
<com:Interface Id="1814ceeb-49e2-407f-af99-fa755a7d2607" <com:Interface Id="1814ceeb-49e2-407f-af99-fa755a7d2607"

Просмотреть файл

@ -404,20 +404,26 @@ def repackage_msix(
# Release (official) and Beta share branding. Differentiate Beta a little bit. # Release (official) and Beta share branding. Differentiate Beta a little bit.
brandFullName += " Beta" brandFullName += " Beta"
# We don't have a build at repackage-time to gives us this value, and the # We don't have a build at repackage-time to give us these values, and the
# source of truth is a branding-specific `configure.sh` shell script that we # source of truth is a branding-specific `configure.sh` shell script that we
# can't easily evaluate completely here. Instead, we take the last value # can't easily evaluate completely here. Instead, we take the last value
# from `configure.sh`. # from `configure.sh`.
lines = [ brandingUuids = {}
line lines = open(mozpath.join(branding, "configure.sh")).readlines()
for line in open(mozpath.join(branding, "configure.sh")).readlines() for key in (
if "MOZ_IGECKOBACKCHANNEL_IID" in line "MOZ_IGECKOBACKCHANNEL_IID",
] "MOZ_IHANDLERCONTROL_IID",
MOZ_IGECKOBACKCHANNEL_IID = lines[-1] "MOZ_ASYNCIHANDLERCONTROL_IID",
_, _, MOZ_IGECKOBACKCHANNEL_IID = MOZ_IGECKOBACKCHANNEL_IID.partition("=") ):
MOZ_IGECKOBACKCHANNEL_IID = MOZ_IGECKOBACKCHANNEL_IID.strip() for line in reversed(lines):
if MOZ_IGECKOBACKCHANNEL_IID.startswith(('"', "'")): if key not in line:
MOZ_IGECKOBACKCHANNEL_IID = MOZ_IGECKOBACKCHANNEL_IID[1:-1] continue
_, _, uuid = line.partition("=")
uuid = uuid.strip()
if uuid.startswith(('"', "'")):
uuid = uuid[1:-1]
brandingUuids[key] = uuid
break
# The convention is $MOZBUILD_STATE_PATH/cache/$FEATURE. # The convention is $MOZBUILD_STATE_PATH/cache/$FEATURE.
output_dir = mozpath.normsep( output_dir = mozpath.normsep(
@ -618,8 +624,8 @@ def repackage_msix(
"APPX_VERSION": version, "APPX_VERSION": version,
"MOZ_APP_DISPLAYNAME": displayname, "MOZ_APP_DISPLAYNAME": displayname,
"MOZ_APP_NAME": app_name, "MOZ_APP_NAME": app_name,
"MOZ_IGECKOBACKCHANNEL_IID": MOZ_IGECKOBACKCHANNEL_IID,
} }
defines.update(brandingUuids)
m.add_preprocess( m.add_preprocess(
mozpath.join(template, "AppxManifest.xml.in"), mozpath.join(template, "AppxManifest.xml.in"),