<?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>54976</bug_id>
          
          <creation_ts>2011-02-22 11:28:39 -0800</creation_ts>
          <short_desc>Incorrect switch-case fall-through inside InspectorClientQt.cpp</short_desc>
          <delta_ts>2011-02-28 14:04:08 -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>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></keywords>
          <priority>P2</priority>
          <bug_severity>Trivial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Fabrizio">fabrizio.machado</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ademar</cc>
    
    <cc>commit-queue</cc>
    
    <cc>suresh.voruganti</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>355434</commentid>
    <comment_count>0</comment_count>
    <who name="Fabrizio">fabrizio.machado</who>
    <bug_when>2011-02-22 11:28:39 -0800</bug_when>
    <thetext>In function variantToSetting(), code falls through to next case if qvariant.type() is QVariant::Bool.

This does not make sense since the QVariant::Bool case sets QString retval to &quot;true&quot; or &quot;false&quot;.

Falling through and executing the block under QVariant::String case would overwrite this value.  The correct behavior is to break from the switch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>355441</commentid>
    <comment_count>1</comment_count>
      <attachid>83353</attachid>
    <who name="Fabrizio">fabrizio.machado</who>
    <bug_when>2011-02-22 11:34:39 -0800</bug_when>
    <thetext>Created attachment 83353
Don&apos;t fall through case in variantToSetting() if qvariant.type() is Bool</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>355705</commentid>
    <comment_count>2</comment_count>
      <attachid>83353</attachid>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2011-02-22 16:57:38 -0800</bug_when>
    <thetext>Comment on attachment 83353
Don&apos;t fall through case in variantToSetting() if qvariant.type() is Bool

r=me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>355899</commentid>
    <comment_count>3</comment_count>
      <attachid>83353</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-02-22 23:14:10 -0800</bug_when>
    <thetext>Comment on attachment 83353
Don&apos;t fall through case in variantToSetting() if qvariant.type() is Bool

Clearing flags on attachment: 83353

Committed r79412: &lt;http://trac.webkit.org/changeset/79412&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>355900</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-02-22 23:14:15 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>359049</commentid>
    <comment_count>5</comment_count>
    <who name="Suresh Voruganti">suresh.voruganti</who>
    <bug_when>2011-02-28 07:48:30 -0800</bug_when>
    <thetext>Please cherry pick the fixes to Qtwebkit 2.1.x</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>359330</commentid>
    <comment_count>6</comment_count>
    <who name="Ademar Reis">ademar</who>
    <bug_when>2011-02-28 14:04:02 -0800</bug_when>
    <thetext>Revision r79412 cherry-picked into qtwebkit-2.1.x with commit 677fa11 &lt;http://gitorious.org/webkit/qtwebkit/commit/677fa11&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>83353</attachid>
            <date>2011-02-22 11:34:39 -0800</date>
            <delta_ts>2011-02-22 23:14:10 -0800</delta_ts>
            <desc>Don&apos;t fall through case in variantToSetting() if qvariant.type() is Bool</desc>
            <filename>54976.patch</filename>
            <type>text/plain</type>
            <size>1227</size>
            <attacher name="Fabrizio">fabrizio.machado</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQvcXQvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFNvdXJjZS9X
ZWJLaXQvcXQvQ2hhbmdlTG9nCShyZXZpc2lvbiA3OTM0MCkKKysrIFNvdXJjZS9XZWJLaXQvcXQv
Q2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTQgQEAKKzIwMTEtMDItMjIgIEZh
YnJpemlvIE1hY2hhZG8gIDxmYWJyaXppby5tYWNoYWRvQG5va2lhLmNvbT4KKworICAgICAgICBS
ZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBbUXRdIERvbid0IGZhbGwgdGhy
b3VnaCBjYXNlIGluIHZhcmlhbnRUb1NldHRpbmcoKSBpZiBxdmFyaWFudC50eXBlKCkgaXMgQm9v
bAorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9NTQ5NzYK
KworICAgICAgICBUZXN0IG5vdCBuZWVkZWQuCisgICAgICAgIAorICAgICAgICAqIFdlYkNvcmVT
dXBwb3J0L0luc3BlY3RvckNsaWVudFF0LmNwcDoKKwogMjAxMS0wMi0yMiAgQW5kcmFzIEJlY3Np
ICA8YWJlY3NpQHdlYmtpdC5vcmc+CiAKICAgICAgICAgUmV2aWV3ZWQgYnkgTGFzemxvIEdvbWJv
cy4KSW5kZXg6IFNvdXJjZS9XZWJLaXQvcXQvV2ViQ29yZVN1cHBvcnQvSW5zcGVjdG9yQ2xpZW50
UXQuY3BwCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT0KLS0tIFNvdXJjZS9XZWJLaXQvcXQvV2ViQ29yZVN1cHBvcnQvSW5z
cGVjdG9yQ2xpZW50UXQuY3BwCShyZXZpc2lvbiA3ODg1MSkKKysrIFNvdXJjZS9XZWJLaXQvcXQv
V2ViQ29yZVN1cHBvcnQvSW5zcGVjdG9yQ2xpZW50UXQuY3BwCSh3b3JraW5nIGNvcHkpCkBAIC0x
NTIsOCArMTUyLDEwIEBAIHByaXZhdGU6CiAgICAgICAgIHN3aXRjaCAocXZhcmlhbnQudHlwZSgp
KSB7CiAgICAgICAgIGNhc2UgUVZhcmlhbnQ6OkJvb2w6CiAgICAgICAgICAgICByZXRWYWwgPSBx
dmFyaWFudC50b0Jvb2woKSA/ICJ0cnVlIiA6ICJmYWxzZSI7CisgICAgICAgICAgICBicmVhazsK
ICAgICAgICAgY2FzZSBRVmFyaWFudDo6U3RyaW5nOgogICAgICAgICAgICAgcmV0VmFsID0gcXZh
cmlhbnQudG9TdHJpbmcoKTsKKyAgICAgICAgICAgIGJyZWFrOwogICAgICAgICBkZWZhdWx0Ogog
ICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgIH0K
</data>

          </attachment>
      

    </bug>

</bugzilla>