Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Issue 2624933002: Annotation deleted while retriveing it in JS (Closed)

Created:
3 years, 11 months ago by Tom Sepez
Modified:
3 years, 11 months ago
Reviewers:
dsinclair
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Annotation deleted while retrieving it in JS Widgets as returned from GetWidgets() can pop out of existence unexpectedly, so always return observed pointers. This extends the same pattern used elsewhere in the file to all occurrences. BUG=679642 Review-Url: https://codereview.chromium.org/2624933002 Committed: https://pdfium.googlesource.com/pdfium/+/8fa82794ffc2763e9fa1fc9d401c8e9a14d7c67f

Patch Set 1 #

Patch Set 2 : tidy #

Patch Set 3 : upstream branch set #

Total comments: 2

Patch Set 4 : rebase, another case. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -28 lines) Patch
M fpdfsdk/cpdfsdk_interform.h View 3 chunks +3 lines, -3 lines 0 comments Download
M fpdfsdk/cpdfsdk_interform.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M fpdfsdk/javascript/Document.cpp View 1 2 3 1 chunk +6 lines, -2 lines 0 comments Download
M fpdfsdk/javascript/Field.cpp View 1 5 chunks +35 lines, -20 lines 0 comments Download
A testing/resources/javascript/bug_679642.in View 1 chunk +140 lines, -0 lines 0 comments Download
A testing/resources/javascript/bug_679642_expected.txt View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
Tom Sepez
Dan, for review.
3 years, 11 months ago (2017-01-11 01:27:56 UTC) #3
dsinclair
https://codereview.chromium.org/2624933002/diff/40001/fpdfsdk/javascript/Document.cpp File fpdfsdk/javascript/Document.cpp (right): https://codereview.chromium.org/2624933002/diff/40001/fpdfsdk/javascript/Document.cpp#newcode515 fpdfsdk/javascript/Document.cpp:515: CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot.Get()); Doesnt' this need a if ...
3 years, 11 months ago (2017-01-11 13:56:07 UTC) #6
Tom Sepez
https://codereview.chromium.org/2624933002/diff/40001/fpdfsdk/javascript/Document.cpp File fpdfsdk/javascript/Document.cpp (right): https://codereview.chromium.org/2624933002/diff/40001/fpdfsdk/javascript/Document.cpp#newcode515 fpdfsdk/javascript/Document.cpp:515: CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot.Get()); On 2017/01/11 13:56:07, dsinclair wrote: ...
3 years, 11 months ago (2017-01-11 17:11:17 UTC) #7
dsinclair
lgtm
3 years, 11 months ago (2017-01-11 17:12:05 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2624933002/60001
3 years, 11 months ago (2017-01-11 17:12:11 UTC) #10
commit-bot: I haz the power
3 years, 11 months ago (2017-01-11 17:32:38 UTC) #13
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://pdfium.googlesource.com/pdfium/+/8fa82794ffc2763e9fa1fc9d401c8e9a14d7...

Powered by Google App Engine
This is Rietveld 408576698