1. 13 May, 2008 6 commits
  2. 12 May, 2008 22 commits
    • aroben@apple.com's avatar
      Turn on warnings as errors in WebCore.vcproj · 4160fcf5
      aroben@apple.com authored
              Rubberstamped by Anders Carlsson.
      
              * WebCore.vcproj/WebCore.vcproj: Also let VS reformat the file as it
              saw fit. The important part is the removal of the WarnAsError="false"
              lines.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33077 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4160fcf5
    • aroben@apple.com's avatar
      Fix a MSVC warning in PluginViewWin · d54c7262
      aroben@apple.com authored
      WebCore:
      
              Fix a MSVC warning in PluginViewWin
      
              Reviewed by Anders Carlsson.
      
              Test: http/tests/plugins/post-url-file.html
      
              * plugins/win/PluginViewWin.cpp:
              (WebCore::PluginView::handlePostReadFile): Added a missing return
              statement.
      
      WebKitTools:
      
              Support for testing NPN_PostURL
      
              Reviewed by Anders Carlsson.
      
              * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.cpp:
              (toCString): Added this helper function.
              (testPostURLFile): Added. Writes the passed-in content to the
              passed-in file and calls NPN_PostURL with the passed-in URL and
              target.
              (pluginInvoke): Added a case for testPostURLFile.
              * DumpRenderTree/win/LayoutTestControllerWin.cpp:
              (followShortcuts): Changed to allow paths that don't yet exist.
      
      LayoutTests:
      
              Test that NPN_PostURL works correctly
      
              Reviewed by Anders Carlsson.
      
              * http/tests/plugins/post-url-file-ex...
      d54c7262
    • aroben@apple.com's avatar
      Fix a MSVC warning in GetEOTHeader · 177d18e5
      aroben@apple.com authored
              Reviewed by Dan Bernstein.
      
              * platform/graphics/win/GetEOTHeader.cpp:
              (WebCore::getEOTHeader): MSVC complains that having a 0-sized array in
              a struct is a non-standard extension. I've replaced the 0-sized arrays
              with arrays of 1 element, and replaced sizeof(structType) with
              offsetof(structType, arrayMember).
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33075 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      177d18e5
    • aroben@apple.com's avatar
      Fix a MSVC warning in TextCodecICU · 94a6a3d4
      aroben@apple.com authored
              Reviewed by John Sullivan and Dan Bernstein.
      
              * platform/text/TextCodecICU.cpp:
              (WebCore::ErrorCallbackSetter::~ErrorCallbackSetter):
              UCNV_SUB_STOP_ON_ILLEGAL is a string literal, so using == with it
              doesn't really do what we want. Use strcmp instead. It's OK to pass an
              unknown value to strcmp here since 1) UCNV_SUB_STOP_ON_ILLEGAL is only
              a single character long so we're not going to ready more than 2 bytes
              from oldContext, and 2) we're inside an ASSERT which will cause a
              crash anyway if it fails.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33074 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      94a6a3d4
    • aroben@apple.com's avatar
      Fix a MSVC warning in CSSComputedStyleDeclaration · 66c1c75a
      aroben@apple.com authored
              Reviewed by Geoff Garen.
      
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::valueForRepeatRule): Removed some unreachable code.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33072 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      66c1c75a
    • aroben@apple.com's avatar
      Fix a MSVC warning in InlineTextBox · 9d5ec18a
      aroben@apple.com authored
              Reviewed by Dan Bernstein.
      
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::paint): Initialize some variables that MSVC
              isn't smart enough to figure out will always be initialized in the
              cases where they are used.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33071 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9d5ec18a
    • aroben@apple.com's avatar
      Fix a MSVC warning in Position · a744d847
      aroben@apple.com authored
              Reviewed by Darin Adler.
      
              * dom/Position.cpp:
              (WebCore::Position::getInlineBoxAndOffset): Use parentheses to make
              the precedence of our expressions explicit.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33070 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a744d847
    • aroben@apple.com's avatar
      Fix a MSVC warning in String · 45d9d6d5
      aroben@apple.com authored
              Reviewed by Geoff Garen.
      
              * platform/text/String.cpp:
              (WebCore::toIntegralType): Disable a bogus warning about using unary -
              on an unsigned value. MSVC isn't smart enough to figure out that
              isNegative will always be false when value is unsigned.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33069 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      45d9d6d5
    • aroben@apple.com's avatar
      Fix a MSVC warning in XMLHttpRequest · 5e2f3493
      aroben@apple.com authored
              Reviewed by Geoff Garen.
      
              * xml/XMLHttpRequest.cpp:
              (WebCore::XMLHttpRequest::XMLHttpRequest): Added static_cast<unsigned
              long>.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33068 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5e2f3493
    • andersca@apple.com's avatar
      WebCore: · 0e6a6ea0
      andersca@apple.com authored
      2008-05-12  Anders Carlsson  <andersca@apple.com>
      
              Reviewed by Adam.
      
              Handle the case when a resource with the same URL as the manifest is listed in the manifest.
      
              * loader/appcache/ApplicationCacheGroup.cpp:
              (WebCore::ApplicationCacheGroup::addEntry):
      
      LayoutTests:
      
      2008-05-12  Anders Carlsson  <andersca@apple.com>
      
              Reviewed by Adam.
      
              Add test with a manifest file that lists itself.
              
              * http/tests/appcache/manifest-containing-itself-expected.txt: Added.
              * http/tests/appcache/manifest-containing-itself.html: Added.
              * http/tests/appcache/resources/manifest-containing-itself.manifest: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33067 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0e6a6ea0
    • weinig@apple.com's avatar
      2008-05-12 Sam Weinig <sam@webkit.org> · 7f47ae51
      weinig@apple.com authored
              Reviewed by Dan Bernstein.
      
              Add parsing of AccessControlHeader and AccessItemRule.
      
              * xml/AccessControlList.cpp:
              (WebCore::AccessControlList::parseAccessControlHeader): When multiple http headers are sent
              in the response, the engine will concatenate them with commas separating the rules.  This simply
              reverses that process by splitting on the commas.
              (WebCore::AccessControlList::show):
              * xml/AccessControlList.h:
              * xml/AccessItem.cpp:
              (WebCore::AccessItem::AccessItem):
              (WebCore::AccessItem::show):
              * xml/AccessItem.h:
              (WebCore::AccessItem::isValid):
              * xml/AccessItemRule.cpp:
              (WebCore::skipLWS):
              (WebCore::AccessItemRule::parseAccessItemRule): Parse the rule according to the BNF provided by
              the Access Control spec.
              (WebCore::AccessItemRule::parsePatternList):
              (WebCore::AccessItemRule::invalidate):
              (WebCore::AccessItemRule::show):
              * xml/AccessItemRule.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33065 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7f47ae51
    • ddkilzer@apple.com's avatar
      Fix logic error in DocLoader::clearPreloads() · 4405f7a1
      ddkilzer@apple.com authored
              Reviewed by Antti.
      
              * loader/DocLoader.cpp:
              (WebCore::DocLoader::clearPreloads): Be sure to decrease the preload count for
              the cached resource before trying to remove it from the cache.  A non-zero
              preload count can prevent the resource from being removed from the cache.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33063 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4405f7a1
    • andersca@apple.com's avatar
      WebCore: · 7b7d28be
      andersca@apple.com authored
      2008-05-12  Anders Carlsson  <andersca@apple.com>
      
              Reviewed by Adam.
      
              Handle empty manifest files without crashing.
              
              * loader/appcache/ApplicationCacheGroup.cpp:
              (WebCore::ApplicationCacheGroup::startLoadingEntry):
      
      LayoutTests:
      
      2008-05-12  Anders Carlsson  <andersca@apple.com>
      
              Reviewed by Adam.
      
              * http/tests/appcache/empty-manifest-expected.txt: Added.
              * http/tests/appcache/empty-manifest.html: Added.
              * http/tests/appcache/resources/empty.manifest: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33061 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7b7d28be
    • alp@webkit.org's avatar
      2008-05-12 Alp Toker <alp@nuanti.com> · bb640738
      alp@webkit.org authored
              GTK+ build fix for breakage in r33056. Include limits.h for INT_MAX.
      
              * platform/graphics/FontCache.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33060 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bb640738
    • andersca@apple.com's avatar
      2008-05-12 Anders Carlsson <andersca@apple.com> · 7b6613f3
      andersca@apple.com authored
              Reviewed by Adam.
      
              Add user agent to requests when loading/updating the cache.
          
              * loader/FrameLoader.h:
              * loader/appcache/ApplicationCacheGroup.cpp:
              (WebCore::ApplicationCacheGroup::update):
              (WebCore::ApplicationCacheGroup::startLoadingEntry):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33058 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7b6613f3
    • andersca@apple.com's avatar
      WebCore: · bbe3968b
      andersca@apple.com authored
      2008-05-12  Anders Carlsson  <andersca@apple.com>
      
              Reviewed by Adam.
      
              Make it possible to perform synchronous loads from the application cache.
              
              * loader/DocumentLoader.cpp:
              (WebCore::DocumentLoader::shouldLoadResourceFromApplicationCache):
              Factor out code from scheduleApplicationCacheLoad in its own method.
              
              (WebCore::DocumentLoader::scheduleApplicationCacheLoad):
              Call shouldLoadResourceFromApplicationCache here instead.
              
              * loader/DocumentLoader.h:
              
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::loadResourceSynchronously):
              Call shouldLoadResourceFromApplicationCache.
      
      WebKitTools:
      
      2008-05-12  Anders Carlsson  <andersca@apple.com>
      
              Reviewed by Adam.
      
              Add support for testing application caches.
              
              * DumpRenderTree/mac/DumpRenderTree.mm:
              (dumpRenderTree):
              Empty the cache.
              
              (resetWebViewToConsistentStateBeforeTesting):
              Turn on support for the application cache.
      
      LayoutTests:
      
      2008-05-12  Anders Carlsson  <andersca@apple.com>
      
              Reviewed by Adam.
      
              Add simple appcache test.
      
              * http/conf/mime.types:
              * http/tests/appcache: Added.
              * http/tests/appcache/resources: Added.
              * http/tests/appcache/resources/not-in-cache.txt: Added.
              * http/tests/appcache/resources/simple.manifest: Added.
              * http/tests/appcache/resources/simple.txt: Added.
              * http/tests/appcache/simple-expected.txt: Added.
              * http/tests/appcache/simple.html: Added.
              * platform/gtk/Skipped:
              * platform/qt/Skipped:
              * platform/win/Skipped:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33057 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bbe3968b
    • mitz@apple.com's avatar
      WebCore: · bdb9ed5e
      mitz@apple.com authored
              Reviewed by Ada Chan and Sam Weinig.
      
              - WebCore changes for https://bugs.webkit.org/show_bug.cgi?id=17097
                <rdar://problem/5715471> CGFontRefs (and HFONTs on Windows) leak because FontCache grows without bound
      
              Added a way for clients to let the cache know that they no longer need
              font data, which lets the cache release it. Changed clients to track
              most of the font data they get from the cache so that they can later
              release it. Some instances of font data -- namely, those used for system
              font fallback -- are still not tracked and will therefore remain in the
              cache indefinitely.
      
              * WebCore.base.exp: Added exports for WebCoreStatistics in WebKit.
      
              * platform/graphics/Font.cpp:
              (WebCore::Font::Font): Changed to use FontFallbackList::create().
              (WebCore::Font::update): Ditto.
      
              * platform/graphics/FontCache.cpp:
              (WebCore::FontCache::getCachedFontData): Added code to track the number
              of times a SimpleFontData instance has been requested from the cache,
              remove requested instances from the inactive list, and purge inactive
              font data if the inactive list has grown above its maximum allowed size.
              (WebCore::FontCache::releaseFontData): Added. Called by clients to let
              the cache know that they no longer need the font data. Adds the font
              data to the inactive list if the last client has released it.
              (WebCore::FontCache::purgeInactiveFontData): Added. Removes inactive
              font data from the cache (and the inactive list).
              (WebCore::FontCache::fontDataCount): Added to provide statistics.
              (WebCore::FontCache::inactiveFontDataCount): Ditto.
      
              * platform/graphics/FontCache.h:
      
              * platform/graphics/FontData.h:
              (WebCore::FontData::FontData): Added a member variable to store the
              highest glyph page tree level in which there is a node for this FontData.
              This is used to limit the depth of the search when pruning glyph page
              trees.
              (WebCore::FontData::setMaxGlyphPageTreeLevel): Added this accessor.
              (WebCore::FontData::maxGlyphPageTreeLevel): Ditto.
      
              * platform/graphics/FontFallbackList.cpp:
              (WebCore::FontFallbackList::FontFallbackList): Changed to start with a
              refcount of 1.
              (WebCore::FontFallbackList::invalidate): Added a call to
              releaseFontData().
              (WebCore::FontFallbackList::releaseFontData): Added. Lets the font cache
              know that we no longer need the FontData in our font list.
              (WebCore::FontFallbackList::fontDataAt): Changed to record in the font
              list whether the font data is a custom font data or not.
              (WebCore::FontFallbackList::setPlatformFont): Ditto.
      
              * platform/graphics/FontFallbackList.h:
              (WebCore::FontFallbackList::create): Added and made the constructor
              private.
              (WebCore::FontFallbackList::~FontFallbackList): Added a call to
              releaseFontData().
      
              * platform/graphics/GlyphPageTreeNode.cpp:
              (WebCore::GlyphPageTreeNode::treeGlyphPageCount): Added to provide
              statistics.
              (WebCore::GlyphPageTreeNode::pageCount): Ditto.
      
              (WebCore::GlyphPageTreeNode::pruneTreeFontData): Added.
              (WebCore::GlyphPageTreeNode::getChild): Added code to update the font
              data's maximum glyph page tree level.
              (WebCore::GlyphPageTreeNode::pruneFontData): Added.
      
              * platform/graphics/GlyphPageTreeNode.h:
      
              * platform/graphics/SimpleFontData.cpp:
              (WebCore::SimpleFontData::~SimpleFontData): Added code to let the font
              cache know that we no longer need the small caps font data and to prune
              the glyph page trees.
      
      WebKit/mac:
      
              Reviewed by Ada Chan.
      
              - WebKit/mac changes for https://bugs.webkit.org/show_bug.cgi?id=17097
                <rdar://problem/5715471> CGFontRefs (and HFONTs on Windows) leak because FontCache grows without bound
      
              Added font cache statistics and a function to purge inactive font data.
      
              * Misc/WebCoreStatistics.h:
              * Misc/WebCoreStatistics.mm:
              (+[WebCoreStatistics cachedFontDataCount]):
              (+[WebCoreStatistics cachedFontDataInactiveCount]):
              (+[WebCoreStatistics purgeInactiveFontData]):
              (+[WebCoreStatistics glyphPageCount]):
      
      WebKit/win:
      
              Reviewed by Ada Chan.
      
              - WebKit/win changes for https://bugs.webkit.org/show_bug.cgi?id=17097
                <rdar://problem/5715471> CGFontRefs (and HFONTs on Windows) leak because FontCache grows without bound
      
              Added font cache statistics and a function to purge inactive font data.
      
              * Interfaces/IWebCoreStatistics.idl:
              * WebCoreStatistics.cpp:
              (WebCoreStatistics::cachedFontDataCount):
              (WebCoreStatistics::cachedFontDataInactiveCount):
              (WebCoreStatistics::purgeInactiveFontData):
              (WebCoreStatistics::glyphPageCount):
              * WebCoreStatistics.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33056 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bdb9ed5e
    • andersca@apple.com's avatar
      WebCore: · 8990786b
      andersca@apple.com authored
      2008-05-12  Anders Carlsson  <andersca@apple.com>
      
              Reviewed by Alexey.
      
              Add ApplicationCacheStorage::empty() method which will empty
              the application cache database.
              
              * WebCore.base.exp:
              * loader/appcache/ApplicationCache.cpp:
              (WebCore::ApplicationCache::clearStorageID):
              * loader/appcache/ApplicationCache.h:
              * loader/appcache/ApplicationCacheGroup.cpp:
              (WebCore::ApplicationCacheGroup::clearStorageID):
              * loader/appcache/ApplicationCacheGroup.h:
              * loader/appcache/ApplicationCacheResource.h:
              (WebCore::ApplicationCacheResource::clearStorageID):
              * loader/appcache/ApplicationCacheStorage.cpp:
              (WebCore::ApplicationCacheStorage::empty):
              * loader/appcache/ApplicationCacheStorage.h:
      
      WebKit/mac:
      
      2008-05-12  Anders Carlsson  <andersca@apple.com>
      
              Reviewed by Alexey.
      
              Empty the application cache when changing the cache model.
              
              * WebView/WebView.mm:
              (+[WebView _setCacheModel:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33051 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8990786b
    • andersca@apple.com's avatar
      2008-05-12 Anders Carlsson <andersca@apple.com> · b91a3402
      andersca@apple.com authored
              Reviewed by John.
      
              Don't throw an exception if the string passed in is an invalid URL.
              
              * loader/appcache/DOMApplicationCache.cpp:
              (WebCore::DOMApplicationCache::remove):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33048 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b91a3402
    • andersca@apple.com's avatar
      2008-05-12 Anders Carlsson <andersca@apple.com> · d6d2e44d
      andersca@apple.com authored
              Reviewed by Mitz.
      
              Add the variable enums for getting the input vtables.
              
              * bridge/npapi.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33047 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d6d2e44d
    • aroben@apple.com's avatar
      Windows build fix · 392d9154
      aroben@apple.com authored
              * WebCorePrefix.cpp: Touched this so that it will rebuild now that
              ENABLE_CROSS_DOCUMENT_MESSAGING has been removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33045 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      392d9154
    • ap@webkit.org's avatar
      Roll out recent threading changes (r32807, r32810, r32819, r32822) to simplify · 53f9919d
      ap@webkit.org authored
              SquirrelFish merging.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33038 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      53f9919d
  3. 11 May, 2008 4 commits
  4. 10 May, 2008 2 commits
    • mitz@apple.com's avatar
      Reviewed by Jessica Kahn. · 8702ff3a
      mitz@apple.com authored
              - add a copy assignment operator to FontPlatformData on Mac to properly
                retain the m_font data member.
      
              * platform/graphics/mac/FontPlatformData.h:
              * platform/graphics/mac/FontPlatformDataMac.mm:
              (WebCore::FontPlatformData::FontPlatformData):
              (WebCore::~FontPlatformData):
              (WebCore::FontPlatformData::operator=):
              (WebCore::FontPlatformData::setFont):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33030 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8702ff3a
    • adele@apple.com's avatar
      2008-05-10 Adele Peterson <adele@apple.com> · ac95b527
      adele@apple.com authored
              Reviewed by Tim Hatcher.
      
              Fix crash for WebKit clients that don't set a group name for the WebView/Page.
      
              * page/PageGroup.cpp: (WebCore::PageGroup::PageGroup): Instead of adding the Page directly to the group,
                call the addPage method, since it does extra work initializing m_localStorage.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33029 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ac95b527
  5. 09 May, 2008 6 commits
    • weinig@apple.com's avatar
      WebCore: · 751ee9fb
      weinig@apple.com authored
      2008-05-09  Sam Weinig  <sam@webkit.org>
      
              Reviewed by Mark Rowe.
      
              Fix for https://bugs.webkit.org/show_bug.cgi?id=18958
              NULL pointer dereference in NamedAttrMap::setNamedItem
      
              Test: fast/dom/NamedNodeMap-setNamedItem-crash.html
      
              * dom/NamedAttrMap.cpp:
              (WebCore::NamedAttrMap::setNamedItem): Null check the argument.
      
      LayoutTests:
      
      2008-05-09  Sam Weinig  <sam@webkit.org>
      
              Reviewed by Mark Rowe.
      
              Test for https://bugs.webkit.org/show_bug.cgi?id=18958
              NULL pointer dereference in NamedAttrMap::setNamedItem
      
              * fast/dom/NamedNodeMap-setNamedItem-crash-expected.txt: Added.
              * fast/dom/NamedNodeMap-setNamedItem-crash.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33023 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      751ee9fb
    • kmccullough@apple.com's avatar
      2008-05-09 Kevin McCullough <kmccullough@apple.com> · 6b218430
      kmccullough@apple.com authored
              Build fix.
      
              * page/Console.cpp:
              (WebCore::Console::profile):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33010 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6b218430
    • weinig@apple.com's avatar
      WebCore: · ba6e665a
      weinig@apple.com authored
      2008-05-09  Sam Weinig  <sam@webkit.org>
      
              Rubber-stamped by Mark Rowe.
      
              Remove the ENABLE_CROSS_DOCUMENT_MESSAGING #ifdefs.
      
              * Configurations/WebCore.xcconfig:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.vcproj/build-generated-files.sh:
              * bindings/js/JSDOMWindowCustom.cpp:
              (WebCore::JSDOMWindow::customGetOwnPropertySlot):
              (WebCore::JSDOMWindow::postMessage):
              * bindings/js/JSEventCustom.cpp:
              (WebCore::toJS):
              * bindings/objc/DOMEvents.mm:
              (+[DOMEvent _wrapEvent:WebCore::]):
              * dom/Document.cpp:
              (WebCore::Document::createEvent):
              * dom/Event.cpp:
              (WebCore::Event::isMessageEvent):
              * dom/Event.h:
              * dom/MessageEvent.cpp:
              * dom/MessageEvent.h:
              * dom/MessageEvent.idl:
              * page/DOMWindow.cpp:
              (WebCore::DOMWindow::postMessageTimerFired):
              * page/DOMWindow.h:
              * page/DOMWindow.idl:
      
      WebKit/win:
      
      2008-05-09  Sam Weinig  <sam@webkit.org>
      
              Rubber-stamped by Mark Rowe.
      
              Remove the ENABLE_CROSS_DOCUMENT_MESSAGING #ifdefs.
      
              * WebKit.vcproj/WebKit.vcproj:
      
      WebKitTools:
      
      2008-05-09  Sam Weinig  <sam@webkit.org>
      
              Rubber-stamped by Mark Rowe.
      
              Remove the ENABLE_CROSS_DOCUMENT_MESSAGING #ifdefs.
      
              * Scripts/build-webkit:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33009 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ba6e665a
    • weinig@apple.com's avatar
      WebCore: · c092b7ef
      weinig@apple.com authored
      2008-05-09  Adam Barth  <abarth-webkit@adambarth.com>
      
              Reviewed by Sam Weinig.
      
              https://bugs.webkit.org/show_bug.cgi?id=18771
      
              Make postMessage generate an event on the window instead of the
              document.
      
              Test: http/tests/messaging/cross-domain-message-event-dispatch.html
      
              * dom/EventTargetNode.cpp:
              (WebCore::EventTargetNode::dispatchWindowEvent):
              * dom/EventTargetNode.h:
              * page/DOMWindow.cpp:
              (WebCore::DOMWindow::postMessageTimerFired):
      
      LayoutTests:
      
      2008-05-09  Adam Barth  <abarth-webkit@adambarth.com>
      
              Reviewed by Sam Weinig.
      
              Update tests to listen for message events on the window instead of
              the document.  Also, added a test that the event is sent to the
              window and not to the document.
      
              * http/tests/messaging/cross-domain-message-event-dispatch-expected.txt: Added.
              * http/tests/messaging/cross-domain-message-event-dispatch.html: Added.
              * http/tests/messaging/cross-domain-message-send.html:
              * http/tests/messaging/resources/cross-domain-message-receive.html:
              * http/tests/security/cross-frame-access-delete.html:
              * http/tests/security/cross-frame-access-history-put.html:
              * http/tests/security/cross-frame-access-location-put.html:
              * http/tests/security/postMessage/delivery-order.html:
              * http/tests/security/postMessage/invalid-origin-throws-exception.html:
              * http/tests/security/postMessage/javascript-page-still-sends-origin.html:
              * http/tests/security/postMessage/origin-unaffected-by-base-tag.html:
              * http/tests/security/postMessage/origin-unaffected-by-document-domain.html:
              * http/tests/security/postMessage/resources/post-message-listener.html:
              * http/tests/security/postMessage/target-origin.html:
              * http/tests/security/resources/cross-frame-iframe-for-delete-test.html:
              * http/tests/security/resources/cross-frame-iframe-for-history-put-test.html:
              * http/tests/security/resources/cross-frame-iframe-for-location-put-test.html:
              * http/tests/security/xss-eval.html:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33006 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c092b7ef
    • hausmann@webkit.org's avatar
      2008-05-09 Tor Arne Vestbø <tavestbo@trolltech.com> · ce241dae
      hausmann@webkit.org authored
              Reviewed by Simon.
      
              Replaced all instances of qDebug() with LOG(Media, ...)
              in MediaPlayerPrivatePhonon.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33003 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ce241dae
    • hausmann@webkit.org's avatar
      2008-05-09 Tor Arne Vestbø <tavestbo@trolltech.com> · 29c511df
      hausmann@webkit.org authored
              Reviewed by Simon
      
              Fix the Qt/Mac build.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33002 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      29c511df