1. 09 Sep, 2011 32 commits
  2. 08 Sep, 2011 8 commits
    • ukai@chromium.org's avatar
      Unreviewed, update chromium test expectations. · da560641
      ukai@chromium.org authored
      * platform/chromium/test_expectations.txt: chromium/compositing/zoom-animator-scale-test missing on leopard gpu
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94834 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      da560641
    • ukai@chromium.org's avatar
      Unreviewed, update chromium test expectations. · 5a8f23ea
      ukai@chromium.org authored
      * platform/chromium/test_expectations.txt: add webaudio/sample-accurate-scheduling.html
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94833 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5a8f23ea
    • sullivan@chromium.org's avatar
      Crashes in WebCore::InsertNodeBeforeCommand constructor. · f91bb620
      sullivan@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=67763
      
      Reviewed by Ryosuke Niwa.
      
      Source/WebCore:
      
      Changes editableRootForPosition() to use the position's containerNode instead of deprecatedNode so that
      positions which are before or after a given node cannot return that node as the editable root.
      
      Test: editing/inserting/insert-paragraph-selection-outside-contenteditable.html
      
      * editing/htmlediting.cpp:
      (WebCore::editableRootForPosition): use containerNode instead of deprecatedNode.
      
      LayoutTests:
      
      Tests for crash when the selection is outside the contenteditable node.
      
      * editing/inserting/insert-paragraph-selection-outside-contenteditable-expected.txt: Added.
      * editing/inserting/insert-paragraph-selection-outside-contenteditable.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94832 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f91bb620
    • commit-queue@webkit.org's avatar
      Release the reference to the HTMLPlugInElement's script object, when the... · 0c6b1005
      commit-queue@webkit.org authored
      Release the reference to the HTMLPlugInElement's script object, when the element is removed from the document.  This breaks a cyclical reference that would otherwise cause the element to be retained until the document is torn down.
      https://bugs.webkit.org/show_bug.cgi?id=66181
      
      Patch by James Weatherall <wez@chromium.org> on 2011-09-08
      Reviewed by Anders Carlsson.
      
      No new tests - no functional change.
      
      * html/HTMLPlugInElement.cpp:
      (WebCore::HTMLPlugInElement::removedFromDocument):
      * html/HTMLPlugInElement.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94831 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0c6b1005
    • commit-queue@webkit.org's avatar
      Test how HTMLAnchorElement.getParameter reacts to too few arguments · e834d67e
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66522
      
      Patch by Mark Pilgrim <pilgrim@chromium.org> on 2011-09-08
      Reviewed by Adam Barth.
      
      * LayoutTests/fast/dom/HTMLAnchorElement/get-parameter-expected.txt: Added.
      * LayoutTests/fast/dom/HTMLAnchorElement/get-parameter.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94829 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e834d67e
    • dbates@webkit.org's avatar
      XSS filter bypass via non-standard URL encoding · adf5c3c2
      dbates@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66588
      
      Reviewed by Adam Barth.
      
      Source/WebCore: 
      
      Tests: http/tests/security/xssAuditor/script-tag-with-16bit-unicode-surrogate-pair.html
             http/tests/security/xssAuditor/script-tag-with-16bit-unicode.html
             http/tests/security/xssAuditor/script-tag-with-16bit-unicode2.html
             http/tests/security/xssAuditor/script-tag-with-16bit-unicode3.html
             http/tests/security/xssAuditor/script-tag-with-16bit-unicode4.html
             http/tests/security/xssAuditor/script-tag-with-16bit-unicode5.html
             http/tests/security/xssAuditor/script-tag-with-three-times-url-encoded-16bit-unicode.html
             http/tests/security/xssAuditor/window-open-without-url-should-not-assert.html
      
      Implement support for decoding non-standard 16-bit Unicode escape sequences of
      the form %u26C4 as described in <http://www.w3.org/International/iri-edit/draft-duerst-iri.html#anchor29>.
      
      See also <http://en.wikipedia.org/wiki/Percent-encoding#Non-standard_implementations>.
      
      * GNUmakefile.list.am: Added DecodeEscapeSequences.h.
      * WebCore.gypi: Ditto.
      * WebCore.pro: Ditto.
      * WebCore.vcproj/WebCore.vcproj: Ditto.
      * WebCore.xcodeproj/project.pbxproj: Ditto.
      * html/parser/XSSAuditor.cpp:
      (WebCore::decode16BitUnicodeEscapeSequences): Added.
      (WebCore::decodeStandardURLEscapeSequences): Added.
      (WebCore::fullyDecodeString): Modified to call decode16BitUnicodeEscapeSequences().
      (WebCore::XSSAuditor::init): Modified to return early when the URL of the document
      is the empty string. This can happen when opening a new browser window or calling
      window.open("").
      * platform/KURL.cpp:
      (WebCore::decodeURLEscapeSequences): Abstracted code into template-function decodeEscapeSequences().
      This function just calls decodeEscapeSequences<URLEscapeSequence>().
      * platform/text/DecodeEscapeSequences.h: Added.
      (WebCore::Unicode16BitEscapeSequence::findInString):
      (WebCore::Unicode16BitEscapeSequence::matchStringPrefix):
      (WebCore::Unicode16BitEscapeSequence::decodeRun):
      (WebCore::URLEscapeSequence::findInString):
      (WebCore::URLEscapeSequence::matchStringPrefix):
      (WebCore::URLEscapeSequence::decodeRun):
      (WebCore::decodeEscapeSequences):
      
      LayoutTests: 
      
      Add tests for decoding non-standard 16-bit Unicode escape sequences.
      
      Also add a test to ensure that we don't cause an assertion failure when
      calling window.open("").
      
      * http/tests/security/xssAuditor/resources/echo-intertag-decode-16bit-unicode.pl: Added.
      (isUTF16Surrogate):
      (decodeRunOf16BitUnicodeEscapeSequences):
      (decode16BitUnicodeEscapeSequences):
      * http/tests/security/xssAuditor/script-tag-with-16bit-unicode-expected.txt: Added.
      * http/tests/security/xssAuditor/script-tag-with-16bit-unicode-surrogate-pair-expected.txt: Added.
      * http/tests/security/xssAuditor/script-tag-with-16bit-unicode-surrogate-pair.html: Added.
      * http/tests/security/xssAuditor/script-tag-with-16bit-unicode.html: Added.
      * http/tests/security/xssAuditor/script-tag-with-16bit-unicode2-expected.txt: Added.
      * http/tests/security/xssAuditor/script-tag-with-16bit-unicode2.html: Added.
      * http/tests/security/xssAuditor/script-tag-with-16bit-unicode3-expected.txt: Added.
      * http/tests/security/xssAuditor/script-tag-with-16bit-unicode3.html: Added.
      * http/tests/security/xssAuditor/script-tag-with-16bit-unicode4-expected.txt: Added.
      * http/tests/security/xssAuditor/script-tag-with-16bit-unicode4.html: Added.
      * http/tests/security/xssAuditor/script-tag-with-16bit-unicode5-expected.txt: Added.
      * http/tests/security/xssAuditor/script-tag-with-16bit-unicode5.html: Added.
      * http/tests/security/xssAuditor/script-tag-with-fancy-unicode-expected.txt: Updated expected
      result since we now pass this test. We should rename this file to something more descriptive,
      see <https://bugs.webkit.org/show_bug.cgi?id=67818>.
      * http/tests/security/xssAuditor/script-tag-with-three-times-url-encoded-16bit-unicode-expected.txt: Added.
      * http/tests/security/xssAuditor/script-tag-with-three-times-url-encoded-16bit-unicode.html: Added.
      * http/tests/security/xssAuditor/window-open-without-url-should-not-assert-expected.txt: Added.
      * http/tests/security/xssAuditor/window-open-without-url-should-not-assert.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94828 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      adf5c3c2
    • ukai@chromium.org's avatar
      Unreviewed. Chromium rebaseline of css3/bdi-element.html · 4fc0052d
      ukai@chromium.org authored
      * platform/chromium-cg-mac/css3/bdi-element-expected.png: Added.
      * platform/chromium-linux/css3/bdi-element-expected.png: Added.
      * platform/chromium-mac/css3/bdi-element-expected.png: Added.
      * platform/chromium-win/css3/bdi-element-expected.png: Added.
      * platform/chromium-win/css3/bdi-element-expected.txt: Added.
      * platform/chromium/css3/bdi-element-expected.txt: Added.
      * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94827 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4fc0052d
    • dbates@webkit.org's avatar
      2011-09-08 Daniel Bates <dbates@webkit.org> · 58e24c14
      dbates@webkit.org authored
              Fix the GTK build after <http://trac.webkit.org/changeset/94810>
              (https://bugs.webkit.org/show_bug.cgi?id=67807).
      
              * webkit/webkitwebview.cpp:
              (webkit_web_view_get_encoding): Substitute DocumentWriter::deprecatedFrameEncoding() for
              DocumentWriter::encoding().
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94826 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      58e24c14