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

Issue 160098: DevTools: Switch from Value to JSON. (Closed)

Created:
11 years, 5 months ago by pfeldman
Modified:
9 years, 7 months ago
Reviewers:
yurys
CC:
chromium-reviews_googlegroups.com, darin (slow to review)
Visibility:
Public.

Description

DevTools: Sanitize objects being serialized so that prototype.js did not affect JSON.stringify. BUG=19850

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -2 lines) Patch
M webkit/glue/devtools/js/inject_dispatch.js View 2 chunks +21 lines, -2 lines 2 comments Download

Messages

Total messages: 2 (0 generated)
pfeldman
11 years, 4 months ago (2009-08-26 11:37:53 UTC) #1
yurys
11 years, 4 months ago (2009-08-26 11:51:42 UTC) #2
LGTM

http://codereview.chromium.org/160098/diff/2001/3001
File webkit/glue/devtools/js/inject_dispatch.js (right):

http://codereview.chromium.org/160098/diff/2001/3001#newcode43
Line 43: obj[name] = null;
is it safe to do in the 'for in' loop?

http://codereview.chromium.org/160098/diff/2001/3001#newcode45
Line 45: sanitizeJson(property);
this will fail if property is null because typeof null ==
'object'

Powered by Google App Engine
This is Rietveld 408576698