b'2020-03-23 Russell Epstein \n\n Cherry-pick r258799. rdar://problem/60756681\n\n Content-Type & Nosniff Ignored on XML External Entity Resources\n \n \n \n Reviewed by Darin Adler.\n \n Source/WebCore:\n \n Test: http/tests/security/contentTypeOptions/nosniff-xml-external-entity.xhtml\n \n * platform/MIMETypeRegistry.cpp:\n (WebCore::MIMETypeRegistry::isXMLEntityMIMEType): Add.\n * platform/MIMETypeRegistry.h:\n (WebCore::MIMETypeRegistry::isXMLEntityMIMEType): Add.\n - Checks for XML external entity MIME types.\n \n * xml/parser/XMLDocumentParserLibxml2.cpp:\n (WebCore::externalEntityMimeTypeAllowedByNosniff): Add.\n - Checks whether the MIME type is valid based on the presence of\n the "X-Content-Type-Options: nosniff" header.\n (WebCore::openFunc):\n - Drop the contents of the resource that was returned and print\n an error message to the Web Inspector console if\n externalEntityMimeTypeAllowedByNosniff() says the MIME type is\n not allowed.\n \n LayoutTests:\n \n * http/tests/security/contentTypeOptions/nosniff-xml-external-entity-expected.txt: Add.\n * http/tests/security/contentTypeOptions/nosniff-xml-external-entity.xhtml: Add.\n \n git-svn-id: https://svn.webkit.org/repository/webkit/trunk@258799 268f45cc-cd09-0410-ab3c-d52691b4dbfc\n\n 2020-03-20 David Kilzer \n\n Content-Type & Nosniff Ignored on XML External Entity Resources\n \n \n\n Reviewed by Darin Adler.\n\n * http/tests/security/contentTypeOptions/nosniff-xml-external-entity-expected.txt: Add.\n * http/tests/security/contentTypeOptions/nosniff-xml-external-entity.xhtml: Add.\n\n b\'2020-03-23 Russell Epstein \\n\\n Cherry-pick r258741. rdar://problem/60756641\\n\\n Sanitize suggested download filename received from web process\\n https://bugs.webkit.org/show_bug.cgi?id=209300\\n \\n \\n Patch by Alex Christensen on 2020-03-19\\n Reviewed by Chris Dumez.\\n \\n Source/WebKit:\\n \\n * UIProcess/Downloads/DownloadProxy.cpp:\\n (WebKit::DownloadProxy::decideDestinationWithSuggestedFilenameAsync):\\n \\n LayoutTests:\\n \\n * fast/dom/HTMLAnchorElement/anchor-file-blob-download-includes-backslash-expected.txt:\\n * fast/dom/HTMLAnchorElement/anchor-file-blob-download-includes-backslash.html:\\n \\n git-svn-id: https://svn.webkit.org/repository/webkit/trunk@258741 268f45cc-cd09-0410-ab3c-d52691b4dbfc\\n\\n 2020-03-19 Alex Christensen \\n\\n Sanitize suggested download filename received from web process\\n https://bugs.webkit.org/show_bug.cgi?id=209300\\n \\n\\n Reviewed by Chris Dumez.\\n\\n * fast/dom/HTMLAnchorElement/anchor-file-blob-download-includes-backslash-expected.txt:\\n * fast/dom/HTMLAnchorElement/anchor-file-blob-download-includes-backslash.html:\\n\\n b"2020-03-23 Russell Epstein \\\\n\\\\n Cherry-pick r258711. rdar://problem/60756645\\\\n\\\\n Source/WebCore:\\\\n AX: VO and safari: can\\\'t press the play button\\\\n https://bugs.webkit.org/show_bug.cgi?id=209249\\\\n \\\\n Reviewed by Darin Adler.\\\\n \\\\n Test: accessibility/ios-simulator/has-touch-event-listener-with-shadow.html\\\\n \\\\n If a node is in a shadowRoot, going up the node parent tree will stop and not check the entire tree for touch event listeners\\\\n and a touch event won\\\'t be dispatched. We need to change to use the parentInComposedTree instead to go up the chain.\\\\n \\\\n * accessibility/ios/AccessibilityObjectIOS.mm:\\\\n (WebCore::AccessibilityObject::hasTouchEventListener const):\\\\n \\\\n LayoutTests:\\\\n AX: VO and safari: caan\\\'t press the play button\\\\n https://bugs.webkit.org/show_bug.cgi?id=209249\\\\n \\\\n Reviewed by Darin Adler.\\\\n \\\\n * accessibility/ios-simulator/has-touch-event-listener-with-shadow-expected.txt: Added.\\\\n * accessibility/ios-simulator/has-touch-event-listener-with-shadow.html: Added.\\\\n \\\\n \\\\n git-svn-id: https://svn.webkit.org/repository/webkit/trunk@258711 268f45cc-cd09-0410-ab3c-d52691b4dbfc\\\\n\\\\n 2020-03-19 Chris Fleizach \\\\n\\\\n AX: VO and safari: caan\\\'t press the play button\\\\n https://bugs.webkit.org/show_bug.cgi?id=209249\\\\n\\\\n Reviewed by Darin Adler.\\\\n\\\\n * accessibility/ios-simulator/has-touch-event-listener-with-shadow-expected.txt: Added.\\\\n * accessibility/ios-simulator/has-touch-event-listener-with-shadow.html: Added.\\\\n\\\\n"2020-03-17 Alan Coon \\n\\n Cherry-pick r258459. rdar://problem/60539192\\n\\n SVGMatrix should have the access right of its owner SVGTransform always\\n https://bugs.webkit.org/show_bug.cgi?id=207462\\n\\n Reviewed by Simon Fraser.\\n\\n Source/WebCore:\\n\\n The SVGMatrix needs to be reattached to its owner SVGTransform when the\\n access right of this owner changes. The access right of the owner changes\\n when it gets attached to or detached from a higher level owner.\\n\\n Test: svg/dom/SVGTransformList-anim-read-only.html\\n\\n * svg/SVGTransform.h:\\n * svg/properties/SVGProperty.h:\\n (WebCore::SVGProperty::attach):\\n (WebCore::SVGProperty::detach):\\n (WebCore::SVGProperty::reattach):\\n\\n LayoutTests:\\n\\n * svg/dom/SVGTransformList-anim-read-only-expected.txt: Added.\\n * svg/dom/SVGTransformList-anim-read-only.html: Added.\\n\\n\\n git-svn-id: https://svn.webkit.org/repository/webkit/trunk@258459 268f45cc-cd09-0410-ab3c-d52691b4dbfc\\n\\n 2020-03-13 Said Abou-Hallawa \\n\\n SVGMatrix should have the access right of its owner SVGTransform always\\n https://bugs.webkit.org/show_bug.cgi?id=207462\\n\\n Reviewed by Simon Fraser.\\n\\n * svg/dom/SVGTransformList-anim-read-only-expected.txt: Added.\\n * svg/dom/SVGTransformList-anim-read-only.html: Added.\\n\\n\'2020-03-17 Alan Coon \n\n Cherry-pick r258455. rdar://problem/60539179\n\n [Tree building] Block::attachIgnoringContinuation should allow inline tables as before child container\n https://bugs.webkit.org/show_bug.cgi?id=209095\n \n\n Reviewed by Simon Fraser.\n\n Source/WebCore:\n\n It\'s perfectly valid to have an inline table as the anonymous container for the before child.\n It\'ll get wrapped inside an anonymous block right before we insert the block box candidate, so\n the final result will be something like:\n\n new block level child (this is the child we are inserting)\n anonymous block wrapper\n inline table (this is the before child\'s inline container)\n before child\n\n Test: fast/table/before-child-is-inline-table.html\n\n * rendering/updating/RenderTreeBuilderBlock.cpp:\n (WebCore::RenderTreeBuilder::Block::attachIgnoringContinuation):\n\n LayoutTests:\n\n * fast/table/before-child-is-inline-table-expected.txt: Added.\n * fast/table/before-child-is-inline-table.html: Added.\n\n\n git-svn-id: https://svn.webkit.org/repository/webkit/trunk@258455 268f45cc-cd09-0410-ab3c-d52691b4dbfc\n\n 2020-03-13 Zalan Bujtas \n\n [Tree building] Block::attachIgnoringContinuation should allow inline tables as before child container\n https://bugs.webkit.org/show_bug.cgi?id=209095\n \n\n Reviewed by Simon Fraser.\n\n * fast/table/before-child-is-inline-table-expected.txt: Added.\n * fast/table/before-child-is-inline-table.html: Added.\n\n'2020-03-12 Ryan Haddad Cherry-pick r254979. rdar://problem/58836694 Actually fix history link directs on dashboard and results.html https://bugs.webkit.org/show_bug.cgi?id=206666 Reviewed by Jonathan Bedard. * fast/harness/results.html: * legacy-animation-engine/fast/harness/results.html: git-svn-id: https://svn.webkit.org/repository/webkit/trunk@254979 268f45cc-cd09-0410-ab3c-d52691b4dbfc 2020-01-23 Matt Lewis Actually fix history link directs on dashboard and results.html https://bugs.webkit.org/show_bug.cgi?id=206666 Reviewed by Jonathan Bedard. * fast/harness/results.html: * legacy-animation-engine/fast/harness/results.html: 2020-02-21 Russell Epstein Cherry-pick r257089. rdar://problem/59676923 NetworkCache should use 4KB threshold for mmap-ed files instead of 16KB https://bugs.webkit.org/show_bug.cgi?id=207882 Reviewed by Alex Christensen. Source/WebKit: We found that a lot of Vectors in Membuster is holding resource content. This is because we have 16KB threshold for mmap-ed files. If a file is smaller than 16KB, it is copied to Vector instead. But this is costly in terms of memory. If we use mmap-ed files, it becomes named-pages instead of anonymous-pages. File-backed non-dirty named-pages have a lot of benefit. 1. The application is offering a hint that pages are file-backed. This means that OS can purge them at any time since the content can be recovered from the disk. This is cheaper than swapping / compressing anonymous pages since just discarding works. 2. The application is offering a hint that pages have spatial locality. Purging pages in one named-pages region is better compared to purging the same # of anonymous pages randomly. Anonymous pages are split by malloc implementation and access pattern of pages in one VA is random. On the other hand, named-pages are accessed together because it is file, and file typically has sequential locality. And recovery of named pages are also cheap compared to anonymous pages since OS can prefetch pages once access happens because of sequential locality of files. This tendency makes OS like purging named pages instead of anonymous pages. In WebKit use case, this works perfectly. CachedResource typically has decoded content. So typically WebProcess does not access SharedBuffer after the content is decoded. This patch reduces the threshold from 16KB to page size (4KB in macOS, 16KB in iOS). This is pre-2015 behavior. This offers 2.56% progression with 98% probability in Membuster. * NetworkProcess/cache/NetworkCacheStorage.cpp: (WebKit::NetworkCache::maximumInlineBodySize): (WebKit::NetworkCache::estimateRecordsSize): (WebKit::NetworkCache::Storage::shouldStoreBodyAsBlob): LayoutTests: The test is assuming that 12KB file is served via non-mmap-file. This assumption is flaky and broken by this change. For now, we pick smaller file to meet this assumption. * http/tests/inspector/network/resource-sizes-disk-cache-expected.txt: * http/tests/inspector/network/resource-sizes-disk-cache.html: git-svn-id: https://svn.webkit.org/repository/webkit/trunk@257089 268f45cc-cd09-0410-ab3c-d52691b4dbfc 2020-02-20 Yusuke Suzuki NetworkCache should use 4KB threshold for mmap-ed files instead of 16KB https://bugs.webkit.org/show_bug.cgi?id=207882 Reviewed by Alex Christensen. The test is assuming that 12KB file is served via non-mmap-file. This assumption is flaky and broken by this change. For now, we pick smaller file to meet this assumption. * http/tests/inspector/network/resource-sizes-disk-cache-expected.txt: * http/tests/inspector/network/resource-sizes-disk-cache.html: 2020-02-19 Alan Coon Apply patch. rdar://problem/59611912 2020-02-19 Antoine Quint [Web Animations] Style changes due to Web Animations should not trigger CSS Transitions https://bugs.webkit.org/show_bug.cgi?id=207760 Reviewed by Simon Fraser. Mark that a couple of tests are no longer flaky. * TestExpectations: 2020-02-19 Russell Epstein Cherry-pick r256859. rdar://problem/59576018 [macOS] Web process may crash under ServicesOverlayController::buildPotentialHighlightsIfNeeded https://bugs.webkit.org/show_bug.cgi?id=207899 Reviewed by Tim Horton and Simon Fraser. Source/WebCore: Mitigates a null pointer crash in ServicesOverlayController::buildPotentialHighlightsIfNeeded(), wherein the focused frame may not have a FrameView when the ServicesOverlayController's selection invalidation timer fires. This is possible if, while being focused, the newly focused subframe is unparented and reparented, which causes it to momentarily have a null view. During this time, if a selection change had occurred earlier in the runloop, it will schedule the page overlay controller invalidation timer, which will fire and discover that the currently focused frame no longer has a FrameView. Test: editing/selection/selection-change-in-disconnected-frame-crash.html * page/mac/ServicesOverlayController.mm: (WebCore::ServicesOverlayController::buildSelectionHighlight): Source/WebKit: Add another missing null check on iOS, for the case where FrameView is null. * WebProcess/WebPage/ios/WebPageIOS.mm: (WebKit::WebPage::platformEditorState const): Tools: Make it possible to run tests on macOS with services controls enabled, via a new TestOptions flag. * WebKitTestRunner/TestController.cpp: (WTR::updateTestOptionsFromTestHeader): * WebKitTestRunner/TestOptions.h: (WTR::TestOptions::hasSameInitializationOptions const): * WebKitTestRunner/cocoa/TestControllerCocoa.mm: (WTR::TestController::platformCreateWebView): LayoutTests: Add a new layout test to verify that we don't crash under this circumstance. * editing/selection/selection-change-in-disconnected-frame-crash-expected.txt: Added. * editing/selection/selection-change-in-disconnected-frame-crash.html: Added. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@256859 268f45cc-cd09-0410-ab3c-d52691b4dbfc 2020-02-18 Wenson Hsieh [macOS] Web process may crash under ServicesOverlayController::buildPotentialHighlightsIfNeeded https://bugs.webkit.org/show_bug.cgi?id=207899 Reviewed by Tim Horton and Simon Fraser. Add a new layout test to verify that we don't crash under this circumstance. * editing/selection/selection-change-in-disconnected-frame-crash-expected.txt: Added. * editing/selection/selection-change-in-disconnected-frame-crash.html: Added. 2020-02-18 Alan Coon Apply patch. rdar://problem/59465474 2020-02-18 Antoine Quint [Web Animations] Ensure CSS Transition and CSS Animation events are queued, sorted and dispatched by their timeline https://bugs.webkit.org/show_bug.cgi?id=207364 Reviewed by Simon Fraser. Fix a couple of tests that made some incorrect assumptions. * TestExpectations: imported/w3c/web-platform-tests/web-animations/timing-model/timelines/update-and-send-events.html is no longer flaky. * compositing/backing/animate-into-view.html: Because the "animationstart" event is now dispatched during the "update animations and send events" procedure, which happens during page rendering _before_ rAF callbacks are serviced, we must remove the rAF callback used prior to adding the "animationstart" event listener or else we would never get it and the test would time out. * webanimations/css-transition-in-flight-reversal-accelerated.html: We must wait for the initial transition to start and then two frames before reversing the transition, to be certain that the animation did start. Indeed, the "transitionstart" event will be fired right before the next rAF callback is called, as the animation starts in that very same frame, and so progress will be 0 and the transition wouldn't be reversable until the next frame when the animation has progress > 0. 2020-02-18 Alan Coon Cherry-pick r256191. rdar://problem/59447003 Disallow setting base URL to a data or JavaScript URL https://bugs.webkit.org/show_bug.cgi?id=207136 Source/WebCore: Reviewed by Brent Fulgham. Inspired by . Block setting the base URL to a data URL or JavaScript URL as such usage is questionable. This makes WebKit match the behavior of Chrome and Firefox and is in the spirit of the discussion in . On Mac and iOS, this restriction is applied only to apps linked against a future SDK to avoid breaking shipped apps. For all other ports, this restriction is enabled by default. Tests: fast/url/relative2.html fast/url/segments-from-data-url2.html http/tests/security/allowed-base-url-data-url-via-setting.html http/tests/security/denied-base-url-data-url.html http/tests/security/denied-base-url-javascript-url.html * dom/Document.cpp: (WebCore::Document::processBaseElement): Condition updating the parsed base URL on whether is has an allowed scheme, if restrictions are enabled. Otherwise, do what we do now. If the scheme is disallowed then log a message to the console to explain this to web developers. * html/parser/HTMLPreloadScanner.cpp: (WebCore::TokenPreloadScanner::scan): Pass whether to apply restrictons to the base URL to updatePredictedBaseURL(). This depends on whether the setting is enabled or not. (WebCore::TokenPreloadScanner::updatePredictedBaseURL): Modifed to take a boolean as to whether to apply restrictions. If restrictions are not to be applied do what we do now. Otherwise, only do what we do now if the scheme for the predicated base URL is allowed. * html/parser/HTMLPreloadScanner.h: * page/SecurityPolicy.cpp: (WebCore::SecurityPolicy::isBaseURLSchemeAllowed): Added. * page/SecurityPolicy.h: * page/Settings.yaml: Add a setting to toggle restrictions on the base URL scheme. Source/WebKit: Reviewed by Brent Fulgham. Apply base URL restrictions to apps linked to a future WebKit to avoid breaking existing apps. * Shared/WebPreferences.yaml: * UIProcess/API/Cocoa/WKWebView.mm: (shouldRestrictBaseURLSchemes): Added. (-[WKWebView _setupPageConfiguration:]): Update settings. * UIProcess/Cocoa/VersionChecks.h: Source/WebKitLegacy/mac: Reviewed by Brent Fulgham. Apply base URL restrictions to apps linked to a future WebKit to avoid breaking existing apps. * Misc/WebKitVersionChecks.h: * WebView/WebView.mm: (shouldRestrictBaseURLSchemes): Added. (-[WebView _commonInitializationWithFrameName:groupName:]): Update settings. Source/WTF: Reviewed by Brent Fulgham. Add some more macro definitions. * wtf/spi/darwin/dyldSPI.h: LayoutTests: RReviewed by Brent Fulgham. Add some tests. Update others to toggle the setting to apply or unapply the new behavior. The test denied-base-url-javascript-url.html is derived from the test base-url-javascript.html, included in . * fast/url/relative-expected.txt: * fast/url/relative.html: * fast/url/relative2-expected.txt: Copied from LayoutTests/fast/url/relative-expected.txt. * fast/url/relative2.html: Copied from LayoutTests/fast/url/relative.html. * fast/url/resources/utilities.js: (setShouldEllipsizeFileURLPaths): Added. Toggles ellipsizing the path portion of a file URL to simplify matching. Otherwise, file URLs could be machine-specific. (canonicalizedPathname): Added. (segments): Modified to optionally call canonicalizedPathname. (canonicalize): Ditto. * fast/url/segments-from-data-url-expected.txt: * fast/url/segments-from-data-url.html: * fast/url/segments-from-data-url2-expected.txt: Copied from LayoutTests/fast/url/segments-from-data-url-expected.txt. * fast/url/segments-from-data-url2.html: Copied from LayoutTests/fast/url/segments-from-data-url.html. * fetch/fetch-url-serialization-expected.txt: * http/tests/plugins/navigation-during-load-embed.html: * http/tests/plugins/navigation-during-load.html: * http/tests/security/allowed-base-url-data-url-via-setting-expected.txt: Added. * http/tests/security/allowed-base-url-data-url-via-setting.html: Added. * http/tests/security/denied-base-url-data-url-expected.txt: Added. * http/tests/security/denied-base-url-data-url.html: Added. * http/tests/security/denied-base-url-javascript-url-expected.txt: Added. * http/tests/security/denied-base-url-javascript-url.html: Added. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@256191 268f45cc-cd09-0410-ab3c-d52691b4dbfc 2020-02-10 Daniel Bates Disallow setting base URL to a data or JavaScript URL https://bugs.webkit.org/show_bug.cgi?id=207136 RReviewed by Brent Fulgham. Add some tests. Update others to toggle the setting to apply or unapply the new behavior. The test denied-base-url-javascript-url.html is derived from the test base-url-javascript.html, included in . * fast/url/relative-expected.txt: * fast/url/relative.html: * fast/url/relative2-expected.txt: Copied from LayoutTests/fast/url/relative-expected.txt. * fast/url/relative2.html: Copied from LayoutTests/fast/url/relative.html. * fast/url/resources/utilities.js: (setShouldEllipsizeFileURLPaths): Added. Toggles ellipsizing the path portion of a file URL to simplify matching. Otherwise, file URLs could be machine-specific. (canonicalizedPathname): Added. (segments): Modified to optionally call canonicalizedPathname. (canonicalize): Ditto. * fast/url/segments-from-data-url-expected.txt: * fast/url/segments-from-data-url.html: * fast/url/segments-from-data-url2-expected.txt: Copied from LayoutTests/fast/url/segments-from-data-url-expected.txt. * fast/url/segments-from-data-url2.html: Copied from LayoutTests/fast/url/segments-from-data-url.html. * fetch/fetch-url-serialization-expected.txt: * http/tests/plugins/navigation-during-load-embed.html: * http/tests/plugins/navigation-during-load.html: * http/tests/security/allowed-base-url-data-url-via-setting-expected.txt: Added. * http/tests/security/allowed-base-url-data-url-via-setting.html: Added. * http/tests/security/denied-base-url-data-url-expected.txt: Added. * http/tests/security/denied-base-url-data-url.html: Added. * http/tests/security/denied-base-url-javascript-url-expected.txt: Added. * http/tests/security/denied-base-url-javascript-url.html: Added. 2020-02-17 Alan Coon Cherry-pick r256435. rdar://problem/59446986 REGRESSION: (256400) tiled-drawing/scrolling/fixed/fixed-during-rubberband.html is failing https://bugs.webkit.org/show_bug.cgi?id=207631 Unreviewed test gardening. * platform/mac-wk2/TestExpectations: git-svn-id: https://svn.webkit.org/repository/webkit/trunk@256435 268f45cc-cd09-0410-ab3c-d52691b4dbfc 2020-02-12 Jacob Uphoff REGRESSION: (256400) tiled-drawing/scrolling/fixed/fixed-during-rubberband.html is failing https://bugs.webkit.org/show_bug.cgi?id=207631 Unreviewed test gardening. * platform/mac-wk2/TestExpectations: 2020-02-17 Alan Coon Cherry-pick r256513. rdar://problem/59446986 REGRESSION (r255037): Zooming in and out on Quip in macOS Safari can cause the content to be offset to the side https://bugs.webkit.org/show_bug.cgi?id=207674 rdar://problem/59404866 Reviewed by Antti Koivisto. Source/WebCore: Remove the early return in ScrollingStateScrollingNode::setRequestedScrollData(); comparing with the last m_requestedScrollData is wrong, because requested scroll positions are not "state" in the scrolling tree, they are requests to scroll. Ideally, they would be represented in some different way in the scrolling tree. Test: fast/scrolling/programmatic-scroll-to-zero-zero.html * page/scrolling/ScrollingStateScrollingNode.cpp: (WebCore::ScrollingStateScrollingNode::setRequestedScrollData): LayoutTests: Test that does a programmatic scroll to 0,0, does a user scroll, then a second programmatic scroll to 0,0, which is expected to work. * fast/scrolling/programmatic-scroll-to-zero-zero-expected.html: Added. * fast/scrolling/programmatic-scroll-to-zero-zero.html: Added. * platform/ios/TestExpectations: Skip the new test on iOS (it relies on eventSender) and sort the grouping. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@256513 268f45cc-cd09-0410-ab3c-d52691b4dbfc 2020-02-13 Simon Fraser REGRESSION (r255037): Zooming in and out on Quip in macOS Safari can cause the content to be offset to the side https://bugs.webkit.org/show_bug.cgi?id=207674 rdar://problem/59404866 Reviewed by Antti Koivisto. Test that does a programmatic scroll to 0,0, does a user scroll, then a second programmatic scroll to 0,0, which is expected to work. * fast/scrolling/programmatic-scroll-to-zero-zero-expected.html: Added. * fast/scrolling/programmatic-scroll-to-zero-zero.html: Added. * platform/ios/TestExpectations: Skip the new test on iOS (it relies on eventSender) and sort the grouping. 2020-02-17 Alan Coon Cherry-pick r255037. rdar://problem/59446986 Fixed elements no longer stay fixed with elastic overscroll https://bugs.webkit.org/show_bug.cgi?id=206227 rdar://problem/58707084 Reviewed by Antti Koivisto. Source/WebCore: Intended behavior on iOS and macOS is for position:fixed and sticky elements to maintain their position relative to the view bounds when rubber-banding ("overscrolling"). This broke some time back. This change restores the correct behavior with the call to layoutViewportRespectingRubberBanding() in ScrollingTreeFixedNode::applyLayerPositions() and ScrollingTreeStickyNode::computeLayerPosition(). layoutViewportRespectingRubberBanding() computes a layout viewport without clamping. The rest of the changes are to support testing. internals.unconstrainedScrollTo() didn't work for main frame scrolling because of scroll position clamping in various places, so propagate ScrollClamping in more places (and replace the redundant ScrollPositionClamp with ScrollClamping). "requested scroll position" updates now carry along both clamping and "is programmatic" data, wrapped in a struct which is passed around the scrolling tree. This allows us to not clamp the scroll position (for testing) in more places. Internals::unconstrainedScrollTo() needs one weird hack to trigger a layout (and thus a scrolling tree commit), because the layout is normally triggered by a layout viewport change, but when rubber-banding we clamp the layoutViewport used for layout, so those layouts are never triggered. Tests: tiled-drawing/scrolling/fixed/fixed-during-rubberband.html tiled-drawing/scrolling/sticky/sticky-during-rubberband.html * Sources.txt: * WebCore.xcodeproj/project.pbxproj: * dom/Element.cpp: (WebCore::Element::scrollTo): * page/DOMWindow.cpp: (WebCore::DOMWindow::scrollTo const): * page/FrameView.cpp: (WebCore::FrameView::setScrollPosition): (WebCore::FrameView::requestScrollPositionUpdate): * page/FrameView.h: * page/scrolling/AsyncScrollingCoordinator.cpp: (WebCore::AsyncScrollingCoordinator::requestScrollPositionUpdate): * page/scrolling/AsyncScrollingCoordinator.h: * page/scrolling/ScrollingCoordinator.cpp: * page/scrolling/ScrollingCoordinator.h: (WebCore::ScrollingCoordinator::requestScrollPositionUpdate): * page/scrolling/ScrollingStateScrollingNode.cpp: (WebCore::ScrollingStateScrollingNode::ScrollingStateScrollingNode): (WebCore::ScrollingStateScrollingNode::setRequestedScrollData): (WebCore::ScrollingStateScrollingNode::dumpProperties const): (WebCore::ScrollingStateScrollingNode::setRequestedScrollPosition): Deleted. * page/scrolling/ScrollingStateScrollingNode.h: (WebCore::RequestedScrollData::operator== const): (WebCore::ScrollingStateScrollingNode::requestedScrollData const): (WebCore::ScrollingStateScrollingNode::requestedScrollPosition const): Deleted. (WebCore::ScrollingStateScrollingNode::requestedScrollPositionRepresentsProgrammaticScroll const): Deleted. * page/scrolling/ScrollingTree.h: (WebCore::ScrollingTree::scrollingTreeNodeRequestsScroll): * page/scrolling/ScrollingTreeFrameScrollingNode.cpp: (WebCore::ScrollingTreeFrameScrollingNode::layoutViewportForScrollPosition const): (WebCore::ScrollingTreeFrameScrollingNode::layoutViewportRespectingRubberBanding const): * page/scrolling/ScrollingTreeFrameScrollingNode.h: * page/scrolling/ScrollingTreeScrollingNode.cpp: (WebCore::ScrollingTreeScrollingNode::commitStateAfterChildren): (WebCore::ScrollingTreeScrollingNode::adjustedScrollPosition const): (WebCore::ScrollingTreeScrollingNode::scrollBy): (WebCore::ScrollingTreeScrollingNode::scrollTo): (WebCore::ScrollingTreeScrollingNode::wasScrolledByDelegatedScrolling): * page/scrolling/ScrollingTreeScrollingNode.h: * page/scrolling/cocoa/ScrollingTreeFixedNode.mm: (WebCore::ScrollingTreeFixedNode::applyLayerPositions): * page/scrolling/cocoa/ScrollingTreeStickyNode.mm: (WebCore::ScrollingTreeStickyNode::computeLayerPosition const): * page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.h: * page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.mm: (WebCore::ScrollingTreeFrameScrollingNodeMac::commitStateAfterChildren): (WebCore::ScrollingTreeFrameScrollingNodeMac::adjustedScrollPosition const): * page/scrolling/mac/ScrollingTreeOverflowScrollingNodeMac.h: * page/scrolling/mac/ScrollingTreeOverflowScrollingNodeMac.mm: (WebCore::ScrollingTreeOverflowScrollingNodeMac::commitStateAfterChildren): (WebCore::ScrollingTreeOverflowScrollingNodeMac::adjustedScrollPosition const): * page/scrolling/mac/ScrollingTreeScrollingNodeDelegateMac.mm: (WebCore::ScrollingTreeScrollingNodeDelegateMac::immediateScrollByWithoutContentEdgeConstraints): * platform/ScrollTypes.cpp: Added. (WebCore::operator<<): * platform/ScrollTypes.h: * platform/ScrollView.cpp: (WebCore::ScrollView::setContentsScrollPosition): (WebCore::ScrollView::setScrollPosition): * platform/ScrollView.h: * platform/ScrollableArea.cpp: (WebCore::ScrollableArea::setScrollOffsetFromAnimation): * platform/ScrollableArea.h: (WebCore::ScrollableArea::requestScrollPositionUpdate): * rendering/RenderLayer.cpp: (WebCore::RenderLayer::scrollToOffset): * testing/Internals.cpp: (WebCore::Internals::unconstrainedScrollTo): Source/WebKit: Intended behavior on iOS and macOS is for position:fixed and sticky elements to maintain their position relative to the view bounds when rubber-banding ("overscrolling"). This broke some time back. This change restores the correct behavior with the call to layoutViewportRespectingRubberBanding() in ScrollingTreeFixedNode::applyLayerPositions() and ScrollingTreeStickyNode::computeLayerPosition(). layoutViewportRespectingRubberBanding() computes a layout viewport without clamping. The rest of the changes are to support testing. internals.unconstrainedScrollTo() didn't work for main frame scrolling because of scroll position clamping in various places, so propagate ScrollClamping in more places (and replace the redundant ScrollPositionClamp with ScrollClamping). "requested scroll position" updates now carry along both clamping and "is programmatic" data, wrapped in a struct which is passed around the scrolling tree. This allows us to not clamp the scroll position (for testing) in more places. * Shared/RemoteLayerTree/RemoteScrollingCoordinatorTransaction.cpp: (ArgumentCoder::encode): (ArgumentCoder::decode): (ArgumentCoder::encode): (ArgumentCoder::decode): (WebKit::dump): * UIProcess/RemoteLayerTree/RemoteScrollingCoordinatorProxy.cpp: (WebKit::RemoteScrollingCoordinatorProxy::scrollingTreeNodeRequestsScroll): * UIProcess/RemoteLayerTree/RemoteScrollingCoordinatorProxy.h: * UIProcess/RemoteLayerTree/RemoteScrollingTree.cpp: (WebKit::RemoteScrollingTree::scrollingTreeNodeRequestsScroll): * UIProcess/RemoteLayerTree/RemoteScrollingTree.h: * UIProcess/RemoteLayerTree/ios/ScrollingTreeFrameScrollingNodeRemoteIOS.mm: (WebKit::ScrollingTreeFrameScrollingNodeRemoteIOS::commitStateAfterChildren): * UIProcess/RemoteLayerTree/ios/ScrollingTreeScrollingNodeDelegateIOS.mm: (WebKit::ScrollingTreeScrollingNodeDelegateIOS::commitStateAfterChildren): LayoutTests: * tiled-drawing/scrolling/fixed/fixed-during-rubberband-expected.html: Added. * tiled-drawing/scrolling/fixed/fixed-during-rubberband.html: Added. * tiled-drawing/scrolling/sticky/sticky-during-rubberband-expected.html: Added. * tiled-drawing/scrolling/sticky/sticky-during-rubberband.html: Added. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@255037 268f45cc-cd09-0410-ab3c-d52691b4dbfc 2020-02-17 Alan Coon Cherry-pick r255384. rdar://problem/59447276 REGRESSION: (253807) [ macOS iOS ] storage/indexeddb/intversion-long-queue-private.html is flaky failing https://bugs.webkit.org/show_bug.cgi?id=206965 Unreviewed test gardening. Patch by Jacob Uphoff on 2020-01-29 * platform/ios-wk2/TestExpectations: * platform/mac/TestExpectations: git-svn-id: https://svn.webkit.org/repository/webkit/trunk@255384 268f45cc-cd09-0410-ab3c-d52691b4dbfc 2020-01-29 Jacob Uphoff REGRESSION: (253807) [ macOS iOS ] storage/indexeddb/intversion-long-queue-private.html is flaky failing https://bugs.webkit.org/show_bug.cgi?id=206965 Unreviewed test gardening. * platform/ios-wk2/TestExpectations: * platform/mac/TestExpectations: 2020-02-17 Alan Coon Cherry-pick r256235. rdar://problem/59447276 REGRESSION: (253807) [ macOS iOS ] storage/indexeddb/intversion-long-queue-private.html is flaky failing https://bugs.webkit.org/show_bug.cgi?id=206965 Reviewed by Ryosuke Niwa. Modify a test to make it less flaky. Based on our current implementation, there is no guarantee that Block event on delete request would be fired before Complete event on transaction from connection2 in this test. The events sequence we are sure are: 1. UpgradeNeeded event on openRequest2 -> VersionChange event on connection2 -> Complete event on VersionChange transaction on connection2 -> Success event on openRequest2. 2. VersionChange event on connection2 -> Block event on delete request. Therefore I am changing the test to ensure sequence 1. * platform/ios-wk2/TestExpectations: * platform/mac/TestExpectations: * storage/indexeddb/intversion-long-queue-expected.txt: * storage/indexeddb/intversion-long-queue-private-expected.txt: * storage/indexeddb/resources/intversion-long-queue.js: (connection2Blocked): (connection2UpgradeNeeded): (connection2VersionChangeCallback): (deleteDatabaseBlockedCallback): Deleted. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@256235 268f45cc-cd09-0410-ab3c-d52691b4dbfc 2020-02-10 Sihui Liu REGRESSION: (253807) [ macOS iOS ] storage/indexeddb/intversion-long-queue-private.html is flaky failing https://bugs.webkit.org/show_bug.cgi?id=206965 Reviewed by Ryosuke Niwa. Modify a test to make it less flaky. Based on our current implementation, there is no guarantee that Block event on delete request would be fired before Complete event on transaction from connection2 in this test. The events sequence we are sure are: 1. UpgradeNeeded event on openRequest2 -> VersionChange event on connection2 -> Complete event on VersionChange transaction on connection2 -> Success event on openRequest2. 2. VersionChange event on connection2 -> Block event on delete request. Therefore I am changing the test to ensure sequence 1. * platform/ios-wk2/TestExpectations: * platform/mac/TestExpectations: * storage/indexeddb/intversion-long-queue-expected.txt: * storage/indexeddb/intversion-long-queue-private-expected.txt: * storage/indexeddb/resources/intversion-long-queue.js: (connection2Blocked): (connection2UpgradeNeeded): (connection2VersionChangeCallback): (deleteDatabaseBlockedCallback): Deleted. 2020-02-17 Alan Coon Cherry-pick r256213. rdar://problem/59447008 [ Mac Debug wk2 ] imported/w3c/web-platform-tests/fetch/api/request/destination/fetch-destination-worker.https.html is flaky crashing. https://bugs.webkit.org/show_bug.cgi?id=207509 Unreviewed test gardening. * platform/mac-wk2/TestExpectations: git-svn-id: https://svn.webkit.org/repository/webkit/trunk@256213 268f45cc-cd09-0410-ab3c-d52691b4dbfc 2020-02-10 Jason Lawrence [ Mac Debug wk2 ] imported/w3c/web-platform-tests/fetch/api/request/destination/fetch-destination-worker.https.html is flaky crashing. https://bugs.webkit.org/show_bug.cgi?id=207509 Unreviewed test gardening. * platform/mac-wk2/TestExpectations: 2020-02-14 Russell Epstein Cherry-pick r256623. rdar://problem/59478938 Ensure animations that lose their effect don't schedule an animation update https://bugs.webkit.org/show_bug.cgi?id=207713 rdar://59174840 Patch by Sunny He on 2020-02-14 Reviewed by Antoine Quint. Source/WebCore: An active animation for which the effect is removed may be considered for an upcoming animation resolution. However, WebAnimation::timeToNextTick() expects a valid effect to be available to be able to determine timing. We now check an animation is relevant before calling timeToNextTick() and add an ASSERT() in that function to catch cases where an animation effect might not be available. Source/WebCore: Test: webanimations/animation-null-effect.html * animation/DocumentTimeline.cpp: (WebCore::DocumentTimeline::scheduleNextTick): * animation/WebAnimation.cpp: (WebCore::WebAnimation::timeToNextTick const): LayoutTests: * webanimations/animation-null-effect-expected.txt: Added. * webanimations/animation-null-effect.html: Added. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@256623 268f45cc-cd09-0410-ab3c-d52691b4dbfc 2020-02-14 Sunny He Ensure animations that lose their effect don't schedule an animation update https://bugs.webkit.org/show_bug.cgi?id=207713 rdar://59174840 Reviewed by Antoine Quint. Source/WebCore: An active animation for which the effect is removed may be considered for an upcoming animation resolution. However, WebAnimation::timeToNextTick() expects a valid effect to be available to be able to determine timing. We now check an animation is relevant before calling timeToNextTick() and add an ASSERT() in that function to catch cases where an animation effect might not be available. * webanimations/animation-null-effect-expected.txt: Added. * webanimations/animation-null-effect.html: Added. 2020-02-14 Russell Epstein Cherry-pick r255889. rdar://problem/59446995 [WTF] Try using 75% load factor for HashTable https://bugs.webkit.org/show_bug.cgi?id=207183 Reviewed by Mark Lam. Source/WTF: We know that hash-table is one of the most memory consuming part in WebKit. By analyzing many production hash-table implementations[1], I found that many of them are using 75% load-factor while our one is 50%. A/B test shows that 75% load-factor is performance-neutral in Speedometer2 and JetStream2, while it offers 2~% improvement in Membuster. This means that we are wasting too much memory for no-performance-improvement. This patch changes the load-factor from 50% to 75%. [1]: LLVM DenseMap, Abseil's, rust's, and so on. * wtf/HashTable.h: (WTF::HashTable::shouldExpand): (WTF::HashTable::shouldExpand const): (WTF::HashTableCapacityForSize::capacityForSize): (WTF::KeyTraits>::computeBestTableSize): Tools: Fix load-factor assumption in existing tests. * TestWebKitAPI/Tests/WTF/HashSet.cpp: (TestWebKitAPI::testInitialCapacity): LayoutTests: It seems that this test is relying on hash-table's order. * http/tests/resourceLoadStatistics/aggregate-sorted-data-no-storage-access-expected.txt: git-svn-id: https://svn.webkit.org/repository/webkit/trunk@255889 268f45cc-cd09-0410-ab3c-d52691b4dbfc 2020-02-05 Yusuke Suzuki [WTF] Try using 75% load factor for HashTable https://bugs.webkit.org/show_bug.cgi?id=207183 Reviewed by Mark Lam. It seems that this test is relying on hash-table's order. * http/tests/resourceLoadStatistics/aggregate-sorted-data-no-storage-access-expected.txt: 2020-02-14 Russell Epstein Cherry-pick r256427. rdar://problem/59447029 Fix crash due to uninitialized currentStyle in CSSTransition https://bugs.webkit.org/show_bug.cgi?id=205959 Patch by Sunny He on 2020-02-12 Reviewed by Antoine Quint. Source/WebCore: Test: legacy-animation-engine/transitions/svg-bad-scale-crash.html * animation/CSSTransition.cpp: (WebCore::CSSTransition::create): (WebCore::CSSTransition::CSSTransition): * animation/CSSTransition.h: LayoutTests: Fix crash due to uninitialized currentStyle in CSSTransition * legacy-animation-engine/transitions/svg-bad-scale-crash-expected.txt: Added. * legacy-animation-engine/transitions/svg-bad-scale-crash.html: Added. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@256427 268f45cc-cd09-0410-ab3c-d52691b4dbfc 2020-02-12 Sunny He Fix crash due to uninitialized currentStyle in CSSTransition https://bugs.webkit.org/show_bug.cgi?id=205959 Reviewed by Antoine Quint. Fix crash due to uninitialized currentStyle in CSSTransition * legacy-animation-engine/transitions/svg-bad-scale-crash-expected.txt: Added. * legacy-animation-engine/transitions/svg-bad-scale-crash.html: Added. 2020-02-14 Russell Epstein Cherry-pick r256346. rdar://problem/59446984 video.currentTime is not being updated in iOS 13.4 Beta https://bugs.webkit.org/show_bug.cgi?id=207489 Reviewed by Youenn Fablet. Source/WebKit: Allow the Web process and the GPU process to communicate with 'com.apple.coremedia.audiodeviceclock.xpc' because it is necessary to use a CMTimeBase, which is used by MediaPlayerPrivateMediaStreamAVFObjC for currentTime. Test: fast/mediastream/media-element-current-time.html * Resources/SandboxProfiles/ios/com.apple.WebKit.GPU.sb: * Resources/SandboxProfiles/ios/com.apple.WebKit.WebContent.sb: LayoutTests: * fast/mediastream/media-element-current-time.html: Added. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@256346 268f45cc-cd09-0410-ab3c-d52691b4dbfc 2020-02-11 Eric Carlson video.currentTime is not being updated in iOS 13.4 Beta https://bugs.webkit.org/show_bug.cgi?id=207489 Reviewed by Youenn Fablet. * fast/mediastream/media-element-current-time.html: Added. 2020-02-14 Russell Epstein Cherry-pick r256207. rdar://problem/59447263 Don't update selection when calling setSelectionRange on a disconnected input element https://bugs.webkit.org/show_bug.cgi?id=207357 Reviewed by Antti Koivisto. LayoutTests/imported/w3c: Rebaselined the test that progressed a little. The test now passes offset checks but still fails direction check. * web-platform-tests/html/semantics/forms/textfieldselection/selection-not-application-textarea-expected.txt: Source/WebCore: Don't update FrameSelection when the text form control element is disconnected from document. * html/HTMLTextFormControlElement.cpp: (WebCore::HTMLTextFormControlElement::setSelectionRange): LayoutTests: Rebaselined the test that has progressed with this change. * platform/ios-wk2/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/type-change-state-expected.txt: * platform/mac-wk2/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/type-change-state-expected.txt: * platform/mac/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/type-change-state-expected.txt: git-svn-id: https://svn.webkit.org/repository/webkit/trunk@256207 268f45cc-cd09-0410-ab3c-d52691b4dbfc 2020-02-07 Ryosuke Niwa Don't update selection when calling setSelectionRange on a disconnected input element https://bugs.webkit.org/show_bug.cgi?id=207357 Reviewed by Antti Koivisto. Rebaselined the test that has progressed with this change. * platform/ios-wk2/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/type-change-state-expected.txt: * platform/mac-wk2/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/type-change-state-expected.txt: * platform/mac/imported/w3c/web-platform-tests/html/semantics/forms/the-input-element/type-change-state-expected.txt: 2020-02-13 Russell Epstein Cherry-pick r256485. rdar://problem/59430261 Composition highlight rects should be rounded and inset https://bugs.webkit.org/show_bug.cgi?id=207655 Reviewed by Tim Horton. Source/WebCore: Apply a couple of minor adjustments to the appearance of composition highlight rects that appear behind marked text, in the case where the client specifies attributed marked text with background colors. Test: editing/input/composition-highlights.html * rendering/InlineTextBox.cpp: (WebCore::InlineTextBox::paintMarkedTextBackground): (WebCore::InlineTextBox::paintCompositionBackground): In the case where custom composition rects are specified, add a half-pixel inset to all sides of the background rect, and add a slight corner radius around each background rect. * rendering/InlineTextBox.h: Source/WebKit: Stitch adjacent highlight rects together if they have the same highlight color; this minimizes the number of composition highlight rects we hand to the web process when changing the marked text. * UIProcess/ios/WKContentViewInteraction.mm: (compositionHighlights): LayoutTests: Make this existing layout test work with the new composition highlight appearance by covering up the edges of the composition highlight rect with a black border. Due to subpixel insets around the composition highlight rect, the reference image would be offset by a half pixel without this change (even when changing the spans to have a `border-radius`). * editing/input/composition-highlights-expected.html: * editing/input/composition-highlights.html: git-svn-id: https://svn.webkit.org/repository/webkit/trunk@256485 268f45cc-cd09-0410-ab3c-d52691b4dbfc 2020-02-12 Wenson Hsieh Composition highlight rects should be rounded and inset https://bugs.webkit.org/show_bug.cgi?id=207655 Reviewed by Tim Horton. Make this existing layout test work with the new composition highlight appearance by covering up the edges of the composition highlight rect with a black border. Due to subpixel insets around the composition highlight rect, the reference image would be offset by a half pixel without this change (even when changing the spans to have a `border-radius`). * editing/input/composition-highlights-expected.html: * editing/input/composition-highlights.html: 2020-02-11 Alan Coon Cherry-pick r255668. rdar://problem/59299120 MediaDevices should handle changes of iframe allow attribute value https://bugs.webkit.org/show_bug.cgi?id=207112 Reviewed by Eric Carlson. LayoutTests/imported/w3c: * web-platform-tests/mediacapture-streams/MediaStream-default-feature-policy.https-expected.txt: * web-platform-tests/mediacapture-streams/MediaStream-feature-policy-none.https-expected.txt: Source/WebCore: MediaDevices was computing whether it could access camera or microphone at creation time. Since the iframe allow attribute can be modified, we cannot do that. Instead, we get the feature policy everytime this is needed. Refactor code to use the newly added routine to check for feature policy. Update logging to give origin and allow attribute value of the frame that fail the feature policy check. Test: http/tests/webrtc/enumerateDevicesInFrames.html * Modules/mediastream/MediaDevices.cpp: (WebCore::MediaDevices::MediaDevices): (WebCore::MediaDevices::refreshDevices): (WebCore::MediaDevices::enumerateDevices): (WebCore::MediaDevices::listenForDeviceChanges): * Modules/mediastream/MediaDevices.h: * Modules/mediastream/UserMediaController.cpp: (WebCore::UserMediaController::logGetUserMediaDenial): (WebCore::UserMediaController::logGetDisplayMediaDenial): (WebCore::UserMediaController::logEnumerateDevicesDenial): * Modules/mediastream/UserMediaController.h: * Modules/mediastream/UserMediaRequest.cpp: (WebCore::UserMediaRequest::start): * html/FeaturePolicy.cpp: (WebCore::policyTypeName): (WebCore::isFeaturePolicyAllowedByDocumentAndAllOwners): * html/FeaturePolicy.h: * page/DOMWindow.cpp: (WebCore::DOMWindow::printErrorMessage const): * page/DOMWindow.h: LayoutTests: * TestExpectations: * fullscreen/full-screen-enabled-expected.txt: * fullscreen/full-screen-enabled-prefixed-expected.txt: * fullscreen/full-screen-iframe-not-allowed-expected.txt: * fullscreen/full-screen-iframe-without-allow-attribute-allowed-from-parent-expected.txt: * fullscreen/full-screen-restrictions-expected.txt: * http/tests/fullscreen/fullscreen-feature-policy-expected.txt: * http/tests/media/media-stream/enumerate-devices-iframe-allow-attribute-expected.txt: * http/tests/media/media-stream/get-display-media-iframe-allow-attribute-expected.txt: * http/tests/ssl/media-stream/get-user-media-different-host-expected.txt: * http/tests/ssl/media-stream/get-user-media-nested-expected.txt: * http/tests/webrtc/enumerateDevicesInFrames-expected.txt: Added. * http/tests/webrtc/enumerateDevicesInFrames.html: Added. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@255668 268f45cc-cd09-0410-ab3c-d52691b4dbfc 2020-02-04 youenn fablet MediaDevices should handle changes of iframe allow attribute value https://bugs.webkit.org/show_bug.cgi?id=207112 Reviewed by Eric Carlson. * TestExpectations: * fullscreen/full-screen-enabled-expected.txt: * fullscreen/full-screen-enabled-prefixed-expected.txt: * fullscreen/full-screen-iframe-not-allowed-expected.txt: * fullscreen/full-screen-iframe-without-allow-attribute-allowed-from-parent-expected.txt: * fullscreen/full-screen-restrictions-expected.txt: * http/tests/fullscreen/fullscreen-feature-policy-expected.txt: * http/tests/media/media-stream/enumerate-devices-iframe-allow-attribute-expected.txt: * http/tests/media/media-stream/get-display-media-iframe-allow-attribute-expected.txt: * http/tests/ssl/media-stream/get-user-media-different-host-expected.txt: * http/tests/ssl/media-stream/get-user-media-nested-expected.txt: * http/tests/webrtc/enumerateDevicesInFrames-expected.txt: Added. * http/tests/webrtc/enumerateDevicesInFrames.html: Added. 2020-02-11 Alan Coon Cherry-pick r255825. rdar://problem/59299127 REGRESSION: [ iOS wk2 ] fast/scrolling/ios/scroll-events-back-forward.html is flaky failing https://bugs.webkit.org/show_bug.cgi?id=207194 Reviewed by Wenson Hsieh. Test was flaky because it relied on a 10ms timer. * fast/scrolling/ios/scroll-events-back-forward-expected.txt: * fast/scrolling/ios/scroll-events-back-forward.html: * platform/ios-wk2/TestExpectations: git-svn-id: https://svn.webkit.org/repository/webkit/trunk@255825 268f45cc-cd09-0410-ab3c-d52691b4dbfc 2020-02-05 Chris Dumez REGRESSION: [ iOS wk2 ] fast/scrolling/ios/scroll-events-back-forward.html is flaky failing https://bugs.webkit.org/show_bug.cgi?id=207194 Reviewed by Wenson Hsieh. Test was flaky because it relied on a 10ms timer. * fast/scrolling/ios/scroll-events-back-forward-expected.txt: * fast/scrolling/ios/scroll-events-back-forward.html: * platform/ios-wk2/TestExpectations: 2020-02-11 Alan Coon Cherry-pick r255162. rdar://problem/59299120 Support 'allow="fullscreen"' feature policy https://bugs.webkit.org/show_bug.cgi?id=206806 Patch by Jer Noble on 2020-01-27 Reviewed by Youenn Fablet. Source/WebCore: Test: http/tests/fullscreen/fullscreen-feature-policy.html The unprefixed version of the Fullscreen API has deprecated the 'allowfullscreen' iframe attribute in favor of the 'allow="fullscreen"' style attribute used by Feature Policy. Add support for such, including the specified handling for the legacy 'allowfullscreen' attribute. Note: this patch will (intentionally) change the default behavior of