Bug 99105 - MHTML generation crashes on www.vimeo.com
Summary: MHTML generation crashes on www.vimeo.com
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jay Civelli
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-11 15:18 PDT by Jay Civelli
Modified: 2012-10-12 10:05 PDT (History)
3 users (show)

See Also:


Attachments
Patch (2.33 KB, patch)
2012-10-11 15:25 PDT, Jay Civelli
no flags Details | Formatted Diff | Diff
Patch (6.51 KB, patch)
2012-10-11 18:40 PDT, Jay Civelli
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jay Civelli 2012-10-11 15:18:34 PDT
Calling MHTMLArchive::generateMHTMLData() on a page containing an SVG image (such as http://www.vimeo.com) causes a crasher.
This is related to 99102.
Comment 1 Jay Civelli 2012-10-11 15:25:15 PDT
Created attachment 168287 [details]
Patch
Comment 2 Adam Barth 2012-10-11 15:34:15 PDT
Comment on attachment 168287 [details]
Patch

This patch looks good, but we'd like a test case so we don't regress this behavior in the future.
Comment 3 Jay Civelli 2012-10-11 18:40:37 PDT
Created attachment 168331 [details]
Patch
Comment 4 Adam Barth 2012-10-11 18:56:32 PDT
Comment on attachment 168331 [details]
Patch

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

Thanks.

> Source/WebKit/chromium/tests/WebPageNewSerializerTest.cpp:335
> +// Test that we don't regress https://bugs.webkit.org/show_bug.cgi?id=99105

We generally skip these sorts of comments.  The information is in the svn history.
Comment 5 Build Bot 2012-10-11 18:58:20 PDT
Comment on attachment 168331 [details]
Patch

Attachment 168331 [details] did not pass win-ews (win):
Output: http://queues.webkit.org/results/14265141
Comment 6 Adam Barth 2012-10-11 19:01:19 PDT
Comment on attachment 168331 [details]
Patch

I don't see how this patch could have broken the apple-win port.
Comment 7 WebKit Review Bot 2012-10-11 19:13:59 PDT
Comment on attachment 168331 [details]
Patch

Clearing flags on attachment: 168331

Committed r131125: <http://trac.webkit.org/changeset/131125>
Comment 8 WebKit Review Bot 2012-10-11 19:14:02 PDT
All reviewed patches have been landed.  Closing bug.
Comment 9 Anders Carlsson 2012-10-11 20:46:59 PDT
(In reply to comment #6)
> (From update of attachment 168331 [details])
> I don't see how this patch could have broken the apple-win port.

Here's why:


+        LOG_ERROR("No data for image %s", url.utf8String().data());

KURL.h has

#if USE(GOOGLEURL)
    // Getters for the parsed structure and its corresponding 8-bit string.
    const url_parse::Parsed& parsed() const { return m_url.m_parsed; }
    const CString& utf8String() const { return m_url.utf8String(); }
#endif

Maybe nobody else is building with LOG_ERROR enabled? I attempted a fix.
Comment 10 Adam Barth 2012-10-11 21:09:02 PDT
> I attempted a fix.

Thanks.
Comment 11 Jay Civelli 2012-10-12 10:05:31 PDT
Thanks a lot Anders for fixing the breakage!