summaryrefslogtreecommitdiffstats
path: root/toolkit/components/pdfjs/content/build/pdf.scripting.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/components/pdfjs/content/build/pdf.scripting.mjs')
-rw-r--r--toolkit/components/pdfjs/content/build/pdf.scripting.mjs9
1 files changed, 4 insertions, 5 deletions
diff --git a/toolkit/components/pdfjs/content/build/pdf.scripting.mjs b/toolkit/components/pdfjs/content/build/pdf.scripting.mjs
index 8f4c2a7762..b2c74fc902 100644
--- a/toolkit/components/pdfjs/content/build/pdf.scripting.mjs
+++ b/toolkit/components/pdfjs/content/build/pdf.scripting.mjs
@@ -1613,7 +1613,7 @@ class EventDispatcher {
formatAll() {
const event = globalThis.event = new Event({});
for (const source of Object.values(this._objects)) {
- event.value = source.obj.value;
+ event.value = source.obj._getValue();
this.runActions(source, source, event, "Format");
}
}
@@ -1622,8 +1622,7 @@ class EventDispatcher {
if (event.rc) {
source.obj.value = event.value;
this.runCalculate(source, event);
- const savedValue = source.obj._getValue();
- event.value = source.obj.value;
+ const savedValue = event.value = source.obj._getValue();
let formattedValue = null;
if (this.runActions(source, source, event, "Format")) {
formattedValue = event.value?.toString?.();
@@ -3957,8 +3956,8 @@ function initSandbox(params) {
;// CONCATENATED MODULE: ./src/pdf.scripting.js
-const pdfjsVersion = "4.1.379";
-const pdfjsBuild = "017e49244";
+const pdfjsVersion = "4.3.8";
+const pdfjsBuild = "c419c8333";
globalThis.pdfjsScripting = {
initSandbox: initSandbox
};