<?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>114291</bug_id>
          
          <creation_ts>2013-04-09 09:44:34 -0700</creation_ts>
          <short_desc>WKFrameIsDisplayingMarkupDocument should return true for Web Archives</short_desc>
          <delta_ts>2013-04-10 17:38:04 -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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>114399</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Antoine Quint">graouts</reporter>
          <assigned_to name="Antoine Quint">graouts</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>dino</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>871921</commentid>
    <comment_count>0</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2013-04-09 09:44:34 -0700</bug_when>
    <thetext>WKFrameIsDisplayingMarkupDocument should return true for Web Archives</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>871924</commentid>
    <comment_count>1</comment_count>
      <attachid>197138</attachid>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2013-04-09 09:46:49 -0700</bug_when>
    <thetext>Created attachment 197138
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>871925</commentid>
    <comment_count>2</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2013-04-09 09:47:35 -0700</bug_when>
    <thetext>&lt;rdar://problem/8800121&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>871926</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2013-04-09 09:48:04 -0700</bug_when>
    <thetext>&lt;rdar://problem/13609798&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>871927</commentid>
    <comment_count>4</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2013-04-09 09:48:43 -0700</bug_when>
    <thetext>&lt;rdar://problem/8800121&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>871959</commentid>
    <comment_count>5</comment_count>
      <attachid>197138</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2013-04-09 10:57:56 -0700</bug_when>
    <thetext>Comment on attachment 197138
Patch

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

&gt; Source/WebKit2/ChangeLog:8
&gt; +        Also return true for the Web Archive MIME type.  

Why? What are the implications of this change?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>871960</commentid>
    <comment_count>6</comment_count>
      <attachid>197138</attachid>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2013-04-09 10:58:03 -0700</bug_when>
    <thetext>Comment on attachment 197138
Patch

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

&gt; Source/WebKit2/UIProcess/WebFrameProxy.cpp:118
&gt;      // FIXME: This returns false when displaying a web archive.

