1. 15 Apr, 2009 7 commits
    • oliver@apple.com's avatar
      Move CallFrameClosure from inside the Interpreter class to its own file. · c55fba40
      oliver@apple.com authored
      Reviewed by NOBODY(Build fix)
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42538 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      c55fba40
    • oliver@apple.com's avatar
      Bug 25202: Improve performance of repeated callbacks into the VM · d2d9f36c
      oliver@apple.com authored
      Reviewed by Cameron Zwarich
      
      Add the concept of a CachedCall to native code for use in Array
      prototype and similar functions where a single callback function
      is called repeatedly with the same number of arguments.
      
      Used Array.prototype.filter as the test function and got a 50% win
      over a naive non-caching specialised version.  This makes the native
      implementation of Array.prototype.filter faster than the JS one once
      more.
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42537 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      d2d9f36c
    • ap@webkit.org's avatar
      Rubber-stamped by Darin Adler. · 048a4af6
      ap@webkit.org authored
              Don't keep platform objects for authentication challenge in ResourceHandleInternal.
              We already have a copy in AuthenticationChallenge object.
      
              * platform/network/ResourceHandle.cpp:
              (WebCore::ResourceHandle::clearAuthentication):
              * platform/network/ResourceHandleInternal.h:
              (WebCore::ResourceHandleInternal::ResourceHandleInternal):
              * platform/network/cf/ResourceHandleCFNet.cpp:
              (WebCore::ResourceHandle::didReceiveAuthenticationChallenge):
              (WebCore::ResourceHandle::receivedCredential):
              (WebCore::ResourceHandle::receivedRequestToContinueWithoutCredential):
              (WebCore::ResourceHandle::receivedCancellation):
              * platform/network/mac/ResourceHandleMac.mm:
              (WebCore::ResourceHandle::didReceiveAuthenticationChallenge):
              (WebCore::ResourceHandle::didCancelAuthenticationChallenge):
              (WebCore::ResourceHandle::receivedCredential):
              (WebCore::ResourceHandle::receivedRequestToContinueWithoutCredential):
              (WebCore::ResourceHandle::receivedCancellation):
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42536 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      048a4af6
    • simon.fraser@apple.com's avatar
      2009-04-14 Simon Fraser <simon.fraser@apple.com> · c4b0c277
      simon.fraser@apple.com authored
              Reviewed by Dan Bernstein
      
              https://bugs.webkit.org/show_bug.cgi?id=25157
      
              Move the run loop observer cleanup from -close
              to -_close.
      
              * WebView/WebView.mm:
              (-[WebView _close]):
              (-[WebView close]):
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42535 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      c4b0c277
    • ggaren@apple.com's avatar
      2009-04-14 Geoffrey Garen <ggaren@apple.com> · 71beed42
      ggaren@apple.com authored
              Reviewed by Sam Weinig.
      
              Nixed some now-defunct autogeneration code.
      
              * bindings/scripts/CodeGeneratorJS.pm:
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42534 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      71beed42
    • eric.carlson@apple.com's avatar
      2009-04-14 Eric Carlson <eric.carlson@apple.com> · 25b2f291
      eric.carlson@apple.com authored
              Reviewed by NOBODY (OOPS!).
              
              Fix <rdar://problem/6755724> <audio> and <video> elements can reference local 
              file:/// URLs from remote in Safari
      
              Tests: http/tests/security/local-video-poster-from-remote.html
                     http/tests/security/local-video-source-from-remote.html
                     http/tests/security/local-video-src-from-remote.html
      
              * html/HTMLMediaElement.cpp:
              (WebCore::HTMLMediaElement::loadResource): Don't pass url to media engine if loader->canLoad()
              says it should not be loaded.
      
      2009-04-14  Eric Carlson  <eric.carlson@apple.com>
      
              Reviewed by NOBODY (OOPS!).
      
              Fix <rdar://problem/6755724> <audio> and <video> elements can reference local 
              file:/// URLs from remote in Safari
      
              Test cases to ensure that local 'src', 'poster', and <source> are not loaded.
      
              * http/tests/security/local-video-poster-from-remote-expected.txt: Added.
              * http/tests/security/local-video-poster-from-remote.html: Added.
              * http/tests/security/local-video-source-from-remote-expected.txt: Added.
              * http/tests/security/local-video-source-from-remote.html: Added.
              * http/tests/security/local-video-src-from-remote-expected.txt: Added.
              * http/tests/security/local-video-src-from-remote.html: Added.
              * http/tests/security/resources/load-media.cgi: Added.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42533 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      25b2f291
    • weinig@apple.com's avatar
      WebCore: · ac869297
      weinig@apple.com authored
      2009-04-14  Sam Weinig  <sam@webkit.org>
      
              Reviewed by Darin Adler.
      
              Part of <rdar://problem/6150868>
              Fix incorrect handling of content that needs to go into the head element
              once the head element has been removed.
      
              Test: fast/parser/head-content-after-head-removal.html
      
              * html/HTMLParser.cpp:
              (WebCore::HTMLParser::HTMLParser): Remove unneeded initializer of m_head.
              (WebCore::HTMLParser::handleError): Update since m_head is now a RefPtr.
              (WebCore::HTMLParser::createHead): Ditto.
              * html/HTMLParser.h: Make m_head a RefPtr.
      
      LayoutTests:
      
      2009-04-14  Sam Weinig  <sam@webkit.org>
      
              Reviewed by Darin Adler.
      
              Part of <rdar://problem/6150868>
              Test for incorrect handling of content that needs to go into the head element
              once the head element has been removed.
      
              * fast/parser/head-content-after-head-removal-expected.txt: Added.
              * fast/parser/head-content-after-head-removal.html: Added.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@42532 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      ac869297
  2. 14 Apr, 2009 33 commits