Bug 1229226 - Reject RESOURCE_FILES along DIST_SUBDIR or XPI_NAME. r=gps

Gecko only uses resource files in the GRE directory.
This commit is contained in:
Mike Hommey 2015-12-01 10:15:42 +09:00
Родитель 572b7a9ece
Коммит aa6442b3ae
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -641,6 +641,10 @@ class TreeMetadataEmitter(LoggingMixin):
resources = context.get('RESOURCE_FILES')
if resources:
if context.get('DIST_SUBDIR') or context.get('XPI_NAME'):
raise SandboxValidationError(
'RESOURCES_FILES cannot be used with DIST_SUBDIR or '
'XPI_NAME.', context)
yield Resources(context, resources)
for pref in sorted(context['JS_PREFERENCE_FILES']):