diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-06-15 18:00:02 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-06-15 18:00:02 +0100 |
commit | aaa0815672dc7fbf5c230dbfd1102da861f036cb (patch) | |
tree | 84c5db62b57ab217edd7210aa4071644bac5d417 /pdf | |
parent | 2972aa7531a3cd810e245c4fab7ebd71c583fca2 (diff) | |
download | mupdf-aaa0815672dc7fbf5c230dbfd1102da861f036cb.tar.xz |
Move javascript loading after encryption/repair has been done.
Currently we were attempting to load the javascript for a document
immediately on opening it. Here we delay it until 1) the encryption
for a document has been loaded, and 2) any repair required to a
document has been done.
This solves various problems, which were leading (indirectly) to bug
693128.
Diffstat (limited to 'pdf')
-rw-r--r-- | pdf/pdf_xref.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf/pdf_xref.c b/pdf/pdf_xref.c index 8e74850c..45e8644c 100644 --- a/pdf/pdf_xref.c +++ b/pdf/pdf_xref.c @@ -685,7 +685,6 @@ pdf_init_document(pdf_document *xref) fz_try(ctx) { pdf_load_xref(xref, &xref->lexbuf.base); - xref->js = pdf_new_js(xref); } fz_catch(ctx) { @@ -768,6 +767,7 @@ pdf_init_document(pdf_document *xref) dict = NULL; } } + xref->js = pdf_new_js(xref); } fz_catch(ctx) { |