<?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>74064</bug_id>
          
          <creation_ts>2011-12-08 01:22:19 -0800</creation_ts>
          <short_desc>[GTK] Change default WebSocket protocol to the latest one</short_desc>
          <delta_ts>2011-12-20 05:17:39 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Gtk</keywords>
          <priority>P3</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yuta Kitamura">yutak</reporter>
          <assigned_to name="Yuta Kitamura">yutak</assigned_to>
          <cc>gustavo</cc>
    
    <cc>mrobinson</cc>
    
    <cc>webkit.review.bot</cc>
    
    <cc>xan.lopez</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>517249</commentid>
    <comment_count>0</comment_count>
    <who name="Yuta Kitamura">yutak</who>
    <bug_when>2011-12-08 01:22:19 -0800</bug_when>
    <thetext>[This is the GTK version of Qt&apos;s bug 73630 and I&apos;m lazy enough to copy and paste the bug description]

Currently, WebKitGtk only supports the old WebSocket protocol (hixie-76). The old protocol is known to have a security defect, and should be phased out into the new protocol.

The new protocol (hybi-17, which is going to be published as RFC6455 soon) is already implemented in WebCore and we can switch to the new protocol using WebCore::Settings.

LayoutTests for hybi-17 are running fine on GTK bots, and there is no substantial problem observed. Hence, to migrate to the new version, we essentially just need to switch the default value of a Settings flag.

Folks, are you happy with this change? Should I bring up this topic on webkit-gtk list?

(Note: the old protocol and the new one are incompatible; if there&apos;s any existing service depending on the old protocol, it will break.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>518552</commentid>
    <comment_count>1</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2011-12-09 14:54:38 -0800</bug_when>
    <thetext>Hrm. Unfortunately, this would be an API break. :( In this case it might be useful to make an exception though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>518557</commentid>
    <comment_count>2</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2011-12-09 14:58:48 -0800</bug_when>
    <thetext>CCing some other people, because this situation might be one in which breaking the API is a reasonable consideration. The old default is both insecure and incompatible.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>518796</commentid>
    <comment_count>3</comment_count>
    <who name="Xan Lopez">xan.lopez</who>
    <bug_when>2011-12-10 08:06:50 -0800</bug_when>
    <thetext>I think the right thing to do here is switch and add a comment in NEWS/release notes. The sooner the better.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>519092</commentid>
    <comment_count>4</comment_count>
    <who name="Gustavo Noronha (kov)">gustavo</who>
    <bug_when>2011-12-12 03:08:58 -0800</bug_when>
    <thetext>Agreed!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>523847</commentid>
    <comment_count>5</comment_count>
      <attachid>119850</attachid>
    <who name="Yuta Kitamura">yutak</who>
    <bug_when>2011-12-19 05:19:23 -0800</bug_when>
    <thetext>Created attachment 119850
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>524484</commentid>
    <comment_count>6</comment_count>
    <who name="Yuta Kitamura">yutak</who>
    <bug_when>2011-12-20 01:44:39 -0800</bug_when>
    <thetext>Thanks, I&apos;m going to put the patch into CQ.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>524544</commentid>
    <comment_count>7</comment_count>
      <attachid>119850</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-12-20 05:17:35 -0800</bug_when>
    <thetext>Comment on attachment 119850
Patch

Clearing flags on attachment: 119850

Committed r103321: &lt;http://trac.webkit.org/changeset/103321&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>524545</commentid>
    <comment_count>8</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-12-20 05:17:39 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>119850</attachid>
            <date>2011-12-19 05:19:23 -0800</date>
            <delta_ts>2011-12-20 05:17:35 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-74064-20111219221921.patch</filename>
            <type>text/plain</type>
            <size>1440</size>
            <attacher name="Yuta Kitamura">yutak</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTAzMjI4CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0L2d0
ay9DaGFuZ2VMb2cgYi9Tb3VyY2UvV2ViS2l0L2d0ay9DaGFuZ2VMb2cKaW5kZXggZTE3NjAyNmM4
NWY4OGMxZDJiNzU0M2RlNmY1MTNjYzU3NTUwMmIyYS4uZTUyNDlmOTI0Nzg0OGI3YWQ2MmMyYzUz
ZTcwMWI1OWEwZjBjMDZiYiAxMDA2NDQKLS0tIGEvU291cmNlL1dlYktpdC9ndGsvQ2hhbmdlTG9n
CisrKyBiL1NvdXJjZS9XZWJLaXQvZ3RrL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE0IEBACisyMDEx
LTEyLTE5ICBZdXRhIEtpdGFtdXJhICA8eXV0YWtAY2hyb21pdW0ub3JnPgorCisgICAgICAgIFtH
VEtdIENoYW5nZSBkZWZhdWx0IFdlYlNvY2tldCBwcm90b2NvbCB0byB0aGUgbGF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