1. 07 Mar, 2011 18 commits
    • commit-queue@webkit.org's avatar
      2011-03-07 Xianzhu Wang <wangxianzhu@google.com> · 0b512b61
      commit-queue@webkit.org authored
              Reviewed by Tony Gentilcore.
      
              In layout tests, iframe's onload handler should not use script function
              defined after the iframe.
              https://bugs.webkit.org/show_bug.cgi?id=54942
      
              Found and fixed more tests in addition to the first patch to bug 54942.
              Tried best to avoid expectation changes.
      
              * editing/execCommand/find-after-replace.html:
              * editing/input/option-page-up-down.html:
              * editing/input/scroll-viewport-page-up-down.html:
              * editing/pasteboard/copy-standalone-image.html:
              * editing/pasteboard/drag-image-to-contenteditable-in-iframe.html:
              * editing/pasteboard/paste-noscript-xhtml.xhtml:
              * editing/selection/drag-in-iframe.html:
              * editing/undo/undo-iframe-location-change.html:
              * fast/dom/DOMImplementation/createDocument-with-used-doctype-expected.txt:
              * fast/dom/DOMImplementation/createDocument-with-used-doctype.html:
              * fast/dom/Window/window-postmessage-clone-frames.html:
              * fast/dynamic/paused-event-dispatch.html:
              * fast/events/keydown-remove-frame.html:
              * fast/events/mousedown-in-subframe-scrollbar.html:
              * fast/frames/content-opacity-2.html:
              * fast/frames/viewsource-plain-text-tags.html:
              * fast/frames/viewsource-unfinished-tags.html:
              * fast/history/form-submit-in-frame-via-onclick.html:
              * fast/history/form-submit-in-frame.html:
              * fast/xsl/xslt-text-expected.txt:
              * fast/xsl/xslt-text.html:
              * http/tests/messaging/cross-domain-message-send.html:
              * http/tests/misc/cached-scripts-expected.txt:
              * http/tests/misc/cached-scripts.html:
              * http/tests/plugins/post-url-file-expected.txt:
              * http/tests/plugins/post-url-file.html:
              * http/tests/security/listener/xss-inactive-closure-expected.html:
              * http/tests/security/listener/xss-inactive-closure.html:
              * http/tests/security/postMessage/delivery-order.html:
              * http/tests/security/postMessage/invalid-origin-throws-exception-expected.txt:
              * http/tests/security/postMessage/invalid-origin-throws-exception.html:
              * http/tests/security/postMessage/origin-unaffected-by-base-tag.html:
              * http/tests/security/postMessage/target-origin.html:
              * http/tests/security/xss-DENIED-getSVGDocument-iframe.html:
              * http/tests/xmlhttprequest/detaching-frame-2.html:
              * media/media-document-audio-repaint.html:
              * media/media-document-audio-size.html:
              * platform/mac/fast/dom/wrapper-classes-objc.html:
              * platform/mac/fast/loader/non-html-load-event-expected.txt:
              * platform/mac/fast/loader/non-html-load-event.html:
              * scrollbars/hidden-iframe-scrollbar-crash2.html:
              * storage/close-during-stress-test.html:
              * svg/custom/js-update-transform-changes.svg:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80456 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0b512b61
    • ukai@chromium.org's avatar
      Unreviewed, update chromium test expectations. · aa924883
      ukai@chromium.org authored
      inspector/styles/styles-add-blank-property.html becomes flaky.
      
      * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80455 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aa924883
    • ukai@chromium.org's avatar
      Unreviewd, update chromium test expectations. · 284951be
      ukai@chromium.org authored
      Regression at WebKit r80438 (crbug.com/75109) on Mac
       platform/chromium/fast/text/international/complex-text-rectangle.html
      
      * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80454 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      284951be
    • tkent@chromium.org's avatar
      2011-03-06 Kent Tamura <tkent@chromium.org> · f2268fcb
      tkent@chromium.org authored
              Unreviewed, test expectation update.
      
              Chromium expectation files for r80449.
      
              * platform/chromium-mac-leopard/fast/forms/input-appearance-spinbutton-visibility-expected.checksum: Added.
              * platform/chromium-mac-leopard/fast/forms/input-appearance-spinbutton-visibility-expected.png: Added.
              * platform/chromium-win/fast/forms/input-appearance-spinbutton-visibility-expected.checksum: Added.
              * platform/chromium-win/fast/forms/input-appearance-spinbutton-visibility-expected.png: Added.
              * platform/chromium-win/fast/forms/input-appearance-spinbutton-visibility-expected.txt: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80453 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f2268fcb
    • abarth@webkit.org's avatar
      2011-03-06 Adam Barth <abarth@webkit.org> · ab4559f0
      abarth@webkit.org authored
              Reviewed by Eric Seidel.
      
              Add webcore_derived_source_files to WebCore.gypi
              https://bugs.webkit.org/show_bug.cgi?id=55856
      
              This is the list of files generated by the Mac port.  It's possible
              other ports generate a different list of files.
      
              * WebCore.gypi:
              * gyp/WebCore.gyp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80452 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ab4559f0
    • commit-queue@webkit.org's avatar
      2011-03-06 Sreeram Ramachandran <sreeram@google.com> · c76b8556
      commit-queue@webkit.org authored
              Reviewed by Dimitri Glazkov.
      
              Expose page dismissal event status through the WebKit API for chromium.
              https://bugs.webkit.org/show_bug.cgi?id=55844
      
              Chromium will find it useful to know the page dismissal status (i.e.,
              whether a frame is in the midst of executing a beforeunload or unload
              handler), so expose that information through the chromium port in the
              WebKit API.
      
              This is my second attempt at this patch. The previous one broke
              downstream Chromium builds of some unit tests which had classes derived
              from WebFrame (and thus became uninstantiable because of this new pure
              virtual method). Those have now been fixed (http://crrev.com/77101).
      
              * public/WebFrame.h:
              * src/WebFrameImpl.cpp:
              (WebKit::WebFrameImpl::pageDismissalEventBeingDispatched):
              * src/WebFrameImpl.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80451 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c76b8556
    • tkent@chromium.org's avatar
      2011-03-06 Kent Tamura <tkent@chromium.org> · df31d32b
      tkent@chromium.org authored
              Unreviewed, test expectation update.
      
              Add a Mac expectation for a new test of r80449.
      
              * platform/mac/fast/forms/input-appearance-spinbutton-visibility-expected.checksum: Added.
              * platform/mac/fast/forms/input-appearance-spinbutton-visibility-expected.png: Added.
              * platform/mac/fast/forms/input-appearance-spinbutton-visibility-expected.txt: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80450 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      df31d32b
    • tkent@chromium.org's avatar
      2011-03-06 Naoki Takano <takano.naoki@gmail.com> · a9da12a1
      tkent@chromium.org authored
              Reviewed by Kent Tamura.
      
              Input type=number spin buttons remain invisible but functional after div changed from hidden to visible.
              https://bugs.webkit.org/show_bug.cgi?id=55839
              http://crbug.com/73866
              http://crbug.com/62527
      
              We also need style change for m_innerSpinButton not only for m_outerSpinBuggon when styleDidChange() is called.
      
              Test: fast/forms/input-appearance-spinbutton-visibility.html
      
              * rendering/RenderTextControlSingleLine.cpp:
              (WebCore::RenderTextControlSingleLine::styleDidChange):
      
      2011-03-06  Naoki Takano  <takano.naoki@gmail.com>
      
              Reviewed by Kent Tamura.
      
              Input type=number spin buttons remain invisible but functional after div changed from hidden to visible.
              https://bugs.webkit.org/show_bug.cgi?id=55839
              http://crbug.com/73866
              http://crbug.com/62527
      
              * fast/forms/input-appearance-spinbutton-visibility.html: Added for the test to make sure input type=number spin buttons are shown or hidden correctly with Javascript.
              * platform/chromium-linux/fast/forms/input-appearance-spinbutton-visibility-expected.checksum: Added for the expectation checksum.
              * platform/chromium-linux/fast/forms/input-appearance-spinbutton-visibility-expected.png: Added for the expectation image.
              * platform/chromium-linux/fast/forms/input-appearance-spinbutton-visibility-expected.txt: Added for the expectation render tree txt.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80449 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a9da12a1
    • commit-queue@webkit.org's avatar
      2011-03-06 Naoki Takano <takano.naoki@gmail.com> · b6055fe1
      commit-queue@webkit.org authored
              Reviewed by Kent Tamura.
      
              [Chromium] Autocomplete suggestion extends out of window (and onto second monitor)
              https://bugs.webkit.org/show_bug.cgi?id=54795
      
              Implement width clip logic according to browser screen width and popup window width. This fix is enough for Win and Mac, but there is a problem in Linux. Because WebScreenInfoFactory::screenInfo() can get only merged screen size, not the screen size where the browser exists.
      
              Test: manual-tests/popup-width-restriction-within-screen.html
      
              * manual-tests/popup-width-restriction-within-screen.html: Added.
              * platform/chromium/PopupMenuChromium.cpp:
              (WebCore::PopupContainer::layoutAndCalculateWidgetRect): Implement the width clip logic according to screen width.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80448 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b6055fe1
    • ukai@chromium.org's avatar
      Unreviewed, update chromium test expectations. · a1626960
      ukai@chromium.org authored
      Regression at WebKit r80440 (bug 55854) also on mac.
       fast/forms/onchange-setvalueforuser.html
      
      * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80447 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a1626960
    • yutak@chromium.org's avatar
      2011-03-06 Yuta Kitamura <yutak@chromium.org> · d22c012a
      yutak@chromium.org authored
              Reviewed by Kent Tamura.
      
              Add SHA-1 for new WebSocket protocol
              https://bugs.webkit.org/show_bug.cgi?id=55039
      
              The code is based on Chromium's portable SHA-1 implementation
              (src/base/sha1_portable.cc). Modifications were made in order
              to make the code comply with WebKit coding style.
      
              * GNUmakefile.am:
              * JavaScriptCore.exp:
              * JavaScriptCore.gypi:
              * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
              * JavaScriptCore.vcproj/WTF/WTF.vcproj:
              * JavaScriptCore.xcodeproj/project.pbxproj:
              * wtf/CMakeLists.txt:
              * wtf/MD5.cpp:
              (WTF::MD5::MD5):
              * wtf/SHA1.cpp: Added.
              (WTF::testSHA1): This function will be run the first time SHA1
              constructor is called. This function computes a few hash values
              and checks the results in debug builds. However, constructor is
              probably not a good place to run these tests, so we need to find
              a good place for it (bug 55853).
              (WTF::expectSHA1):
              (WTF::f):
              (WTF::k):
              (WTF::rotateLeft):
              (WTF::SHA1::SHA1):
              (WTF::SHA1::addBytes):
              (WTF::SHA1::computeHash):
              (WTF::SHA1::finalize):
              (WTF::SHA1::processBlock):
              (WTF::SHA1::reset):
              * wtf/SHA1.h: Added.
              (WTF::SHA1::addBytes):
              * wtf/wtf.pri:
      2011-03-06  Yuta Kitamura  <yutak@chromium.org>
      
              Reviewed by Kent Tamura.
      
              Add SHA-1 for new WebSocket protocol
              https://bugs.webkit.org/show_bug.cgi?id=55039
      
              * ForwardingHeaders/wtf/SHA1.h: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80446 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d22c012a
    • ukai@chromium.org's avatar
      Unreviewed, update chromium test expectations. · 7299fef1
      ukai@chromium.org authored
      Regression at WebKit r80438 (crbug.com/75109)
       fast/css/getComputedStyle/computed-style-without-renderer.html
       fast/css/getComputedStyle/computed-style.html
       platform/chromium/fast/text/international/complex-text-rectangle.html
       svg/css/getComputedStyle-basic.xhtml
       fast/text/hyphenate-limit-before-after.html
      
      Regression at WebKit r80440 (bug 55854)
       fast/forms/onchange-setvalueforuser.html
      
      * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80445 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7299fef1
    • mitz@apple.com's avatar
      LLVM Compiler build fix. · 1ad59011
      mitz@apple.com authored
      * DOM/WebDOMOperations.mm:
      (-[DOMHTMLInputElement _setValueForUser:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80444 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1ad59011
    • dbates@webkit.org's avatar
      2011-03-06 Daniel Bates <dbates@rim.com> · a96a1679
      dbates@webkit.org authored
              Reviewed by Eric Seidel and David Kilzer.
      
              Fix misspelled word in build-webkit's checkForJavaSDK() and sort forward declarations
              https://bugs.webkit.org/show_bug.cgi?id=55503
      
              Fix misspelled word "Dowloads" [sic] in the message printed to standard output
              in checkForJavaSDK().
      
              Also, remove extraneous space in function prototype for unlinkZeroFiles.
      
              * Scripts/build-webkit:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a96a1679
    • eric.carlson@apple.com's avatar
      2011-03-06 Eric Carlson <eric.carlson@apple.com> · 4aaf6e06
      eric.carlson@apple.com authored
              Reviewed by Antti Koivisto.
      
              QuickTime based media engines should respect private browsing mode
              https://bugs.webkit.org/show_bug.cgi?id=55848
      
              No new tests, it is only possible to test this by manually deleting and monitoring the
              the Quicktime caches.
      
              * html/HTMLMediaElement.cpp:
              (WebCore::HTMLMediaElement::privateBrowsingStateDidChange): Add logging.
      
              * platform/graphics/MediaPlayer.cpp:
              (WebCore::MediaPlayer::MediaPlayer): Initialize m_privateBrowsing.
              (WebCore::MediaPlayer::loadWithNextMediaEngine): Set privacy mode on new media engine.
              (WebCore::MediaPlayer::setPrivateBrowsingMode): Stash setting in m_privateBrowsing.
              * platform/graphics/MediaPlayer.h:
              * platform/graphics/MediaPlayerPrivate.h:
              (WebCore::MediaPlayerPrivateInterface::setPrivateBrowsingMode):
      
              * platform/graphics/mac/MediaPlayerPrivateQTKit.h:
              * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
              (WebCore::MediaPlayerPrivateQTKit::MediaPlayerPrivateQTKit): Initialize m_privateBrowsing.
              (WebCore::MediaPlayerPrivateQTKit::createQTMovie): Pass private browsing attribute when
                  creating new movie.
              (WebCore::MediaPlayerPrivateQTKit::setPrivateBrowsingMode): New, store privacy setting in
                  m_privateBrowsing and set movie attribute.
      
              * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
              (WebCore::MediaPlayerPrivateQuickTimeVisualContext::MediaPlayerPrivateQuickTimeVisualContext):
                  Initialize m_privateBrowsing.
              (WebCore::MediaPlayerPrivateQuickTimeVisualContext::setPrivateBrowsingMode): New, store 
                  privacy setting in m_privateBrowsing and call QTMovie.
              * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.h:
      
              * platform/graphics/win/QTMovie.cpp:
              (QTMoviePrivate::QTMoviePrivate): Initialize m_privateBrowsing.
              (QTMovie::load):Pass private browsing property when creating new movie.
              (QTMovie::setPrivateBrowsingMode):  New, store privacy setting in m_privateBrowsing and 
                  set movie property.
              * platform/graphics/win/QTMovie.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80442 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4aaf6e06
    • mitz@apple.com's avatar
      Updated more platform-specific results after r80438. · a9478c5c
      mitz@apple.com authored
      * platform/gtk/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
      * platform/mac-leopard/fast/text/hyphenate-limit-before-after-expected.txt: Removed.
      * platform/mac-snowleopard/fast/text/hyphenate-limit-before-after-expected.txt: Copied from platform/mac-leopard/fast/text/hyphenate-limit-before-after-expected.txt.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80441 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a9478c5c
    • mitz@apple.com's avatar
      Updated platform-specific results after r80438. · e7b0e2cb
      mitz@apple.com authored
      * platform/mac-leopard/fast/text/hyphenate-limit-before-after-expected.txt: Added.
      * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
      * platform/qt/fast/css/getComputedStyle/computed-style-expected.txt:
      * platform/qt/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80440 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e7b0e2cb
    • dbates@webkit.org's avatar
      2011-03-06 Daniel Bates <dbates@rim.com> · 8485a40b
      dbates@webkit.org authored
              Reviewed by Darin Adler.
      
              style.borderSpacing always returns empty string
              https://bugs.webkit.org/show_bug.cgi?id=54816
      
              Teach CSSMutableStyleDeclaration::getPropertyValue() how to reconstitute
              the value for border-spacing from the value of the WebKit internal CSS
              property -webkit-border-horizontal-spacing and -webkit-border-vertical-spacing.
      
              The CSS property border-spacing describes the horizontal and vertical border
              spacing for an HTML Table element. Notice, WebKit internally represents the value
              of this property as two properties: -webkit-border-horizontal-spacing and
              -webkit-border-vertical-spacing, for the horizontal and vertical border spacing,
              respectively. And WebKit doesn't know to reconstitute these internal properties.
              Therefore style.borderSpacing always returns the empty string.
      
              Test: fast/css/table-border-spacing.html
      
              * css/CSSMutableStyleDeclaration.cpp:
              (WebCore::CSSMutableStyleDeclaration::getPropertyValue):
              (WebCore::CSSMutableStyleDeclaration::borderSpacingValue): Added.
              * css/CSSMutableStyleDeclaration.h:
      2011-03-06  Daniel Bates  <dbates@rim.com>
      
              Reviewed by Darin Adler.
      
              style.borderSpacing always returns empty string
              https://bugs.webkit.org/show_bug.cgi?id=54816
      
              Tests that style.borderSpacing returns the correct result for valid, negative, and missing border-spacing values.
      
              * fast/css/table-border-spacing-expected.txt: Added.
              * fast/css/table-border-spacing.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80439 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8485a40b
  2. 06 Mar, 2011 8 commits
    • mitz@apple.com's avatar
      <rdar://problem/9093327> Implement -hyphenate-limit-{before,after} · d56f1083
      mitz@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=55850
      
      Reviewed by Oliver Hunt.
      
      Source/WebCore: 
      
      Tests: fast/css/parsing-hyphenate-limit.html
             fast/text/hyphenate-limit-before-after.html
      
      * css/CSSComputedStyleDeclaration.cpp:
      (WebCore::computedProperties) Updated this array with the new properties and some old properties
      that it was missing.
      (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Added
      CSSPropertyWebkitHyphenateLimit{Before,After}.
      
      * css/CSSParser.cpp:
      (WebCore::CSSParser::parseValue): Parse -webkit-hyphenate-limit-{before,after}, allowing
      'auto' and non-negative integers.
      
      * css/CSSPropertyNames.in: Added -webkit-hyphenate-limit-{before,after}.
      
      * css/CSSStyleSelector.cpp:
      (WebCore::CSSStyleSelector::applyProperty): Handle CSSPropertyWebkitHyphenateLimit{Before,After}.
      
      * rendering/RenderBlockLineLayout.cpp:
      (WebCore::tryHyphenating): Added minimum prefix and suffix length parameters and checks to only
      allow hyphenation if the prefix and the suffix are sufficiently long.
      (WebCore::RenderBlock::findNextLineBreak): Pass the limits to tryHyphenating().
      
      * rendering/style/RenderStyle.cpp:
      (WebCore::RenderStyle::diff): A difference in hyphenation limits is a layout difference.
      
      * rendering/style/RenderStyle.h:
      (WebCore::InheritedFlags::hyphenationLimitBefore): Added.
      (WebCore::InheritedFlags::hyphenationLimitAfter): Added.
      (WebCore::InheritedFlags::setHyphenationLimitBefore): Added.
      (WebCore::InheritedFlags::setHyphenationLimitAfter): Added.
      (WebCore::InheritedFlags::initialHyphenationLimitBefore): Added. Returns -1, which is the
      representation of 'auto'.
      (WebCore::InheritedFlags::initialHyphenationLimitAfter): Ditto.
      
      * rendering/style/StyleRareInheritedData.cpp:
      (WebCore::StyleRareInheritedData::StyleRareInheritedData): Initialize hyphenation limits.
      (WebCore::StyleRareInheritedData::operator==): Compare hyphenation limits.
      * rendering/style/StyleRareInheritedData.h:
      
      LayoutTests: 
      
      * fast/css/getComputedStyle/computed-style-expected.txt:
      * fast/css/parsing-hyphenate-limit-expected.txt: Added.
      * fast/css/parsing-hyphenate-limit.html: Added.
      * fast/text/hyphenate-limit-before-after.html: Added.
      * platform/mac/fast/text/hyphenate-limit-before-after-expected.checksum: Added.
      * platform/mac/fast/text/hyphenate-limit-before-after-expected.png: Added.
      * platform/mac/fast/text/hyphenate-limit-before-after-expected.txt: Added.
      * svg/css/getComputedStyle-basic-expected.txt:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80438 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d56f1083
    • commit-queue@webkit.org's avatar
      2011-03-06 Sheriff Bot <webkit.review.bot@gmail.com> · acd14721
      commit-queue@webkit.org authored
              Unreviewed, rolling out r80436.
              http://trac.webkit.org/changeset/80436
              https://bugs.webkit.org/show_bug.cgi?id=55849
      
              Broke Chromium compile across the board (Requested by dglazkov
              on #webkit).
      
              * public/WebFrame.h:
              * src/WebFrameImpl.cpp:
              * src/WebFrameImpl.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80437 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      acd14721
    • commit-queue@webkit.org's avatar
      2011-03-06 Sreeram Ramachandran <sreeram@google.com> · 570b3f8c
      commit-queue@webkit.org authored
              Reviewed by Dimitri Glazkov.
      
              Expose page dismissal event status through the WebKit API for chromium
              https://bugs.webkit.org/show_bug.cgi?id=55844
      
              * public/WebFrame.h:
              * src/WebFrameImpl.cpp:
              (WebKit::WebFrameImpl::pageDismissalEventBeingDispatched):
              * src/WebFrameImpl.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80436 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      570b3f8c
    • jberlin@webkit.org's avatar
      WebKit2: Use CFNetwork Sessions API. · 799c2161
      jberlin@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=55435.
      
      Reviewed by Sam Weinig.
      
      Source/WebCore: 
      
      When Private Browsing is enabled, use cookies from a in-memory cookie storage based on the
      Private Browsing Storage Session.
      
      * WebCore.exp.in:
      Add the new WKSI functions.
      * platform/mac/WebCoreSystemInterface.h:
      Ditto.
      * platform/mac/WebCoreSystemInterface.mm:
      Ditto.
      
      * platform/mac/CookieJar.mm:
      (WebCore::cookies):
      If USE(CFURLSTORAGESESSIONS) and there is a Private Browsing Cookie Storage, call into WKSI.
      Otherwise, behave the same as before.
      (WebCore::cookieRequestHeaderFieldValue):
      Ditto.
      (WebCore::setCookies):
      Ditto.
      (WebCore::cookiesEnabled):
      Ditto
      (WebCore::getRawCookies):
      Ditto.
      (WebCore::deleteCookie):
      Ditto.
      
      * platform/network/CookieStorage.h:
      * platform/network/cf/CookieStorageCFNet.cpp:
      (WebCore::privateBrowsingCookieStorage):
      Keep track of the Private Browsing Cookie Storage in a locally defined static inside a
      function instead of at the global scope.
      (WebCore::currentCookieStorage):
      Use privateBrowsingCookieStorage.
      (WebCore::setCurrentCookieStorage):
      Ditto.
      (WebCore::setCookieStoragePrivateBrowsingEnabled):
      If USE(CFURLSTORAGESESSIONS), send the Private Browsing Storage Session to
      wkCreatePrivateInMemoryHTTPCookieStorage.
      * platform/network/mac/CookieStorageMac.mm:
      (WebCore::privateBrowsingCookieStorage):
      Keep track of the Private Browsing Cookie Storage.
      (WebCore::setCookieStoragePrivateBrowsingEnabled):
      If USE(CFURLSTORAGESESSIONS), then set or clear privateBrowsingCookieStorage().
      Added a FIXME to observe changes to the Private Browsing Cookie Storage when it is defined.
      
      * platform/network/mac/ResourceHandleMac.mm:
      (WebCore::shouldRelaxThirdPartyCookiePolicy):
      Refactor the logic to determine whether or not to relax the third party cookie policy here.
      If USE(CFURLSTORAGESESSIONS), then get the information from the privateBrowsingCookieStorage.
      (WebCore::ResourceHandle::createNSURLConnection):
      Use shouldRelaxThirdPartyCookiePolicy.
      (WebCore::ResourceHandle::loadResourceSynchronously):
      Ditto.
      
      Source/WebKit/mac: 
      
      When Private Browsing is enabled, use cookies from a in-memory cookie storage based on the
      Private Browsing Storage Session.
      
      * WebCoreSupport/WebSystemInterface.mm:
      (InitWebCoreSystemInterface):
      Add support for using the new WKSI functions in WebCore.
      
      Source/WebKit2: 
      
      When Private Browsing is enabled, use cookies from a in-memory cookie storage based on the
      Private Browsing Storage Session.
      
      * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
      (InitWebCoreSystemInterface):
      Add support for using the new WKSI functions in WebCore.
      
      WebKitLibraries: 
      
      When Private Browsing is enabled, use cookies from a in-memory Cookie Storage based on the
      Private Browsing Storage Session.
      
      Update WebKitSystemInterface headers and libraries with the new functions.
      
      * WebKitSystemInterface.h:
      * libWebKitSystemInterfaceLeopard.a:
      * libWebKitSystemInterfaceSnowLeopard.a:
      * win/include/WebKitSystemInterface/WebKitSystemInterface.h:
      * win/lib/WebKitSystemInterface.lib:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80435 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      799c2161
    • commit-queue@webkit.org's avatar
      2011-03-06 Oleg Romashin <romaxa@gmail.com> · 0e06ec46
      commit-queue@webkit.org authored
              Reviewed by Kenneth Rohde Christiansen.
      
              [Qt][WK2] Make Qt port compiling with ENABLE_PLUGIN_PROCESS=1, part1
              Adding dummy Qt files for Plugin Process implementation,
              Adding missing sources into Qt pro files
              https://bugs.webkit.org/show_bug.cgi?id=55719
      
              * DerivedSources.pro:
              * PluginProcess/qt: Added.
              * PluginProcess/qt/PluginControllerProxyQt.cpp: Added.
              (WebKit::PluginControllerProxy::platformInitialize):
              (WebKit::PluginControllerProxy::platformDestroy):
              (WebKit::PluginControllerProxy::platformGeometryDidChange):
              * PluginProcess/qt/PluginProcessMainQt.cpp: Added.
              (WebKit::PluginProcessMain):
              * PluginProcess/qt/PluginProcessQt.cpp: Added.
              (WebKit::PluginProcess::platformInitialize):
              * UIProcess/Plugins/qt/PluginProcessProxyQt.cpp: Added.
              (WebKit::PluginProcessProxy::platformInitializePluginProcess):
              * WebKit2.pri:
              * WebKit2.pro:
              * WebKit2API.pri:
              * WebProcess/Plugins/Netscape/qt/PluginProxyQt.cpp: Added.
              (WebKit::PluginProxy::needsBackingStore):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80434 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0e06ec46
    • dcheng@chromium.org's avatar
      2011-03-05 Daniel Cheng <dcheng@chromium.org> · 105a6112
      dcheng@chromium.org authored
              Reviewed by Dmitry Titov.
      
              [chromium] Add method to WebClipboard to read images from the clipboard.
              https://bugs.webkit.org/show_bug.cgi?id=55814
      
              * public/WebClipboard.h:
              (WebKit::WebClipboard::readImage):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80433 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      105a6112
    • mitz@apple.com's avatar
      Set the svn:mime-type property of some PNG files to image/png · 12cfd7ca
      mitz@apple.com authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80432 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      12cfd7ca
    • weinig@apple.com's avatar
      2011-03-05 Sam Weinig <sam@webkit.org> · b571105f
      weinig@apple.com authored
              Reviewed by Dan Bernstein.
      
              Remove unneeded onPageClose function from DrawingArea
              https://bugs.webkit.org/show_bug.cgi?id=55836
      
              * WebProcess/WebPage/DrawingArea.h:
              Remove empty function.
      
              * WebProcess/WebPage/WebPage.cpp:
              (WebKit::WebPage::close):
              Remove only called
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80431 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b571105f
  3. 05 Mar, 2011 14 commits