Skip to content

Commit

Permalink
Bug 1666753 - Need to reset the streams when printing. r=bdahl, a=jcr…
Browse files Browse the repository at this point in the history
…istau

This is a cherry-pick of the following upstream commit:
mozilla/pdf.js#12414

Differential Revision: https://phabricator.services.mozilla.com/D91375
  • Loading branch information
rvandermeulen committed Sep 25, 2020
1 parent 235525a commit f5ab6cc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions toolkit/components/pdfjs/content/build/pdf.worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -20474,6 +20474,12 @@ class ButtonWidgetAnnotation extends WidgetAnnotation {
this.data.exportValue = exportValues[0] === "Off" ? exportValues[1] : exportValues[0];
this.checkedAppearance = normalAppearance.get(this.data.exportValue);
this.uncheckedAppearance = normalAppearance.get("Off") || null;

this._streams.push(this.checkedAppearance);

if (this.uncheckedAppearance) {
this._streams.push(this.uncheckedAppearance);
}
}

_processRadioButton(params) {
Expand Down Expand Up @@ -20510,6 +20516,12 @@ class ButtonWidgetAnnotation extends WidgetAnnotation {

this.checkedAppearance = normalAppearance.get(this.data.buttonValue);
this.uncheckedAppearance = normalAppearance.get("Off") || null;

this._streams.push(this.checkedAppearance);

if (this.uncheckedAppearance) {
this._streams.push(this.uncheckedAppearance);
}
}

_processPushButton(params) {
Expand Down

0 comments on commit f5ab6cc

Please sign in to comment.