1. 24 May, 2011 1 commit
    • jcivelli@chromium.org's avatar
      2011-05-24 Jay Civelli <jcivelli@chromium.org> · c2019dd7
      jcivelli@chromium.org authored
              Reviewed by Adam Barth.
      
              Adding MHTML reading support.
              https://bugs.webkit.org/show_bug.cgi?id=7168
      
              * configure.ac:
      2011-05-24  Jay Civelli  <jcivelli@chromium.org>
      
              Reviewed by Adam Barth.
      
              Adding MHTML reading support to WebCore.
              https://bugs.webkit.org/show_bug.cgi?id=7168
      
              * mhtml/frame_0.html_original: Added.
              * mhtml/frame_1.html_original: Added.
              * mhtml/frame_2.html_original: Added.
              * mhtml/frame_4.html_original: Added.
              * mhtml/multi_frames.html_original: Added.
              * mhtml/multi_frames_ie.mht: Added.
              * mhtml/multi_frames_unmht.mht: Added.
              * mhtml/page_with_css_and_js.html_original: Added.
              * mhtml/page_with_css_and_js_ie.mht: Added.
              * mhtml/page_with_css_and_js_unmht.mht: Added.
              * mhtml/page_with_image.html_original: Added.
              * mhtml/page_with_image_ie.mht: Added.
              * mhtml/page_with_image_unmht.mht: Added.
              * mhtml/resources/red_square.png: Added.
              * mhtml/simple_page.html_original: Added.
              * mhtml/simple_page_ie.mht: Added.
              * mhtml/simple_page_unmht.mht: Added.
              * platform/chromium/mhtml/multi_frames_ie-expected.txt: Added.
              * platform/chromium/mhtml/multi_frames_unmht-expected.txt: Added.
              * platform/chromium/mhtml/page_with_css_and_js_ie-expected.txt: Added.
              * platform/chromium/mhtml/page_with_css_and_js_unmht-expected.txt: Added.
              * platform/chromium/mhtml/page_with_image_ie-expected.txt: Added.
              * platform/chromium/mhtml/page_with_image_unmht-expected.txt: Added.
              * platform/chromium/mhtml/simple_page_ie-expected.txt: Added.
              * platform/chromium/mhtml/simple_page_unmht-expected.txt: Added.
      2011-05-24  Jay Civelli  <jcivelli@chromium.org>
      
              Reviewed by Adam Barth.
      
              Adding MHTML reading support. That required some basic MIME header parsing.
              Modified DocumentLoader to keep a reference to the currently Archive loaded,
              so we can have different policies for loading subresources depending on the
              archive type.
              https://bugs.webkit.org/show_bug.cgi?id=7168
      
              * CMakeLists.txt:
              * Configurations/FeatureDefines.xcconfig:
              * GNUmakefile.am:
              * GNUmakefile.list.am:
              * WebCore.gyp/WebCore.gyp:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * features.pri:
              * loader/DocumentLoader.cpp:
              (WebCore::DocumentLoader::commitLoad):
              (WebCore::DocumentLoader::setupForReplaceByMIMEType):
              (WebCore::DocumentLoader::popArchiveForSubframe):
              (WebCore::DocumentLoader::scheduleArchiveLoad):
              * loader/DocumentLoader.h:
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::loadURLIntoChildFrame):
              (WebCore::FrameLoader::loadArchive):
              (WebCore::FrameLoader::stopAllLoaders):
              (WebCore::FrameLoader::finishedLoadingDocument):
              * loader/FrameLoader.h:
              (WebCore::FrameLoader::archive):
              * loader/MainResourceLoader.cpp:
              (WebCore::MainResourceLoader::continueAfterContentPolicy):
              * loader/ResourceLoader.cpp:
              (WebCore::ResourceLoader::start):
              * loader/archive/Archive.cpp: Added.
              * loader/archive/Archive.h:
              (WebCore::Archive::mainResource):
              * loader/archive/ArchiveFactory.cpp:
              (WebCore::archiveFactoryCreate):
              (WebCore::archiveMIMETypes):
              (WebCore::ArchiveFactory::create):
              (WebCore::ArchiveFactory::registerKnownArchiveMIMETypes):
              * loader/archive/ArchiveFactory.h:
              * loader/archive/ArchiveResourceCollection.cpp:
              (WebCore::ArchiveResourceCollection::addAllResources):
              (WebCore::ArchiveResourceCollection::popSubframeArchive):
              * loader/archive/ArchiveResourceCollection.h:
              * loader/archive/cf/LegacyWebArchive.cpp:
              (WebCore::LegacyWebArchive::create):
              (WebCore::LegacyWebArchive::type):
              * loader/archive/cf/LegacyWebArchive.h:
              * loader/archive/mhtml/MHTMLArchive.cpp: Added.
              * loader/archive/mhtml/MHTMLArchive.h: Added.
              * loader/archive/mhtml/MHTMLParser.cpp: Added.
              * loader/archive/mhtml/MHTMLParser.h: Added.
              * platform/MIMETypeRegistry.cpp:
              (WebCore::initializeSupportedNonImageMimeTypes):
              * platform/mac/PasteboardMac.mm:
              (WebCore::Pasteboard::documentFragment):
              * platform/network/MIMEHeader.cpp: Added.
              * platform/network/MIMEHeader.h: Added.
      2011-05-24  Jay Civelli  <jcivelli@chromium.org>
      
              Reviewed by Adam Barth.
      
              Adding MHTML reading support to WebCore.
              https://bugs.webkit.org/show_bug.cgi?id=7168
      
             * features.gypi:
      2011-05-24  Jay Civelli  <jcivelli@chromium.org>
      
              Reviewed by Adam Barth.
      
              Adding MHTML reading support.
              https://bugs.webkit.org/show_bug.cgi?id=7168
      
              * Scripts/build-webkit:
              * Scripts/old-run-webkit-tests:
              * Scripts/webkitperl/features.pm:
              * Scripts/webkitpy/layout_tests/port/test_files.py:
              * Scripts/webkitpy/layout_tests/port/webkit.py:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@87189 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c2019dd7
  2. 03 Apr, 2009 1 commit
    • weinig@apple.com's avatar
      WebCore: · 3603ab4a
      weinig@apple.com authored
      2009-04-03  Sam Weinig  <sam@webkit.org>
      
              Reviewed by Anders Carlsson.
      
              Fix for https://bugs.webkit.org/show_bug.cgi?id=22081
              <rdar://problem/6346030>
              Don't allow overriding the return value of window.location.
      
              Tests: fast/dom/Window/Location/location-override-toString-on-proto-using-defineGetter.html
                     fast/dom/Window/Location/location-override-toString-on-proto-using-with.html
                     fast/dom/Window/Location/location-override-toString-on-proto.html
                     fast/dom/Window/Location/location-override-toString-using-defineGetter.html
                     fast/dom/Window/Location/location-override-toString-using-with.html
                     fast/dom/Window/Location/location-override-toString.html
                     fast/dom/Window/Location/location-override-valueOf-on-proto-using-defineGetter.html
                     fast/dom/Window/Location/location-override-valueOf-on-proto-using-with.html
                     fast/dom/Window/Location/location-override-valueOf-on-proto.html
                     fast/dom/Window/Location/location-override-valueOf-using-defineGetter.html
                     fast/dom/Window/Location/location-override-valueOf-using-with.html
                     fast/dom/Window/Location/location-override-valueOf.html
                     fast/dom/Window/Location/window-override-location-using-defineGetter.html
                     fast/dom/Window/Location/window-override-window-using-defineGetter.html
                     fast/dom/Window/Location/window-shadow-location-using-js-object-with-toString.html
                     fast/dom/Window/Location/window-shadow-location-using-string.html
                     fast/dom/Window/Location/window-shadow-window-using-js-object-with-location-field.html
      
              * bindings/js/JSDOMWindowCustom.cpp:
              (WebCore::JSDOMWindow::defineGetter):
              * bindings/js/JSLocationCustom.cpp:
              (WebCore::JSLocation::customPut):
              (WebCore::JSLocation::defineGetter):
              (WebCore::JSLocationPrototype::customPut):
              (WebCore::JSLocationPrototype::defineGetter):
              * bindings/scripts/CodeGeneratorJS.pm:
              * page/Location.idl:
      
      LayoutTests:
      
      2009-04-03  Sam Weinig  <sam@webkit.org>
      
              Reviewed by Anders Carlsson.
      
              Tests for https://bugs.webkit.org/show_bug.cgi?id=22081
              <rdar://problem/6346030>
              Don't allow overriding the return value of window.location.
      
              * fast/dom/Window/Location: Added.
              * fast/dom/Window/Location/location-override-toString-expected.txt: Added.
              * fast/dom/Window/Location/location-override-toString-on-proto-expected.txt: Added.
              * fast/dom/Window/Location/location-override-toString-on-proto-using-defineGetter-expected.txt: Added.
              * fast/dom/Window/Location/location-override-toString-on-proto-using-defineGetter.html: Added.
              * fast/dom/Window/Location/location-override-toString-on-proto-using-with-expected.txt: Added.
              * fast/dom/Window/Location/location-override-toString-on-proto-using-with.html: Added.
              * fast/dom/Window/Location/location-override-toString-on-proto.html: Added.
              * fast/dom/Window/Location/location-override-toString-using-defineGetter-expected.txt: Added.
              * fast/dom/Window/Location/location-override-toString-using-defineGetter.html: Added.
              * fast/dom/Window/Location/location-override-toString-using-with-expected.txt: Added.
              * fast/dom/Window/Location/location-override-toString-using-with.html: Added.
              * fast/dom/Window/Location/location-override-toString.html: Added.
              * fast/dom/Window/Location/location-override-valueOf-expected.txt: Added.
              * fast/dom/Window/Location/location-override-valueOf-on-proto-expected.txt: Added.
              * fast/dom/Window/Location/location-override-valueOf-on-proto-using-defineGetter-expected.txt: Added.
              * fast/dom/Window/Location/location-override-valueOf-on-proto-using-defineGetter.html: Added.
              * fast/dom/Window/Location/location-override-valueOf-on-proto-using-with-expected.txt: Added.
              * fast/dom/Window/Location/location-override-valueOf-on-proto-using-with.html: Added.
              * fast/dom/Window/Location/location-override-valueOf-on-proto.html: Added.
              * fast/dom/Window/Location/location-override-valueOf-using-defineGetter-expected.txt: Added.
              * fast/dom/Window/Location/location-override-valueOf-using-defineGetter.html: Added.
              * fast/dom/Window/Location/location-override-valueOf-using-with-expected.txt: Added.
              * fast/dom/Window/Location/location-override-valueOf-using-with.html: Added.
              * fast/dom/Window/Location/location-override-valueOf.html: Added.
              * fast/dom/Window/Location/resources: Added.
              * fast/dom/Window/Location/resources/location-tests-functions.js: Added.
              (normalizeURL):
              * fast/dom/Window/Location/resources/pass.html: Added.
              * fast/dom/Window/Location/resources/window-shadow-location-using-js-object-with-toString-iframe.html: Added.
              * fast/dom/Window/Location/resources/window-shadow-location-using-string-iframe.html: Added.
              * fast/dom/Window/Location/window-override-location-using-defineGetter-expected.txt: Added.
              * fast/dom/Window/Location/window-override-location-using-defineGetter.html: Added.
              * fast/dom/Window/Location/window-override-window-using-defineGetter-expected.txt: Added.
              * fast/dom/Window/Location/window-override-window-using-defineGetter.html: Added.
              * fast/dom/Window/Location/window-shadow-location-using-js-object-with-toString-expected.txt: Added.
              * fast/dom/Window/Location/window-shadow-location-using-js-object-with-toString.html: Added.
              * fast/dom/Window/Location/window-shadow-location-using-string-expected.txt: Added.
              * fast/dom/Window/Location/window-shadow-location-using-string.html: Added.
              * fast/dom/Window/Location/window-shadow-window-using-js-object-with-location-field-expected.txt: Added.
              * fast/dom/Window/Location/window-shadow-window-using-js-object-with-location-field.html: Added.
              * http/tests/security/cross-frame-access-location-put-expected.txt:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@42218 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3603ab4a
  3. 25 Jan, 2007 1 commit