Changeset 64203 in webkit


Ignore:
Timestamp:
Jul 28, 2010 7:32:26 AM (14 years ago)
Author:
loislo@chromium.org
Message:

2010-07-28 Ilya Tikhonovsky <loislo@chromium.org>

Reviewed by Pavel Feldman.

WebInspector: Navigating to anchor prior to opening WebInspector
makes resource have 'other' type.
https://bugs.webkit.org/show_bug.cgi?id=43110

  • inspector/InspectorResource.cpp: (WebCore::InspectorResource::type): (WebCore::InspectorResource::resourceData):
  • inspector/front-end/ResourceView.js: (WebInspector.ResourceView.prototype._innerSelectContentTab):
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r64202 r64203  
     12010-07-28  Ilya Tikhonovsky  <loislo@chromium.org>
     2
     3        Reviewed by Pavel Feldman.
     4
     5        WebInspector: Navigating to anchor prior to opening WebInspector
     6        makes resource have 'other' type.
     7        https://bugs.webkit.org/show_bug.cgi?id=43110
     8
     9        * inspector/InspectorResource.cpp:
     10        (WebCore::InspectorResource::type):
     11        (WebCore::InspectorResource::resourceData):
     12        * inspector/front-end/ResourceView.js:
     13        (WebInspector.ResourceView.prototype._innerSelectContentTab):
     14
    1152010-07-28  Andreas Kling  <andreas.kling@nokia.com>
    216
  • trunk/WebCore/inspector/InspectorResource.cpp

    r64144 r64203  
    284284        return m_overrideContentType;
    285285
    286     if (m_requestURL == m_loader->requestURL()) {
     286    if (equalIgnoringFragmentIdentifier(m_requestURL, m_loader->requestURL())) {
    287287        InspectorResource::Type resourceType = cachedResourceType();
    288288        if (resourceType == Other)
     
    292292    }
    293293
    294     if (m_loader->frameLoader() && m_requestURL == m_loader->frameLoader()->iconURL())
     294    if (m_loader->frameLoader() && equalIgnoringFragmentIdentifier(m_requestURL, m_loader->frameLoader()->iconURL()))
    295295        return Image;
    296296
     
    323323PassRefPtr<SharedBuffer> InspectorResource::resourceData(String* textEncodingName) const
    324324{
    325     if (m_requestURL == m_loader->requestURL()) {
     325    if (equalIgnoringFragmentIdentifier(m_requestURL, m_loader->requestURL())) {
    326326        *textEncodingName = m_frame->document()->inputEncoding();
    327327        return m_loader->mainResourceData();
  • trunk/WebCore/inspector/front-end/ResourceView.js

    r64142 r64203  
    177177        if ("resize" in this)
    178178            this.resize();
    179         this.contentTabSelected();
     179        if (this.hasContentTab())
     180            this.contentTabSelected();
    180181    },
    181182
Note: See TracChangeset for help on using the changeset viewer.