diff options
Diffstat (limited to 'testing/embedder_test.cpp')
-rw-r--r-- | testing/embedder_test.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/testing/embedder_test.cpp b/testing/embedder_test.cpp index 1baeb57206..bf00c11607 100644 --- a/testing/embedder_test.cpp +++ b/testing/embedder_test.cpp @@ -179,6 +179,8 @@ bool EmbedderTest::OpenDocument(const std::string& filename, } } + SetupFormFillEnvironment(); + #ifdef PDF_ENABLE_XFA int docType = DOCTYPE_PDF; if (FPDF_HasXFAField(document_, &docType)) { @@ -188,7 +190,6 @@ bool EmbedderTest::OpenDocument(const std::string& filename, #endif // PDF_ENABLE_XFA (void)FPDF_GetDocPermissions(document_); - SetupFormFillEnvironment(); return true; } @@ -197,6 +198,7 @@ void EmbedderTest::SetupFormFillEnvironment() { memset(platform, 0, sizeof(IPDF_JSPLATFORM)); platform->version = 2; platform->app_alert = AlertTrampoline; + platform->m_isolate = external_isolate_; FPDF_FORMFILLINFO* formfillinfo = static_cast<FPDF_FORMFILLINFO*>(this); memset(formfillinfo, 0, sizeof(FPDF_FORMFILLINFO)); |