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

Issue 1641693003: Fix behaviour of app.alert() with a single object argument. (Closed)

Created:
4 years, 11 months ago by Tom Sepez
Modified:
4 years, 10 months ago
Reviewers:
Lei Zhang
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix behaviour of app.alert() with a single object argument. Centralize the "arguments in an object" logic. See the section "Method Arguments" in the js_api_reference.pdf. Add some tests to hit the ambiguous cases this section implies, and test that all parameters are passed end-to-end to our callbacks. R=thestig@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/66519af52b61ca158044651d0507d47efb364f87

Patch Set 1 #

Total comments: 9

Patch Set 2 : Fix spelling, naming, braces. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -79 lines) Patch
M fpdfsdk/src/javascript/JS_Value.h View 1 1 chunk +12 lines, -0 lines 0 comments Download
M fpdfsdk/src/javascript/JS_Value.cpp View 1 2 chunks +33 lines, -0 lines 0 comments Download
M fpdfsdk/src/javascript/app.cpp View 1 chunk +35 lines, -75 lines 0 comments Download
M samples/pdfium_test.cc View 1 chunk +9 lines, -4 lines 0 comments Download
M testing/resources/javascript/app_alert.in View 1 chunk +26 lines, -0 lines 0 comments Download
M testing/resources/javascript/app_alert_expected.txt View 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
Tom Sepez
Lei, for review. This came up when I tried to app.alert(this.getField()) in another test, and ...
4 years, 11 months ago (2016-01-27 23:59:53 UTC) #1
Lei Zhang
https://codereview.chromium.org/1641693003/diff/1/fpdfsdk/src/javascript/JS_Value.cpp File fpdfsdk/src/javascript/JS_Value.cpp (right): https://codereview.chromium.org/1641693003/diff/1/fpdfsdk/src/javascript/JS_Value.cpp#newcode896 fpdfsdk/src/javascript/JS_Value.cpp:896: if (originals.size() != 1 || originals[0].GetType() != CJS_Value::VT_object || ...
4 years, 11 months ago (2016-01-28 02:11:11 UTC) #2
Tom Sepez
https://codereview.chromium.org/1641693003/diff/1/fpdfsdk/src/javascript/JS_Value.cpp File fpdfsdk/src/javascript/JS_Value.cpp (right): https://codereview.chromium.org/1641693003/diff/1/fpdfsdk/src/javascript/JS_Value.cpp#newcode896 fpdfsdk/src/javascript/JS_Value.cpp:896: if (originals.size() != 1 || originals[0].GetType() != CJS_Value::VT_object || ...
4 years, 10 months ago (2016-01-28 17:07:37 UTC) #3
Lei Zhang
lgtm https://codereview.chromium.org/1641693003/diff/1/fpdfsdk/src/javascript/JS_Value.cpp File fpdfsdk/src/javascript/JS_Value.cpp (right): https://codereview.chromium.org/1641693003/diff/1/fpdfsdk/src/javascript/JS_Value.cpp#newcode896 fpdfsdk/src/javascript/JS_Value.cpp:896: if (originals.size() != 1 || originals[0].GetType() != CJS_Value::VT_object ...
4 years, 10 months ago (2016-01-28 22:58:55 UTC) #4
Tom Sepez
4 years, 10 months ago (2016-01-29 16:55:35 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
66519af52b61ca158044651d0507d47efb364f87 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698