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

Issue 1556603002: Call FPDFAvail_IsFormAvail() before creating form. (Closed)

Created:
4 years, 11 months ago by spelchat
Modified:
4 years, 11 months ago
Reviewers:
Lei Zhang
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Call FPDFAvail_IsFormAvail() before creating form. FPDFAvail_IsFormAvail() must be called before the PDF form is initialized if new data was downloaded since the document was created. BUG=572943 Committed: https://crrev.com/a69e93f6ac1ee1a6e3554ea61e0461a83c75081d Cr-Commit-Position: refs/heads/master@{#367191}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Cleanup #

Total comments: 2

Patch Set 3 : Use DCHECK_NE instead of DCHECK #

Patch Set 4 : Don't call FPDF_IsFormAvail() if |fpdf_availability_| is not set #

Total comments: 3

Patch Set 5 : Remove DCHECK_NE #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -5 lines) Patch
M pdf/pdfium/pdfium_engine.cc View 1 2 3 4 1 chunk +6 lines, -5 lines 0 comments Download

Messages

Total messages: 22 (7 generated)
spelchat
4 years, 11 months ago (2015-12-30 00:58:53 UTC) #2
Lei Zhang
https://codereview.chromium.org/1556603002/diff/1/pdf/pdfium/pdfium_engine.cc File pdf/pdfium/pdfium_engine.cc (right): https://codereview.chromium.org/1556603002/diff/1/pdf/pdfium/pdfium_engine.cc#newcode2603 pdf/pdfium/pdfium_engine.cc:2603: if (!FPDFAvail_IsFormAvail(fpdf_availability_, &download_hints_) && How about we call these ...
4 years, 11 months ago (2015-12-30 01:09:21 UTC) #3
spelchat
https://codereview.chromium.org/1556603002/diff/1/pdf/pdfium/pdfium_engine.cc File pdf/pdfium/pdfium_engine.cc (right): https://codereview.chromium.org/1556603002/diff/1/pdf/pdfium/pdfium_engine.cc#newcode2603 pdf/pdfium/pdfium_engine.cc:2603: if (!FPDFAvail_IsFormAvail(fpdf_availability_, &download_hints_) && On 2015/12/30 01:09:21, Lei Zhang ...
4 years, 11 months ago (2015-12-30 17:14:58 UTC) #4
Lei Zhang
lgtm https://codereview.chromium.org/1556603002/diff/20001/pdf/pdfium/pdfium_engine.cc File pdf/pdfium/pdfium_engine.cc (right): https://codereview.chromium.org/1556603002/diff/20001/pdf/pdfium/pdfium_engine.cc#newcode2602 pdf/pdfium/pdfium_engine.cc:2602: DCHECK(form_status != PDF_FORM_ERROR); DCHECK_NE()
4 years, 11 months ago (2015-12-30 17:48:26 UTC) #5
spelchat
https://codereview.chromium.org/1556603002/diff/20001/pdf/pdfium/pdfium_engine.cc File pdf/pdfium/pdfium_engine.cc (right): https://codereview.chromium.org/1556603002/diff/20001/pdf/pdfium/pdfium_engine.cc#newcode2602 pdf/pdfium/pdfium_engine.cc:2602: DCHECK(form_status != PDF_FORM_ERROR); On 2015/12/30 17:48:26, Lei Zhang wrote: ...
4 years, 11 months ago (2015-12-30 17:53:37 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1556603002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1556603002/40001
4 years, 11 months ago (2015-12-30 17:53:54 UTC) #9
spelchat
https://codereview.chromium.org/1556603002/diff/60001/pdf/pdfium/pdfium_engine.cc File pdf/pdfium/pdfium_engine.cc (right): https://codereview.chromium.org/1556603002/diff/60001/pdf/pdfium/pdfium_engine.cc#newcode2600 pdf/pdfium/pdfium_engine.cc:2600: if (fpdf_availability_) { This check and DCHECK_NE could be ...
4 years, 11 months ago (2015-12-30 19:01:08 UTC) #11
Lei Zhang
https://codereview.chromium.org/1556603002/diff/60001/pdf/pdfium/pdfium_engine.cc File pdf/pdfium/pdfium_engine.cc (right): https://codereview.chromium.org/1556603002/diff/60001/pdf/pdfium/pdfium_engine.cc#newcode2600 pdf/pdfium/pdfium_engine.cc:2600: if (fpdf_availability_) { On 2015/12/30 19:01:08, spelchat wrote: > ...
4 years, 11 months ago (2015-12-30 19:58:19 UTC) #12
spelchat
https://codereview.chromium.org/1556603002/diff/60001/pdf/pdfium/pdfium_engine.cc File pdf/pdfium/pdfium_engine.cc (right): https://codereview.chromium.org/1556603002/diff/60001/pdf/pdfium/pdfium_engine.cc#newcode2600 pdf/pdfium/pdfium_engine.cc:2600: if (fpdf_availability_) { On 2015/12/30 19:58:19, Lei Zhang wrote: ...
4 years, 11 months ago (2015-12-30 20:14:00 UTC) #13
Lei Zhang
I'm guessing the original logic was "if the document was fully loaded, even if there ...
4 years, 11 months ago (2015-12-30 20:43:35 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1556603002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1556603002/80001
4 years, 11 months ago (2015-12-30 20:52:05 UTC) #17
Lei Zhang
++lgtm Thanks for fixing the bug and exploring the slightly crummy code!
4 years, 11 months ago (2015-12-30 21:01:10 UTC) #18
spelchat
On 2015/12/30 21:01:10, Lei Zhang wrote: > ++lgtm > > Thanks for fixing the bug ...
4 years, 11 months ago (2015-12-30 21:03:11 UTC) #19
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 11 months ago (2015-12-30 22:07:01 UTC) #20
commit-bot: I haz the power
4 years, 11 months ago (2015-12-30 22:08:02 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/a69e93f6ac1ee1a6e3554ea61e0461a83c75081d
Cr-Commit-Position: refs/heads/master@{#367191}

Powered by Google App Engine
This is Rietveld 408576698