2017-08-09 Jason Marcell Cherry-pick r220456. rdar://problem/33810950 2017-08-09 Andy Estes [QuickLook] Use case-insensitive comparison of preview MIME types https://bugs.webkit.org/show_bug.cgi?id=175350 Reviewed by Brady Eidson. * platform/ios-11/quicklook/excel-macro-enabled-expected.txt: Added. * quicklook/excel-macro-enabled-expected.txt: Added. * quicklook/excel-macro-enabled.html: Added. * quicklook/resources/excel-macro-enabled.xlsm: Added. 2017-08-09 Jason Marcell Cherry-pick r220289. rdar://problem/33810941 2017-08-04 Said Abou-Hallawa RenderImageResourceStyleImage::image() should return the nullImage() if the image is not available https://bugs.webkit.org/show_bug.cgi?id=174874 Reviewed by Simon Fraser. * fast/images/image-element-image-content-data-expected.txt: Added. * fast/images/image-element-image-content-data.html: Added. 2017-08-07 Jason Marcell Cherry-pick r220185. rdar://problem/33713534 2017-08-02 Chris Dumez NetworkResourceLoader::setDefersLoading() may cause start() to be called multiple times https://bugs.webkit.org/show_bug.cgi?id=175109 Reviewed by Brady Eidson. Extend test coverage to cover cacheable redirects to a resource that needs revalidation, similarly to the case in the radar. * http/tests/cache/disk-cache/disk-cache-redirect-expected.txt: * http/tests/cache/disk-cache/disk-cache-redirect.html: 2017-08-07 Jason Marcell Cherry-pick r220163. rdar://problem/33711032 2017-08-02 Andy Estes REGRESSION (r207155): Unable to switch sheets when previewing Numbers '09 spreadsheets https://bugs.webkit.org/show_bug.cgi?id=175098 Reviewed by Daniel Bates. * quicklook/multi-sheet-numbers-09-expected.txt: Added. * quicklook/multi-sheet-numbers-09.html: Added. * quicklook/resources/multi-sheet-numbers-09.numbers: Added. 2017-08-02 Jason Marcell Cherry-pick r220112. rdar://problem/33692164 2017-08-01 Zalan Bujtas REGRESSION (r217197): New Yorker website hangs for a long time on load, lots of blank tiles https://bugs.webkit.org/show_bug.cgi?id=175009 Reviewed by Simon Fraser. * fast/frames/flattening/media-query-growing-content-expected.txt: Added. * fast/frames/flattening/media-query-growing-content.html: Added. * fast/frames/flattening/resources/media-query-min-height-with-flattening.html: Added. 2017-08-02 Jason Marcell Cherry-pick r220035. rdar://problem/33692157 2017-07-28 Matt Rajca Don't add autoplay restrictions to media elements created in response to user gestures. https://bugs.webkit.org/show_bug.cgi?id=174947 Reviewed by Eric Carlson. Skip the test on iOS because "runWithKeyDown" does not work there. Jer: "Turns out the problem with iOS is that the WKTR EventSender is basically unwritten. It doesn't support sending mouse, key, or touch events, so our "do this during a user gesture" helper in video-test.js doesn't work." * media/video-create-with-user-gesture-expected.txt: Added. * media/video-create-with-user-gesture.html: Added. * platform/ios/TestExpectations: 2017-08-02 Jason Marcell Cherry-pick r220112. rdar://problem/33687415 2017-08-01 Zalan Bujtas REGRESSION (r217197): New Yorker website hangs for a long time on load, lots of blank tiles https://bugs.webkit.org/show_bug.cgi?id=175009 Reviewed by Simon Fraser. * fast/frames/flattening/media-query-growing-content-expected.txt: Added. * fast/frames/flattening/media-query-growing-content.html: Added. * fast/frames/flattening/resources/media-query-min-height-with-flattening.html: Added. 2017-08-02 Jason Marcell Cherry-pick r220035. rdar://problem/33687398 2017-07-28 Matt Rajca Don't add autoplay restrictions to media elements created in response to user gestures. https://bugs.webkit.org/show_bug.cgi?id=174947 Reviewed by Eric Carlson. Skip the test on iOS because "runWithKeyDown" does not work there. Jer: "Turns out the problem with iOS is that the WKTR EventSender is basically unwritten. It doesn't support sending mouse, key, or touch events, so our "do this during a user gesture" helper in video-test.js doesn't work." * media/video-create-with-user-gesture-expected.txt: Added. * media/video-create-with-user-gesture.html: Added. * platform/ios/TestExpectations: 2017-07-31 Jason Marcell Cherry-pick r220048. rdar://problem/33619591 2017-07-30 Said Abou-Hallawa RenderImageResourceStyleImage::image() should return the nullImage() if the image is not available https://bugs.webkit.org/show_bug.cgi?id=174874 Reviewed by Darin Adler. * fast/images/image-element-image-content-data-expected.txt: Added. * fast/images/image-element-image-content-data.html: Added. 2017-07-31 Jason Marcell Cherry-pick r220042. rdar://problem/33619586 2017-07-29 Nan Wang AX: findMatchingObjects doesn't work when the startObject is ignored https://bugs.webkit.org/show_bug.cgi?id=174965 Reviewed by Chris Fleizach. * accessibility/mac/search-predicate-from-ignored-element-expected.txt: Added. * accessibility/mac/search-predicate-from-ignored-element.html: Added. 2017-07-31 Jason Marcell Cherry-pick r220009. rdar://problem/33619585 2017-07-28 Myles C. Maxfield [macOS] Reeder's defaults font is Times instead of San Francisco https://bugs.webkit.org/show_bug.cgi?id=174885 Reviewed by Simon Fraser. * fast/text/font-lookup-dot-prefix-case-sensitive-2-expected.html: Added. * fast/text/font-lookup-dot-prefix-case-sensitive-2.html: Added. * fast/text/font-lookup-dot-prefix-case-sensitive-expected-mismatch.html: Added. * fast/text/font-lookup-dot-prefix-case-sensitive.html: Added. 2017-07-28 Jason Marcell Cherry-pick r220003. rdar://problem/33595572 2017-07-28 Myles C. Maxfield REGRESSION(r216944): Fallback fonts erroneously visible when the primary font is loading https://bugs.webkit.org/show_bug.cgi?id=174772 Reviewed by Simon Fraser. * http/tests/webfont/font-loading-system-fallback-visibility-FontRanges-expected.html: Added. * http/tests/webfont/font-loading-system-fallback-visibility-FontRanges.html: Added. 2017-07-28 Jason Marcell Cherry-pick r219950. rdar://problem/33595459 2017-07-26 Chris Dumez Pressing the Escape key should not be a valid user gesture to enter fullscreen https://bugs.webkit.org/show_bug.cgi?id=174864 Reviewed by Geoffrey Garen. Add layout test coverage. * fullscreen/requestFullscreen-escape-key-expected.txt: Added. * fullscreen/requestFullscreen-escape-key.html: Added. 2017-07-28 Jason Marcell Cherry-pick r219949. rdar://problem/33595616 2017-07-26 Nan Wang AX: Incorrect range from index and length in contenteditable with

