WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
178927
WebDriver process should not link to JavaScriptCore
https://bugs.webkit.org/show_bug.cgi?id=178927
Summary
WebDriver process should not link to JavaScriptCore
Carlos Garcia Campos
Reported
2017-10-27 01:25:55 PDT
We only do that to use InspectorValues because we don't have any other json API available in WTF. I think we should move InspectorValues implementation to WTF, or add a new implementation instead (or even use an existing one like
https://github.com/nlohmann/json
that looks pretty good). In the meantime, maybe we can just build the current InspectorValues as part of the WebDriver process since InspectorValues is self-contained and only depends on WTF.
Attachments
Add attachment
proposed patch, testcase, etc.
Blaze Burg
Comment 1
2017-10-27 09:03:10 PDT
I had some patch series to move InspectorValue to WTF::JSONValue. Unfortunately I didn't have time to write tests so it never got reviewed. If you want to work on this, I can point you to the patches.
Carlos Garcia Campos
Comment 2
2017-10-27 23:21:19 PDT
Sure, I can just write the tests.
Blaze Burg
Comment 3
2017-10-29 10:18:06 PDT
Hey Carlos, here's some more information to help you out. The previous patch series moved stuff into the top-level JSON namespace, so classes were JSON::{Array, Object, Value}. If this goes into WTF then we can keep that, or make these WTF::JSON{Array, Object, Value}. Let me know what you think; if it is a general-purpose JSON class with tests than I think either name is acceptable. The first patch:
https://bugs.webkit.org/show_bug.cgi?id=173619
Joe wrote out some reasonable test cases that you can cover for now:
https://bugs.webkit.org/show_bug.cgi?id=173619#c12
Once that patch lands (to change all callsites to use the non-Inspector namespace) the rest is moving the implementation and changing header includes:
https://bugs.webkit.org/show_bug.cgi?id=173793
When all the code is moved into the new place then there are some great cleanups I'd like to pursue. The first is already posted here, but don't worry about fixing it up:
https://bugs.webkit.org/show_bug.cgi?id=173662
Carlos Garcia Campos
Comment 4
2017-12-01 01:09:14 PST
This was finally fixed in
r225231
Blaze Burg
Comment 5
2017-12-01 10:04:16 PST
Hooray!
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug