diff options
author | Tom Sepez <tsepez@chromium.org> | 2017-02-23 12:14:10 -0800 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-02-23 20:43:24 +0000 |
commit | 77f6d0f8e64596992df4d2a046cc86f051574e02 (patch) | |
tree | ea57a90f435787775120dcb804b3c662db5c1b82 /fpdfsdk/javascript/cjs_runtime.h | |
parent | b9c69ab7f1338684ffddbc1076052c546f1a95ad (diff) | |
download | pdfium-77f6d0f8e64596992df4d2a046cc86f051574e02.tar.xz |
Observe all formfill environment pointer in JS objects.
Preventitve measure to decouple JS object lifetimes from C++
objects.
Change-Id: I964a52590fcd0bfc26ac6055a7daf8aa33d455f3
Reviewed-on: https://pdfium-review.googlesource.com/2828
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fpdfsdk/javascript/cjs_runtime.h')
-rw-r--r-- | fpdfsdk/javascript/cjs_runtime.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fpdfsdk/javascript/cjs_runtime.h b/fpdfsdk/javascript/cjs_runtime.h index 039e24b63e..0bde51f9de 100644 --- a/fpdfsdk/javascript/cjs_runtime.h +++ b/fpdfsdk/javascript/cjs_runtime.h @@ -15,6 +15,7 @@ #include "core/fxcrt/cfx_observable.h" #include "core/fxcrt/fx_basic.h" +#include "fpdfsdk/cpdfsdk_formfillenvironment.h" #include "fpdfsdk/javascript/JS_EventHandler.h" #include "fpdfsdk/javascript/ijs_runtime.h" #include "fxjs/fxjs_v8.h" @@ -61,7 +62,7 @@ class CJS_Runtime : public IJS_Runtime, void SetFormFillEnvToDocument(); std::vector<std::unique_ptr<CJS_EventContext>> m_EventContextArray; - CPDFSDK_FormFillEnvironment* const m_pFormFillEnv; + CPDFSDK_FormFillEnvironment::ObservedPtr m_pFormFillEnv; bool m_bBlocking; bool m_isolateManaged; std::set<FieldEvent> m_FieldEventSet; |