Merge pull request #10350 from Snuffleupagus/sig-fieldValue-null

Ignore the `fieldValue` for Signature annotations, since they're currently unsupported (issue 10374)
This commit is contained in:
Tim van der Meij 2018-12-12 23:01:53 +01:00 committed by GitHub
commit fc607e35de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -613,8 +613,11 @@ class WidgetAnnotation extends Annotation {
data.readOnly = this.hasFieldFlag(AnnotationFieldFlag.READONLY);
// Hide signatures because we cannot validate them.
// Hide signatures because we cannot validate them, and unset the fieldValue
// since it's (most likely) a `Dict` which is non-serializable and will thus
// cause errors when sending annotations to the main-thread (issue 10347).
if (data.fieldType === 'Sig') {
data.fieldValue = null;
this.setFlags(AnnotationFlag.HIDDEN);
}
}