Changeset 148078 in webkit


Ignore:
Timestamp:
Apr 9, 2013 11:45:02 PM (11 years ago)
Author:
Antoine Quint
Message:

WKFrameIsDisplayingMarkupDocument should return true for Web Archives
https://bugs.webkit.org/show_bug.cgi?id=114291

Reviewed by Dean Jackson.

Also return true for the Web Archive MIME type since a Web Archive
is displaying a markup document by nature.

  • UIProcess/WebFrameProxy.cpp:

(WebKit::WebFrameProxy::isDisplayingMarkupDocument):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r148054 r148078  
     12013-04-09  Antoine Quint  <graouts@apple.com>
     2
     3        WKFrameIsDisplayingMarkupDocument should return true for Web Archives
     4        https://bugs.webkit.org/show_bug.cgi?id=114291
     5
     6        Reviewed by Dean Jackson.
     7
     8        Also return true for the Web Archive MIME type since a Web Archive
     9        is displaying a markup document by nature.
     10
     11        * UIProcess/WebFrameProxy.cpp:
     12        (WebKit::WebFrameProxy::isDisplayingMarkupDocument):
     13
    1142013-04-09  Anders Carlsson  <andersca@apple.com>
    215
  • trunk/Source/WebKit2/UIProcess/WebFrameProxy.cpp

    r142807 r148078  
    116116{
    117117    // FIXME: This check should be moved to somewhere in WebCore.
    118     // FIXME: This returns false when displaying a web archive.
    119     return m_MIMEType == "text/html" || m_MIMEType == "image/svg+xml" || DOMImplementation::isXMLMIMEType(m_MIMEType);
     118    return m_MIMEType == "text/html" || m_MIMEType == "image/svg+xml" || m_MIMEType == "application/x-webarchive" || DOMImplementation::isXMLMIMEType(m_MIMEType);
    120119}
    121120
Note: See TracChangeset for help on using the changeset viewer.