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

Issue 2151023002: Do not try to v8::Object::Clone() any objects (Closed)

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

Description

Do not try to v8::Object::Clone() any objects v8::Object::Clone() is deprecated, and gets us into trouble with some corner cases. Create a new handle to the same object instead. Remove FXJS_NewObject() and FXJS_NewObject2(), and replace with direct assignments. Pass isolate to FXJS_NewNull() while were at it, even though not needed, for consistency with all remaining FXJS_New*() calls. BUG=628106 R=jochen@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/88b6686f6e56a01dab0172f4b3129ab7ae0cd8d8

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -24 lines) Patch
M fpdfsdk/javascript/JS_Value.cpp View 3 chunks +3 lines, -4 lines 0 comments Download
M fxjs/fxjs_v8.cpp View 1 chunk +1 line, -15 lines 0 comments Download
M fxjs/include/fxjs_v8.h View 1 chunk +1 line, -5 lines 0 comments Download

Messages

Total messages: 14 (9 generated)
Tom Sepez
Jochen, please review.
4 years, 5 months ago (2016-07-14 18:30:55 UTC) #4
jochen (gone - plz use gerrit)
if that works, lgtm, great!
4 years, 5 months ago (2016-07-14 18:42:21 UTC) #6
Tom Sepez
On 2016/07/14 18:42:21, jochen wrote: > if that works, lgtm, great! +dan, FYI. I think ...
4 years, 5 months ago (2016-07-14 18:48:58 UTC) #10
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/2151023002/1
4 years, 5 months ago (2016-07-14 18:57:57 UTC) #12
commit-bot: I haz the power
4 years, 5 months ago (2016-07-14 19:07:53 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://pdfium.googlesource.com/pdfium/+/88b6686f6e56a01dab0172f4b3129ab7ae0c...

Powered by Google App Engine
This is Rietveld 408576698