diff options
author | Tom Sepez <tsepez@chromium.org> | 2017-09-14 17:03:12 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-09-15 00:19:05 +0000 |
commit | b1f9205bb1a0671c31e44e7362784c770bf2a948 (patch) | |
tree | dbb619f7fe5a987514ddccd7fca5594350241ee6 /fpdfsdk/fpdfformfill_embeddertest.cpp | |
parent | 3cb71268405f64b98109853bd3b59e50db58692d (diff) | |
download | pdfium-b1f9205bb1a0671c31e44e7362784c770bf2a948.tar.xz |
OnBeforeKeystroke may invalidate the widget's window.
And along with it any data that the window may have been carrying.
Tidy some return codes while we're at it.
Bug: 765384
Change-Id: Id16ec5f82b3d9273ba8f2edb1e4645a9145df4f6
Reviewed-on: https://pdfium-review.googlesource.com/14050
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdfformfill_embeddertest.cpp')
-rw-r--r-- | fpdfsdk/fpdfformfill_embeddertest.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fpdfsdk/fpdfformfill_embeddertest.cpp b/fpdfsdk/fpdfformfill_embeddertest.cpp index 93350874dc..56e166252e 100644 --- a/fpdfsdk/fpdfformfill_embeddertest.cpp +++ b/fpdfsdk/fpdfformfill_embeddertest.cpp @@ -506,6 +506,17 @@ TEST_F(FPDFFormFillEmbeddertest, BUG_707673) { EXPECT_EQ(0u, alerts.size()); } +TEST_F(FPDFFormFillEmbeddertest, BUG_765384) { + EXPECT_TRUE(OpenDocument("bug_765384.pdf")); + FPDF_PAGE page = LoadPage(0); + EXPECT_TRUE(page); + + DoOpenActions(); + FORM_OnLButtonDown(form_handle(), page, 0, 140, 590); + FORM_OnLButtonUp(form_handle(), page, 0, 140, 590); + UnloadPage(page); +} + #endif // PDF_ENABLE_V8 TEST_F(FPDFFormFillEmbeddertest, FormText) { |