RESOLVED FIXED 31825
[Android] Android is missing implementation of SSL Key generator functions.
https://bugs.webkit.org/show_bug.cgi?id=31825
Summary [Android] Android is missing implementation of SSL Key generator functions.
Andrei Popescu
Reported 2009-11-24 04:47:20 PST
WebCore requires the varioius platform ports to implement void getSupportedKeySizes(Vector<String>& keys) and String signedPublicKeyAndChallengeString(unsigned index, const String& challenge, const KURL& url) Android is missing the implementation for these functions.
Attachments
Add implementation of SSL Key Generator functions. (5.25 KB, patch)
2009-11-24 05:00 PST, Andrei Popescu
no flags
Add implementation of SSL Key Generator functions. (5.21 KB, patch)
2009-11-24 05:40 PST, Andrei Popescu
no flags
Add implementation of SSL Key Generator functions v3 (5.21 KB, patch)
2009-11-24 12:20 PST, Andrei Popescu
no flags
Add implementation of SSL Key Generator functions v3 (5.61 KB, patch)
2009-11-24 12:22 PST, Andrei Popescu
no flags
Andrei Popescu
Comment 1 2009-11-24 05:00:25 PST
Created attachment 43760 [details] Add implementation of SSL Key Generator functions.
Andrei Popescu
Comment 2 2009-11-24 05:40:22 PST
Created attachment 43762 [details] Add implementation of SSL Key Generator functions. Fixed a style problem (indent inside a namespace).
Eric Seidel (no email)
Comment 3 2009-11-24 10:11:06 PST
Comment on attachment 43762 [details] Add implementation of SSL Key Generator functions. Bah! ChromiumBridge was bad enough. Sad that this model has infected android too. Why wouldn't these be a Client interface hung off of Page? Or why do these need to be implemented in WebKit at all instead of a library which WebCore could directly link to?
Darin Fisher (:fishd, Google)
Comment 4 2009-11-24 10:16:00 PST
> Bah! ChromiumBridge was bad enough. Sad that this model has infected android > too. Why wouldn't these be a Client interface hung off of Page? Or why do > these need to be implemented in WebKit at all instead of a library which > WebCore could directly link to? Andrei is trying to move the Android port to match the same model as Chromium so that we can share the WebKit API. In that world, the methods contained by ChromiumBridge correspond to WebKitClient method. It seems to me of little value to introduce an intermediate Client interface hung off of Page for this. The value of ChromiumBridge (or PlatformBridge) is that it provides a grouping for these methods. I don't understand you want more layers here. Andrei and I discussed renaming ChromiumBridge to PlatformBridge. I would personally prefer to see that change happen first.
Eric Seidel (no email)
Comment 5 2009-11-24 10:24:22 PST
(In reply to comment #4) > Andrei is trying to move the Android port to match the same model as Chromium > so that we can share the WebKit API. In that world, the methods contained by > ChromiumBridge correspond to WebKitClient method. It seems to me of little > value to introduce an intermediate Client interface hung off of Page for this. > The value of ChromiumBridge (or PlatformBridge) is that it provides a grouping > for these methods. I don't understand you want more layers here. Yeah, I think you and I have fallen out of step wrt to ChromiumBridge design. I'll make a point of syncing up with you about such when I'm in MTV next week. WebCore in the Apple ports is self-contained. It only has down-dependencies. It feels strange to me that in the Chromium port it has hard up-dependencies (no default implementation), but maybe that makes sense given the sandboxing model.
Eric Seidel (no email)
Comment 6 2009-11-24 10:26:13 PST
More aptly said: I've fallen behind in my understanding of the grand vision of ChromiumBridge. I thought it was meant as a temporary step before better Clients could be designed. It no longer seems that way, if we're encouraging other ports to use it. My understanding of WebCore/WebKit design is that Clients were the way to talk up, and platform was the way to talk down. Chromium bridge is a linking shim which allows Platform to talk up to WebKit. Which feels strange to me.
Andrei Popescu
Comment 7 2009-11-24 11:37:33 PST
(In reply to comment #6) > More aptly said: I've fallen behind in my understanding of the grand vision of > ChromiumBridge. I thought it was meant as a temporary step before better > Clients could be designed. It no longer seems that way, if we're encouraging > other ports to use it. My understanding of WebCore/WebKit design is that > Clients were the way to talk up, and platform was the way to talk down. > Chromium bridge is a linking shim which allows Platform to talk up to WebKit. > Which feels strange to me. Ok, but do you think we could go with this design for now (given we already have a precedent) and then change once we agree if and how having individual clients for the various features in the Chromium/Platform Bridges would help? I think that's a discussion that could perhaps happen on its own bug and the solution that will be reached should be applied to both Android and Chromium. I don't think we should block the Android code upstreaming on this. Thanks, Andrei
Eric Seidel (no email)
Comment 8 2009-11-24 11:47:29 PST
Comment on attachment 43762 [details] Add implementation of SSL Key Generator functions. "url" is technically against webkit style, as it should be removed since it's not necessary: 44 static String getSignedPublicKeyAndChallengeString(unsigned index, const String& challenge, const KURL& url); I don't like the design as I currently understand it, but I agree, that's a discussion for another bug. Can you document why it is that this needs to use a PlatformBridge shim like this? Does Andriod use a sandbox like Chromium? Does this call reach across an IPC layer?
Andrei Popescu
Comment 9 2009-11-24 12:20:44 PST
Created attachment 43798 [details] Add implementation of SSL Key Generator functions v3
Andrei Popescu
Comment 10 2009-11-24 12:22:50 PST
Created attachment 43799 [details] Add implementation of SSL Key Generator functions v3 Uploading the right patch this time.
Andrei Popescu
Comment 11 2009-11-24 12:24:19 PST
(In reply to comment #8) > (From update of attachment 43762 [details]) > "url" is technically against webkit style, as it should be removed since it's > not necessary: > 44 static String getSignedPublicKeyAndChallengeString(unsigned index, > const String& challenge, const KURL& url); > Removed. > I don't like the design as I currently understand it, but I agree, that's a > discussion for another bug. Can you document why it is that this needs to use > a PlatformBridge shim like this? Does Andriod use a sandbox like Chromium? > Does this call reach across an IPC layer? Added appropriate comment in PlatformBridge.h Thanks, Andrei
Eric Seidel (no email)
Comment 12 2009-11-25 07:56:32 PST
Comment on attachment 43799 [details] Add implementation of SSL Key Generator functions v3 OK. Andrei is not in committers.py, so marking cq+ as well.
WebKit Commit Bot
Comment 13 2009-11-25 08:07:06 PST
Comment on attachment 43799 [details] Add implementation of SSL Key Generator functions v3 Clearing flags on attachment: 43799 Committed r51384: <http://trac.webkit.org/changeset/51384>
WebKit Commit Bot
Comment 14 2009-11-25 08:07:12 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.