2015-08-05 Chris Dumez Crash when removing children of a MathMLSelectElement https://bugs.webkit.org/show_bug.cgi?id=147704 Reviewed by Ryosuke Niwa. Add layout test that reproduces the crash under guardmalloc. * mathml/maction-removeChild-expected.txt: Added. * mathml/maction-removeChild.html: Added. 2015-07-28 Simon Fraser Animations sometimes fail to start https://bugs.webkit.org/show_bug.cgi?id=147394 rdar://problem/21852603 Reviewed by Dean Jackson. Test that starts an accelerated and non-accelerated animation, then removes the node for the accelerated one. * animations/remove-syncing-animation-expected.txt: Added. * animations/remove-syncing-animation.html: Added. 2015-07-28 Michael Catanzaro [Freetype] Always allow font matching for strong aliases https://bugs.webkit.org/show_bug.cgi?id=147057 Reviewed by Martin Robinson. * platform/gtk/fonts/font-family-fallback-ignores-weak-aliases-expected.html: Added. * platform/gtk/fonts/font-family-fallback-ignores-weak-aliases.html: Added. * platform/gtk/fonts/font-family-fallback-respects-strong-aliases-expected.html: Added. * platform/gtk/fonts/font-family-fallback-respects-strong-aliases.html: Added. 2015-07-28 Said Abou-Hallawa Crash happens when calling removeEventListener for an SVG element which has an instance inside a element of shadow tree https://bugs.webkit.org/show_bug.cgi?id=147290 Reviewed by Daniel Bates. Make sure we do not crash when when calling removeEventListener() for an element which is cloned under a disallowed parent inside the shadow tree of another element. * svg/custom/remove-event-listener-shadow-disallowed-element-expected.txt: Added. * svg/custom/remove-event-listener-shadow-disallowed-element.svg: Added. 2015-07-27 David Hyatt ASSERTION FAILED: !currBox->needsLayout() loading bing maps (and apple.com/music and nytimes) https://bugs.webkit.org/show_bug.cgi?id=93891 Reviewed by Simon Fraser. * fast/dynamic/position-fixed-to-absolute-with-positioned-child-crash-expected.txt: Added. * fast/dynamic/position-fixed-to-absolute-with-positioned-child-crash.html: Added. 2015-07-22 Jinyoung Hur [WinCairo] SVG path not rendered with all-zero dasharray https://bugs.webkit.org/show_bug.cgi?id=146997 Reviewed by Martin Robinson. Canvas 2D context and SVG stroke tests with all-zero dash array are added. * fast/canvas/canvas-lineDash-expected.txt: * fast/canvas/script-tests/canvas-lineDash.js: * svg/custom/zero-dasharray.html: Added * svg/custom/zero-dasharray-expected.html: Added 2015-07-22 Mark Dittmer New test: Object.create(window).location will trigger a crash when toJSDOMWindow() returns NULL on an object that have the JS DOM Window in its prototype chain. https://bugs.webkit.org/show_bug.cgi?id=146785 Reviewed by Mark Lam. * js/property-of-window-as-prototype-expected.txt: * js/property-of-window-as-prototype.html: 2015-07-21 Benjamin Poulain StyleSheetContents::wrapperInsertRule() can create rules that overflow RuleData's selector index https://bugs.webkit.org/show_bug.cgi?id=147144 Reviewed by Alex Christensen. This bug was affecting two parts of WebKit: -In CSSOM, StyleSheet.insertRule() could create bogus rules. The new test verifies that the call fails instead of creating undefined behaviors. -In ContentExtensions, large selectors are now working correctly. The tests cover the case of a default stylesheet and an dynamic stylesheet. * fast/css/insert-rule-overflow-rule-data-expected.txt: Added. * fast/css/insert-rule-overflow-rule-data.html: Added. * http/tests/contentextensions/css-display-none-overflows-rule-data-1-expected.txt: Added. * http/tests/contentextensions/css-display-none-overflows-rule-data-1.html: Added. * http/tests/contentextensions/css-display-none-overflows-rule-data-1.html.json: Added. * http/tests/contentextensions/css-display-none-overflows-rule-data-2-expected.txt: Added. * http/tests/contentextensions/css-display-none-overflows-rule-data-2.html: Added. * http/tests/contentextensions/css-display-none-overflows-rule-data-2.html.json: Added. * http/tests/contentextensions/css-display-none-overflows-rule-data-3-expected.txt: Added. * http/tests/contentextensions/css-display-none-overflows-rule-data-3.html: Added. * http/tests/contentextensions/css-display-none-overflows-rule-data-3.html.json: Added. * http/tests/contentextensions/css-display-none-overflows-rule-data-4-expected.txt: Added. * http/tests/contentextensions/css-display-none-overflows-rule-data-4.html: Added. * http/tests/contentextensions/css-display-none-overflows-rule-data-4.html.json: Added. * http/tests/contentextensions/css-display-none-overflows-rule-data-5-expected.txt: Added. * http/tests/contentextensions/css-display-none-overflows-rule-data-5.html: Added. * http/tests/contentextensions/css-display-none-overflows-rule-data-5.html.json: Added. * http/tests/contentextensions/css-display-none-overflows-rule-data-6-expected.txt: Added. * http/tests/contentextensions/css-display-none-overflows-rule-data-6.html: Added. * http/tests/contentextensions/css-display-none-overflows-rule-data-6.html.json: Added. 2015-07-21 Simon Fraser Safari mis-applies "animation-fill-mode: forwards" when using fractional iteration count https://bugs.webkit.org/show_bug.cgi?id=146996 Reviewed by Dean Jackson. Progressions, improved tests. * animations/animation-direction-reverse-fill-mode-expected.txt: New results; this is a progression. * animations/animation-direction-reverse-fill-mode.html: Use a shorter animation. Fixed results. * animations/fill-mode-iteration-count-non-integer-expected.txt: * animations/fill-mode-iteration-count-non-integer.html: Use iteration counts that are not multiplies of 0.5, so the test can differentiation between forward and backwards states. Add a non-linear timing function to check that fill-forwards consults the timing functions. Don't print exact succeeding results because they may have floating point values. * animations/fill-mode-reverse-expected.txt: New results; this is a progression. * animations/fill-mode-reverse.html: Fixed results, use gray. 2015-07-21 Sungmann Cho Make PluginProxy::handleMouseEvent() asynchronous. https://bugs.webkit.org/show_bug.cgi?id=146142 Reviewed by Anders Carlsson. PluginProxy::handleMouseEvent() forwards the generated mouse event to PluginControllerProxy using a synchronous message, but the recipient always reply immediately with the same value("true") even before handling the received message. So I think PluginProxy::handleMouseEvent() is perfectly OK to process its messages asynchronously. platform/mac-wk2/plugins/mouse-events-expected.txt was introduced by webkit.org/b/116665 to avoid flakey tests, but from now on we can share the common expectations. * platform/mac-wk2/plugins/mouse-events-expected.txt: Removed. 2015-07-19 Jordan Harband new Date(NaN).toJSON() must return null instead of throwing a TypeError https://bugs.webkit.org/show_bug.cgi?id=141115 Reviewed by Yusuke Suzuki. * js/dom/JSON-stringify-expected.txt: * js/resources/JSON-stringify.js: 2015-07-17 Zalan Bujtas REGRESSION (r169105): Do not assign a renderer to multiple selection subtrees. https://bugs.webkit.org/show_bug.cgi?id=147038 rdar://problem/21819351 Reviewed by David Kilzer. A renderer should never be assigned to multiple selection subtrees. (Currently RenderObject maintains the last selection state.) RenderView::applySubtreeSelection() loops from the start to the end of the selection to find renderers that are inside the selection. However, in case of regions (when multiple selection roots are present) traversing the renderer tree by calling RenderObject::nextInPreOrder() could end up going across selection roots. This patch ensures that we assign renderers to a specific selection only when the current selection root and the renderer's selection root match. * fast/regions/crash-when-renderer-is-in-multiple-selection-subtrees2-expected.txt: Added. * fast/regions/crash-when-renderer-is-in-multiple-selection-subtrees2.html: Added. 2015-07-17 Zalan Bujtas (display: block)input range's thumb disappears when moved. https://bugs.webkit.org/show_bug.cgi?id=146896 Reviewed by Simon Fraser. Since the thumb is positioned after the layout for the input (shadow) subtree is finished, the repaint rects issued during the layout will not cover the re-positioned thumb. We need to issue a repaint soon after the thumb is re-positioned. * fast/repaint/block-inputrange-repaint-expected.txt: Added. * fast/repaint/block-inputrange-repaint.html: Added. 2015-07-17 Myles C. Maxfield style.fontFamily accessor crashes on unstyled node created from DOMParser().parseFromString() https://bugs.webkit.org/show_bug.cgi?id=147026 Reviewed by Andreas Kling. * fast/text/crash-font-family-parsed-expected.txt: Added. * fast/text/crash-font-family-parsed.html: Added. 2015-07-16 Simon Fraser Fix disappearing position:fixed elements in fixed layout mode https://bugs.webkit.org/show_bug.cgi?id=147019 Reviewed by Tim Horton. Test with four fixed elements in fixed layout mode. * compositing/fixed-with-fixed-layout-expected.txt: Added. * compositing/fixed-with-fixed-layout.html: Added. 2015-07-09 Daniel Bates Fetching Content Security Policy report URL should respect same origin policy https://bugs.webkit.org/show_bug.cgi?id=146754 Reviewed by Brady Eidson. Inspired by Blink r149791 (by Mike West ): Added additional tests for private browsing mode. * http/tests/cookies/resources/setCookies.cgi: * http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-expected.txt: Added. * http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-enabled-expected.txt: Added. * http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-enabled.html: Added. * http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-toggled-expected.txt: Added. * http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies-when-private-browsing-toggled.html: Added. * http/tests/security/contentSecurityPolicy/report-cross-origin-no-cookies.html: Added. * http/tests/security/contentSecurityPolicy/report-same-origin-no-cookies-when-private-browsing-toggled-expected.txt: Added. * http/tests/security/contentSecurityPolicy/report-same-origin-no-cookies-when-private-browsing-toggled.html: Added. * http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies-expected.txt: Added. * http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies-when-private-browsing-enabled-expected.txt: Added. * http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies-when-private-browsing-enabled.html: Added. * http/tests/security/contentSecurityPolicy/report-same-origin-with-cookies.html: Added. * http/tests/security/contentSecurityPolicy/resources/save-report.php: * platform/wk2/TestExpectations: Skip private browsing mode tests in WebKit2 until we fix . 2015-07-09 Michael Saboff REGRESSION (r180248): Repro Crash: com.apple.WebKit.WebContent at com.apple.JavaScriptCore: JSC::createRangeError + 20 https://bugs.webkit.org/show_bug.cgi?id=146767 Reviewed by Geoffrey Garen. New test that generates a call to a function that involves creating a huge object literal that exceeds the available stack space. * http/tests/misc/large-js-program-expected.txt: Added. * http/tests/misc/large-js-program.php: Added. 2015-07-08 Said Abou-Hallawa Crash when appending an SVG element dynamically which has animated SVG element https://bugs.webkit.org/show_bug.cgi?id=146690 Reviewed by Dean Jackson. When adding dynamically a new element which references an animated SVG path after the animation starts, ensure that WebKit is not crashing. * svg/animations/insert-animate-use-path-while-animation-expected.txt: Added. * svg/animations/insert-animate-use-path-while-animation.svg: Added. 2015-07-07 Zalan Bujtas Crash when parent iframe is set to display none and the child frame is mutated the same time. https://bugs.webkit.org/show_bug.cgi?id=146699 rdar://problem/16207881 Reviewed by Andreas Kling. When the parent iframe is set to display: none, we destroy the associated renderer (RenderIFrame). However if the child frame is mutated the same time, during layout we try to access this RenderIFrame to check whether it needs frame flattening. This patch checks whether the parent render widget is still valid. * fast/frames/crash-display-none-iframe-during-onbeforeload-expected.txt: Added. * fast/frames/crash-display-none-iframe-during-onbeforeload.html: Added. * fast/frames/resources/displaynone-this-during-object-beforeload.html: Added. 2015-07-07 Andreas Kling REGRESSION(r183706): HTMLImageElement sometimes fails to register as document named item. Reviewed by Antti Koivisto. Add a test that would assert when removing a named HTMLImageElement from the DOM after having failed to register it as a document named item. * fast/dom/HTMLImageElement/remove-img-with-name-from-document-crash-expected.txt: Added. * fast/dom/HTMLImageElement/remove-img-with-name-from-document-crash.html: Added. 2015-07-06 Andreas Kling Crash when setting text direction via MakeTextWritingDirection* editing commands. Reviewed by Ryosuke Niwa. Add a test that covers some very simple MakeTextWritingDirection* command usage. * editing/style/change-text-direction-crash-expected.txt: Added. * editing/style/change-text-direction-crash.html: Added. 2015-07-03 Chris Dumez REGRESSION (r178097): HTMLSelectElement.add(option, undefined) prepends option to the list of options; should append to the end of the list of options https://bugs.webkit.org/show_bug.cgi?id=146566 Reviewed by Ryosuke Niwa. * fast/dom/HTMLSelectElement/add-expected.txt: * fast/dom/HTMLSelectElement/add.html: * fast/dom/HTMLSelectElement/options-collection-add-expected.txt: * fast/dom/HTMLSelectElement/options-collection-add.html: Update tests so that calling add(X, undefined) is expected to append X, not prepend it. * http/tests/websocket/tests/hybi/undefined-protocol-expected.txt: Added. * http/tests/websocket/tests/hybi/undefined-protocol.html: Added. Add test coverage for "new WebSocket(url, undefined)" as WebSocket is using constructor overloads with optional parameters. Previously, calling new WebSocket(url, undefined) was equivalent to calling new WebSocket(url, "undefined") even though it is supposed to be equivalent to calling new WebSocket(url). 2015-07-03 Daniel Bates REGRESSION (r178097): JavaScript TypeError after clicking on compose button in Yahoo Mail https://bugs.webkit.org/show_bug.cgi?id=146515 Reviewed by Chris Dumez. Add new sub-tests to LayoutTests/fast/dom/HTMLSelectElement/{add, options-collection-add}.html, simplify existing test code, share common code, and update expected results. Additionally, update results for tests in LayoutTests/fast/canvas now that we ignore extra arguments passed to a Web IDL overloaded function whose implementation is generated by the bindings generator script. * fast/canvas/canvas-overloads-drawImage-expected.txt: * fast/canvas/canvas-overloads-setFillColor-expected.txt: * fast/canvas/canvas-overloads-setShadow-expected.txt: * fast/canvas/canvas-overloads-setStrokeColor-expected.txt: * fast/canvas/script-tests/canvas-overloads-drawImage.js: * fast/canvas/script-tests/canvas-overloads-setFillColor.js: * fast/canvas/script-tests/canvas-overloads-setShadow.js: * fast/canvas/script-tests/canvas-overloads-setStrokeColor.js: * fast/dom/HTMLSelectElement/add-expected.txt: * fast/dom/HTMLSelectElement/add.html: * fast/dom/HTMLSelectElement/options-collection-add-expected.txt: * fast/dom/HTMLSelectElement/options-collection-add.html: * fast/dom/HTMLSelectElement/resources/html-select-and-options-collection-utilities.js: Added. (createSelectElementWithTestData): (deepCopy): (createOption): (createGroup): 2015-06-30 Ryosuke Niwa REGRESSION (r179168): Characters overlap after resizing the font on the copy-pasted Japanese text https://bugs.webkit.org/show_bug.cgi?id=146492 Reviewed by Darin Adler. Added a regression test. Also reverted the bad rebaseline in r179168: http://trac.webkit.org/changeset/179168/trunk/LayoutTests/editing/pasteboard/simplfiying-markup-should-not-strip-content-expected.txt * editing/pasteboard/cjk-line-height-expected.txt: Added. * editing/pasteboard/cjk-line-height.html: Added. * editing/pasteboard/simplfiying-markup-should-not-strip-content-expected.txt: 2015-07-01 Antti Koivisto PNG mask images are loaded with Accept:image/svg+xml https://bugs.webkit.org/show_bug.cgi?id=146509 Reviewed by Simon Fraser. * http/tests/misc/mask-image-accept-expected.html: Added. * http/tests/misc/mask-image-accept.html: Added. 2015-06-30 Zalan Bujtas Frame flattening: Hit-testing an iframe could end up destroying the associated inline tree context. https://bugs.webkit.org/show_bug.cgi?id=146447 rdar://problem/20613501 Reviewed by Simon Fraser. This patch ensures that the render tree associated with the document on which the hit-test is initiated does not get laid out, unless it was directly mutated prior to the hittest. Hit-test requirements: 1. A clean the render tree before hit-testing gets propagated to the renderers. Document::updateLayout() ensures it by calling both updateStyleIfNeeded() and layout() not only on the current tree, but also on the ancestors if needed. 2. No render tree mutation while hit-testing the renderers. When an iframe is being hit-tested, this hit-test could bubble down to the child frame's render view. In order to ensure #1, we call Document::updateLayout() on the current (subframe) document. If updateStyleIfNeeded() mutates the render tree, we mark it dirty for layout(). However frame flattening also marks the parent renderer (RenderIFrame) dirty. While calling layout() to clean the current render tree, we end up laying out the parent tree too. Laying out the parent tree could end up destroying the inline tree context from where the hittest just bubbled down. (InlineFlowBox -> RenderWidget -> RenderView). This patch protects the render tree from such unintentional inline tree mutation during hittesting. After the initial layout we set a layout disallow flag on the frame view to defer subsequent layouts. This patch only changes behavior when frame flattening is enabled, but in future we may always want to enable this. * fast/frames/flattening/hittest-iframe-while-style-changes-crash-expected.txt: Added. * fast/frames/flattening/hittest-iframe-while-style-changes-crash.html: Added. 2015-06-28 Chris Dumez Crash: com.apple.WebKit.WebContent at com.apple.WebCore: WebCore::CachedFrameBase::restore + 333 https://bugs.webkit.org/show_bug.cgi?id=146388 Reviewed by Darin Adler. Add layout test to cover the case where a subframe is currently in provisional load stage when checking if the page if page-cacheable. The test also removes the iframe once loaded in order to cause a crash if the frame were to finish loading while in the page cache. * http/tests/navigation/page-cache-iframe-provisional-load-expected.txt: Added. * http/tests/navigation/page-cache-iframe-provisional-load.html: Added. * http/tests/navigation/resources/page-cache-helper-slow.html: Added. 2015-06-25 Zalan Bujtas Do not send touch events to the slider's thumb when it does not have a renderer. https://bugs.webkit.org/show_bug.cgi?id=146307 rdar://problem/21539399 Reviewed by Simon Fraser. Bail out early if either the touch target or the renderer() is null. * fast/events/touch/input-range-with-thumb-display-none-crash-expected.txt: Added. * fast/events/touch/input-range-with-thumb-display-none-crash.html: Added. 2015-06-22 Zalan Bujtas REGRESSION(r169105) Dangling renderer pointer in SelectionSubtreeRoot::SelectionSubtreeData. https://bugs.webkit.org/show_bug.cgi?id=146116 rdar://problem/20959369 Reviewed by Brent Fulgham. This patch ensures that we don't adjust the selection unless the visual selection still matches this subtree root. When multiple selection roots are present we need to ensure that a RenderObject only shows up in one of them. RenderView::splitSelectionBetweenSubtrees(), as the name implies, splits the selection and sets the selection range (start/end) on each selection root. However, SelectionSubtreeRoot::adjustForVisibleSelection() later recomputes the range based on visible selection and that could end up collecting renderers as selection start/end from another selection subtree. RenderObject's holds the last selection state (RenderObject::setSelectionState). If we set a renderer first as "on selection border" and later "inside" using multiple selection roots, we can't clean up selections properly when this object gets destroyed. One of the roots ends up with a dangling RenderObject pointer. * fast/regions/crash-when-renderer-is-in-multiple-selection-subtrees-expected.txt: Added. * fast/regions/crash-when-renderer-is-in-multiple-selection-subtrees.html: Added. 2015-06-19 Andy Estes Various assertion failures occur when executing script in the midst of DOM insertion https://bugs.webkit.org/show_bug.cgi?id=132482 Reviewed by Darin Adler. Wrote named-map-removed-while-inserting-parent-crash.html by reducing the test case attached to bug 132482. The remaining tests were taken from blink r132482. * fast/dom/element-removed-while-inserting-parent-crash-expected.txt: Added. * fast/dom/element-removed-while-inserting-parent-crash.html: Added. * fast/dom/named-map-removed-while-inserting-parent-crash-expected.txt: Added. * fast/dom/named-map-removed-while-inserting-parent-crash.html: Added. * fast/forms/form-control-removed-while-inserting-parent-crash-expected.txt: Added. * fast/forms/form-control-removed-while-inserting-parent-crash.html: Added. * svg/dom/element-removed-while-inserting-parent-crash-expected.txt: Added. * svg/dom/element-removed-while-inserting-parent-crash.html: Added. 2015-06-17 Simon Fraser REGRESSION (r173283-r173296): Amazon.com front page has no caret in the search field https://bugs.webkit.org/show_bug.cgi?id=146073 rdar://problem/21022203 Reviewed by Tim Horton. Dump layers for composited text inputs and textareas. * compositing/backing/form-controls-backing-expected.txt: Added. * compositing/backing/form-controls-backing.html: Added. 2015-06-15 Zalan Bujtas RootInlineBox::m_lineBreakObj becomes invalid when a child renderer is removed and the line does not get marked dirty. https://bugs.webkit.org/show_bug.cgi?id=145988 rdar://problem/20959137 Reviewed by David Hyatt. This patch ensures that we find the right first inline box so that we can dirty the the appropriate line boxes. With marking the right line boxes dirty, now we can update RootInlineBox::m_lineBreakObj at the next layout. * fast/inline/crash-when-child-renderer-is-removed-and-line-stays-clean-expected.txt: Added. * fast/inline/crash-when-child-renderer-is-removed-and-line-stays-clean.html: Added. 2015-06-11 Zalan Bujtas Do not crash when the descendant frame tree is destroyed during layout. https://bugs.webkit.org/show_bug.cgi?id=144540 rdar://problem/20793184 Reviewed by Andreas Kling. Unskip fast/frames/flattening/crash-remove-iframe-during-object-beforeload.html. * TestExpectations: 2015-06-10 Chris Dumez ASSERT_WITH_SECURITY_IMPLICATION in WebCore::DocumentOrderedMap::getElementById https://bugs.webkit.org/show_bug.cgi?id=145857 Reviewed by Darin Adler. Add layout tests covering different crashes caused by the same bug. * fast/dom/script-getElementById-during-insertion-expected.txt: Added. * fast/dom/script-getElementById-during-insertion.html: Added. Reduction test case for . * fast/dom/script-remove-child-id-map-expected.txt: Added. * fast/dom/script-remove-child-id-map.html: Added. Test imported from Blink r178976. 2015-06-09 Said Abou-Hallawa SVG Fragment is not rendered if it is the css background image of an HTML element https://bugs.webkit.org/show_bug.cgi?id=91790 Reviewed by Darin Adler. * svg/css/svg-resource-fragment-identifier-background-expected.html: Added. * svg/css/svg-resource-fragment-identifier-background.html: Added. Ensure that the SVG fragment is displayed correctly when it's used as a css background image. 2015-06-09 Said Abou-Hallawa feComposite filter does not clip the paint rect to its effect rect when the operator is 'in' or 'atop' https://bugs.webkit.org/show_bug.cgi?id=137856 Reviewed by Darin Adler. * svg/filters/feComposite-background-rect-control-operators-expected.svg: Added. * svg/filters/feComposite-background-rect-control-operators.svg: Added. Ensure the painting rect of the feComposite filter with operator 'in' or 'atop' is clipped to its bounding rectangle 2015-06-07 Darin Adler REGRESSION (r181720): Unnecessary layout triggered any time animated GIF advances to a new frame https://bugs.webkit.org/show_bug.cgi?id=145733 Reviewed by Andreas Kling. * TestExpectations: Expect image failures on the animated GIF tests (the one old one I am fixing and the one new one I am adding) because they don't yet work under DumpRenderTree. * fast/images/animated-gif-no-layout-expected.html: Added. * fast/images/animated-gif-no-layout.html: Added. * fast/images/gif-loop-count-expected.html: Added. This test was worthless as a render tree dump test, and only valuable as a pixel test. And that hid the fact that it was failing under WebKit1. Changing it to a reference test makes it a valuable test again. * fast/images/gif-loop-count-expected.png: Removed. * fast/images/gif-loop-count-expected.txt: Removed. * platform/wk2/TestExpectations: Expect successes on these two tests. 2015-06-05 Chris Dumez Regression(r176212): Broke app switching on iCloud.com https://bugs.webkit.org/show_bug.cgi?id=145708 Reviewed by Simon Fraser. Remove layout tests covering DOM Timer throttling. * fast/canvas/canvas-outside-viewport-timer-throttling-expected.txt: Removed. * fast/canvas/canvas-outside-viewport-timer-throttling.html: Removed. * fast/dom/nested-timer-display-none-element-throttling-expected.txt: Removed. * fast/dom/nested-timer-display-none-element-throttling.html: Removed. * fast/dom/repeating-timer-display-none-element-throttling-expected.txt: Removed. * fast/dom/repeating-timer-display-none-element-throttling.html: Removed. * fast/dom/repeating-timer-element-overflow-hidden-throttling-expected.txt: Removed. * fast/dom/repeating-timer-element-overflow-hidden-throttling.html: Removed. * fast/dom/resources/timer-throttling-iframe.html: Removed. * fast/dom/timer-throttle-on-scrolling-iframe-away-expected.txt: Removed. * fast/dom/timer-throttle-on-scrolling-iframe-away.html: Removed. * fast/dom/timer-unthrottle-on-layout-expected.txt: Removed. * fast/dom/timer-unthrottle-on-layout.html: Removed. * fast/dom/timer-unthrottle-on-scroll-expected.txt: Removed. * fast/dom/timer-unthrottle-on-scroll.html: Removed. 2015-06-05 David Hyatt Underlines too close in vertical Chinese text. https://bugs.webkit.org/show_bug.cgi?id=145651 Reviewed by Simon Fraser. * fast/text/decorations-vertical-underline-expected.html: Added. * fast/text/decorations-vertical-underline.html: Added. 2015-06-03 Zalan Bujtas Subpixel rendering: Composited layer with subpixel gap does not get painted properly when its position changes. https://bugs.webkit.org/show_bug.cgi?id=145587 Reviewed by Simon Fraser. The composited layer always snaps to an enclosing device pixel (floors) while the renderer rounds. At certain positions (for example 0.5px on a 1x display), a gap is formed between the layer(0px) and its renderer(1px). In such cases, when the the renderer moves to a position (1.1px) where the gap is closed, we need to issue repaint on the layer in order to get the renderering right. * compositing/child-layer-with-subpixel-gap-needs-repaint-when-parent-moves-expected.html: Added. * compositing/child-layer-with-subpixel-gap-needs-repaint-when-parent-moves.html: Added. 2015-05-30 Zalan Bujtas REGRESSION (179771): zooming on facebook images covers image https://bugs.webkit.org/show_bug.cgi?id=145485 Reviewed by Simon Fraser. Scaling an infinite rect should always produce an infinite rect. (Based on Simon Fraser's patch) * compositing/layer-creation/zoomed-clip-intersection-expected.txt: Added. * compositing/layer-creation/zoomed-clip-intersection.html: Added. 2015-05-29 Zalan Bujtas Text disappears shortly after page load on Nexus 7 site. https://bugs.webkit.org/show_bug.cgi?id=145467 rdar://problem/18327239 Reviewed by Simon Fraser. This patch ensures that overlap testing for composited layers works properly when the sibling layer gets composited through its child. When a layer gets composited through its child content, the recursive overlap testing should build up the overlapmap stack so that sibling content is intersected both against the child and its parent bounds. * compositing/sibling-layer-does-not-get-composited-overflow-hidden-case-expected.html: Added. * compositing/sibling-layer-does-not-get-composited-overflow-hidden-case.html: Added. * compositing/sibling-layer-does-not-get-composited-transform-case-expected.html: Added. * compositing/sibling-layer-does-not-get-composited-transform-case.html: Added. 2015-06-08 Chris Dumez WebContent crash in WebCore::Page::sessionID() const + 0 (Page.cpp:1660) https://bugs.webkit.org/show_bug.cgi?id=145748 Reviewed by Brady Eidson. * http/tests/navigation/image-load-in-pagehide-handler-expected.txt: Added. * http/tests/navigation/image-load-in-pagehide-handler.html: Added. * http/tests/navigation/resources/image-load-in-pagehide-handler-2.html: Added. Add layout test to make sure that ping loads in 'pagehide' handlers are still going through after this change. * http/tests/navigation/resources/frame-do-load.html: Added. * http/tests/navigation/resources/frame-pagehide-starts-load-in-subframe.html: Added. * http/tests/navigation/resources/frame-pagehide-starts-load.html: Added. * http/tests/navigation/subframe-pagehide-handler-starts-load-expected.txt: Added. * http/tests/navigation/subframe-pagehide-handler-starts-load.html: Added. * http/tests/navigation/subframe-pagehide-handler-starts-load2-expected.txt: Added. * http/tests/navigation/subframe-pagehide-handler-starts-load2.html: Added. Add layout tests to make sure we don't crash if a frame starts an XHR load from the 'pagehide' event handler. One of the tests covers the case where a frame's pagehide handler starts a load in a subframe as this case is requires a bit more handling. 2015-05-28 Zalan Bujtas Subpixel rendering: Pixel crack in text selection of simple text in