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

Issue 1424743006: Make JS app.setTimeOut() work again. (Closed)

Created:
5 years, 1 month ago by Lei Zhang
Modified:
5 years, 1 month ago
Reviewers:
Tom Sepez, dsinclair
CC:
pdfium-reviews_googlegroups.com, chamalsl
Base URL:
https://pdfium.googlesource.com/pdfium@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Make JS app.setTimeOut() work again. This regressed in commit 794c9b6. BUG=551248 R=tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/8cadf995e9a0fec8da19f69edac9d10fccca7eed

Patch Set 1 #

Total comments: 1

Patch Set 2 : self review #

Total comments: 18

Patch Set 3 : comments #

Patch Set 4 : rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -111 lines) Patch
M fpdfsdk/src/fpdfformfill_embeddertest.cpp View 1 2 2 chunks +23 lines, -0 lines 0 comments Download
M fpdfsdk/src/javascript/JS_Object.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M samples/pdfium_test.cc View 1 2 1 chunk +2 lines, -13 lines 0 comments Download
M testing/embedder_test_timer_handling_delegate.h View 1 2 chunks +25 lines, -0 lines 1 comment Download
A + testing/resources/bug_551248.in View 1 2 2 chunks +1 line, -43 lines 0 comments Download
A + testing/resources/bug_551248.pdf View 1 2 3 chunks +9 lines, -55 lines 0 comments Download
M testing/test_support.h View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M testing/test_support.cpp View 1 2 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
Lei Zhang
https://codereview.chromium.org/1424743006/diff/1/fpdfsdk/src/javascript/JS_Object.cpp File fpdfsdk/src/javascript/JS_Object.cpp (right): https://codereview.chromium.org/1424743006/diff/1/fpdfsdk/src/javascript/JS_Object.cpp#newcode111 fpdfsdk/src/javascript/JS_Object.cpp:111: m_swJScript(script), This is the fix.
5 years, 1 month ago (2015-11-04 08:24:09 UTC) #2
dsinclair
https://codereview.chromium.org/1424743006/diff/20001/fpdfsdk/src/fpdfformfill_embeddertest.cpp File fpdfsdk/src/fpdfformfill_embeddertest.cpp (right): https://codereview.chromium.org/1424743006/diff/20001/fpdfsdk/src/fpdfformfill_embeddertest.cpp#newcode82 fpdfsdk/src/fpdfformfill_embeddertest.cpp:82: wchar_t* message = GetWideString(alerts[0].message); FX_WCHAR? https://codereview.chromium.org/1424743006/diff/20001/fpdfsdk/src/fpdfformfill_embeddertest.cpp#newcode83 fpdfsdk/src/fpdfformfill_embeddertest.cpp:83: wchar_t* title ...
5 years, 1 month ago (2015-11-04 14:15:07 UTC) #4
Tom Sepez
lgtm Nothing but nits from me. https://codereview.chromium.org/1424743006/diff/20001/fpdfsdk/src/fpdfformfill_embeddertest.cpp File fpdfsdk/src/fpdfformfill_embeddertest.cpp (right): https://codereview.chromium.org/1424743006/diff/20001/fpdfsdk/src/fpdfformfill_embeddertest.cpp#newcode84 fpdfsdk/src/fpdfformfill_embeddertest.cpp:84: EXPECT_STREQ(L"hello chamal", message); ...
5 years, 1 month ago (2015-11-04 18:02:33 UTC) #5
Lei Zhang
https://codereview.chromium.org/1424743006/diff/20001/fpdfsdk/src/fpdfformfill_embeddertest.cpp File fpdfsdk/src/fpdfformfill_embeddertest.cpp (right): https://codereview.chromium.org/1424743006/diff/20001/fpdfsdk/src/fpdfformfill_embeddertest.cpp#newcode82 fpdfsdk/src/fpdfformfill_embeddertest.cpp:82: wchar_t* message = GetWideString(alerts[0].message); On 2015/11/04 14:15:07, dsinclair wrote: ...
5 years, 1 month ago (2015-11-04 22:11:30 UTC) #6
Tom Sepez
lgtm
5 years, 1 month ago (2015-11-04 22:16:03 UTC) #7
Lei Zhang
Committed patchset #4 (id:60001) manually as 8cadf995e9a0fec8da19f69edac9d10fccca7eed (presubmit successful).
5 years, 1 month ago (2015-11-04 22:40:09 UTC) #8
Tom Sepez
5 years, 1 month ago (2015-11-04 23:01:11 UTC) #9
Message was sent while issue was closed.
Hey Lei, try this:

https://codereview.chromium.org/1424743006/diff/60001/testing/embedder_test_t...
File testing/embedder_test_timer_handling_delegate.h (right):

https://codereview.chromium.org/1424743006/diff/60001/testing/embedder_test_t...
testing/embedder_test_timer_handling_delegate.h:23: FPDF_WIDESTRING message;
maybe make these the std::wstrings() so the copy happens here. Not sure how long
the memory is supposed to live after you return from the handler.

Powered by Google App Engine
This is Rietveld 408576698