[Webkit-unassigned] [Bug 127029] New: [iOS] SubresourceLoader::didFinishLoading ASSERT(!m_resource->errorOccurred()); loading apple.com

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 14 18:55:46 PST 2014


https://bugs.webkit.org/show_bug.cgi?id=127029

           Summary: [iOS] SubresourceLoader::didFinishLoading
                    ASSERT(!m_resource->errorOccurred()); loading
                    apple.com
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: joepeck at webkit.org
                CC: simon.fraser at apple.com, dbates at webkit.org


Debug iOS WebKit in the Simulator loading apple.com produces:
ASSERT(!m_resource->errorOccurred()); in WebCore::SubresourceLoader::didFinishLoading

--

lldb> p m_resource->status()
(WebCore::CachedResource::Status) $23 = DecodeError

-- 

    bool CachedImage::canBeDrawn() const
    {
        if (!m_image || m_image->isNull())
            return false;

        if (!m_loader || m_loader->reachedTerminalState())
            return true;

        size_t estimatedDecodedImageSize = m_image->width() * m_image->height() * 4; // no overflow check
        return estimatedDecodedImageSize <= m_loader->frameLoader()->frame().settings().maximumDecodedImageSize();
    }

--

lldb> p m_resource->url().m_string.m_impl.m_ptr
(WTF::StringImpl *const) $21 = 0x000000011a2643c0 { length = 63, is8bit = 1, contents = 'http://images.apple.com/v/home/am/images/your_verse_hero_2x.jpg' }

lldb> p m_loader->frameLoader()->frame().settings().maximumDecodedImageSize();
20971520

lldb> p m_image->width() * m_image->height() * 4
27302400

--

Is the maximumDecodedImageSize smaller then it should be, or is this a valid path and the ASSERT should be handled appropriately?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list