Bug 181627 - [WebAuthN] Implement dummy WebAuthN IDLs
Summary: [WebAuthN] Implement dummy WebAuthN IDLs
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jiewen Tan
URL:
Keywords: InRadar
Depends on:
Blocks: 181943
  Show dependency treegraph
 
Reported: 2018-01-12 20:08 PST by Jiewen Tan
Modified: 2018-01-22 13:30 PST (History)
9 users (show)

See Also:


Attachments
Patch (76.68 KB, patch)
2018-01-12 20:16 PST, Jiewen Tan
no flags Details | Formatted Diff | Diff
Patch (77.61 KB, patch)
2018-01-12 23:14 PST, Jiewen Tan
achristensen: review+
Details | Formatted Diff | Diff
Patch for landing (76.95 KB, patch)
2018-01-16 11:48 PST, Jiewen Tan
commit-queue: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jiewen Tan 2018-01-12 20:08:02 PST
Implement dummy WebAuthN IDLs.
Comment 1 Jiewen Tan 2018-01-12 20:08:26 PST
<rdar://problem/36459864>
Comment 2 Jiewen Tan 2018-01-12 20:16:02 PST
Created attachment 331271 [details]
Patch
Comment 3 Jiewen Tan 2018-01-12 23:14:09 PST
Created attachment 331277 [details]
Patch
Comment 4 Alex Christensen 2018-01-13 12:58:54 PST
Comment on attachment 331277 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=331277&action=review

> Source/WebCore/Modules/webauthn/AuthenticatorAssertionResponse.h:37
> +    RefPtr<ArrayBuffer> authenticatorData();

I think these should just return a pointer.

> Source/WebCore/Modules/webauthn/AuthenticatorAssertionResponse.h:42
> +    RefPtr<ArrayBuffer> m_authenticatorData;

Can we not make any of these Ref's?

> Source/WebCore/Modules/webauthn/PublicKeyCredential.idl:28
> +// enum UserVerificationRequirement {

Can we add this later, rather than adding commented things?

> Source/WebCore/Modules/webauthn/PublicKeyCredentialCreationOptions.h:61
> +    unsigned long timeout;

Could we give these initializer lists to avoid uninitialized members?

> Source/WebCore/Modules/webauthn/PublicKeyCredentialCreationOptions.idl:31
> +// enum AttestationConveyancePreference {

ditto
Comment 5 Jiewen Tan 2018-01-14 16:48:18 PST
Comment on attachment 331277 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=331277&action=review

Thanks Alex for r+ this patch.

>> Source/WebCore/Modules/webauthn/AuthenticatorAssertionResponse.h:37
>> +    RefPtr<ArrayBuffer> authenticatorData();
> 
> I think these should just return a pointer.

May I ask why a pointer is better than RefPtr?

>> Source/WebCore/Modules/webauthn/AuthenticatorAssertionResponse.h:42
>> +    RefPtr<ArrayBuffer> m_authenticatorData;
> 
> Can we not make any of these Ref's?

If not Ref's, what data type should be there?

>> Source/WebCore/Modules/webauthn/PublicKeyCredential.idl:28
>> +// enum UserVerificationRequirement {
> 
> Can we add this later, rather than adding commented things?

Certainly.

>> Source/WebCore/Modules/webauthn/PublicKeyCredentialCreationOptions.h:61
>> +    unsigned long timeout;
> 
> Could we give these initializer lists to avoid uninitialized members?

Certainly.

>> Source/WebCore/Modules/webauthn/PublicKeyCredentialCreationOptions.idl:31
>> +// enum AttestationConveyancePreference {
> 
> ditto

Fixed.
Comment 6 Jiewen Tan 2018-01-16 11:48:45 PST
Created attachment 331409 [details]
Patch for landing
Comment 7 Jiewen Tan 2018-01-16 14:27:50 PST
Comment on attachment 331409 [details]
Patch for landing

The Win EWS bot seems to have some issues. cq+ regardless of it.
Comment 8 WebKit Commit Bot 2018-01-16 14:53:00 PST
Comment on attachment 331409 [details]
Patch for landing

Rejecting attachment 331409 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-02', 'land-attachment', '--force-clean', '--non-interactive', '--parent-command=commit-queue', 331409, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Last 500 characters of output:
org/git/WebKit
   4b0009cc0a2..958c295cde9  master     -> origin/master
Partial-rebuilding .git/svn/refs/remotes/origin/master/.rev_map.268f45cc-cd09-0410-ab3c-d52691b4dbfc ...
Currently at 227003 = 4b0009cc0a2bd83b4e417c6c836c36dba18b913d
r227004 = 958c295cde97fe554d73518321cc39caeb20eb22
Done rebuilding .git/svn/refs/remotes/origin/master/.rev_map.268f45cc-cd09-0410-ab3c-d52691b4dbfc
First, rewinding head to replay your work on top of it...
Fast-forwarded master to refs/remotes/origin/master.

Full output: http://webkit-queues.webkit.org/results/6098675
Comment 9 Jiewen Tan 2018-01-16 15:08:50 PST
Committed r227007: <https://trac.webkit.org/changeset/227007>