WebKit-https.git
10 years ago2009-12-07 Fumitoshi Ukai <ukai@chromium.org>
ukai@chromium.org [Tue, 8 Dec 2009 04:03:42 +0000 (04:03 +0000)]
2009-12-07  Fumitoshi Ukai  <ukai@chromium.org>

        Reviewed by Darin Adler.

        Fix wrong length parsing in WebSocket.
        https://bugs.webkit.org/show_bug.cgi?id=32203

        These two tests assumed wrong length encoding in frame: it parsed
        length from bytes with 8th bit on.  But spec says length is encoded
        as a series of 7-bit bytes stored in octests with the 8th bit on
        *but the last byte*.
        These tests encodes a frame that has 129 length, so it must be
        \x81\0x01 instead of \x81\0x81.

        * websocket/tests/frame-length-longer-than-buffer_wsh.py:
        * websocket/tests/frame-length-skip_wsh.py:
2009-12-07  Fumitoshi Ukai  <ukai@chromium.org>

        Reviewed by Darin Adler.

        Fix wrong length parsing in WebSocket.
        https://bugs.webkit.org/show_bug.cgi?id=32203

        * websockets/WebSocketChannel.cpp:
        (WebCore::WebSocketChannel::didReceiveData):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51829 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Tue, 8 Dec 2009 03:44:11 +0000 (03:44 +0000)]
2009-12-07  Nikolas Zimmermann  <nzimmermann@rim.com>

        Rubber-stamped by Maciej Stachowiak.

        Turn on (SVG) Filters for Qt.
        https://bugs.webkit.org/show_bug.cgi?id=32224

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51828 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Evan Martin <evan@chromium.org>
eric@webkit.org [Tue, 8 Dec 2009 02:54:52 +0000 (02:54 +0000)]
2009-12-07  Evan Martin  <evan@chromium.org>

        Reviewed by Eric Seidel.

        Chromium: theme scrollbars to match GTK theme.
        Add functions to RenderThemeChromiumLinux to change the scrollbar
        color.

        Since the change is to the Chromium WebKit API layer, testing will
        be in Chromium's test shell.
        http://bugs.webkit.org/show_bug.cgi?id=32048

        Patch from Markus Gutschke <markus@chromium.org>.

        * platform/chromium/ScrollbarThemeChromiumLinux.cpp:
        (WebCore::saturateAndBrighten):
        (WebCore::outlineColor):
        (WebCore::ScrollbarThemeChromiumLinux::paintTrackPiece):
        (WebCore::ScrollbarThemeChromiumLinux::paintThumb):
        * rendering/RenderThemeChromiumLinux.cpp:
        (WebCore::RenderThemeChromiumLinux::setScrollbarColors):
        * rendering/RenderThemeChromiumLinux.h:
        (WebCore::RenderThemeChromiumLinux::thumbInactiveColor):
        (WebCore::RenderThemeChromiumLinux::thumbActiveColor):
        (WebCore::RenderThemeChromiumLinux::trackColor):
2009-12-07  Evan Martin  <evan@chromium.org>

        Reviewed by Eric Seidel.

        Chromium: theme scrollbars to match GTK theme.
        Add API to set the colors.

        Since the change is to the Chromium WebKit API layer, testing will
        be in Chromium's test shell.
        http://bugs.webkit.org/show_bug.cgi?id=32048

        Patch from Markus Gutschke <markus@chromium.org>.

        * public/WebView.h:
        * src/WebViewImpl.cpp:
        (WebKit::WebViewImpl::setScrollbarColors):
        * src/WebViewImpl.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51827 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Shinichiro Hamaji <hamaji@chromium.org>
hamaji@chromium.org [Tue, 8 Dec 2009 02:50:35 +0000 (02:50 +0000)]
2009-12-07  Shinichiro Hamaji  <hamaji@chromium.org>

        Reviewed by David Kilzer.

        Bugzilla should show images in git patches
        https://bugs.webkit.org/show_bug.cgi?id=31395

        Attempt to go r51748 again using --directory option of git-apply.

        * PrettyPatch/PrettyPatch.rb:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51826 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years agoWebCore
kov@webkit.org [Tue, 8 Dec 2009 02:44:05 +0000 (02:44 +0000)]
WebCore

        Reviewed by Xan Lopez.

        [GTK] Doesn't respect Content-Disposition for downloads, and provides no way for apps to do that
        https://bugs.webkit.org/show_bug.cgi?id=32247

        Allow creating a ResourceResponse from a SoupMessage.

        Covered by API test.

        * platform/network/soup/ResourceResponse.h:
        (WebCore::ResourceResponse::ResourceResponse):
        * platform/network/soup/ResourceResponseSoup.cpp:
        (WebCore::ResourceResponse::updateFromSoupMessage):

WebKit/gtk

        Reviewed by Xan Lopez.

        [GTK] Doesn't respect Content-Disposition for downloads, and provides no way for apps to do that
        https://bugs.webkit.org/show_bug.cgi?id=32247

        Provide a way for applications to respect Content-Disposition, by
        fetching the WebKitNetworkResponse from the frame during
        mime-type-policy-decision-requested.

        * WebCoreSupport/FrameLoaderClientGtk.cpp:
        (WebKit::FrameLoaderClient::dispatchDecidePolicyForMIMEType): Download
        content when Content-Disposition is attachment.
        * tests/testmimehandling.c:
        (server_callback):
        (mime_type_policy_decision_requested_cb):
        * tests/testwebframe.c:
        (test_webkit_web_frame_response):
        (main):
        * webkit/webkitprivate.cpp:
        (WebKit::core):
        * webkit/webkitwebframe.cpp:
        (webkit_web_frame_get_network_response):
        * webkit/webkitwebframe.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51825 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Yuzo Fujishima <yuzo@google.com>
eric@webkit.org [Tue, 8 Dec 2009 02:40:46 +0000 (02:40 +0000)]
2009-12-07  Yuzo Fujishima  <yuzo@google.com>

        Reviewed by Alexey Proskuryakov.

        Make run-webkit-websocketserver log to stderr rather than to a file.
        https://bugs.webkit.org/show_bug.cgi?id=32234

        * Scripts/run-webkit-websocketserver:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51824 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Tue, 8 Dec 2009 02:29:28 +0000 (02:29 +0000)]
2009-12-07  Nikolas Zimmermann  <nzimmermann@rim.com>

        Not reviewed. Reverting problematic patch, causing errors.

        Revert r51789 (Avoid zero division during SVGPaintServerPattern::setup()). Crashes on all Windows slaves.
        Reopen bug https://bugs.webkit.org/show_bug.cgi?id=29912.

        * svg/graphics/SVGPaintServerPattern.cpp:
        (WebCore::SVGPaintServerPattern::setup):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51823 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Kent Tamura <tkent@chromium.org>
tkent@chromium.org [Tue, 8 Dec 2009 02:26:53 +0000 (02:26 +0000)]
2009-12-07  Kent Tamura  <tkent@chromium.org>

        Reviewed by Darin Adler.

        Add tests for HTMLInputElement::stepUp() and stepDown().
        https://bugs.webkit.org/show_bug.cgi?id=27451

        * fast/forms/input-step-number-expected.txt: Added.
        * fast/forms/input-step-number.html: Added.
        * fast/forms/input-step-range-expected.txt: Added.
        * fast/forms/input-step-range.html: Added.
        * fast/forms/input-step-unsupported-expected.txt: Added.
        * fast/forms/input-step-unsupported.html: Added.
        * fast/forms/script-tests/input-step-number.js: Added.
        * fast/forms/script-tests/input-step-range.js: Added.
        * fast/forms/script-tests/input-step-unsupported.js: Added.

2009-12-07  Kent Tamura  <tkent@chromium.org>

        Reviewed by Darin Adler.

        Add support for HTMLInputElement::stepUp() and stepDown() for
        type=number and type=range.
        https://bugs.webkit.org/show_bug.cgi?id=27451

        Our implementation of stepUp() and stepDown() rounds the resultant
        value to conform to the step value.
        Change the number-string conversion method for RenderSlider to be
        consistent with type=number.

        Tests: fast/forms/input-step-number.html
               fast/forms/input-step-range.html
               fast/forms/input-step-unsupported.html

        * html/HTMLInputElement.cpp:
        (WebCore::HTMLInputElement::rangeUnderflow): Unify the code for NUMBER and RANGE.
        (WebCore::HTMLInputElement::rangeOverflow): Unify the code for NUMBER and RANGE.
        (WebCore::HTMLInputElement::minimum): Renamed from rangeMinimum(), and support for NUMBER.
        (WebCore::HTMLInputElement::maximum): Renamed from rangeMaximum(), and support for NUMBER.
        (WebCore::HTMLInputElement::stepBase):
        (WebCore::HTMLInputElement::stepMismatch): Use stepBase().
        (WebCore::HTMLInputElement::applyStepForNumberOrRange):
        (WebCore::HTMLInputElement::stepUp):
        (WebCore::HTMLInputElement::stepDown):
        (WebCore::HTMLInputElement::formStringFromDouble):
        * html/HTMLInputElement.h:
        (WebCore::HTMLInputElement::stepUp):
        (WebCore::HTMLInputElement::stepDown):
        * html/HTMLInputElement.idl: Add stepUp() and stepDown().
        * rendering/RenderSlider.cpp:
        (WebCore::SliderRange::SliderRange): Sync with rangeMinimum()/rangeMaximum() renaming.
        (WebCore::RenderSlider::updateFromElement): Use formStringFromDouble().
        (WebCore::RenderSlider::setValueForPosition): Use formStringFromDouble().

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51822 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years agoNot reviewed: Chromium build fix try 2 (dumb error).
ajwong@chromium.org [Tue, 8 Dec 2009 02:21:21 +0000 (02:21 +0000)]
Not reviewed: Chromium build fix try 2 (dumb error).

