<?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>73630</bug_id>
          
          <creation_ts>2011-12-01 23:44:41 -0800</creation_ts>
          <short_desc>[Qt] Change default WebSocket protocol to the latest one</short_desc>
          <delta_ts>2012-03-15 16:17:54 -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>WebKit Qt</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt</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>ahf</cc>
    
    <cc>cmarcelo</cc>
    
    <cc>hausmann</cc>
    
    <cc>jesus</cc>
    
    <cc>jturcotte</cc>
    
    <cc>kenneth</cc>
    
    <cc>laszlo.gombos</cc>
    
    <cc>ossy</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>513562</commentid>
    <comment_count>0</comment_count>
    <who name="Yuta Kitamura">yutak</who>
    <bug_when>2011-12-01 23:44:41 -0800</bug_when>
    <thetext>Currently, WebKitQt 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 Qt bots, hence we essentially just need to switch the default value of a Settings flag.

Qt folks, are you happy with this change? Maybe I should bring up this topic on webkit-qt 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>516557</commentid>
    <comment_count>1</comment_count>
    <who name="Alexander Færøy">ahf</who>
    <bug_when>2011-12-07 02:23:16 -0800</bug_when>
    <thetext>Sure, we would be happy with that change :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>518152</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2011-12-09 00:06:02 -0800</bug_when>
    <thetext>I&apos;d say go for it. I&apos;m not aware of anyone using the Qt port and relying on a particular web socket protocol version. I&apos;m inclined to say that our interest is to follow the majority of the other ports in this regards and if there was a &quot;project default&quot; (that ports _may_ optionally deviate from), then I think we&apos;d be in the group interested in following the default, at this point.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>518178</commentid>
    <comment_count>3</comment_count>
    <who name="Jocelyn Turcotte">jturcotte</who>
    <bug_when>2011-12-09 01:31:32 -0800</bug_when>
    <thetext>We never officially supported the InspectorServerQt in WebKit/qt but this will break the support for QtWebKit clients with it.

On the other hand I need this to be switched on to support the new remote inspector in WebKit2, so I&apos;m looking forward to this :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>523850</commentid>
    <comment_count>4</comment_count>
    <who name="Yuta Kitamura">yutak</who>
    <bug_when>2011-12-19 05:30:15 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; I&apos;d say go for it. I&apos;m not aware of anyone using the Qt port and relying on a particular web socket protocol version. I&apos;m inclined to say that our interest is to follow the majority of the other ports in this regards and if there was a &quot;project default&quot; (that ports _may_ optionally deviate from), then I think we&apos;d be in the group interested in following the default, at this point.

I&apos;m fine with either following the project default or switching right now.

Before switching the project default, I&apos;d like to confirm the hybi tests run fine on WebKit2 bots (and fix any issues if found). The tests aren&apos;t run at this moment as WebKitTestRunner lacks LayoutTestController.overridePreference() implementation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>578546</commentid>
    <comment_count>5</comment_count>
    <who name="Jesus Sanchez-Palencia">jesus</who>
    <bug_when>2012-03-14 10:38:32 -0700</bug_when>
    <thetext>What is the status of this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>578566</commentid>
    <comment_count>6</comment_count>
    <who name="Yuta Kitamura">yutak</who>
    <bug_when>2012-03-14 11:05:48 -0700</bug_when>
    <thetext>GTK already transitioned (bug 74064), Mac/Win/WK2 also transitioned (bug 78541). So I think, among the ports I&apos;m aware of, Qt is the only one left on the old protocol.

Sounds like it&apos;s time to switch the flag for Qt, and also flip the WebCore-global default value.

I&apos;d like to make the transition two-fold:
1) Complete the transition on Qt and make sure things are fine.
2) Flip the global default value and remove port-specific defaults.

Does this make sense? If so, I&apos;m going to upload a patch that just changes Qt&apos;s default.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>578568</commentid>
    <comment_count>7</comment_count>
    <who name="Yuta Kitamura">yutak</who>
    <bug_when>2012-03-14 11:06:53 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; I&apos;d like to make the transition two-fold:
&gt; 1) Complete the transition on Qt and make sure things are fine.
1.9) Announce webkit-dev about the transition.
&gt; 2) Flip the global default value and remove port-specific defaults.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>578574</commentid>
    <comment_count>8</comment_count>
    <who name="Jesus Sanchez-Palencia">jesus</who>
    <bug_when>2012-03-14 11:13:44 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; Does this make sense? If so, I&apos;m going to upload a patch that just changes Qt&apos;s default.

I&apos;m fine with it and according to previous comments here I believe the others also are.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>578579</commentid>
    <comment_count>9</comment_count>
      <attachid>131887</attachid>
    <who name="Yuta Kitamura">yutak</who>
    <bug_when>2012-03-14 11:20:02 -0700</bug_when>
    <thetext>Created attachment 131887
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>579696</commentid>
    <comment_count>10</comment_count>
      <attachid>131887</attachid>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2012-03-15 13:43:33 -0700</bug_when>
    <thetext>Comment on attachment 131887
Patch

rs=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>579708</commentid>
    <comment_count>11</comment_count>
      <attachid>131887</attachid>
    <who name="Yuta Kitamura">yutak</who>
    <bug_when>2012-03-15 13:58:39 -0700</bug_when>
    <thetext>Comment on attachment 131887
Patch

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>579861</commentid>
    <comment_count>12</comment_count>
      <attachid>131887</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-03-15 16:17:49 -0700</bug_when>
    <thetext>Comment on attachment 131887
Patch

Clearing flags on attachment: 131887

Committed r110905: &lt;http://trac.webkit.org/changeset/110905&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>579862</commentid>
    <comment_count>13</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-03-15 16:17:54 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>131887</attachid>
            <date>2012-03-14 11:20:02 -0700</date>
            <delta_ts>2012-03-15 16:17:49 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-73630-20120314112001.patch</filename>
            <type>text/plain</type>
            <size>1363</size>
            <attacher name="Yuta Kitamura">yutak</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTEwNjIyCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0L3F0
L0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJLaXQvcXQvQ2hhbmdlTG9nCmluZGV4IDY0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