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

Issue 2626863003: Don't put timers with ID == 0 into the global timer map. (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

Don't put timers with ID == 0 into the global timer map. A return of ID == 0 from the embedder means the timer was not created (see public/fpdf_formfill.h), although few embedders actually conform to this convention. Firing a timer with ID == 0 will thus do nothing since there can't be such a timer in the map. BUG=679649 Review-Url: https://codereview.chromium.org/2626863003 Committed: https://pdfium.googlesource.com/pdfium/+/6cf5ecae75a5cd6fea9ae7f4e28cc28abb3e69c6

Patch Set 1 #

Patch Set 2 : add test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+241 lines, -4 lines) Patch
M fpdfsdk/fpdfformfill_embeddertest.cpp View 1 1 chunk +17 lines, -0 lines 0 comments Download
M fpdfsdk/javascript/app.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M testing/embedder_test_timer_handling_delegate.h View 1 2 chunks +8 lines, -3 lines 0 comments Download
A testing/resources/bug_679649.in View 1 1 chunk +80 lines, -0 lines 0 comments Download
A testing/resources/bug_679649.pdf View 1 1 chunk +134 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (12 generated)
Tom Sepez
Dan, for review.
3 years, 11 months ago (2017-01-11 22:51:12 UTC) #4
dsinclair
Is there a test we should add around this so it doesn't regress?
3 years, 11 months ago (2017-01-12 14:30:16 UTC) #8
Tom Sepez
On 2017/01/12 14:30:16, dsinclair wrote: > Is there a test we should add around this ...
3 years, 11 months ago (2017-01-12 19:04:16 UTC) #11
dsinclair
lgtm
3 years, 11 months ago (2017-01-12 19:12:07 UTC) #12
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/2626863003/20001
3 years, 11 months ago (2017-01-12 19:20:38 UTC) #15
commit-bot: I haz the power
3 years, 11 months ago (2017-01-12 19:21:17 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://pdfium.googlesource.com/pdfium/+/6cf5ecae75a5cd6fea9ae7f4e28cc28abb3e...

Powered by Google App Engine
This is Rietveld 408576698