* bindings/v8/ScriptValue.h:
(WebCore::ScriptValue::getString):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51821 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years agoNot reviewed: Chromium build fix.
ajwong@chromium.org [Tue, 8 Dec 2009 01:55:17 +0000 (01:55 +0000)]
Not reviewed: Chromium build fix.

Fix Chromium build break caused by an added dependency from
ScriptControllerBase to JSDOMWindowShell, and an API change in
ScriptValue.

* bindings/ScriptControllerBase.cpp:
(WebCore::ScriptController::executeIfJavaScriptURL):
* bindings/v8/ScriptValue.h:
(WebCore::ScriptValue::getString):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51820 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years agoWebCore: REGRESSION(4.0.4-42a12): Indent does not work for twice modified with backgr...
enrica@apple.com [Tue, 8 Dec 2009 01:31:07 +0000 (01:31 +0000)]
WebCore: REGRESSION(4.0.4-42a12): Indent does not work for twice modified with background text in gmail.
<rdar://problem/7442387>
https://bugs.webkit.org/show_bug.cgi?id=32233

Reviewed by Darin Adler.

Fixes problem in re-creating the correct hierarchy under the new block.
Added extensive testing to cover all the cases.

Test: editing/execCommand/indent-with-style2.html

* editing/CompositeEditCommand.cpp:
(WebCore::CompositeEditCommand::cloneParagraphUnderNewElement):

LayoutTests: REGRESSION(4.0.4-42a12): Indent does not work for twice modified with background text in gmail.
<rdar://problem/7442387>
https://bugs.webkit.org/show_bug.cgi?id=32233

Reviewed by Darin Adler.

* editing/execCommand/indent-with-style2-expected.txt: Added.
* editing/execCommand/indent-with-style2.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51819 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Finnur Thorarinsson <finnur.webkit@gmail.com>
eric@webkit.org [Tue, 8 Dec 2009 01:22:23 +0000 (01:22 +0000)]
2009-12-07  Finnur Thorarinsson  <finnur.webkit@gmail.com>

        Reviewed by Darin Fisher.

        A patch for Chromium to restrict the scope of the Gmail focus fix,
        where we set the Selection to 0,0 for content-editable fields and
        also make sure we set the selection end-state for find to select the
        text found (when not focusing a link we found).
        WebKit bug: https://bugs.webkit.org/show_bug.cgi?id=32248

        * src/WebFrameImpl.cpp:
        (WebKit::WebFrameImpl::setFindEndstateFocusAndSelection):
        * src/WebViewImpl.cpp:
        (WebKit::WebViewImpl::setFocus):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51818 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years agoNot reviewed. Add some missing files that depend on SVG Filters support, only mac...
zimmermann@webkit.org [Tue, 8 Dec 2009 01:15:57 +0000 (01:15 +0000)]
Not reviewed. Add some missing files that depend on SVG Filters support, only mac supports it for now.
Still one more crash affecting the win slaves, unrelated to the filters patch though.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51817 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years agoWindows build fix for checkouts with a space in the path
aroben@apple.com [Tue, 8 Dec 2009 01:03:41 +0000 (01:03 +0000)]
Windows build fix for checkouts with a space in the path

* win/tools/scripts/auto-version.sh: Quote the output file's directory
before passing it to mkdir.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51816 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago[Qt] Unreviewed. Skip a timeouter flakey test.
ossy@webkit.org [Tue, 8 Dec 2009 00:59:30 +0000 (00:59 +0000)]
[Qt] Unreviewed. Skip a timeouter flakey test.

* platform/qt/Skipped: fast/frames/sandboxed-iframe-plugins.html added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51815 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years agoNot reviewed. Skip yet another test, what a journey...
zimmermann@webkit.org [Tue, 8 Dec 2009 00:51:22 +0000 (00:51 +0000)]
Not reviewed. Skip yet another test, what a journey...

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51814 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years agoRemove ENABLE_SHARED_SCRIPT flags
dimich@chromium.org [Tue, 8 Dec 2009 00:50:21 +0000 (00:50 +0000)]
Remove ENABLE_SHARED_SCRIPT flags
https://bugs.webkit.org/show_bug.cgi?id=32245
This patch was obtained by "git revert" command and then un-reverting of ChangeLog files.

Rubber-stamped by Darin Adler.

* configure.ac:

JavaScriptCore:

* Configurations/FeatureDefines.xcconfig:
* wtf/Platform.h:

WebCore:

* Configurations/FeatureDefines.xcconfig:
* GNUmakefile.am:
* WebCore.pro:

WebKit/chromium:

* features.gypi:

WebKit/mac:

* Configurations/FeatureDefines.xcconfig:

WebKitTools:

* Scripts/build-webkit:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51813 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years agoNot reviewed. Adjust one layout test to the results of the Leopard Intel slave.
zimmermann@webkit.org [Tue, 8 Dec 2009 00:40:22 +0000 (00:40 +0000)]
Not reviewed. Adjust one layout test to the results of the Leopard Intel slave.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51812 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years agoNot reviewed. Turn Qt slave green again, after landing filters.
zimmermann@webkit.org [Tue, 8 Dec 2009 00:37:30 +0000 (00:37 +0000)]
Not reviewed. Turn Qt slave green again, after landing filters.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51811 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Tue, 8 Dec 2009 00:10:51 +0000 (00:10 +0000)]
2009-12-07  Nikolas Zimmermann  <nzimmermann@rim.com>

        Not reviewed. Force JS binding regeneration, eventually fixing the broken tests on the bots.

        * bindings/scripts/CodeGeneratorJS.pm:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51810 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years agoCorrected expected results
mitz@apple.com [Tue, 8 Dec 2009 00:04:39 +0000 (00:04 +0000)]
Corrected expected results

* platform/mac/fast/repaint/block-selection-gap-stale-cache-2-expected.checksum:
* platform/mac/fast/repaint/block-selection-gap-stale-cache-2-expected.png:
* platform/mac/fast/repaint/block-selection-gap-stale-cache-expected.checksum:
* platform/mac/fast/repaint/block-selection-gap-stale-cache-expected.png:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51809 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years agoRubber-stamped by Simon Fraser.
mitz@apple.com [Tue, 8 Dec 2009 00:02:43 +0000 (00:02 +0000)]
Rubber-stamped by Simon Fraser.

Re-enabled this test now that <rdar://problem/7450481> is fixed.

* fast/repaint/block-selection-gap-in-composited-layer.html: Copied from LayoutTests/fast/repaint/block-selection-gap-in-composited-layer.html.disabled.
* fast/repaint/block-selection-gap-in-composited-layer.html.disabled: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51808 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years agoAdd new exported symbols to finally fix the build.
bweinstein@apple.com [Tue, 8 Dec 2009 00:00:17 +0000 (00:00 +0000)]
Add new exported symbols to finally fix the build.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51807 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago* WebView.cpp:
barraclough@apple.com [Mon, 7 Dec 2009 23:53:37 +0000 (23:53 +0000)]
* WebView.cpp:
(WebView::stringByEvaluatingJavaScriptFromString):

Reviewed by NOBODY (Windows build fix part III).

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51806 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago* WebView.cpp:
barraclough@apple.com [Mon, 7 Dec 2009 23:47:45 +0000 (23:47 +0000)]
* WebView.cpp:
(WebView::stringByEvaluatingJavaScriptFromString):

Reviewed by NOBODY (Windows build fix part II).

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51805 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Mon, 7 Dec 2009 23:30:34 +0000 (23:30 +0000)]
2009-12-07  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Darin Adler.

        <rdar://problem/7450481> One compositing test keeps DRT in "compositing mode", breaks repaint tests

        The counter that WebView used to keep track of the number of enclosed WebHTMLViews using
        accelerated compositing was hard to manage, and maintained incorrectly in a number of cases.
        This caused one compositing test make DumpRenderTree think that all subsequent tests
        were compositing too.

        Replace this counter with notifications, which are only fired if a client (DRT) requests them. The
        notification informs the client that a WebHTMLView entered compositing mode (or an already-
        compositing WebHTML was added); it does not say when a view becomes uncomposited, or all
        compositing subviews were removed, since this is tricky to get right.

        Change -[WebView _isUsingAcceleratedCompositing] to manually walk the frames, and
        return YES if any document view is composited.

        * WebKit.exp:
        * WebView/WebHTMLView.mm:
        (-[WebHTMLView close]):
        (-[WebHTMLView viewDidMoveToSuperview]):
        (-[WebHTMLView attachRootLayer:]):
        (-[WebHTMLView detachRootLayer]):
        * WebView/WebView.mm:
        (+[WebView automaticallyNotifiesObserversForKey:]):
        (-[WebView _postsAcceleratedCompositingNotifications]):
        (-[WebView _setPostsAcceleratedCompositingNotifications:]):
        (-[WebView _isUsingAcceleratedCompositing]):
        * WebView/WebViewData.h:
        * WebView/WebViewInternal.h:
        * WebView/WebViewPrivate.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51804 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
