<?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>85882</bug_id>
          
          <creation_ts>2012-05-08 06:47:29 -0700</creation_ts>
          <short_desc>[Qt] Remove ASSERT from QWebIconImageProvider::requestImage</short_desc>
          <delta_ts>2012-06-02 04:18:59 -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>New Bugs</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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>80400</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Zoltan Horvath">zoltan</reporter>
          <assigned_to name="Zoltan Horvath">zoltan</assigned_to>
          <cc>hausmann</cc>
    
    <cc>menard</cc>
    
    <cc>rafael.lobo</cc>
    
    <cc>vestbo</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>618471</commentid>
    <comment_count>0</comment_count>
    <who name="Zoltan Horvath">zoltan</who>
    <bug_when>2012-05-08 06:47:29 -0700</bug_when>
    <thetext>[Qt] Remove ASSERT from QWebIconImageProvider::requestImage</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>618473</commentid>
    <comment_count>1</comment_count>
      <attachid>140707</attachid>
    <who name="Zoltan Horvath">zoltan</who>
    <bug_when>2012-05-08 06:48:13 -0700</bug_when>
    <thetext>Created attachment 140707
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>618476</commentid>
    <comment_count>2</comment_count>
    <who name="Zoltan Horvath">zoltan</who>
    <bug_when>2012-05-08 06:51:54 -0700</bug_when>
    <thetext>This assertion hits if you use MiniBrowser with my webcore imagedecoder patch from bug #80400. QtTestBrowser works well, since WK1 doesn&apos;t have this assertion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>621631</commentid>
    <comment_count>3</comment_count>
      <attachid>140707</attachid>
    <who name="Rafael Brandao">rafael.lobo</who>
    <bug_when>2012-05-11 07:27:05 -0700</bug_when>
    <thetext>Comment on attachment 140707
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=140707&amp;action=review

&gt; Source/WebKit2/UIProcess/API/qt/qwebiconimageprovider.cpp:-60
&gt; -    ASSERT(!icon.isNull());

Actually the reason you&apos;re hitting this assert is not because the page doesn&apos;t have an icon but a known issue on conversion between QUrl and QString. In some cases we can&apos;t revert it back to the original value, so even after changing the icon url of a web view confirming that its icon is there, you cannot request it back at image provider level. :-/

How frequent are you hitting this assert? You should get into it only on some tricky urls with special characters. Right now, I don&apos;t think removing is a good idea. Maybe with Thiago recent QUrl changes we will have this fixed (or detect when it still need to be worked on).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>626458</commentid>
    <comment_count>4</comment_count>
    <who name="Zoltan Horvath">zoltan</who>
    <bug_when>2012-05-17 04:50:20 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (From update of attachment 140707 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=140707&amp;action=review
&gt; 
&gt; &gt; Source/WebKit2/UIProcess/API/qt/qwebiconimageprovider.cpp:-60
&gt; &gt; -    ASSERT(!icon.isNull());
&gt; 
&gt; Actually the reason you&apos;re hitting this assert is not because the page doesn&apos;t have an icon but a known issue on conversion between QUrl and QString. In some cases we can&apos;t revert it back to the original value, so even after changing the icon url of a web view confirming that its icon is there, you cannot request it back at image provider level. :-/

Thus you don&apos;t have a valid icon at this point (and you don&apos;t always need). What is the reason for the assert? Using a null icon is a valid state here, then why do we demand for not null icon? 

&gt; How frequent are you hitting this assert? You should get into it only on some tricky urls with special characters. Right now, I don&apos;t think removing is a good idea. Maybe with Thiago recent QUrl changes we will have this fixed (or detect when it still need to be worked on).

It&apos;s hitting by simple URLs frequently also, just clicking on the menus of google.com.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>637081</commentid>
    <comment_count>5</comment_count>
    <who name="Tor Arne Vestbø">vestbo</who>
    <bug_when>2012-05-30 03:15:33 -0700</bug_when>
    <thetext>This should be fixed now that we base64 the page-url of the image-provider url, since r118762</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>640000</commentid>
    <comment_count>6</comment_count>
      <attachid>140707</attachid>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2012-06-02 02:10:01 -0700</bug_when>
    <thetext>Comment on attachment 140707
Patch

Bug is marked as resolved/fixed, so clearing review on this patch to take it out of the review queue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>640011</commentid>
    <comment_count>7</comment_count>
    <who name="Tor Arne Vestbø">vestbo</who>
    <bug_when>2012-06-02 04:18:59 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; (From update of attachment 140707 [details])
&gt; Bug is marked as resolved/fixed, so clearing review on this patch to take it out of the review queue.

Would be nice if the review queue was a bit smarter than that :)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>140707</attachid>
            <date>2012-05-08 06:48:13 -0700</date>
            <delta_ts>2012-06-02 02:10:01 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-85882-20120508154810.patch</filename>
            <type>text/plain</type>
            <size>1755</size>
            <attacher name="Zoltan Horvath">zoltan</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTE2MzA0CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0M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