Skip to content

Commit

Permalink
Bug 1778692 - [Annotation] A push button can have no action. r=calixt…
Browse files Browse the repository at this point in the history
…e, a=dmeehan

Backport of upstream commit:
mozilla/pdf.js#15153

Differential Revision: https://phabricator.services.mozilla.com/D151923
  • Loading branch information
rvandermeulen committed Jul 15, 2022
1 parent 543a6bd commit 6112943
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions toolkit/components/pdfjs/content/build/pdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -12638,8 +12638,8 @@ class PushButtonWidgetAnnotationElement extends LinkAnnotationElement {
container.title = this.data.alternativeText;
}

if (this.enableScripting && this.hasJSActions) {
const linkElement = container.lastChild;
const linkElement = container.lastChild;
if (this.enableScripting && this.hasJSActions && linkElement) {

this._setDefaultPropertiesFromJS(linkElement);

Expand Down

0 comments on commit 6112943

Please sign in to comment.