summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfformfill_embeddertest.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-09-28 17:46:27 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-09-29 01:08:35 +0000
commiteffa1b15ae2ab34ae15892787d5c1caa015bd2d4 (patch)
tree94d30750cf50bdb73a74343a853dae6d9af1cf1e /fpdfsdk/fpdfformfill_embeddertest.cpp
parent26d87f53b5c1e7169455fdaf8e2305e3b9fcbb54 (diff)
downloadpdfium-chromium/3202.tar.xz
M62: OnBeforeKeystroke may invalidate the widget's window.chromium/3202
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> (cherry picked from commit b1f9205bb1a0671c31e44e7362784c770bf2a948) Reviewed-on: https://pdfium-review.googlesource.com/15111 Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdfformfill_embeddertest.cpp')
-rw-r--r--fpdfsdk/fpdfformfill_embeddertest.cpp11
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) {