tags https://bugs.webkit.org/show_bug.cgi?id=174856 Reviewed by Chris Fleizach. * accessibility/mac/range-for-contenteditable-newline-expected.txt: * accessibility/mac/range-for-contenteditable-newline.html: 2017-07-28 Jason Marcell Cherry-pick r219906. rdar://problem/33595387 2017-07-26 Nan Wang AX: should dispatch accessibilityPerformPressAction async on MacOS https://bugs.webkit.org/show_bug.cgi?id=174849 Reviewed by Chris Fleizach. * accessibility/file-upload-button-with-axpress.html: * accessibility/mac/html5-input-number.html: * accessibility/mac/search-field-cancel-button.html: * accessibility/press-target-uses-text-descendant-node.html: * accessibility/press-targets-center-point.html: * accessibility/press-works-on-control-types.html: 2017-07-26 Jason Marcell Cherry-pick r219877. rdar://problem/33523803 2017-07-25 Matt Lewis Rebaselined missed test. https://bugs.webkit.org/show_bug.cgi?id=174734 Unreviewed test gardening. * fast/events/touch/ios/touches-client-coords-after-zoom-expected.txt: 2017-07-26 Jason Marcell Cherry-pick r219876. rdar://problem/33523847 2017-07-25 Said Abou-Hallawa Async image decoding for large images should be disabled after the first time a tile is painted https://bugs.webkit.org/show_bug.cgi?id=174451 Reviewed by Simon Fraser. To test async image decoding for large images, we have to create the element dynamically so we can listen to the load and webkitImageFrameReady events and know reliably when to end the test. But with this patch the async image decoding for large images will be disabled after the first paint. That means async image decoding for large images will be disabled always unless we force the async image decoding till the image is painted for the first time. We use Internals::setLargeImageAsyncDecodingEnabledForTesting() to force the async image decoding. So painting an image in this case will require multiple paints; in all of them the async image decoding will be enabled. But this is okay because it resembles the case where the is created from a static tag in the HTML file. For new tests, where we want to make sure that mutating the DOM will not cause a flash, async image decoding will be forced till the image is drawn for the first time. After that the async image decoding is enabled but not forced. Disable new tests for WK1 because the async image decoding is always enabled because tiling does not necessarily exist in WK1 . But eventually the async image decoding for large images will be always disabled for WK1. * fast/images/async-image-background-change-expected.html: Added. * fast/images/async-image-background-change.html: Added. * fast/images/async-image-background-image-repeated.html: * fast/images/async-image-background-image.html: * fast/images/async-image-body-background-image.html: * fast/images/async-image-multiple-clients-repaint.html: * fast/images/async-image-src-change-expected.html: Added. * fast/images/async-image-src-change.html: Added. * fast/images/resources/green-400x400.png: Added. * fast/images/resources/red-100x100.png: Added. * fast/images/resources/red-400x400.png: Added. * fast/images/sprite-sheet-image-draw.html: * http/tests/multipart/multipart-async-image-expected.txt: Added. * http/tests/multipart/multipart-async-image.html: Added. * platform/ios-wk1/TestExpectations: * platform/mac-wk1/TestExpectations: 2017-07-26 Jason Marcell Cherry-pick r219620. rdar://problem/33523847 2017-07-18 Matt Lewis Unreviewed, rolling out r219610. This caused an api failure on all platforms for the test SnapshotImageLargeAsyncDecoding Reverted changeset: "Async image decoding for large images should be disabled after the first time a tile is painted" https://bugs.webkit.org/show_bug.cgi?id=174451 http://trac.webkit.org/changeset/219610 2017-07-26 Jason Marcell Cherry-pick r219594. rdar://problem/33523357 2017-07-17 Timothy Horton Page using safe area constant properties jumps to correct layout after resize https://bugs.webkit.org/show_bug.cgi?id=174598 Reviewed by Simon Fraser. * fast/events/ios/rotation/safe-area-insets-during-safari-type-rotation-expected.txt: Added. * fast/events/ios/rotation/safe-area-insets-during-safari-type-rotation.html: Added. Add a test making sure that dynamic-viewport-update-based rotation updates safe area insets when needed. 2017-07-26 Jason Marcell Cherry-pick r219841. rdar://problem/33524930 2017-07-24 Jeremy Jones LayoutTest userscripts/user-script-audio-document.html failing on High Sierra https://bugs.webkit.org/show_bug.cgi?id=174726 rdar://problem/30059973 Reviewed by Alexey Proskuryakov. Underlying issue has been resolved. Re-enable test: userscripts/user-script-audio-document.html * platform/mac-highsierra/TestExpectations: 2017-07-26 Jason Marcell Cherry-pick r219837. rdar://problem/33524936 2017-07-24 Jeremy Jones 5 wav media layoutTest timeouts on High Sierra https://bugs.webkit.org/show_bug.cgi?id=174725 rdar://problem/30182218 Reviewed by Andreas Kling. Underlying issue is fixed. Re-enable tests on High Sierra. media/audio-controls-timeline-in-media-document.html media/audio-data-url.html media/media-document-audio-controls-visible.html media/media-document-audio-repaint.html media/media-document-audio-size.html * platform/mac-highsierra/TestExpectations: 2017-07-26 Jason Marcell Cherry-pick r219829. rdar://problem/33523803 2017-07-24 Simon Fraser Revert "client" coordinates to be in scrolling coordinates https://bugs.webkit.org/show_bug.cgi?id=174734 rdar://problem/33336930 Reviewed by Tim Horton. Rebaseline. * fast/events/ios/no-touch-events-when-stopping-momentum-scroll-in-mainframe-expected.txt: * fast/visual-viewport/client-coordinates-relative-to-layout-viewport-expected.txt: * fast/visual-viewport/client-rects-relative-to-layout-viewport-expected.txt: * fast/visual-viewport/zoomed-fixed-expected.txt: * fast/visual-viewport/zoomed-fixed-header-and-footer-expected.txt: * fast/zooming/client-rect-in-fixed-zoomed-expected.txt: * platform/ios-wk2/fast/visual-viewport/client-rects-relative-to-layout-viewport-expected.txt: * platform/ios-wk2/imported/w3c/web-platform-tests/cssom-view/elementFromPoint-expected.txt: Added. * platform/ios/fast/visual-viewport/zoomed-fixed-expected.txt: * platform/ios/fast/visual-viewport/zoomed-fixed-header-and-footer-expected.txt: 2017-07-26 Jason Marcell Cherry-pick r219755. rdar://problem/33523843 2017-07-21 Per Arne Vollan Round-tripping stroke-width styles through getComputedStyle cause the text to gain a stroke. https://bugs.webkit.org/show_bug.cgi?id=174701 Reviewed by Simon Fraser. * fast/css/round-trip-stroke-width-using-computed-style-expected.html: Added. * fast/css/round-trip-stroke-width-using-computed-style.html: Added. 2017-07-26 Jason Marcell Cherry-pick r219751. rdar://problem/33523861 2017-07-21 Nan Wang AX: Expose form validation on iOS as hint https://bugs.webkit.org/show_bug.cgi?id=174722 Reviewed by Chris Fleizach. * accessibility/ios-simulator/form-control-validation-message-expected.txt: Added. * accessibility/ios-simulator/form-control-validation-message.html: Added. 2017-07-26 Jason Marcell Cherry-pick r219638. rdar://problem/33523787 2017-07-18 Ryosuke Niwa REGRESSION(r218910): Crash when password field changes to text field https://bugs.webkit.org/show_bug.cgi?id=174560 Reviewed by Zalan Bujtas. Added a regression test based on the test case provided by Daniel Bates. * accessibility/mac/input-type-change-crash-2-expected.txt: Added. * accessibility/mac/input-type-change-crash-2.html: Added. 2017-07-26 Jason Marcell Cherry-pick r219610. rdar://problem/33523847 2017-07-18 Said Abou-Hallawa Async image decoding for large images should be disabled after the first time a tile is painted https://bugs.webkit.org/show_bug.cgi?id=174451 Reviewed by Simon Fraser. To test async image decoding for large images, we have to create the element dynamically so we can listen to the load and webkitImageFrameReady events and know reliably when to end the test. But with this patch the async image decoding for large images will be disabled after the first paint. That means async image decoding for large images will be disabled always unless we force the async image decoding till the image is painted for the first time. We use Internals::setLargeImageAsyncDecodingEnabledForTesting() to force the async image decoding. So painting an image in this case will require multiple paints; in all of them the async image decoding will be enabled. But this is okay because it resembles the case where the is created from a static tag in the HTML file. For new tests, where we want to make sure that mutating the DOM will not cause a flash, async image decoding will be forced till the image is drawn for the first time. After that the async image decoding is enabled but not forced. Disable new tests for WK1 because the async image decoding is always enabled because tiling does not necessarily exist in WK1 . But eventually the async image decoding for large images will be always disabled for WK1. * fast/images/async-image-background-change-expected.html: Added. * fast/images/async-image-background-change.html: Added. * fast/images/async-image-background-image-repeated.html: * fast/images/async-image-background-image.html: * fast/images/async-image-multiple-clients-repaint.html: * fast/images/async-image-src-change-expected.html: Added. * fast/images/async-image-src-change.html: Added. * fast/images/resources/green-400x400.png: Added. * fast/images/resources/red-100x100.png: Added. * fast/images/resources/red-400x400.png: Added. * http/tests/multipart/multipart-async-image-expected.txt: Added. * http/tests/multipart/multipart-async-image.html: Added. * platform/ios-wk1/TestExpectations: * platform/mac-wk1/TestExpectations: 2017-07-26 Jason Marcell Revert r219342. rdar://problem/33523803 2017-07-24 Jason Marcell Cherry-pick r219665. 2017-07-19 Myles C. Maxfield Setting the minimum font size preference doesn’t affect absolute line-height values, so lines overlap https://bugs.webkit.org/show_bug.cgi?id=174406 Reviewed by Simon Fraser. * fast/text/line-height-minimumFontSize-autosize-expected.text: Added. * fast/text/line-height-minimumFontSize-autosize.html: Added. * fast/text/line-height-minimumFontSize-expected.txt: Added. * fast/text/line-height-minimumFontSize-text-zoom-expected.html: Added. * fast/text/line-height-minimumFontSize-text-zoom.html: Added. * fast/text/line-height-minimumFontSize-visual-expected.html: Added. * fast/text/line-height-minimumFontSize-visual.html: Added. * fast/text/line-height-minimumFontSize-zoom-expected.html: Added. * fast/text/line-height-minimumFontSize-zoom.html: Added. * fast/text/line-height-minimumFontSize.html: Added. 2017-07-18 Myles C. Maxfield Setting the minimum font size preference doesn’t affect absolute line-height values, so lines overlap https://bugs.webkit.org/show_bug.cgi?id=174406 Reviewed by Simon Fraser. * fast/text/line-height-minimumFontSize-autosize-expected.text: Added. * fast/text/line-height-minimumFontSize-autosize.html: Added. * fast/text/line-height-minimumFontSize-expected.txt: Added. * fast/text/line-height-minimumFontSize-text-zoom-expected.html: Added. * fast/text/line-height-minimumFontSize-text-zoom.html: Added. * fast/text/line-height-minimumFontSize-visual-expected.html: Added. * fast/text/line-height-minimumFontSize-visual.html: Added. * fast/text/line-height-minimumFontSize-zoom-expected.html: Added. * fast/text/line-height-minimumFontSize-zoom.html: Added. * fast/text/line-height-minimumFontSize.html: Added. 2017-07-23 Jason Marcell Cherry-pick r219571. rdar://problem/33464710 2017-07-17 Simon Fraser clientX/clientY on TouchEvent.touches are wrong https://bugs.webkit.org/show_bug.cgi?id=174561 Reviewed by Tim Horton. * fast/events/touch/ios/touches-client-coords-after-zoom-expected.txt: Added. * fast/events/touch/ios/touches-client-coords-after-zoom.html: Added. 2017-07-22 Jason Marcell Cherry-pick r219662. rdar://problem/33464110 2017-07-19 Antoine Quint [iOS] REGRESSION: Scrubbing media using built-in controls does not pause media https://bugs.webkit.org/show_bug.cgi?id=174650 Reviewed by Dean Jackson. Rebaseline and turn back on all the ScrubberSupport tests on macOS and iOS. * media/modern-media-controls/scrubber-support/ipad/scrubber-support-drag-expected.txt: * media/modern-media-controls/scrubber-support/ipad/scrubber-support-drag.html: * media/modern-media-controls/scrubber-support/scrubber-support-media-api-expected.txt: * media/modern-media-controls/scrubber-support/scrubber-support-media-api.html: * platform/ios-simulator/TestExpectations: * platform/mac/TestExpectations: 2017-07-22 Jason Marcell Cherry-pick r219668. rdar://problem/33462676 2017-07-19 Simon Fraser getBoundingClientRects not updated for programmatic scrolls https://bugs.webkit.org/show_bug.cgi?id=174538 rdar://problem/33049012 Reviewed by Tim Horton. New results for these tests, reflecting the fact that programmatic scrolls now update the layout viewport. Clean up fast/dom/elementFromPoint-relative-to-viewport.html, and land an iOS expectation. The test uses eventSender.zoomPageOut() which is not expected to work correctly on iOS. It works when tested manually. * fast/dom/elementFromPoint-relative-to-viewport-expected.txt: * fast/dom/elementFromPoint-relative-to-viewport.html: * platform/ios-wk2/fast/dom/elementFromPoint-relative-to-viewport-expected.txt: Copied from LayoutTests/fast/dom/elementFromPoint-relative-to-viewport-expected.txt. * platform/ios-wk2/fast/visual-viewport/client-rects-relative-to-layout-viewport-expected.txt: * platform/ios-wk2/fast/visual-viewport/rtl-zoomed-rects-expected.txt: * platform/ios-wk2/fast/visual-viewport/zoomed-fixed-scroll-down-then-up-expected.txt: * platform/ios-wk2/fast/visual-viewport/zoomed-rects-expected.txt: * platform/ios/fast/visual-viewport/zoomed-fixed-expected.txt: * platform/ios/fast/visual-viewport/zoomed-fixed-header-and-footer-expected.txt: 2017-07-22 Jason Marcell Cherry-pick r219661. rdar://problem/33465132 2017-07-19 Nan Wang AX: Web page reloaded when a node is labelling multiple childnodes https://bugs.webkit.org/show_bug.cgi?id=174655 Reviewed by Chris Fleizach. * accessibility/mac/aria-labelledby-multiple-child-crash-expected.txt: Added. * accessibility/mac/aria-labelledby-multiple-child-crash.html: Added. 2017-07-22 Jason Marcell Cherry-pick r219625. rdar://problem/33465689 2017-07-18 Antoine Quint [macOS] Mouse pointer does not hide during fullscreen playback https://bugs.webkit.org/show_bug.cgi?id=174638 Reviewed by Dean Jackson. Add a test that checks that the "-webkit-cursor-visibility" is set to "auto-hide" when in fullscreen for the media controls container. * media/modern-media-controls/css/webkit-cursor-visibility-auto-hide-expected.txt: Added. * media/modern-media-controls/css/webkit-cursor-visibility-auto-hide.html: Added. * platform/ios-simulator/TestExpectations: 2017-07-17 Antoine Quint REGRESSION: order of AirPlay and volume controls is inconsistent between