Bug 173678

Summary: [WebCrypto] Restore ordering of CryptoAlgorithmIdentifier in SerializedScriptValue
Product: WebKit Reporter: Jiewen Tan <jiewen_tan>
Component: WebCore Misc.Assignee: Jiewen Tan <jiewen_tan>
Status: RESOLVED FIXED    
Severity: Normal CC: alecflett, beidson, bfulgham, buildbot, commit-queue, dexxenon, jer.noble, jiewen_tan, jonlee, jsbell, sam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Jiewen Tan
Reported 2017-06-21 16:17:08 PDT
r218030 reorders the ordering of CryptoAlgorithmIdentifier in SerializedScriptValue, which introduce backward compatibility issue with CryptoKey objects stored in the IndexedDB. Hence, we should restore it back.
Attachments
Patch (1.84 KB, patch)
2017-06-21 16:27 PDT, Jiewen Tan
no flags
Jiewen Tan
Comment 1 2017-06-21 16:17:38 PDT
Jiewen Tan
Comment 2 2017-06-21 16:27:12 PDT
Jiewen Tan
Comment 3 2017-06-21 16:28:30 PDT
Build Bot
Comment 4 2017-06-21 16:28:54 PDT
Attachment 313561 [details] did not pass style-queue: ERROR: Source/WebCore/bindings/js/SerializedScriptValue.cpp:245: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/bindings/js/SerializedScriptValue.cpp:246: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/bindings/js/SerializedScriptValue.cpp:247: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/bindings/js/SerializedScriptValue.cpp:248: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/bindings/js/SerializedScriptValue.cpp:249: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/bindings/js/SerializedScriptValue.cpp:250: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/bindings/js/SerializedScriptValue.cpp:251: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/bindings/js/SerializedScriptValue.cpp:252: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/bindings/js/SerializedScriptValue.cpp:253: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/bindings/js/SerializedScriptValue.cpp:254: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/bindings/js/SerializedScriptValue.cpp:255: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] Total errors found: 11 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
Sam Weinig
Comment 5 2017-06-21 16:37:58 PDT
Comment on attachment 313561 [details] Patch Seems like we should have some tests that read from pre-baked IndexedDB databases (e.g. checkin the database to the tests repository, and teach WKTR and DRT to be able to use that database for a particular test).
Jiewen Tan
Comment 6 2017-06-21 16:41:02 PDT
(In reply to Sam Weinig from comment #5) > Comment on attachment 313561 [details] > Patch > > Seems like we should have some tests that read from pre-baked IndexedDB > databases (e.g. checkin the database to the tests repository, and teach WKTR > and DRT to be able to use that database for a particular test). Agreed. Glad to help to make this happen.
Jiewen Tan
Comment 7 2017-06-21 16:44:46 PDT
Comment on attachment 313561 [details] Patch Thanks Sam for r+ my patch.
WebKit Commit Bot
Comment 8 2017-06-21 17:41:01 PDT
Comment on attachment 313561 [details] Patch Clearing flags on attachment: 313561 Committed r218666: <http://trac.webkit.org/changeset/218666>
WebKit Commit Bot
Comment 9 2017-06-21 17:41:03 PDT
All reviewed patches have been landed. Closing bug.
Jon Lee
Comment 10 2017-07-18 11:35:56 PDT
*** Bug 174141 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.