barraclough@apple.com [Mon, 7 Dec 2009 23:26:28 +0000 (23:26 +0000)]
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:

Reviewed by NOBODY (Windows build fixage part I).

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51803 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Mon, 7 Dec 2009 23:15:20 +0000 (23:15 +0000)]
2009-12-07  Nikolas Zimmermann  <nzimmermann@rim.com>

        Not reviewed. Try to fix mac builds by touching svgtags.in - I only tried from-scratch builds.

        * svg/svgtags.in:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51802 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years agohttps://bugs.webkit.org/show_bug.cgi?id=32184
barraclough@apple.com [Mon, 7 Dec 2009 23:14:04 +0000 (23:14 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=32184
Handle out-of-memory conditions with JSC Ropes with a JS exception, rather than crashing.
Switch from using fastMalloc to tryFastMalloc, pass an ExecState to record the exception on.

Reviewed by Oliver Hunt.

JavaScriptCore:

* API/JSCallbackObjectFunctions.h:
(JSC::::toString):
* API/JSValueRef.cpp:
(JSValueIsStrictEqual):
* JavaScriptCore.exp:
* bytecompiler/BytecodeGenerator.cpp:
(JSC::BytecodeGenerator::emitEqualityOp):
* debugger/DebuggerCallFrame.cpp:
(JSC::DebuggerCallFrame::functionName):
(JSC::DebuggerCallFrame::calculatedFunctionName):
* interpreter/Interpreter.cpp:
(JSC::Interpreter::callEval):
(JSC::Interpreter::privateExecute):
* jit/JITStubs.cpp:
(JSC::DEFINE_STUB_FUNCTION):
* profiler/ProfileGenerator.cpp:
(JSC::ProfileGenerator::addParentForConsoleStart):
* profiler/Profiler.cpp:
(JSC::Profiler::willExecute):
(JSC::Profiler::didExecute):
(JSC::Profiler::createCallIdentifier):
(JSC::createCallIdentifierFromFunctionImp):
* profiler/Profiler.h:
* runtime/ArrayPrototype.cpp:
(JSC::arrayProtoFuncIndexOf):
(JSC::arrayProtoFuncLastIndexOf):
* runtime/DateConstructor.cpp:
(JSC::constructDate):
* runtime/FunctionPrototype.cpp:
(JSC::functionProtoFuncToString):
* runtime/InternalFunction.cpp:
(JSC::InternalFunction::name):
(JSC::InternalFunction::displayName):
(JSC::InternalFunction::calculatedDisplayName):
* runtime/InternalFunction.h:
* runtime/JSCell.cpp:
(JSC::JSCell::getString):
* runtime/JSCell.h:
(JSC::JSValue::getString):
* runtime/JSONObject.cpp:
(JSC::gap):
(JSC::Stringifier::Stringifier):
(JSC::Stringifier::appendStringifiedValue):
* runtime/JSObject.cpp:
(JSC::JSObject::putDirectFunction):
(JSC::JSObject::putDirectFunctionWithoutTransition):
(JSC::JSObject::defineOwnProperty):
* runtime/JSObject.h:
* runtime/JSPropertyNameIterator.cpp:
(JSC::JSPropertyNameIterator::get):
* runtime/JSString.cpp:
(JSC::JSString::Rope::~Rope):
(JSC::JSString::resolveRope):
(JSC::JSString::getPrimitiveNumber):
(JSC::JSString::toNumber):
(JSC::JSString::toString):
(JSC::JSString::toThisString):
(JSC::JSString::getStringPropertyDescriptor):
* runtime/JSString.h:
(JSC::JSString::Rope::createOrNull):
(JSC::JSString::Rope::operator new):
(JSC::JSString::value):
(JSC::JSString::tryGetValue):
(JSC::JSString::getIndex):
(JSC::JSString::getStringPropertySlot):
(JSC::JSValue::toString):
* runtime/JSValue.h:
* runtime/NativeErrorConstructor.cpp:
(JSC::NativeErrorConstructor::NativeErrorConstructor):
* runtime/Operations.cpp:
(JSC::JSValue::strictEqualSlowCase):
* runtime/Operations.h:
(JSC::JSValue::equalSlowCaseInline):
(JSC::JSValue::strictEqualSlowCaseInline):
(JSC::JSValue::strictEqual):
(JSC::jsLess):
(JSC::jsLessEq):
(JSC::jsAdd):
(JSC::concatenateStrings):
* runtime/PropertyDescriptor.cpp:
(JSC::PropertyDescriptor::equalTo):
* runtime/PropertyDescriptor.h:
* runtime/StringPrototype.cpp:
(JSC::stringProtoFuncReplace):
(JSC::stringProtoFuncToLowerCase):
(JSC::stringProtoFuncToUpperCase):

WebCore:

* bindings/ScriptControllerBase.cpp:
(WebCore::ScriptController::executeIfJavaScriptURL):
* bindings/js/JSCanvasRenderingContext2DCustom.cpp:
(WebCore::toHTMLCanvasStyle):
(WebCore::JSCanvasRenderingContext2D::setFillColor):
(WebCore::JSCanvasRenderingContext2D::setStrokeColor):
(WebCore::JSCanvasRenderingContext2D::setShadow):
* bindings/js/ScriptCallStack.cpp:
(WebCore::ScriptCallStack::ScriptCallStack):
(WebCore::ScriptCallStack::initialize):
* bindings/js/ScriptValue.cpp:
(WebCore::ScriptValue::getString):
* bindings/js/ScriptValue.h:
* bindings/js/SerializedScriptValue.cpp:
(WebCore::SerializingTreeWalker::convertIfTerminal):
* bindings/objc/WebScriptObject.mm:
(+[WebScriptObject _convertValueToObjcValue:originRootObject:rootObject:]):
* page/Console.cpp:
(WebCore::Console::addMessage):

WebKit/mac:

* WebView/WebView.mm:
(aeDescFromJSValue):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51801 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Mon, 7 Dec 2009 23:03:55 +0000 (23:03 +0000)]
2009-12-07  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Holger Hans Peter Freyther.

        Turn on (SVG) Filters support, by default.
        https://bugs.webkit.org/show_bug.cgi?id=32224

        Only enable filters on mac for now, skipped all affected tests on the other platforms.
        Will enable them one after another, to minimize breakage.

        * Configurations/FeatureDefines.xcconfig: Enable FILTERS build flag.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51800 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Kent Tamura <tkent@chromium.org>
eric@webkit.org [Mon, 7 Dec 2009 22:50:15 +0000 (22:50 +0000)]
2009-12-07  Kent Tamura  <tkent@chromium.org>

        Reviewed by Darin Adler.

        Some changes to ValidityState-typeMismatch-url.html.
        https://bugs.webkit.org/show_bug.cgi?id=29913

        - Add more test cases
          Username, IPv6 address, mailto:, file:, tel:, fragment, and IDN.
        - Handle difference between KURL and KURLGoogle

        * fast/forms/ValidityState-typeMismatch-url-expected.txt:
        * fast/forms/script-tests/ValidityState-typeMismatch-url.js:
2009-12-07  Kent Tamura  <tkent@chromium.org>

        Reviewed by Darin Adler.

        Fix a bug that KURL rejects a host name which has an IPv4 address
        inside an IPv6 form like [::127.0.0.1].
        https://bugs.webkit.org/show_bug.cgi?id=29913

        * platform/KURL.cpp:
        (WebCore::characterClassTable): Add IPv6Char to '.'.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51799 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Darin Fisher <darin@chromium.org>
darin@chromium.org [Mon, 7 Dec 2009 22:43:13 +0000 (22:43 +0000)]
2009-12-07  Darin Fisher  <darin@chromium.org>

        Reviewed by Darin Adler.

        http/tests/cache/subresource-failover-to-network.html is flaky
        https://bugs.webkit.org/show_bug.cgi?id=32038

        Rewrite test to avoid dumpResourceLoadCallbacks, which do not
        interleave predictably with the output of dumpFrameLoadCallbacks.
        Other things besides resource loading can delay onload.

        The newly written test uses a cookie to determine if the test has
        passed.

        Unskip this test for platform/win.

        * http/tests/cache/resources/subresource-failover-to-network.cgi:
        * http/tests/cache/subresource-failover-to-network-expected.txt:
        * http/tests/cache/subresource-failover-to-network.html:
        * platform/win/Skipped:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51798 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago Reviewed by Darin Adler.
ap@apple.com [Mon, 7 Dec 2009 22:35:17 +0000 (22:35 +0000)]
    Reviewed by Darin Adler.

        https://bugs.webkit.org/show_bug.cgi?id=32244
        Test sending and receiving small WebSocket messages of different lengths

        * websocket/tests/frame-lengths-expected.txt: Added.
        * websocket/tests/frame-lengths.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51797 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago<rdar://problem/7443417> - Closing a window opened with "New windows open with: Same...
beidson@apple.com [Mon, 7 Dec 2009 22:27:49 +0000 (22:27 +0000)]
<rdar://problem/7443417> - Closing a window opened with "New windows open with: Same Page" results in crash in ::~HistoryItem

Reviewed by Sam Weinig.

The HistoryItem copy constructor has one very specific use case - to support the feature of a WebView copying another WebView's
BackForwardList.  That constructor wasn't initializing its m_document pointer, leading to this crash in the destructor.

* history/HistoryItem.cpp:
(WebCore::HistoryItem::~HistoryItem): Change the setDocument(0) to an ASSERT that the document is already 0. A HistoryItem cannot
  outlive its Document and Documents will always clear the back-pointer in their ::detach() method.
(WebCore::HistoryItem::HistoryItem): Missed the m_document initializer in the copy constructor. Also remove an invalid assertion
  about the original items m_cachedPage object (which is irrelevant to the copy).

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51796 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years agoNot reviewed - fix typo in ChangeLog.
dimich@chromium.org [Mon, 7 Dec 2009 21:54:15 +0000 (21:54 +0000)]
Not reviewed - fix typo in ChangeLog.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51795 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Yaar Schnitman <yaar@chromium.org>
eric@webkit.org [Mon, 7 Dec 2009 21:52:22 +0000 (21:52 +0000)]
2009-12-07  Yaar Schnitman  <yaar@chromium.org>

        Reviewed by Darin Fisher.

        Chromium buildbots are not red when they fail
        https://bugs.webkit.org/show_bug.cgi?id=32235

        * Scripts/build-webkit:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51794 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years agoRemove partial SharedScript implementation.
dimich@chromium.org [Mon, 7 Dec 2009 21:51:35 +0000 (21:51 +0000)]
Remove partial SharedScript implementation.
https://bugs.webkit.org/show_bug.cgi?id=32237
The patch was obtained by running "git revert" command and then un-reverting WebCore/ChangeLog.

Reviewed by Daring Adler.

* DerivedSources.make:
* SharedScript/SharedScriptContext.cpp: Removed.
* SharedScript/SharedScriptContext.h: Removed.
* SharedScript/SharedScriptContext.idl: Removed.
* SharedScript/SharedScriptController.h: Removed.
* SharedScript/WebKitSharedScript.cpp: Removed.
* SharedScript/WebKitSharedScript.h: Removed.
* SharedScript/WebKitSharedScript.idl: Removed.
* SharedScript/WebKitSharedScriptRepository.cpp: Removed.
* SharedScript/WebKitSharedScriptRepository.h: Removed.
* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
* dom/Document.cpp:
(WebCore::Document::detach):
* dom/EventTarget.cpp:
* dom/EventTarget.h:
* dom/ScriptExecutionContext.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51793 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Yaar Schnitman <yaar@chromium.org>
eric@webkit.org [Mon, 7 Dec 2009 21:25:11 +0000 (21:25 +0000)]
2009-12-07  Yaar Schnitman  <yaar@chromium.org>

        Reviewed by Darin Fisher.

        Typo in chromium linux builder
        https://bugs.webkit.org/show_bug.cgi?id=32238

        * Scripts/webkitdirs.pm:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51792 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Mon, 7 Dec 2009 21:06:11 +0000 (21:06 +0000)]