Remove this comment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>871971</commentid>
    <comment_count>7</comment_count>
      <attachid>197149</attachid>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2013-04-09 11:12:28 -0700</bug_when>
    <thetext>Created attachment 197149
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>871972</commentid>
    <comment_count>8</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2013-04-09 11:13:24 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; (From update of attachment 197138 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=197138&amp;action=review
&gt; 
&gt; &gt; Source/WebKit2/ChangeLog:8
&gt; &gt; +        Also return true for the Web Archive MIME type.  
&gt; 
&gt; Why? What are the implications of this change?

This is so that commands in user agents that should only be contextual to markup documents do the right thing when a Web Archive is displayed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>871973</commentid>
    <comment_count>9</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2013-04-09 11:13:33 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; (From update of attachment 197138 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=197138&amp;action=review
&gt; 
&gt; &gt; Source/WebKit2/UIProcess/WebFrameProxy.cpp:118
&gt; &gt;      // FIXME: This returns false when displaying a web archive.
&gt; 
&gt; Remove this comment.

Indeed!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>872092</commentid>
    <comment_count>10</comment_count>
      <attachid>197149</attachid>
    <who name="Dean Jackson">dino</who>
    <bug_when>2013-04-09 14:33:25 -0700</bug_when>
    <thetext>Comment on attachment 197149
Patch

It would be nice to know if there are any serious implications from this change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>872118</commentid>
    <comment_count>11</comment_count>
    <who name="Dean Jackson">dino</who>
    <bug_when>2013-04-09 15:55:45 -0700</bug_when>
    <thetext>One more concern. You said this was a regression. What was the commit that it regressed in?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>872582</commentid>
    <comment_count>12</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2013-04-09 21:34:47 -0700</bug_when>
    <thetext>(In reply to comment #11)
&gt; One more concern. You said this was a regression. What was the commit that it regressed in?

I believe it was a regression from WebKit1 to WebKit2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>872622</commentid>
    <comment_count>13</comment_count>
      <attachid>197149</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2013-04-09 23:43:33 -0700</bug_when>
    <thetext>Comment on attachment 197149
Patch

Clearing flags on attachment: 197149

Committed r148078: &lt;http://trac.webkit.org/changeset/148078&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>872623</commentid>
    <comment_count>14</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2013-04-09 23:43:35 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>872905</commentid>
    <comment_count>15</comment_count>
      <attachid>197149</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2013-04-10 09:40:40 -0700</bug_when>
    <thetext>Comment on attachment 197149
Patch

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

&gt; Source/WebKit2/UIProcess/WebFrameProxy.cpp:118
&gt; +    return m_MIMEType == &quot;text/html&quot; || m_MIMEType == &quot;image/svg+xml&quot; || m_MIMEType == &quot;application/x-webarchive&quot; || DOMImplementation::isXMLMIMEType(m_MIMEType);

I’m not sure this patch is right. Can’t a web archive be created with contents that are not HTML, SVG, or XML? In that case, this function would return the wrong thing. I think in the case of the web archive we need an “internal MIME type” to correctly implement this function.

This version might be OK for now, but there is a chance that it has some edge cases wrong.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>873394</commentid>
    <comment_count>16</comment_count>
      <attachid>197149</attachid>
    <who name="Dean Jackson">dino</who>
    <bug_when>2013-04-10 17:38:04 -0700</bug_when>
    <thetext>Comment on attachment 197149
Patch

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

&gt;&gt; Source/WebKit2/UIProcess/WebFrameProxy.cpp:118
&gt;&gt; +    return m_MIMEType == &quot;text/html&quot; || m_MIMEType == &quot;image/svg+xml&quot; || m_MIMEType == &quot;application/x-webarchive&quot; || DOMImplementation::isXMLMIMEType(m_MIMEType);
&gt; 
&gt; I’m not sure this patch is right. Can’t a web archive be created with contents that are not HTML, SVG, or XML? In that case, this function would return the wrong thing. I think in the case of the web archive we need an “internal MIME type” to correctly implement this function.
&gt; 
&gt; This version might be OK for now, but there is a chance that it has some edge cases wrong.

Yeah, I guess we need to see if the web archive has an item that we&apos;d load as html or svg.

I opened https://bugs.webkit.org/show_bug.cgi?id=114399</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>197138</attachid>
            <date>2013-04-09 09:46:49 -0700</date>
            <delta_ts>2013-04-09 11:12:23 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-114291-20130409184617.patch</filename>
            <type>text/plain</type>
            <size>1613</size>
            <attacher name="Antoine Quint">graouts</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTQ4MDE0CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0Mi9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViS2l0Mi9DaGFuZ2VMb2cKaW5kZXggMGNiZDk5OTFjZGNhYjIy
ZjY5Yzc3M2FhZTY3ZTdiZTAyYTViM2JiOS4uYzlhNDZmNjlmZjc0NmM5M2NmYzk1ZjdkNzM2NmNm
N2MyNTU4NTYyZSAxMDA2NDQKLS0tIGEvU291cmNlL1dlYktpdDIvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJLaXQyL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE1IEBACisyMDEzLTA0LTA5ICBBbnRv
aW5lIFF1aW50ICA8Z3Jhb3V0c0BhcHBsZS5jb20+CisKKyAgICAgICAgV0tGcmFtZUlzRGlzcGxh
eWluZ01hcmt1cERvY3VtZW50IHNob3VsZCByZXR1cm4gdHJ1ZSBmb3IgV2ViIEFyY2hpdmVzC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ld2hlcmUgaW4g
V2ViQ29yZS4KICAgICAvLyBGSVhNRTogVGhpcyByZXR1cm5zIGZhbHNlIHdoZW4gZGlzcGxheWlu
ZyBhIHdlYiBhcmNoaXZlLgotICAgIHJldHVybiBtX01JTUVUeXBlID09ICJ0ZXh0L2h0bWwiIHx8
IG1fTUlNRVR5cGUgPT0gImltYWdlL3N2Zyt4bWwiIHx8IERPTUltcGxlbWVudGF0aW9uOjppc1hN
TE1JTUVUeXBlKG1fTUlNRVR5cGUpOworICAgIHJldHVybiBtX01JTUVUeXBlID09ICJ0ZXh0L2h0
bWwiIHx8IG1fTUlNRVR5cGUgPT0gImltYWdlL3N2Zyt4bWwiIHx8IG1fTUlNRVR5cGUgPT0gImFw
cGxpY2F0aW9uL3gtd2ViYXJjaGl2ZSIgfHwgRE9NSW1wbGVtZW50YXRpb246OmlzWE1MTUlNRVR5
cGUobV9NSU1FVHlwZSk7CiB9CiAKIGJvb2wgV2ViRnJhbWVQcm94eTo6aXNEaXNwbGF5aW5nUERG
RG9jdW1lbnQoKSBjb25zdAo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>197149</attachid>
            <date>2013-04-09 11:12:28 -0700</date>
            <delta_ts>2013-04-10 17:38:04 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-114291-20130409201210.patch</filename>
            <type>text/plain</type>
            <size>1747</size>
            <attacher name="Antoine Quint">graouts</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTQ4MDE0CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0Mi9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViS2l0Mi9DaGFuZ2VMb2cKaW5kZXggMGNiZDk5OTFjZGNhYjIy
ZjY5Yzc3M2FhZTY3ZTdiZTAyYTViM2JiOS4uODMyNTA1MmU3MGM0MzM4Y2Y2MTljNzRhNmIzZjY1
Y2YxNTA5M2FmZCAxMDA2NDQK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