Bug 116442

Summary: [GTK] Support application/x-mimearchive mimetype for MHTML archives instead of message/rfc822
Product: WebKit Reporter: Zan Dobersek <zan>
Component: New BugsAssignee: Zan Dobersek <zan>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, japhet, mrobinson
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Zan Dobersek
Reported 2013-05-20 09:39:19 PDT
[GTK] Support application/x-mimearchive mimetype for MHTML archives instead of message/rfc822
Attachments
Patch (1.62 KB, patch)
2013-05-20 09:44 PDT, Zan Dobersek
no flags
Patch (1.70 KB, patch)
2013-05-20 12:48 PDT, Zan Dobersek
no flags
Zan Dobersek
Comment 1 2013-05-20 09:44:14 PDT
WebKit Commit Bot
Comment 2 2013-05-20 09:45:01 PDT
Attachment 202282 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCore/loader/archive/ArchiveFactory.cpp']" exit_code: 1 Source/WebCore/loader/archive/ArchiveFactory.cpp:71: Do not add platform specific code in WebCore outside of platform. [build/webcore_platform_layering_violation] [5] Total errors found: 1 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
Zan Dobersek
Comment 3 2013-05-20 11:43:32 PDT
(In reply to comment #2) > Attachment 202282 [details] did not pass style-queue: > > Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCore/loader/archive/ArchiveFactory.cpp']" exit_code: 1 > Source/WebCore/loader/archive/ArchiveFactory.cpp:71: Do not add platform specific code in WebCore outside of platform. [build/webcore_platform_layering_violation] [5] > Total errors found: 1 in 2 files I've kept the current approach, but filed bug #116453 to cover the layering violation.
Martin Robinson
Comment 4 2013-05-20 12:04:52 PDT
Comment on attachment 202282 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=202282&action=review >> Source/WebCore/loader/archive/ArchiveFactory.cpp:71 >> +#if PLATFORM(EFL) || PLATFORM(GTK) || PLATFORM(QT) > > Do not add platform specific code in WebCore outside of platform. [build/webcore_platform_layering_violation] [5] Do you know what other platform enable MHTML other than EFL/GTK/Qt? Perhaps that platform should use the new mime-type as well.
Zan Dobersek
Comment 5 2013-05-20 12:34:34 PDT
Comment on attachment 202282 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=202282&action=review >>> Source/WebCore/loader/archive/ArchiveFactory.cpp:71 >>> +#if PLATFORM(EFL) || PLATFORM(GTK) || PLATFORM(QT) >> >> Do not add platform specific code in WebCore outside of platform. [build/webcore_platform_layering_violation] [5] > > Do you know what other platform enable MHTML other than EFL/GTK/Qt? Perhaps that platform should use the new mime-type as well. The build systems of the in-tree ports and the FeatureList.pm module show that only these three ports enable MHTML.
Martin Robinson
Comment 6 2013-05-20 12:36:11 PDT
(In reply to comment #5) > The build systems of the in-tree ports and the FeatureList.pm module show that only these three ports enable MHTML. So perhaps this can just be simplified to #if ENABLE(MATHML) then?
Zan Dobersek
Comment 7 2013-05-20 12:38:56 PDT
Ah, of course. Wasn't looking at it that way.
Zan Dobersek
Comment 8 2013-05-20 12:48:22 PDT
Zan Dobersek
Comment 9 2013-05-20 23:03:23 PDT
Zan Dobersek
Comment 10 2013-05-20 23:07:50 PDT
Comment on attachment 202307 [details] Patch Clearing flags on attachment: 202307 Committed r150418: <http://trac.webkit.org/changeset/150418>
Zan Dobersek
Comment 11 2013-05-20 23:07:56 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.