2009-12-07  Nikolas Zimmermann  <nzimmermann@rim.com>

        Not reviewed. Add two tests generating new results to gtks collection of tests doing so.

        * platform/gtk/Skipped:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51791 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago Reviewed by Nikolas Zimmermann.
ap@apple.com [Mon, 7 Dec 2009 21:05:39 +0000 (21:05 +0000)]
    Reviewed by Nikolas Zimmermann.

        https://bugs.webkit.org/show_bug.cgi?id=32226
        Random crashes in WebSocket tests on Leopard Debug builbot

        * platform/network/SocketStreamHandleBase.cpp: (WebCore::SocketStreamHandleBase::close):
        Make sure the object still exists when setting m_state.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51790 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Shiki Okasaka <shiki@google.com>
krit@webkit.org [Mon, 7 Dec 2009 20:32:07 +0000 (20:32 +0000)]
2009-12-07  Shiki Okasaka  <shiki@google.com>

        Reviewed by Dirk Schulze.

        Avoid zero division during SVGPaintServerPattern::setup()
        https://bugs.webkit.org/show_bug.cgi?id=29912

        Fix zero division bugs in SVGPaintServerPattern::setup() that occurred
        if the tile of a pattern was bigger than the pattern and the pattern
        size was < 0.5, and if the attribute overflow was set to visible.

        Test: svg/custom/small-pattern.html

        * svg/graphics/SVGPaintServerPattern.cpp:
        (WebCore::SVGPaintServerPattern::setup):

2009-12-07  Dirk Schulze  <krit@webkit.org>

        Reviewed by Adam Barth.

        If the tile of a pattern is bigger than the pattern and the
        pattern size is < 0.5, the SVGPaintServer produced a division
        by zero. This also only happens, if the attribute overflow is
        set to visible.
        This is a test with a pattern size of 0.1 and a tile size of 1.

        * svg/custom/script-tests/small-pattern.js: Added.
        * svg/custom/small-pattern-expected.txt: Added.
        * svg/custom/small-pattern.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51789 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Yaar Schnitman <yaar@chromium.org>
eric@webkit.org [Mon, 7 Dec 2009 20:17:20 +0000 (20:17 +0000)]
2009-12-07  Yaar Schnitman  <yaar@chromium.org>

        Reviewed by Darin Fisher.

        fixes to build-webkit --chromium
        https://bugs.webkit.org/show_bug.cgi?id=32179

        * DEPS:
        * WebKit.gyp:
        * gyp_webkit:
2009-12-07  Yaar Schnitman  <yaar@chromium.org>

        Reviewed by Darin Fisher.

        fixes to build-webkit --chromium
        https://bugs.webkit.org/show_bug.cgi?id=32179

        * Scripts/webkitdirs.pm:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51788 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Eric Seidel <eric@webkit.org>
eric@webkit.org [Mon, 7 Dec 2009 19:46:21 +0000 (19:46 +0000)]
2009-12-07  Eric Seidel  <eric@webkit.org>

        No review, just adding two recently approved committers.

        * Scripts/modules/committers.py:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51787 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago * Scripts/run-webkit-websocketserver: Added property svn:executable.
ap@apple.com [Mon, 7 Dec 2009 19:36:37 +0000 (19:36 +0000)]
    * Scripts/run-webkit-websocketserver: Added property svn:executable.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51786 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Kenneth Russell <kbr@google.com>
eric@webkit.org [Mon, 7 Dec 2009 19:36:34 +0000 (19:36 +0000)]
2009-12-07  Kenneth Russell  <kbr@google.com>

        Reviewed by Dimitri Glazkov.

        [v8] WebCore::WebGLArrayBufferInternal::byteLengthAttrGetter NULL pointer
        https://bugs.webkit.org/show_bug.cgi?id=31889

        Fixed bug in handling of zero-argument constructor call.

        Test: fast/canvas/webgl/bug-31889.html

        * fast/canvas/webgl/bug-31889-expected.txt: Added.
        * fast/canvas/webgl/bug-31889.html: Added.
2009-12-07  Kenneth Russell  <kbr@google.com>

        Reviewed by Dimitri Glazkov.

        [v8] WebCore::WebGLArrayBufferInternal::byteLengthAttrGetter NULL pointer
        https://bugs.webkit.org/show_bug.cgi?id=31889

        Fixed bug in handling of zero-argument constructor call.

        Test: fast/canvas/webgl/bug-31889.html

        * bindings/v8/custom/V8WebGLArrayBufferCustom.cpp:
        (WebCore::CALLBACK_FUNC_DECL):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51785 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years agoUnreviewed. Landing files I forgot to add to my working copy before
kov@webkit.org [Mon, 7 Dec 2009 19:26:41 +0000 (19:26 +0000)]
Unreviewed. Landing files I forgot to add to my working copy before
committing r51734.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51784 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Gyuyoung Kim <gyuyoung@gmail.com>
eric@webkit.org [Mon, 7 Dec 2009 19:22:48 +0000 (19:22 +0000)]
2009-12-07  Gyuyoung Kim  <gyuyoung@gmail.com>

        Reviewed by Eric Seidel.

        https://bugs.webkit.org/show_bug.cgi?id=32024
        [GTK] WebKit does not compile without JAVASCRIPT_DEBUGGER

        Fix build errors when javascript-debugger is disabled on GTK

        * GNUmakefile.am:
2009-12-07  Gyuyoung Kim  <gyuyoung@gmail.com>

        Reviewed by Eric Seidel.

        https://bugs.webkit.org/show_bug.cgi?id=32024
        [GTK] WebKit does not compile without JAVASCRIPT_DEBUGGER

        Fix build errors when javascript-debugger is disabled on GTK

        * webkit/webkitwebinspector.cpp:
        (webkit_web_inspector_set_property):
        (webkit_web_inspector_get_property):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51783 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago Don't skip websocket/tests/url-with-credential.html, it's one of earlier...
ap@apple.com [Mon, 7 Dec 2009 19:09:16 +0000 (19:09 +0000)]
    Don't skip websocket/tests/url-with-credential.html, it's one of earlier tests that is
        to blame.

        * platform/mac/Skipped:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51782 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years agoRubber-stamped by Steve Falkenburg.
bweinstein@apple.com [Mon, 7 Dec 2009 19:06:05 +0000 (19:06 +0000)]
Rubber-stamped by Steve Falkenburg.

