Bug 130029 - Please add a way to work with JSON that doesn't depend on JavaScript
Summary: Please add a way to work with JSON that doesn't depend on JavaScript
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-10 11:36 PDT by Alexey Proskuryakov
Modified: 2016-04-06 21:54 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Proskuryakov 2014-03-10 11:36:24 PDT
WebCrypto uses JSON as a key serialization format in a way that's not really tied to JavaScript. I had to store an ExecState pointer to perform the work, but that's somewhat ugly and unsafe.

It would help a lot if there was a way to work with JSON as a pure data container, I'm imagining something like a DOM SAX interface for parsing.
Comment 1 Geoffrey Garen 2014-03-10 13:42:44 PDT
Better to store a VM* or JSGlobalObject* than an ExecState*. ExecState* has no lifetime guarantee.