<?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>70047</bug_id>
          
          <creation_ts>2011-10-13 12:46:43 -0700</creation_ts>
          <short_desc>[Qt][WK2] WebViews are emitting loadFailed for &quot;private&quot; error codes</short_desc>
          <delta_ts>2011-10-13 14:15:41 -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>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>Qt, QtTriaged</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jesus Sanchez-Palencia">jesus</reporter>
          <assigned_to name="Jesus Sanchez-Palencia">jesus</assigned_to>
          <cc>kenneth</cc>
    
    <cc>kling</cc>
    
    <cc>menard</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>483407</commentid>
    <comment_count>0</comment_count>
    <who name="Jesus Sanchez-Palencia">jesus</who>
    <bug_when>2011-10-13 12:46:43 -0700</bug_when>
    <thetext>Both QDesktopWebView and QTouchWebView are emitting loadFailed for all sort of errors. This includes errors like the ones defined in Source/WebKit2/WebProcess/WebCoreSupport/qt/WebErrorsQt.cpp, which are private since their domain is &quot;WebKit&quot; and whose error codes are not exposed anywhere in our API.

We should filter these by not emitting this signal for private errors since there is no way for the users of our API to check them (no enums...). They could be exposed but I believe it would just pollute our API as this sort of errors are more related to WebKit internals than to user&apos;s actions or decisions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>483413</commentid>
    <comment_count>1</comment_count>
      <attachid>110890</attachid>
    <who name="Jesus Sanchez-Palencia">jesus</who>
    <bug_when>2011-10-13 12:57:12 -0700</bug_when>
    <thetext>Created attachment 110890
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>483416</commentid>
    <comment_count>2</comment_count>
      <attachid>110890</attachid>
    <who name="Kenneth Rohde Christiansen">kenneth</who>
    <bug_when>2011-10-13 12:59:53 -0700</bug_when>
    <thetext>Comment on attachment 110890
Patch

Possible to test this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>483430</commentid>
    <comment_count>3</comment_count>
    <who name="Jesus Sanchez-Palencia">jesus</who>
    <bug_when>2011-10-13 13:20:43 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 110890 [details])
&gt; Possible to test this?

I don&apos;t think so =/.
Maybe only if the test rely on private stuff... but I&apos;m not sure it makes sense. The good thing about this patch is that if anyone ever thinks these errors should emit loadFailed it&apos;s easy to remove those lines. Plus, other ports do the same on their FrameLoaderClient implementation in WebKit1 and we ourselves used to do the same in FrameLoaderClientQt::shouldFallBack. So I guess we are safe here...

Can I land it, Kenneth?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>483466</commentid>
    <comment_count>4</comment_count>
    <who name="Kenneth Rohde Christiansen">kenneth</who>
    <bug_when>2011-10-13 14:04:22 -0700</bug_when>
    <thetext>Sure!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>483477</commentid>
    <comment_count>5</comment_count>
      <attachid>110890</attachid>
    <who name="Jesus Sanchez-Palencia">jesus</who>
    <bug_when>2011-10-13 14:15:33 -0700</bug_when>
    <thetext>Comment on attachment 110890
Patch

Clearing flags on attachment: 110890

Committed r97398: &lt;http://trac.webkit.org/changeset/97398&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>483478</commentid>
    <comment_count>6</comment_count>
    <who name="Jesus Sanchez-Palencia">jesus</who>
    <bug_when>2011-10-13 14:15:41 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>110890</attachid>
            <date>2011-10-13 12:57:12 -0700</date>
            <delta_ts>2011-10-13 14:15:33 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-70047-20111013165652.patch</filename>
            <type>text/plain</type>
            <size>1896</size>
            <attacher name="Jesus Sanchez-Palencia">jesus</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogOTczODcKZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJLaXQyL0No
YW5nZUxvZyBiL1NvdXJjZS9XZWJLaXQyL0NoYW5nZUxvZwppbmRleCA0YWFlOTVlZGM3MDllMjRi
NDI4MDYzMTJiZTM1ZWI5ZGYwYzkwZmQ2Li4zMTE4MzhhYTc5NGZjZTFhYjM3NWQ1YmNkYmU1OWQz
NjU2MWZmMzkyIDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViS2l0Mi9DaGFuZ2VMb2cKKysrIGIvU291
cmNlL1dlYktpdDIvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTkgQEAKKzIwMTEtMTAtMTMgIEplc3Vz
IFNhbmNoZXotUGFsZW5jaWEgIDxqZXN1cy5wYWxlbmNpYUBvcGVuYm9zc2Eub3JnPgorCisgICAg
ICAgIFtRdF1bV0syXSBXZWJWaWV3cyBhcmUgZW1pdHRpbmcgbG9hZEZhaWxlZCBmb3IgInByaXZh
dGUiIGVycm9yIGNvZGVzCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVn
LmNnaT9pZD03MDA0NworCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisg
ICAgICAgIEJvdGggUURlc2t0b3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