Add one more fast/js test to the Skipped list - also due to:
https://bugs.webkit.org/show_bug.cgi?id=32228.

* platform/win/Skipped:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51781 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Mon, 7 Dec 2009 18:51:44 +0000 (18:51 +0000)]
2009-12-07  Nikolas Zimmermann  <nzimmermann@rim.com>

        Not reviewed. Cleaning up Skipped files in order to make more bots green, as I plan to land changes, that affect all bots (svg filters support).

        Remove non-existant animations/3d directory in qt&win Skipped lists.
        Skip one more test on windows (see bug #32228, already in radar, just guessing - not yet sure if it's a random crash issue though)
        Skip 19 (!) tests on the Qt slave, failing since a longer time. Qt developers: Please investigate.

        * platform/qt/Skipped: Also remove some duplicates I spotted.
        * platform/win/Skipped:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51780 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Yuzo Fujishima <yuzo@google.com>
eric@webkit.org [Mon, 7 Dec 2009 18:34:50 +0000 (18:34 +0000)]
2009-12-07  Yuzo Fujishima  <yuzo@google.com>

        Reviewed by Alexey Proskuryakov.

        Add run-webkit-websocketserver

        https://bugs.webkit.org/show_bug.cgi?id=31390

        * Scripts/run-webkit-websocketserver: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51779 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Mon, 7 Dec 2009 18:23:32 +0000 (18:23 +0000)]
2009-12-07  Nikolas Zimmermann  <nzimmermann@rim.com>

        Not reviewed. Disable two flaky SnowLeopard tests, filed bug and notified author.

        Tests "plugins/document-open.html" and "plugins/mouse-events.html" are flaky on SnowLeopard
        https://bugs.webkit.org/show_bug.cgi?id=32229

        * platform/mac-snowleopard/Skipped:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51778 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years agoWebCore: Fixed <rdar://problem/7437820> Weird selection artifacts
mitz@apple.com [Mon, 7 Dec 2009 18:22:33 +0000 (18:22 +0000)]
WebCore: Fixed <rdar://problem/7437820> Weird selection artifacts

Reviewed by Darin Adler.

Tests: fast/repaint/block-selection-gap-stale-cache-2.html
       fast/repaint/block-selection-gap-stale-cache.html

Instead of caching the block selection gaps’ bounds in the RenderView at setSelection()
time, cache them in each RenderLayer at paint time. This prevents the cache from getting
stale due to layout changes and overflow scrolling.

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::selectionGapRectsForRepaint): Account for overflow scroll.
(WebCore::RenderBlock::paintSelection): Update the enclosing layer’s selection gaps bounds.
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::addBlockSelectionGapsBounds): Added. Updates the selection gaps
bounds to include the given rect.
(WebCore::RenderLayer::clearBlockSelectionGapsBounds): Added. Recursively clears the cached
selection gaps bounds.
(WebCore::RenderLayer::repaintBlockSelectionGaps): Added. Recursively invalidates the
selection gaps bounds.
* rendering/RenderLayer.h:
* rendering/RenderView.cpp:
(WebCore::RenderView::setSelection): Clear the layer-level selection gaps bounds instead
of the view-level cache.
(WebCore::RenderView::clearSelection): Changed to call repaintBlockSelectionGaps().
* rendering/RenderView.h:

LayoutTests: Tests for <rdar://problem/7437820> Weird selection artifacts

Reviewed by Darin Adler.

* fast/repaint/block-selection-gap-stale-cache-2.html: Added.
* fast/repaint/block-selection-gap-stale-cache.html: Added.
* platform/mac/fast/repaint/block-selection-gap-stale-cache-2-expected.checksum: Added.
* platform/mac/fast/repaint/block-selection-gap-stale-cache-2-expected.png: Added.
* platform/mac/fast/repaint/block-selection-gap-stale-cache-2-expected.txt: Added.
* platform/mac/fast/repaint/block-selection-gap-stale-cache-expected.checksum: Added.
* platform/mac/fast/repaint/block-selection-gap-stale-cache-expected.png: Added.
* platform/mac/fast/repaint/block-selection-gap-stale-cache-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51776 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Mon, 7 Dec 2009 18:09:47 +0000 (18:09 +0000)]
2009-12-07  Nikolas Zimmermann  <nzimmermann@rim.com>

        Not reviewed.

        REGRESSION: fast/js/excessive-comma-usage.html and fast/js/math-transforms.html fail on win
        https://bugs.webkit.org/show_bug.cgi?id=32228

        Adding above two tests to the Skipped list on win, attempting to turn the win slave green again.

        * platform/win/Skipped:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51775 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years agoBuild fix. Be flexible about which version of ICU is used on Windows.
sfalken@apple.com [Mon, 7 Dec 2009 18:03:38 +0000 (18:03 +0000)]
Build fix. Be flexible about which version of ICU is used on Windows.

JavaScriptCore:

* JavaScriptCore.vcproj/jsc/jscCommon.vsprops: Add optional xcopy commands to copy ICU 4.2.

WebKitTools:

* DumpRenderTree/win/DumpRenderTree.vcproj: Add optional xcopy commands to copy ICU 4.2.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51773 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Mon, 7 Dec 2009 17:43:02 +0000 (17:43 +0000)]
2009-12-07  Nikolas Zimmermann  <nzimmermann@rim.com>

        Not reviewed. Remove non-existant files in gtk/Skipped list, and exclude a printing test, without results. Should turn the gtk slave green again.

        * platform/gtk/Skipped:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51772 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Mon, 7 Dec 2009 17:21:10 +0000 (17:21 +0000)]
2009-12-07  Nikolas Zimmermann  <nzimmermann@rim.com>

        Not reviewed. Attempt to get all mac build slaves to green again. Disable crashing test, and notify the author of it to fix it.

        New test "websocket/tests/url-with-credential.html" crashes in debug builds
        https://bugs.webkit.org/show_bug.cgi?id=32226

        * platform/mac/Skipped:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51771 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years agoNot reviewed. Add missing layout test result.
zimmermann@webkit.org [Mon, 7 Dec 2009 17:10:47 +0000 (17:10 +0000)]
Not reviewed. Add missing layout test result.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51770 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Philippe Normand <pnormand@igalia.com>
kov@webkit.org [Mon, 7 Dec 2009 17:07:53 +0000 (17:07 +0000)]
2009-12-07  Philippe Normand  <pnormand@igalia.com>

        Reviewed by Gustavo Noronha.

        Fixed whitelist comment and removed useless (tags, sdp) mimetypes
        from it. Also, GStreamer doesn't handle directly SMIL.

        * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
        (WebCore::mimeTypeCache):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51769 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Joanmarie Diggs <joanmarie.diggs@gmail.com>
eric@webkit.org [Mon, 7 Dec 2009 15:38:48 +0000 (15:38 +0000)]
2009-12-07  Joanmarie Diggs  <joanmarie.diggs@gmail.com>

        Reviewed by Xan Lopez.

        https://bugs.webkit.org/show_bug.cgi?id=25415
        [GTK][ATK] Please implement support for get_text_at_offset

        Eliminate the segfaults which occur when accessing the text interface now
        implemented by text controls.

        * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
        (getPangoLayoutForAtk):
2009-12-07  Joanmarie Diggs  <joanmarie.diggs@gmail.com>

        Reviewed by Xan Lopez.

        https://bugs.webkit.org/show_bug.cgi?id=25415
        [GTK][ATK] Please implement support for get_text_at_offset

        Eliminate the segfaults which occur when accessing the text interface now
        implemented by text controls.

        * tests/testatk.c
        (test_webkit_atk_get_text_at_offset_textarea):
        (test_webkit_atk_get_text_at_offset_text_input):
        (main):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51768 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Benjamin Poulain <benjamin.poulain@nokia.com>
eric@webkit.org [Mon, 7 Dec 2009 15:31:42 +0000 (15:31 +0000)]
2009-12-07  Benjamin Poulain  <benjamin.poulain@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] Improve the autotests of QtWebkit
        https://bugs.webkit.org/show_bug.cgi?id=32216

        Remove the calls to qWait() of the autotest of QWebView

        * tests/qwebview/tst_qwebview.cpp:
        (tst_QWebView::reusePage):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51767 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Mikhail Naganov <mnaganov@chromium.org>
