Fix two issues shown by bug 489995
authorTom Sepez <tsepez@chromium.org>
Mon, 31 Aug 2015 21:44:21 +0000 (14:44 -0700)
committerTom Sepez <tsepez@chromium.org>
Mon, 31 Aug 2015 21:44:21 +0000 (14:44 -0700)
commit6e369c2ebb4769a42736b32154c0de12b73df45d
tree60bde53605565d86478d3d4c3c51ae58f180640c
parent7858c0aae5ee449dafe23c0e1aa0c164ae2889eb
Fix two issues shown by bug 489995

- Handle NULL in buffer operator<< under JS mailForm() calls.
- Ensure correct type in JS addIcon() calls.

BUG=489995
R=brucedawson@chromium.org, thestig@chromium.org

Review URL: https://codereview.chromium.org/1327473002 .
core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp
fpdfsdk/src/javascript/Document.cpp
testing/resources/javascript/document_methods.in
testing/resources/javascript/document_methods_expected.txt