<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>173678</bug_id>
          
          <creation_ts>2017-06-21 16:17:08 -0700</creation_ts>
          <short_desc>[WebCrypto] Restore ordering of CryptoAlgorithmIdentifier in SerializedScriptValue</short_desc>
          <delta_ts>2017-07-18 11:35:56 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jiewen Tan">jiewen_tan</reporter>
          <assigned_to name="Jiewen Tan">jiewen_tan</assigned_to>
          <cc>alecflett</cc>
    
    <cc>beidson</cc>
    
    <cc>bfulgham</cc>
    
    <cc>buildbot</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dexxenon</cc>
    
    <cc>jer.noble</cc>
    
    <cc>jiewen_tan</cc>
    
    <cc>jonlee</cc>
    
    <cc>jsbell</cc>
    
    <cc>sam</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1321668</commentid>
    <comment_count>0</comment_count>
    <who name="Jiewen Tan">jiewen_tan</who>
    <bug_when>2017-06-21 16:17:08 -0700</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1321669</commentid>
    <comment_count>1</comment_count>
    <who name="Jiewen Tan">jiewen_tan</who>
    <bug_when>2017-06-21 16:17:38 -0700</bug_when>
    <thetext>&lt;rdar://problem/32879314&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1321673</commentid>
    <comment_count>2</comment_count>
      <attachid>313561</attachid>
    <who name="Jiewen Tan">jiewen_tan</who>
    <bug_when>2017-06-21 16:27:12 -0700</bug_when>
    <thetext>Created attachment 313561
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1321674</commentid>
    <comment_count>3</comment_count>
    <who name="Jiewen Tan">jiewen_tan</who>
    <bug_when>2017-06-21 16:28:30 -0700</bug_when>
    <thetext>Here is r218030 for reference.
https://trac.webkit.org/changeset/218030/webkit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1321675</commentid>
    <comment_count>4</comment_count>
    <who name="Build Bot">buildbot</who>
    <bug_when>2017-06-21 16:28:54 -0700</bug_when>
    <thetext>Attachment 313561 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 &apos;k&apos; 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 &apos;k&apos; 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 &apos;k&apos; 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 &apos;k&apos; 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 &apos;k&apos; 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 &apos;k&apos; 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 &apos;k&apos; 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 &apos;k&apos; 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 &apos;k&apos; 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 &apos;k&apos; 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 &apos;k&apos; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1321682</commentid>
    <comment_count>5</comment_count>
      <attachid>313561</attachid>
    <who name="Sam Weinig">sam</who>
    <bug_when>2017-06-21 16:37:58 -0700</bug_when>
    <thetext>Comment on attachment 313561
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).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1321684</commentid>
    <comment_count>6</comment_count>
    <who name="Jiewen Tan">jiewen_tan</who>
    <bug_when>2017-06-21 16:41:02 -0700</bug_when>
    <thetext>(In reply to Sam Weinig from comment #5)
&gt; Comment on attachment 313561 [details]
&gt; Patch
&gt; 
&gt; Seems like we should have some tests that read from pre-baked IndexedDB
&gt; databases (e.g. checkin the database to the tests repository, and teach WKTR
&gt; and DRT to be able to use that database for a particular test).

Agreed. Glad to help to make this happen.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1321686</commentid>
    <comment_count>7</comment_count>
      <attachid>313561</attachid>
    <who name="Jiewen Tan">jiewen_tan</who>
    <bug_when>2017-06-21 16:44:46 -0700</bug_when>
    <thetext>Comment on attachment 313561
Patch

Thanks Sam for r+ my patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1321701</commentid>
    <comment_count>8</comment_count>
      <attachid>313561</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-06-21 17:41:01 -0700</bug_when>
    <thetext>Comment on attachment 313561
Patch

Clearing flags on attachment: 313561

Committed r218666: &lt;http://trac.webkit.org/changeset/218666&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1321702</commentid>
    <comment_count>9</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-06-21 17:41:03 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1330031</commentid>
    <comment_count>10</comment_count>
    <who name="Jon Lee">jonlee</who>
    <bug_when>2017-07-18 11:35:56 -0700</bug_when>
    <thetext>*** Bug 174141 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>313561</attachid>
            <date>2017-06-21 16:27:12 -0700</date>
            <delta_ts>2017-06-21 17:41:01 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-173678-20170621162711.patch</filename>
            <type>text/plain</type>
            <size>1885</size>
            <attacher name="Jiewen Tan">jiewen_tan</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjE4NjYwCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGF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