eric@webkit.org [Mon, 7 Dec 2009 15:02:17 +0000 (15:02 +0000)]
2009-12-07  Mikhail Naganov  <mnaganov@chromium.org>

        Reviewed by Pavel Feldman.

        [Chromium] Add declarations for DevTools message dispatching on IO thread
        (see http://codereview.chromium.org/460018)

        https://bugs.webkit.org/show_bug.cgi?id=32217

        * public/WebDevToolsAgent.h:
        * public/WebDevToolsAgentClient.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51766 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Maciej Stachowiak <mjs@apple.com>
mjs@apple.com [Mon, 7 Dec 2009 14:52:37 +0000 (14:52 +0000)]
2009-12-07  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Oliver Hunt.

        op_loop_if_less JIT codegen is broken for 64-bit
        https://bugs.webkit.org/show_bug.cgi?id=32221

        * jit/JITOpcodes.cpp:
        (JSC::JIT::emit_op_loop_if_false): Fix codegen in this version - test was backwards.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51765 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago Reviewed by Xan Lopez.
kov@webkit.org [Mon, 7 Dec 2009 14:35:30 +0000 (14:35 +0000)]
    Reviewed by Xan Lopez.

        Build the new API test.

        [GTK] REGRESSION: webkit thinks it can render PDFs
        https://bugs.webkit.org/show_bug.cgi?id=32183

        * GNUmakefile.am:

WebCore

        Reviewed by Xan Lopez.

        Turn the MediaPlayer supported types blacklist into a whitelist

        [GTK] REGRESSION: webkit thinks it can render PDFs
        https://bugs.webkit.org/show_bug.cgi?id=32183

        Covered by API test.

        * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
        (WebCore::mimeTypeCache):

WebKit/gtk

        Reviewed by Xan Lopez.

        New test to make sure we do not regress this feature anymore. All
        test files were created by me.

        [GTK] REGRESSION: webkit thinks it can render PDFs
        https://bugs.webkit.org/show_bug.cgi?id=32183

        * tests/resources/test.html: Added.
        * tests/resources/test.ogg: Added.
        * tests/resources/test.pdf: Added.
        * tests/resources/test.txt: Added.
        * tests/testmimehandling.c: Added.
        (server_callback):
        (idle_quit_loop_cb):
        (mime_type_policy_decision_requested_cb):
        (test_mime_type):
        (test_mime_pdf):
        (test_mime_html):
        (test_mime_text):
        (test_mime_ogg):
        (main):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51764 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Benjamin Poulain <benjamin.poulain@nokia.com>
eric@webkit.org [Mon, 7 Dec 2009 14:34:50 +0000 (14:34 +0000)]
2009-12-07  Benjamin Poulain  <benjamin.poulain@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] Improve the autotests of QtWebkit
        https://bugs.webkit.org/show_bug.cgi?id=32216

        Refactor tst_qwebframe to remove qWait() and use
        the function waitForSignal() from util.h

        * tests/qwebframe/tst_qwebframe.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51763 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Joanmarie Diggs <joanmarie.diggs@gmail.com>
eric@webkit.org [Mon, 7 Dec 2009 14:27:44 +0000 (14:27 +0000)]
2009-12-07  Joanmarie Diggs  <joanmarie.diggs@gmail.com>

        Reviewed by Xan Lopez.

        https://bugs.webkit.org/show_bug.cgi?id=25524
        [Gtk] Expose the title attribute to assistive technologies

        * platform/gtk/accessibility/title-and-alt.html: Added.
        * platform/gtk/accessibility/title-and-alt-expected.txt: Added.
2009-12-07  Joanmarie Diggs  <joanmarie.diggs@gmail.com>

        Reviewed by Xan Lopez.

        https://bugs.webkit.org/show_bug.cgi?id=25524
        [Gtk] Expose the title attribute to assistive technologies

        Expose 'alt' attribute from images as accessible name.
        Expose the 'title' core HTML attribute as accessible description.
        This is a modified version of the original fix submitted by Mario Sanchez Prada,
        adjusted so that it doesn't impact other platforms.

        * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
        (webkit_accessible_get_name):
        (webkit_accessible_get_description):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51762 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Benjamin Poulain <benjamin.poulain@nokia.com>
eric@webkit.org [Mon, 7 Dec 2009 14:13:45 +0000 (14:13 +0000)]
2009-12-07  Benjamin Poulain  <benjamin.poulain@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] Improve the autotests of QtWebkit
        https://bugs.webkit.org/show_bug.cgi?id=32216

        Refactor the test of QGraphicsWebView:
        -make waitForSignal() available to all the tests.
        -remove QTest::qWait()

        * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
        (tst_QGraphicsWebView::crashOnViewlessWebPages):
        * tests/util.h:
        (waitForSignal):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51761 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years agoObject.create fails if properties on the descriptor are getters
oliver@apple.com [Mon, 7 Dec 2009 13:50:57 +0000 (13:50 +0000)]
Object.create fails if properties on the descriptor are getters
https://bugs.webkit.org/show_bug.cgi?id=32219

Reviewed by Maciej Stachowiak.

Correctly initialise the PropertySlots with the descriptor object.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51760 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago[Qt] Plugins: Force windowless mode when there is no native window handle
girish@forwardbias.in [Mon, 7 Dec 2009 13:44:35 +0000 (13:44 +0000)]
[Qt] Plugins: Force windowless mode when there is no native window handle

Reviewed by Simon Hausmann.

Inject wmode=opaque while instantiating the plugin for the case when the
webpage is not backed by a native window handle.

https://bugs.webkit.org/show_bug.cgi?id=32059

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51759 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago[Qt] Fix support for generic font families
vestbo@webkit.org [Mon, 7 Dec 2009 13:29:20 +0000 (13:29 +0000)]
[Qt] Fix support for generic font families

Reviewed by Simon Hausmann.

By not propagating the resolved font family in FontCacheQt and
only concidering the font description we ended up passing the
generic font families to Qt directly. Since most systems don't
have a mapping for these font families we ended up using the
default font in most cases.

* platform/graphics/qt/FontCacheQt.cpp:
* platform/graphics/qt/FontPlatformData.h:
* platform/graphics/qt/FontPlatformDataQt.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51758 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years agoObject.getOwnPropertyDescriptor() allows cross-frame access
oliver@apple.com [Mon, 7 Dec 2009 13:06:18 +0000 (13:06 +0000)]
Object.getOwnPropertyDescriptor() allows cross-frame access
https://bugs.webkit.org/show_bug.cgi?id=32119

Reviewed by Maciej Stachowiak.

Make all implementations of getOwnPropertyDescriptor that have
cross domain restrictions simply fail immediately on cross domain
access, rather than trying to mimic the behaviour of normal
property access.

Test: http/tests/security/cross-frame-access-getOwnPropertyDescriptor.html

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51757 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years agoMoves JSC-specific functions from jni_utility and moves them to new jsc/jni_utility_p...
steveblock@google.com [Mon, 7 Dec 2009 12:36:56 +0000 (12:36 +0000)]
Moves JSC-specific functions from jni_utility and moves them to new jsc/jni_utility_private files.
https://bugs.webkit.org/show_bug.cgi?id=32157

Reviewed by Adam Barth.

Build fix only, no new tests.

* WebCore.xcodeproj/project.pbxproj: Modified. Add jni_utility_private.[cpp|h].
* bridge/jni/jni_instance.cpp: Modified. Include jni_utility_private.h for JSC.
* bridge/jni/jni_jsobject.mm: Modified. Include jni_utility_private.h for JSC.
* bridge/jni/jni_objc.mm: Modified. Include jni_utility_private.h for JSC.
* bridge/jni/jni_runtime.cpp: Modified. Include jni_utility_private.h for JSC.
* bridge/jni/jni_utility.cpp: Modified. Removed convertValueToJValue and convertArrayInstanceToJavaArray.
* bridge/jni/jni_utility.h: Modified. Removed convertValueToJValue and dispatchJNICall.
* bridge/jni/jsc: Added.
* bridge/jni/jsc/jni_utility_private.cpp: Added.
(JSC::Bindings::convertArrayInstanceToJavaArray):
(JSC::Bindings::convertValueToJValue):
* bridge/jni/jsc/jni_utility_private.h: Added. Header for convertValueToJValue and dispatchJNICall.
* platform/android/TemporaryLinkStubs.cpp: Modified. Include jni_utility_private.h for JSC.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51756 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-07 Dirk Schulze <krit@webkit.org>
krit@webkit.org [Mon, 7 Dec 2009 12:04:00 +0000 (12:04 +0000)]
2009-12-07  Dirk Schulze  <krit@webkit.org>

        Not reviewed, adding myself to the reviewers list.

        * Scripts/modules/committers.py:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51755 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-06 Eric Seidel <eric@webkit.org>
eric@webkit.org [Mon, 7 Dec 2009 07:53:48 +0000 (07:53 +0000)]
2009-12-06  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        Add an API for uploading results files to StatusBot
        https://bugs.webkit.org/show_bug.cgi?id=32210

        Add Content-Type: plain/text which was forgotten
        from the previous commit when I landed with land-patches
        instead of land-diff.

        * QueueStatusServer/queue_status.py:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51754 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-06 Eric Seidel <eric@webkit.org>
eric@webkit.org [Mon, 7 Dec 2009 07:45:07 +0000 (07:45 +0000)]
2009-12-06  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        Add an API for uploading results files to StatusBot
        https://bugs.webkit.org/show_bug.cgi?id=32210

        * Scripts/modules/statusbot.py:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51753 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-06 Eric Seidel <eric@webkit.org>
eric@webkit.org [Mon, 7 Dec 2009 07:42:31 +0000 (07:42 +0000)]
2009-12-06  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        Status Server needs a way to handle uploaded results
        https://bugs.webkit.org/show_bug.cgi?id=32209

        * QueueStatusServer/queue_status.py: Add a ShowResults (results/*) command
        * QueueStatusServer/update_status.html: Add file upload.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51752 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-06 Shinichiro Hamaji <hamaji@chromium.org>
hamaji@chromium.org [Mon, 7 Dec 2009 07:06:06 +0000 (07:06 +0000)]
2009-12-06  Shinichiro Hamaji  <hamaji@chromium.org>

        Unreviewed. Revert r51748.

        Bugzilla should show images in git patches
        https://bugs.webkit.org/show_bug.cgi?id=31395

        * PrettyPatch/PrettyPatch.rb:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51751 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-06 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Mon, 7 Dec 2009 06:42:55 +0000 (06:42 +0000)]
2009-12-06  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        [bzt] BuildAttachment should not check the builders
        https://bugs.webkit.org/show_bug.cgi?id=32207

        This is code that got copied here by accident when the class was created.

        * Scripts/modules/commands/download.py:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51750 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-06 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Mon, 7 Dec 2009 06:42:31 +0000 (06:42 +0000)]
2009-12-06  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        [bzt] Make LandingSequence.update aware of ports
        https://bugs.webkit.org/show_bug.cgi?id=32208

        This is required to make build work on the Chromium port because
        Chromium has a custom update-webkit.

        * Scripts/modules/landingsequence.py:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51749 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-06 Shinichiro Hamaji <shinichiro.hamaji@gmail.com>
hamaji@chromium.org [Mon, 7 Dec 2009 06:42:05 +0000 (06:42 +0000)]
2009-12-06  Shinichiro Hamaji  <shinichiro.hamaji@gmail.com>

        Reviewed by David Kilzer.

        Bugzilla should show images in git patches
        https://bugs.webkit.org/show_bug.cgi?id=31395

        Show images in git patches using git-apply.

        * PrettyPatch/PrettyPatch.rb:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51748 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-06 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Mon, 7 Dec 2009 05:20:13 +0000 (05:20 +0000)]
2009-12-06  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Add early warning system commands to bugzilla-tool.

        * Scripts/bugzilla-tool:
        * Scripts/modules/landingsequence.py:
        * Scripts/modules/webkitport.py:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51747 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-06 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Mon, 7 Dec 2009 05:11:12 +0000 (05:11 +0000)]
2009-12-06  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        [bzt] Implement Qt EarlyWarningSystem and Chromium EarlyWarningSystem
        https://bugs.webkit.org/show_bug.cgi?id=32205

        * Scripts/modules/commands/early_warning_system.py: Added.
        * Scripts/modules/commands/queues.py:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51746 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years agoREGRESSION (r51728): update-webkit fails when the current directory is
mitz@apple.com [Mon, 7 Dec 2009 03:27:54 +0000 (03:27 +0000)]
REGRESSION (r51728): update-webkit fails when the current directory is
not inside a Subversion working copy
https://bugs.webkit.org/show_bug.cgi?id=32204

Reviewed by Adele Peterson.

* Scripts/update-webkit: Invoke isSVN() in the correct working
directory.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51745 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-06 Kent Tamura <tkent@chromium.org>
eric@webkit.org [Mon, 7 Dec 2009 02:45:54 +0000 (02:45 +0000)]
2009-12-06  Kent Tamura  <tkent@chromium.org>

        Reviewed by Darin Adler.

        Improve portability and readability of table-percent-height* tests.
        https://bugs.webkit.org/show_bug.cgi?id=31858

        The purpose of these tests is to confirm that an element with
        height:N% inside a table cell has non-zero height. We don't need
        to check concrete pixel sizes of form controls.

        This updates the tests so that they check heights are non-zero and
        75% heights are same as corresponding 100% heights or actually 75%.

        * fast/replaced/table-percent-height-expected.txt:
        * fast/replaced/table-percent-height-text-controls-expected.txt:
        * fast/replaced/table-percent-height-text-controls.html:
        * fast/replaced/table-percent-height.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51744 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-06 Fumitoshi Ukai <ukai@chromium.org>
ukai@chromium.org [Mon, 7 Dec 2009 02:19:56 +0000 (02:19 +0000)]
2009-12-06  Fumitoshi Ukai  <ukai@chromium.org>

        Reviewed by Alexey Proskuryakov.

        Add tests for cross-origin WebSocket usage
        https://bugs.webkit.org/show_bug.cgi?id=32055

        * websocket/tests/cross-origin-expected.txt: Added.
        * websocket/tests/cross-origin.html: Added.
        * websocket/tests/fixed-origin_wsh.py: Added.
        * websocket/tests/handshake-fail-by-cross-origin-expected.txt: Added.
        * websocket/tests/handshake-fail-by-cross-origin.html: Added.
        * websocket/tests/origin-test_wsh.py: Added.
        * websocket/tests/script-tests/cross-origin.js: Added.
        * websocket/tests/script-tests/frame-length-longer-than-buffer.js:
        * websocket/tests/script-tests/frame-length-skip.js:
        * websocket/tests/script-tests/handshake-error.js:
        * websocket/tests/script-tests/handshake-fail-by-cross-origin.js: Added.
        * websocket/tests/script-tests/simple.js:
        * websocket/tests/simple-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51743 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-06 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Mon, 7 Dec 2009 01:09:32 +0000 (01:09 +0000)]
2009-12-06  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        [bzt] Rename AbstractTryQueue to AbstractReviewQueue
        https://bugs.webkit.org/show_bug.cgi?id=32202

        * Scripts/modules/commands/queues.py:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51742 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-06 Maxime Simon <simon.maxime@gmail.com>
eric@webkit.org [Sun, 6 Dec 2009 17:40:06 +0000 (17:40 +0000)]
2009-12-06  Maxime Simon  <simon.maxime@gmail.com>

        Reviewed by Adam Barth.

        Build fix. Add in FrameLoaderClientHaiku the declaration of three functions introduced in r51644.

        * WebCoreSupport/FrameLoaderClientHaiku.cpp:
        (WebCore::FrameLoaderClientHaiku::dispatchDidPushStateWithinPage):
        (WebCore::FrameLoaderClientHaiku::dispatchDidReplaceStateWithinPage):
        (WebCore::FrameLoaderClientHaiku::dispatchDidPopStateWithinPage):
        * WebCoreSupport/FrameLoaderClientHaiku.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51741 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years agotexImage2D pixel junk for transparency
oliver@apple.com [Sun, 6 Dec 2009 11:37:14 +0000 (11:37 +0000)]
texImage2D pixel junk for transparency
https://bugs.webkit.org/show_bug.cgi?id=32188

Reviewed by Maciej Stachowiak

Use kCGBlendModeCopy when drawing an image to the intermediate context
used to create a GL texture.

No test as we don't currently have any mechanism to retrieve pixel data
from the webgl context.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51740 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years agoNot reviewed, build fix.
mjs@apple.com [Sun, 6 Dec 2009 10:30:32 +0000 (10:30 +0000)]
Not reviewed, build fix.

Actually tested 64-bit *and* 32-bit build this time.

* jit/JITOpcodes.cpp:
(JSC::JIT::emit_op_loop_if_false):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51739 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years agoNot reviewed, build fix.
mjs@apple.com [Sun, 6 Dec 2009 10:09:55 +0000 (10:09 +0000)]
Not reviewed, build fix.

Really really fix 64-bit build for prior patch (actually tested this time).

* jit/JITOpcodes.cpp:
(JSC::JIT::emit_op_loop_if_false):
(JSC::JIT::emitSlow_op_loop_if_false):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51738 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years agoNot reviewed, build fix.
mjs@apple.com [Sun, 6 Dec 2009 09:57:05 +0000 (09:57 +0000)]
Not reviewed, build fix.

Really fix 64-bit build for prior patch.

* jit/JITArithmetic.cpp:
(JSC::JIT::emitSlow_op_jless):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51737 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years agoNot reviewed, build fix.
mjs@apple.com [Sun, 6 Dec 2009 09:51:12 +0000 (09:51 +0000)]
Not reviewed, build fix.

Fix 64-bit build for prior patch.

* jit/JITOpcodes.cpp:
(JSC::JIT::emitSlow_op_loop_if_less):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51736 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-05 Maciej Stachowiak <mjs@apple.com>
mjs@apple.com [Sun, 6 Dec 2009 09:42:03 +0000 (09:42 +0000)]
2009-12-05  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Oliver Hunt.

        conway benchmark spends half it's time in op_less (jump fusion fails)
        https://bugs.webkit.org/show_bug.cgi?id=32190

        <1% speedup on SunSpider and V8
        2x speedup on "conway" benchmark

        Two optimizations:
        1) Improve codegen for logical operators &&, || and ! in a condition context

        When generating code for combinations of &&, || and !, in a
        condition context (i.e. in an if statement or loop condition), we
        used to produce a value, and then separately jump based on its
        truthiness. Now we pass the false and true targets in, and let the
        logical operators generate jumps directly. This helps in four
        ways:

        a) Individual clauses of a short-circuit logical operator can now
        jump directly to the then or else clause of an if statement (or to
        the top or exit of a loop) instead of jumping to a jump.

        b) It used to be that jump fusion with the condition of the first
        clause of a logical operator was inhibited, because the register
        was ref'd to be used later, in the actual condition jump; this no
        longer happens since a jump straight to the final target is
        generated directly.

        c) It used to be that jump fusion with the condition of the second
        clause of a logical operator was inhibited, because there was a
        jump target right after the second clause and before the actual
        condition jump. But now it's no longer necessary for the first
        clause to jump there so jump fusion is not blocked.

        d) We avoid generating excess mov statements in some cases.

        As a concrete example this source:

        if (!((x < q && y < q) || (t < q && z < q))) {
            // ...
        }

        Used to generate this bytecode:

        [  34] less              r1, r-15, r-19
        [  38] jfalse            r1, 7(->45)
        [  41] less              r1, r-16, r-19
        [  45] jtrue             r1, 14(->59)
        [  48] less              r1, r-17, r-19
        [  52] jfalse            r1, 7(->59)
        [  55] less              r1, r-18, r-19
        [  59] jtrue             r1, 17(->76)

        And now generates this bytecode (also taking advantage of the second optimization below):

        [  34] jnless            r-15, r-19, 8(->42)
        [  38] jless             r-16, r-19, 26(->64)
        [  42] jnless            r-17, r-19, 8(->50)
        [  46] jless             r-18, r-19, 18(->64)

        Note the jump fusion and the fact that there's less jump
        indirection - three of the four jumps go straight to the target
        clause instead of indirecting through another jump.

        2) Implement jless opcode to take advantage of the above, since we'll now often generate
        a less followed by a jtrue where fusion is not forbidden.

        * parser/Nodes.h:
        (JSC::ExpressionNode::hasConditionContextCodegen): Helper function to determine
        whether a node supports special conditional codegen. Return false as this is the default.
        (JSC::ExpressionNode::emitBytecodeInConditionContext): Assert not reached - only really
        defined for nodes that do have conditional codegen.
        (JSC::UnaryOpNode::expr): Add const version.
        (JSC::LogicalNotNode::hasConditionContextCodegen): Returne true only if subexpression
        supports it.
        (JSC::LogicalOpNode::hasConditionContextCodegen): Return true.
        * parser/Nodes.cpp:
        (JSC::LogicalNotNode::emitBytecodeInConditionContext): Implemented - just swap
        the true and false targets for the child node.
        (JSC::LogicalOpNode::emitBytecodeInConditionContext): Implemented - handle jumps
        directly, improving codegen quality. Also handles further nested conditional codegen.
        (JSC::ConditionalNode::emitBytecode): Use condition context codegen when available.
        (JSC::IfNode::emitBytecode): ditto
        (JSC::IfElseNode::emitBytecode): ditto
        (JSC::DoWhileNode::emitBytecode): ditto
        (JSC::WhileNode::emitBytecode): ditto
        (JSC::ForNode::emitBytecode): ditto

        * bytecode/Opcode.h:
        - Added loop_if_false opcode - needed now that falsey jumps can be backwards.
        - Added jless opcode to take advantage of new fusion opportunities.
        * bytecode/CodeBlock.cpp:
        (JSC::CodeBlock::dump): Handle above.
        * bytecompiler/BytecodeGenerator.cpp:
        (JSC::BytecodeGenerator::emitJumpIfTrue): Add peephole for less + jtrue ==> jless.
        (JSC::BytecodeGenerator::emitJumpIfFalse): Add handling of backwrds falsey jumps.
        * bytecompiler/BytecodeGenerator.h:
        (JSC::BytecodeGenerator::emitNodeInConditionContext): Wrapper to handle tracking of
        overly deep expressions etc.
        * interpreter/Interpreter.cpp:
        (JSC::Interpreter::privateExecute): Implement the two new opcodes (loop_if_false, jless).
        * jit/JIT.cpp:
        (JSC::JIT::privateCompileMainPass): Implement JIT support for the two new opcodes.
        (JSC::JIT::privateCompileSlowCases): ditto
        * jit/JIT.h:
        * jit/JITArithmetic.cpp:
        (JSC::JIT::emit_op_jless):
        (JSC::JIT::emitSlow_op_jless): ditto
        (JSC::JIT::emitBinaryDoubleOp): ditto
        * jit/JITOpcodes.cpp:
        (JSC::JIT::emitSlow_op_loop_if_less): ditto
        (JSC::JIT::emit_op_loop_if_false): ditto
        (JSC::JIT::emitSlow_op_loop_if_false): ditto
        * jit/JITStubs.cpp:
        * jit/JITStubs.h:
        (JSC::):
2009-12-05  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Oliver Hunt.

        conway benchmark spends half it's time in op_less (jump fusion fails)
        https://bugs.webkit.org/show_bug.cgi?id=32190

        * fast/js/codegen-loops-logical-nodes-expected.txt:
        * fast/js/script-tests/codegen-loops-logical-nodes.js: Update to test some newly
        sensitive cases of codegen that were not already covered.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51735 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years agoWebCore
kov@webkit.org [Sun, 6 Dec 2009 01:50:28 +0000 (01:50 +0000)]
WebCore

2009-12-03  Philippe Normand  <pnormand@igalia.com>

        Reviewed by Gustavo Noronha.

        Advertize audio/ogg correctly and refactored mime-type cache
        building.

        [GTK] Recognize oga as audio/ogg
        https://bugs.webkit.org/show_bug.cgi?id=31990

        Test: media/media-can-play-ogg.html

        * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
        (WebCore::mimeTypeCache):

LayoutTests

2009-12-05  Philippe Normand  <pnormand@igalia.com>

        Reviewed by Gustavo Noronha.

        New test for video.canPlayType and ogg containers.

        [GTK] Recognize oga as audio/ogg
        https://bugs.webkit.org/show_bug.cgi?id=31990

        * media/media-can-play-ogg-expected.txt: Added.
        * media/media-can-play-ogg.html: Added.
        * platform/mac-leopard/Skipped:
        * platform/mac-snowleopard/Skipped:
        * platform/mac-tiger/Skipped:
        * platform/mac/Skipped:
        * platform/qt-mac/Skipped:
        * platform/qt-win/Skipped:
        * platform/qt/Skipped:
        * platform/win/Skipped:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51734 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-05 Chris Jerdonek <chris.jerdonek@gmail.com>
eric@webkit.org [Sun, 6 Dec 2009 00:30:28 +0000 (00:30 +0000)]
2009-12-05  Chris Jerdonek  <chris.jerdonek@gmail.com>

        Reviewed by Darin Adler.

        Refactored web site documentation so that advice to add
        WebKitTools/Scripts to your shell path does not appear
        on multiple pages.

        https://bugs.webkit.org/show_bug.cgi?id=32112

        * building/build.html:
        * building/checkout.html:
        * building/run.html:
        * coding/coding-style.html:
        * coding/contributing.html:
        * coding/scripts.html: Added.
        * quality/testing.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51733 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago Reviewed by Eric Seidel.
ap@apple.com [Sat, 5 Dec 2009 23:59:24 +0000 (23:59 +0000)]
    Reviewed by Eric Seidel.

        https://bugs.webkit.org/show_bug.cgi?id=32175
        REGRESSION: websocket/tests/url-parsing.html is crashing on Leopard Bot

        * platform/network/cf/SocketStreamHandleCFNet.cpp:
        (WebCore::SocketStreamHandle::readStreamCallback): Call platformClose() to unschedule both
        streams, guaranteeing that there will be no callbacks after SocketStreamHandle is destroyed.
        (WebCore::SocketStreamHandle::writeStreamCallback): Edited a comment a bit.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51732 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years agoRubber-stamped by Mark Rowe.
mitz@apple.com [Sat, 5 Dec 2009 23:44:29 +0000 (23:44 +0000)]
Rubber-stamped by Mark Rowe.

Disabled a test because it puts the WebView into compositing mode,
which remains in effect for all subsequent repaint tests, causing them
to fail because DumpRenderTree always forces a full repaint when
generating the image of a WebView that is in compositing mode.

* fast/repaint/block-selection-gap-in-composited-layer.html: Removed.
* fast/repaint/block-selection-gap-in-composited-layer.html.disabled: Copied from LayoutTests/fast/repaint/block-selection-gap-in-composited-layer.html.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51731 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-05 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Sat, 5 Dec 2009 21:55:12 +0000 (21:55 +0000)]
2009-12-05  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        [bzt] Implement ChromiumPort
        https://bugs.webkit.org/show_bug.cgi?id=32182

        * Scripts/modules/webkitport.py:
        * Scripts/modules/webkitport_unittest.py:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51730 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-05 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Sat, 5 Dec 2009 21:54:39 +0000 (21:54 +0000)]
2009-12-05  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Move update-webkit into BuildSteps
        https://bugs.webkit.org/show_bug.cgi?id=32181

        We need to move update-webkit out of SCM.py because SCM isn't supposed to know
        that WebKit exists.  The proper place for the knowledge of the existence of
        update-webkit is in WebKitPort because some ports have specialized update
        scripts (analogous to build-webkit).

        * Scripts/modules/buildsteps.py:
        * Scripts/modules/commands/download.py:
        * Scripts/modules/landingsequence.py:
        * Scripts/modules/scm.py:
        * Scripts/modules/webkitport.py:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51729 268f45cc-cd09-0410-ab3c-d52691b4dbfc

10 years ago2009-12-05 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Sat, 5 Dec 2009 21:54:05 +0000 (21:54 +0000)]
2009-12-05  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        update-webkit should call git svn rebase and resolve-ChangeLogs -f
        https://bugs.webkit.org/show_bug.cgi?id=27162

        Teach update-webkit about Git.  I didn't add the call to
        resolve-ChangeLogs -f because sometimes that script goes bananas.  We
        can iterate from here, however.

        * Scripts/update-webkit:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@51728 268f45cc-cd09-0410-ab3c-d52691b4dbfc