[webkit-changes] [266579] trunk/Source/WTF
Title: [266579] trunk/Source/WTF Revision 266579 Author rn...@webkit.org Date 2020-09-03 23:10:30 -0700 (Thu, 03 Sep 2020) Log Message GTK+ build fix attempt after r266573. * wtf/CompactUniquePtrTuple.h: Modified Paths trunk/Source/WTF/ChangeLog trunk/Source/WTF/wtf/CompactUniquePtrTuple.h Diff Modified: trunk/Source/WTF/ChangeLog (266578 => 266579) --- trunk/Source/WTF/ChangeLog 2020-09-04 05:58:17 UTC (rev 266578) +++ trunk/Source/WTF/ChangeLog 2020-09-04 06:10:30 UTC (rev 266579) @@ -1,3 +1,9 @@ +2020-09-03 Ryosuke Niwa + +GTK+ build fix attempt after r266573. + +* wtf/CompactUniquePtrTuple.h: + 2020-09-02 Ryosuke Niwa Add CompactUniquePtrTuple Modified: trunk/Source/WTF/wtf/CompactUniquePtrTuple.h (266578 => 266579) --- trunk/Source/WTF/wtf/CompactUniquePtrTuple.h 2020-09-04 05:58:17 UTC (rev 266578) +++ trunk/Source/WTF/wtf/CompactUniquePtrTuple.h 2020-09-04 06:10:30 UTC (rev 266579) @@ -80,7 +80,7 @@ return std::unique_ptr(pointer); } -void setPointer(nullptr_t) +void setPointer(std::nullptr_t) { deletePointer(); m_data.setPointer(nullptr); ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [266578] trunk/Source/WebCore
Title: [266578] trunk/Source/WebCore Revision 266578 Author rn...@webkit.org Date 2020-09-03 22:58:17 -0700 (Thu, 03 Sep 2020) Log Message Store all styling flags in m_rendererWithStyleFlags https://bugs.webkit.org/show_bug.cgi?id=216069 Reviewed by Darin Adler. This patch moves all remaining styling flags and Style::Validity from m_nodeFlags to m_rendererWithStyleFlags since CSS JIT no longer rely on these flags directly and CompactPointerTuple has been expanded to store up to 16 bits of data as opposed to just 8 bits. No new tests since there should be no behavioral change. * dom/ContainerNode.h: (WebCore::ContainerNode::directChildNeedsStyleRecalc const): (WebCore::ContainerNode::setDirectChildNeedsStyleRecalc): * dom/Element.cpp: (WebCore::Element::resetStyleRelations): * dom/Element.h: (WebCore::Element::styleAffectedByEmpty const): (WebCore::Element::descendantsAffectedByPreviousSibling const): (WebCore::Element::childrenAffectedByFirstChildRules const): (WebCore::Element::childrenAffectedByLastChildRules const): (WebCore::Element::childrenAffectedByForwardPositionalRules const): (WebCore::Element::descendantsAffectedByForwardPositionalRules const): (WebCore::Element::childrenAffectedByBackwardPositionalRules const): (WebCore::Element::descendantsAffectedByBackwardPositionalRules const): (WebCore::Element::childrenAffectedByPropertyBasedBackwardPositionalRules const): (WebCore::Element::affectsNextSiblingElementStyle const): (WebCore::Element::styleIsAffectedByPreviousSibling const): Moved here from Node. (WebCore::Element::setStyleAffectedByEmpty): (WebCore::Element::setDescendantsAffectedByPreviousSibling): (WebCore::Element::setChildrenAffectedByFirstChildRules): (WebCore::Element::setChildrenAffectedByLastChildRules): (WebCore::Element::setChildrenAffectedByForwardPositionalRules): (WebCore::Element::setDescendantsAffectedByForwardPositionalRules): (WebCore::Element::setChildrenAffectedByBackwardPositionalRules): (WebCore::Element::setDescendantsAffectedByBackwardPositionalRules): (WebCore::Element::setChildrenAffectedByPropertyBasedBackwardPositionalRules): (WebCore::Element::setAffectsNextSiblingElementStyle): (WebCore::Element::setStyleIsAffectedByPreviousSibling): * dom/Node.cpp: (WebCore::Node::adjustStyleValidity): * dom/Node.h: (WebCore::Node::styleValidity const): (WebCore::Node::styleResolutionShouldRecompositeLayer const): (WebCore::Node::childNeedsStyleRecalc const): (WebCore::Node::styleIsAffectedByPreviousSibling const): Moved to Element. (WebCore::Node::setChildNeedsStyleRecalc): (WebCore::Node::flagChildrenAffectedByFirstChildRulesFlag): Deleted. (WebCore::Node::flagChildrenAffectedByLastChildRulesFlag): Deleted. (WebCore::Node::flagAffectsNextSiblingElementStyle): Deleted. (WebCore::Node::flagStyleIsAffectedByPreviousSibling): Deleted. (WebCore::Node::NodeStyleFlag): Added. Moved most of flags from m_nodeFlags here. (WebCore::Node::DynamicStyleRelationFlag): Renamed from ElementStyleFlag. (WebCore::Node::StyleBitfields): Added. A helper struct to read and manipulate bit-fields stored in m_rendererWithStyleFlags. (WebCore::Node::StyleBitfields::fromRaw): Added. (WebCore::Node::StyleBitfields::toRaw): Added. (WebCore::Node::StyleBitfields::styleValidity const): Added. (WebCore::Node::StyleBitfields::setStyleValidity): Added. (WebCore::Node::StyleBitfields::dynamicStyleRelations const): Added. (WebCore::Node::StyleBitfields::setDynamicStyleRelation): Added. (WebCore::Node::StyleBitfields::clearDynamicStyleRelations): Added. (WebCore::Node::StyleBitfields::flags const): Added. (WebCore::Node::StyleBitfields::setFlag): Added. (WebCore::Node::StyleBitfields::clearFlag): Added. (WebCore::Node::StyleBitfields::clearDescendantsNeedStyleResolution): Added. (WebCore::Node::styleBitfields const): Added. (WebCore::Node::setStyleBitfields): Added. (WebCore::Node::hasStyleFlag const): (WebCore::Node::setStyleFlag): (WebCore::Node::clearStyleFlags): Deleted. (WebCore::Node::hasDynamicStyleRelationFlag const): Added. (WebCore::Node::setHasValidStyle): Moved here from the class declaration. (WebCore::Node::setDynamicStyleRelationFlag): Added. (WebCore::Node::clearChildNeedsStyleRecalc): Added. (WebCore::Node::setHasValidStyle): Modified Paths trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/dom/ContainerNode.h trunk/Source/WebCore/dom/Element.cpp trunk/Source/WebCore/dom/Element.h trunk/Source/WebCore/dom/Node.cpp trunk/Source/WebCore/dom/Node.h Diff Modified: trunk/Source/WebCore/ChangeLog (266577 => 266578) --- trunk/Source/WebCore/ChangeLog 2020-09-04 05:19:20 UTC (rev 266577) +++ trunk/Source/WebCore/ChangeLog 2020-09-04 05:58:17 UTC (rev 266578) @@ -1,3 +1,83 @@ +2020-09-03 Ryosuke Niwa + +Store all styling flags in m_rendererWithStyleFlags +https://bugs.webkit.org/show_bug.cgi?id=216069 + +Reviewed by Darin Adler. + +This patch moves all remaining styling flags and Style::Validity from m_nodeFlags +to m_rendererWithStyleFlags
[webkit-changes] [266577] trunk/Source/JavaScriptCore
Title: [266577] trunk/Source/_javascript_Core Revision 266577 Author carlo...@webkit.org Date 2020-09-03 22:19:20 -0700 (Thu, 03 Sep 2020) Log Message Unreviewed. [GLIB] Add missing return There's no change in behavior because jsObjectCall() returns undefined in case of failure, but fixes a memory leak. * API/glib/JSCValue.cpp: (jsc_value_object_invoke_methodv): Modified Paths trunk/Source/_javascript_Core/API/glib/JSCValue.cpp trunk/Source/_javascript_Core/ChangeLog Diff Modified: trunk/Source/_javascript_Core/API/glib/JSCValue.cpp (266576 => 266577) --- trunk/Source/_javascript_Core/API/glib/JSCValue.cpp 2020-09-04 05:13:53 UTC (rev 266576) +++ trunk/Source/_javascript_Core/API/glib/JSCValue.cpp 2020-09-04 05:19:20 UTC (rev 266577) @@ -1010,7 +1010,7 @@ auto result = jsObjectCall(jsContext, function, JSC::JSCCallbackFunction::Type::Method, object, arguments, &exception); if (jscContextHandleExceptionIfNeeded(priv->context.get(), exception)) -jsc_value_new_undefined(priv->context.get()); +return jsc_value_new_undefined(priv->context.get()); return jscContextGetOrCreateValue(priv->context.get(), result).leakRef(); } Modified: trunk/Source/_javascript_Core/ChangeLog (266576 => 266577) --- trunk/Source/_javascript_Core/ChangeLog 2020-09-04 05:13:53 UTC (rev 266576) +++ trunk/Source/_javascript_Core/ChangeLog 2020-09-04 05:19:20 UTC (rev 266577) @@ -1,3 +1,12 @@ +2020-09-03 Carlos Garcia Campos + +Unreviewed. [GLIB] Add missing return + +There's no change in behavior because jsObjectCall() returns undefined in case of failure, but fixes a memory leak. + +* API/glib/JSCValue.cpp: +(jsc_value_object_invoke_methodv): + 2020-09-02 Yusuke Suzuki [JSC] Cache toString / valueOf / @@toPrimitive for major cases ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [266576] trunk
Title: [266576] trunk Revision 266576 Author carlo...@webkit.org Date 2020-09-03 22:13:53 -0700 (Thu, 03 Sep 2020) Log Message [GTK] Unexpected User-Agent on redirect https://bugs.webkit.org/show_bug.cgi?id=191858 Reviewed by Youenn Fablet. Source/WebKit: Clear the user agent on new request after a redirect to ensure a new one is computed taking into account the quirks if needed. Also ensure quirks are applied for downloads started in the UI process. * NetworkProcess/soup/NetworkDataTaskSoup.cpp: (WebKit::NetworkDataTaskSoup::continueHTTPRedirection): Clear the user agent on new request. * UIProcess/API/glib/WebKitDownloadClient.cpp: * UIProcess/WebPageProxy.h: Add userAgentForURL(). * UIProcess/WebProcessPool.cpp: (WebKit::WebProcessPool::download): Use userAgentForURL() instead of userAgent(). * UIProcess/gtk/WebPageProxyGtk.cpp: (WebKit::WebPageProxy::userAgentForURL): Implement it to apply quirks if needed. * UIProcess/ios/WebPageProxyIOS.mm: (WebKit::WebPageProxy::userAgentForURL): Just return the web page user agent. * UIProcess/mac/WebPageProxyMac.mm: (WebKit::WebPageProxy::userAgentForURL): Ditto. * UIProcess/playstation/WebPageProxyPlayStation.cpp: (WebKit::WebPageProxy::userAgentForURL): Ditto. * UIProcess/win/WebPageProxyWin.cpp: (WebKit::WebPageProxy::userAgentForURL): Ditto. * UIProcess/wpe/WebPageProxyWPE.cpp: (WebKit::WebPageProxy::userAgentForURL): Ditto. Tools: Add unit tests to check the user agent is sent in headers and preserved after a redirect for both main resource and subresources. * TestWebKitAPI/Tests/WebKitGLib/TestDownloads.cpp: (serverCallback): (testDownloadUserAgent): (beforeAll): * TestWebKitAPI/Tests/WebKitGLib/TestLoaderClient.cpp: (testUserAgent): (serverCallback): (beforeAll): Modified Paths trunk/Source/WebKit/ChangeLog trunk/Source/WebKit/NetworkProcess/soup/NetworkDataTaskSoup.cpp trunk/Source/WebKit/UIProcess/API/glib/WebKitDownloadClient.cpp trunk/Source/WebKit/UIProcess/WebPageProxy.h trunk/Source/WebKit/UIProcess/WebProcessPool.cpp trunk/Source/WebKit/UIProcess/gtk/WebPageProxyGtk.cpp trunk/Source/WebKit/UIProcess/ios/WebPageProxyIOS.mm trunk/Source/WebKit/UIProcess/mac/WebPageProxyMac.mm trunk/Source/WebKit/UIProcess/playstation/WebPageProxyPlayStation.cpp trunk/Source/WebKit/UIProcess/win/WebPageProxyWin.cpp trunk/Source/WebKit/UIProcess/wpe/WebPageProxyWPE.cpp trunk/Tools/ChangeLog trunk/Tools/TestWebKitAPI/Tests/WebKitGLib/TestDownloads.cpp trunk/Tools/TestWebKitAPI/Tests/WebKitGLib/TestLoaderClient.cpp Diff Modified: trunk/Source/WebKit/ChangeLog (266575 => 266576) --- trunk/Source/WebKit/ChangeLog 2020-09-04 03:07:48 UTC (rev 266575) +++ trunk/Source/WebKit/ChangeLog 2020-09-04 05:13:53 UTC (rev 266576) @@ -1,3 +1,32 @@ +2020-09-03 Carlos Garcia Campos + +[GTK] Unexpected User-Agent on redirect +https://bugs.webkit.org/show_bug.cgi?id=191858 + +Reviewed by Youenn Fablet. + +Clear the user agent on new request after a redirect to ensure a new one is computed taking into account the +quirks if needed. Also ensure quirks are applied for downloads started in the UI process. + +* NetworkProcess/soup/NetworkDataTaskSoup.cpp: +(WebKit::NetworkDataTaskSoup::continueHTTPRedirection): Clear the user agent on new request. +* UIProcess/API/glib/WebKitDownloadClient.cpp: +* UIProcess/WebPageProxy.h: Add userAgentForURL(). +* UIProcess/WebProcessPool.cpp: +(WebKit::WebProcessPool::download): Use userAgentForURL() instead of userAgent(). +* UIProcess/gtk/WebPageProxyGtk.cpp: +(WebKit::WebPageProxy::userAgentForURL): Implement it to apply quirks if needed. +* UIProcess/ios/WebPageProxyIOS.mm: +(WebKit::WebPageProxy::userAgentForURL): Just return the web page user agent. +* UIProcess/mac/WebPageProxyMac.mm: +(WebKit::WebPageProxy::userAgentForURL): Ditto. +* UIProcess/playstation/WebPageProxyPlayStation.cpp: +(WebKit::WebPageProxy::userAgentForURL): Ditto. +* UIProcess/win/WebPageProxyWin.cpp: +(WebKit::WebPageProxy::userAgentForURL): Ditto. +* UIProcess/wpe/WebPageProxyWPE.cpp: +(WebKit::WebPageProxy::userAgentForURL): Ditto. + 2020-09-02 Darin Adler Remove EAffinity, UPSTREAM, DOWNSTREAM, SEL_DEFAULT_AFFINITY, and VisibleSelection::selectionType Modified: trunk/Source/WebKit/NetworkProcess/soup/NetworkDataTaskSoup.cpp (266575 => 266576) --- trunk/Source/WebKit/NetworkProcess/soup/NetworkDataTaskSoup.cpp 2020-09-04 03:07:48 UTC (rev 266575) +++ trunk/Source/WebKit/NetworkProcess/soup/NetworkDataTaskSoup.cpp 2020-09-04 05:13:53 UTC (rev 266576) @@ -671,6 +671,10 @@ redirectedURL.setFragmentIdentifier(request.url().fragmentIdentifier()); request.setURL(redirectedURL); +// Clear the user agent to ensure a new one is computed. +auto userAgent = request.httpUserAgent(); +request.clearHTTPUserAgent(); + // Should not set
[webkit-changes] [266575] trunk/LayoutTests/imported/w3c
Title: [266575] trunk/LayoutTests/imported/w3c Revision 266575 Author cdu...@apple.com Date 2020-09-03 20:07:48 -0700 (Thu, 03 Sep 2020) Log Message Unreviewed, rebaseline flaky Web Audio tests. * web-platform-tests/webaudio/the-audio-api/the-audiobuffersourcenode-interface/buffer-resampling-expected.txt: * web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-biquad-connection-expected.txt: * web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-delay-connections-expected.txt: * web-platform-tests/webaudio/the-audio-api/the-convolvernode-interface/convolver-response-1-chan-expected.txt: * web-platform-tests/webaudio/the-audio-api/the-convolvernode-interface/convolver-response-2-chan-expected.txt: * web-platform-tests/webaudio/the-audio-api/the-convolvernode-interface/convolver-response-4-chan-expected.txt: * web-platform-tests/webaudio/the-audio-api/the-convolvernode-interface/convolver-upmixing-1-channel-response-expected.txt: * web-platform-tests/webaudio/the-audio-api/the-gainnode-interface/no-dezippering-expected.txt: * web-platform-tests/webaudio/the-audio-api/the-pannernode-interface/panner-equalpower-expected.txt: * web-platform-tests/webaudio/the-audio-api/the-pannernode-interface/panner-rolloff-clamping-expected.txt: * web-platform-tests/webaudio/the-audio-api/the-stereopanner-interface/no-dezippering-expected.txt: * web-platform-tests/webaudio/the-audio-api/the-waveshapernode-interface/waveshaper-copy-curve-expected.txt: Modified Paths trunk/LayoutTests/imported/w3c/ChangeLog trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audiobuffersourcenode-interface/buffer-resampling-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-biquad-connection-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-delay-connections-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-convolvernode-interface/convolver-response-1-chan-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-convolvernode-interface/convolver-response-2-chan-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-convolvernode-interface/convolver-response-4-chan-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-convolvernode-interface/convolver-upmixing-1-channel-response-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-gainnode-interface/no-dezippering-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-pannernode-interface/panner-equalpower-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-pannernode-interface/panner-rolloff-clamping-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-stereopanner-interface/no-dezippering-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-waveshapernode-interface/waveshaper-copy-curve-expected.txt Diff Modified: trunk/LayoutTests/imported/w3c/ChangeLog (266574 => 266575) --- trunk/LayoutTests/imported/w3c/ChangeLog 2020-09-04 03:03:47 UTC (rev 266574) +++ trunk/LayoutTests/imported/w3c/ChangeLog 2020-09-04 03:07:48 UTC (rev 266575) @@ -1,5 +1,22 @@ 2020-09-03 Chris Dumez +Unreviewed, rebaseline flaky Web Audio tests. + +* web-platform-tests/webaudio/the-audio-api/the-audiobuffersourcenode-interface/buffer-resampling-expected.txt: +* web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-biquad-connection-expected.txt: +* web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-delay-connections-expected.txt: +* web-platform-tests/webaudio/the-audio-api/the-convolvernode-interface/convolver-response-1-chan-expected.txt: +* web-platform-tests/webaudio/the-audio-api/the-convolvernode-interface/convolver-response-2-chan-expected.txt: +* web-platform-tests/webaudio/the-audio-api/the-convolvernode-interface/convolver-response-4-chan-expected.txt: +* web-platform-tests/webaudio/the-audio-api/the-convolvernode-interface/convolver-upmixing-1-channel-response-expected.txt: +* web-platform-tests/webaudio/the-audio-api/the-gainnode-interface/no-dezippering-expected.txt: +* web-platform-tests/webaudio/the-audio-api/the-pannernode-interface/panner-equalpower-expected.txt: +* web-platform-tests/webaudio/the-audio-api/the-pannernode-interface/panner-rolloff-clamping-expected.txt: +* web-platform-tests/webaudio/the-audio-api/the-stereopanner-interface/no-dezippering-expected.txt: +* web-platform-tests/webaudio/the-audio-api/the-waveshapernode-interface/waveshaper-copy-curve-expected.txt: + +2020-09-03 Chris Dumez +
[webkit-changes] [266574] trunk/LayoutTests
Title: [266574] trunk/LayoutTests Revision 266574 Author rack...@apple.com Date 2020-09-03 20:03:47 -0700 (Thu, 03 Sep 2020) Log Message [ Catalina debug wk2 ] html5lib/generated/run-template-data.html is a flaky crash https://bugs.webkit.org/show_bug.cgi?id=216164 Unreviewed test gardening. * platform/mac-wk2/TestExpectations: Modified Paths trunk/LayoutTests/ChangeLog trunk/LayoutTests/platform/mac-wk2/TestExpectations Diff Modified: trunk/LayoutTests/ChangeLog (266573 => 266574) --- trunk/LayoutTests/ChangeLog 2020-09-04 03:01:34 UTC (rev 266573) +++ trunk/LayoutTests/ChangeLog 2020-09-04 03:03:47 UTC (rev 266574) @@ -1,3 +1,12 @@ +2020-09-03 Karl Rackler + +[ Catalina debug wk2 ] html5lib/generated/run-template-data.html is a flaky crash +https://bugs.webkit.org/show_bug.cgi?id=216164 + +Unreviewed test gardening. + +* platform/mac-wk2/TestExpectations: + 2020-09-03 Hector Lopez Correction for Rebasline at changeset https://trac.webkit.org/changeset/266500/webkit Modified: trunk/LayoutTests/platform/mac-wk2/TestExpectations (266573 => 266574) --- trunk/LayoutTests/platform/mac-wk2/TestExpectations 2020-09-04 03:01:34 UTC (rev 266573) +++ trunk/LayoutTests/platform/mac-wk2/TestExpectations 2020-09-04 03:03:47 UTC (rev 266574) @@ -1283,3 +1283,4 @@ webkit.org/b/216159 imported/w3c/web-platform-tests/webrtc/RTCPeerConnection-restartIce.https.html [ Pass Failure ] +webkit.org/b/216164 [ Catalina Debug ] html5lib/generated/run-template-data.html [ Pass Crash ] \ No newline at end of file ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [266573] trunk
Title: [266573] trunk Revision 266573 Author rn...@webkit.org Date 2020-09-03 20:01:34 -0700 (Thu, 03 Sep 2020) Log Message Add CompactUniquePtrTuple https://bugs.webkit.org/show_bug.cgi?id=215936 Reviewed by Darin Adler. Source/WTF: Added a new template class, CompactUniquePtrTuple, which stores a pointer and up to 16-bits of a POD type using CompactPointerTuple. * WTF.xcodeproj/project.pbxproj: * wtf/CMakeLists.txt: * wtf/CompactUniquePtrTuple.h: Added. (WTF::makeCompactUniquePtr): Added. Like makeUnique, creates an object of the specified type and returns CompactUniquePtrTuple. (WTF::CompactUniquePtrTuple): Added. (WTF::CompactUniquePtrTuple::CompactUniquePtrTuple): Move constructor. (WTF::CompactUniquePtrTuple::~CompactUniquePtrTuple): (WTF::CompactUniquePtrTuple::operator=): (WTF::CompactUniquePtrTuple::pointer): (WTF::CompactUniquePtrTuple::moveToUniquePtr): Clears this pointer and returns unique_ptr. (WTF::CompactUniquePtrTuple::setPointer): Like CompactPointerTuple sets the pointer component of this tuple, freeing the old object if there is already one stored. (WTF::CompactUniquePtrTuple::type): (WTF::CompactUniquePtrTuple::setType): (WTF::CompactUniquePtrTuple::CompactUniquePtrTuple): Constructor which takes unique_ptr&&. (WTF::CompactUniquePtrTuple::deletePointer): Tools: Added basic unit tests for CompactUniquePtrTuple. * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WTF/CompactUniquePtrTuple.cpp: Added. (TestWebKitAPI::A): Adde. (TestWebKitAPI::A::A): (TestWebKitAPI::A::~A): (WTF_CompactUniquePtrTuple.Basic): Modified Paths trunk/Source/WTF/ChangeLog trunk/Source/WTF/WTF.xcodeproj/project.pbxproj trunk/Source/WTF/wtf/CMakeLists.txt trunk/Tools/ChangeLog trunk/Tools/TestWebKitAPI/CMakeLists.txt trunk/Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj Added Paths trunk/Source/WTF/wtf/CompactUniquePtrTuple.h trunk/Tools/TestWebKitAPI/Tests/WTF/CompactUniquePtrTuple.cpp Diff Modified: trunk/Source/WTF/ChangeLog (266572 => 266573) --- trunk/Source/WTF/ChangeLog 2020-09-04 02:33:25 UTC (rev 266572) +++ trunk/Source/WTF/ChangeLog 2020-09-04 03:01:34 UTC (rev 266573) @@ -1,5 +1,33 @@ 2020-09-02 Ryosuke Niwa +Add CompactUniquePtrTuple +https://bugs.webkit.org/show_bug.cgi?id=215936 + +Reviewed by Darin Adler. + +Added a new template class, CompactUniquePtrTuple, which stores a pointer and up to 16-bits of +a POD type using CompactPointerTuple. + +* WTF.xcodeproj/project.pbxproj: +* wtf/CMakeLists.txt: +* wtf/CompactUniquePtrTuple.h: Added. +(WTF::makeCompactUniquePtr): Added. Like makeUnique, creates an object of the specified type +and returns CompactUniquePtrTuple. +(WTF::CompactUniquePtrTuple): Added. +(WTF::CompactUniquePtrTuple::CompactUniquePtrTuple): Move constructor. +(WTF::CompactUniquePtrTuple::~CompactUniquePtrTuple): +(WTF::CompactUniquePtrTuple::operator=): +(WTF::CompactUniquePtrTuple::pointer): +(WTF::CompactUniquePtrTuple::moveToUniquePtr): Clears this pointer and returns unique_ptr. +(WTF::CompactUniquePtrTuple::setPointer): Like CompactPointerTuple sets the pointer component +of this tuple, freeing the old object if there is already one stored. +(WTF::CompactUniquePtrTuple::type): +(WTF::CompactUniquePtrTuple::setType): +(WTF::CompactUniquePtrTuple::CompactUniquePtrTuple): Constructor which takes unique_ptr&&. +(WTF::CompactUniquePtrTuple::deletePointer): + +2020-09-02 Ryosuke Niwa + Add a variant of map which filters items to Vector.h https://bugs.webkit.org/show_bug.cgi?id=215879 Modified: trunk/Source/WTF/WTF.xcodeproj/project.pbxproj (266572 => 266573) --- trunk/Source/WTF/WTF.xcodeproj/project.pbxproj 2020-09-04 02:33:25 UTC (rev 266572) +++ trunk/Source/WTF/WTF.xcodeproj/project.pbxproj 2020-09-04 03:01:34 UTC (rev 266573) @@ -496,6 +496,7 @@ 974CFC8D16A4F327006D5404 /* WeakPtr.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WeakPtr.h; sourceTree = ""; }; 996B17841EBA441C007E10EB /* DebugUtilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DebugUtilities.h; sourceTree = ""; }; 9B67F3F12228D5310030DE9C /* WeakHashSet.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WeakHashSet.h; sourceTree = ""; }; + 9B96E9B324FF77B8001756C3 /* CompactUniquePtrTuple.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CompactUniquePtrTuple.h; sourceTree = ""; }; 9BC70F04176C379D00101DEC /* AtomStringTable.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AtomStringTable.cpp; sourceTree = ""; }; 9BD8F40A176C2AD80002D865 /* AtomStringTable.h */ = {isa = PBXFileReference; lastKnownFileType = s
[webkit-changes] [266572] trunk/LayoutTests
Title: [266572] trunk/LayoutTests Revision 266572 Author hector_i_lo...@apple.com Date 2020-09-03 19:33:25 -0700 (Thu, 03 Sep 2020) Log Message Correction for Rebasline at changeset https://trac.webkit.org/changeset/266500/webkit Unreviewed test gardening. * platform/mac-catalina/fast/forms/date/date-pseudo-elements-expected.txt: Removed. * platform/mac-mojave/fast/forms/date/date-pseudo-elements-expected.txt: Removed. Modified Paths trunk/LayoutTests/ChangeLog Removed Paths trunk/LayoutTests/platform/mac-catalina/fast/forms/date/date-pseudo-elements-expected.txt trunk/LayoutTests/platform/mac-mojave/fast/forms/date/date-pseudo-elements-expected.txt Diff Modified: trunk/LayoutTests/ChangeLog (266571 => 266572) --- trunk/LayoutTests/ChangeLog 2020-09-04 02:33:09 UTC (rev 266571) +++ trunk/LayoutTests/ChangeLog 2020-09-04 02:33:25 UTC (rev 266572) @@ -1,5 +1,14 @@ 2020-09-03 Hector Lopez +Correction for Rebasline at changeset https://trac.webkit.org/changeset/266500/webkit + +Unreviewed test gardening. + +* platform/mac-catalina/fast/forms/date/date-pseudo-elements-expected.txt: Removed. +* platform/mac-mojave/fast/forms/date/date-pseudo-elements-expected.txt: Removed. + +2020-09-03 Hector Lopez + [ iOS wk2 Debug ] imported/w3c/web-platform-tests/encoding/textdecoder-fatal-single-byte.any.worker.html is a flaky timeout https://bugs.webkit.org/show_bug.cgi?id=216162 Deleted: trunk/LayoutTests/platform/mac-catalina/fast/forms/date/date-pseudo-elements-expected.txt (266571 => 266572) --- trunk/LayoutTests/platform/mac-catalina/fast/forms/date/date-pseudo-elements-expected.txt 2020-09-04 02:33:09 UTC (rev 266571) +++ trunk/LayoutTests/platform/mac-catalina/fast/forms/date/date-pseudo-elements-expected.txt 2020-09-04 02:33:25 UTC (rev 266572) @@ -1,48 +0,0 @@ -layer at (0,0) size 800x600 - RenderView at (0,0) size 800x600 -layer at (0,0) size 800x600 - RenderBlock {HTML} at (0,0) size 800x600 -RenderBody {BODY} at (8,8) size 784x584 - RenderText {#text} at (110,5) size 4x18 -text run at (110,5) width 4: " " - RenderText {#text} at (0,0) size 0x0 -layer at (8,10) size 110x25 clip at (10,12) size 106x21 - RenderFlexibleBox {INPUT} at (0,2) size 110x25 [bgcolor=#FF] [border: (2px inset #00)] -layer at (11,13) size 98x19 clip at (12,14) size 96x17 scrollHeight 18 - RenderBlock {DIV} at (3,3) size 99x19 [border: (1px solid #FF)] -RenderBlock {DIV} at (1,1) size 97x17 - RenderInline {DIV} at (0,0) size 21x19 [color=#FF] -RenderText {#text} at (1,0) size 19x17 - text run at (1,0) width 19: "04" - RenderInline {DIV} at (0,0) size 10x17 [color=#00] -RenderText {#text} at (20,0) size 10x17 - text run at (20,0) width 10: "/" - RenderInline {DIV} at (0,0) size 21x19 [color=#008000] -RenderText {#text} at (30,0) size 19x17 - text run at (30,0) width 19: "01" - RenderInline {DIV} at (0,0) size 10x17 [color=#00] -RenderText {#text} at (49,0) size 10x17 - text run at (49,0) width 10: "/" - RenderInline {DIV} at (0,0) size 39x19 [color=#FF] -RenderText {#text} at (59,0) size 37x17 - text run at (59,0) width 37: "1976" -layer at (122,10) size 110x25 clip at (124,12) size 106x21 - RenderFlexibleBox {INPUT} at (114,2) size 110x25 [bgcolor=#FF] [border: (2px inset #00)] -layer at (131,13) size 98x19 clip at (132,14) size 96x17 scrollHeight 18 - RenderBlock {DIV} at (8,3) size 99x19 [border: (1px solid #FF)] -RenderBlock {DIV} at (1,1) size 97x17 - RenderInline {DIV} at (0,0) size 21x19 [color=#FF] -RenderText {#text} at (1,0) size 19x17 - text run at (1,0) width 19: "04" - RenderInline {DIV} at (0,0) size 10x17 [color=#00] -RenderText {#text} at (20,0) size 10x17 - text run at (20,0) width 10: "/" - RenderInline {DIV} at (0,0) size 21x19 [color=#008000] -RenderText {#text} at (30,0) size 19x17 - text run at (30,0) width 19: "01" - RenderInline {DIV} at (0,0) size 10x17 [color=#00] -RenderText {#text} at (49,0) size 10x17 - text run at (49,0) width 10: "/" - RenderInline {DIV} at (0,0) size 39x19 [color=#FF] -RenderText {#text} at (59,0) size 37x17 - text run at (59,0) width 37: "1976" Deleted: trunk/LayoutTests/platform/mac-mojave/fast/forms/date/date-pseudo-elements-expected.txt (266571 => 266572) --- trunk/LayoutTests/platform/mac-mojave/fast/forms/date/date-pseudo-elements-expected.txt 2020-09-04 02:33:09 UTC (rev 266571) +++ trunk/LayoutTests/platform/mac-mojave/fast/forms/date/date-pseudo-elements-expected.txt 2020-09-04 02:33:25 UTC (rev 266572) @@ -1,48 +0,0 @@ -layer at (0,0) size 800x600 - RenderView at (0,0) size 800x600 -layer at (0,0) size 800x600 - RenderBlock {HTML} at (0,0) size 800x600 -RenderBody {BODY} at (8,8) siz
[webkit-changes] [266571] trunk/Source/WebCore
Title: [266571] trunk/Source/WebCore Revision 266571 Author cdu...@apple.com Date 2020-09-03 19:33:09 -0700 (Thu, 03 Sep 2020) Log Message Unreviewed, fix debug build after r266570. * Modules/webaudio/BaseAudioContext.cpp: (WebCore::BaseAudioContext::periodicWave): Modified Paths trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/Modules/webaudio/BaseAudioContext.cpp Diff Modified: trunk/Source/WebCore/ChangeLog (266570 => 266571) --- trunk/Source/WebCore/ChangeLog 2020-09-04 02:00:00 UTC (rev 266570) +++ trunk/Source/WebCore/ChangeLog 2020-09-04 02:33:09 UTC (rev 266571) @@ -1,5 +1,12 @@ 2020-09-03 Chris Dumez +Unreviewed, fix debug build after r266570. + +* Modules/webaudio/BaseAudioContext.cpp: +(WebCore::BaseAudioContext::periodicWave): + +2020-09-03 Chris Dumez + Tests using OscillatorNode are flaky https://bugs.webkit.org/show_bug.cgi?id=216152 Modified: trunk/Source/WebCore/Modules/webaudio/BaseAudioContext.cpp (266570 => 266571) --- trunk/Source/WebCore/Modules/webaudio/BaseAudioContext.cpp 2020-09-04 02:00:00 UTC (rev 266570) +++ trunk/Source/WebCore/Modules/webaudio/BaseAudioContext.cpp 2020-09-04 02:33:09 UTC (rev 266571) @@ -1315,7 +1315,7 @@ return *m_cachedPeriodicWaveTriangle; case OscillatorType::Custom: ASSERT_NOT_REACHED(); -#if NDEBUG +#ifdef NDEBUG FALLTHROUGH; #endif case OscillatorType::Sine: ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [266570] trunk
Title: [266570] trunk Revision 266570 Author cdu...@apple.com Date 2020-09-03 19:00:00 -0700 (Thu, 03 Sep 2020) Log Message Tests using OscillatorNode are flaky https://bugs.webkit.org/show_bug.cgi?id=216152 Reviewed by Darin Adler. LayoutTests/imported/w3c: Rebaseline WPT tests. * web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-oscillator-connections-expected.txt: * web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/detune-limiting-expected.txt: * web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/osc-basic-waveform-expected.txt: Source/WebCore: OscillatorNode was caching the different kind of PeriodicWaves in global static variables. However, the PeriodicWaves are specific to a given sample rate. As a result, we would sometimes use a cached periodic wave that was using the wrong sample rate, leading to flaky failures. To address the issue, we now cache the periodic waves per audio context instead. No new tests, rebaselined existing tests and unskip them. * Modules/webaudio/BaseAudioContext.cpp: (WebCore::BaseAudioContext::periodicWave): * Modules/webaudio/BaseAudioContext.h: * Modules/webaudio/OscillatorNode.cpp: (WebCore::OscillatorNode::setType): * Modules/webaudio/OscillatorNode.h: Modified Paths trunk/LayoutTests/imported/w3c/ChangeLog trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-oscillator-connections-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/detune-limiting-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/osc-basic-waveform-expected.txt trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/Modules/webaudio/BaseAudioContext.cpp trunk/Source/WebCore/Modules/webaudio/BaseAudioContext.h trunk/Source/WebCore/Modules/webaudio/OscillatorNode.cpp trunk/Source/WebCore/Modules/webaudio/OscillatorNode.h Diff Modified: trunk/LayoutTests/imported/w3c/ChangeLog (266569 => 266570) --- trunk/LayoutTests/imported/w3c/ChangeLog 2020-09-04 01:54:05 UTC (rev 266569) +++ trunk/LayoutTests/imported/w3c/ChangeLog 2020-09-04 02:00:00 UTC (rev 266570) @@ -1,5 +1,18 @@ 2020-09-03 Chris Dumez +Tests using OscillatorNode are flaky +https://bugs.webkit.org/show_bug.cgi?id=216152 + +Reviewed by Darin Adler. + +Rebaseline WPT tests. + +* web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-oscillator-connections-expected.txt: +* web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/detune-limiting-expected.txt: +* web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/osc-basic-waveform-expected.txt: + +2020-09-03 Chris Dumez + AudioDestinationNode.maxChannelCount always returns 0 https://bugs.webkit.org/show_bug.cgi?id=216127 Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-oscillator-connections-expected.txt (266569 => 266570) --- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-oscillator-connections-expected.txt 2020-09-04 01:54:05 UTC (rev 266569) +++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/k-rate-oscillator-connections-expected.txt 2020-09-04 02:00:00 UTC (rev 266570) @@ -24,7 +24,7 @@ PASS Test 2: modDetune.offset.setValueAtTime(0, 0) did not throw an exception. PASS Test 2: modDetune.offset.linearRampToValueAtTime(2000, 0.078125) did not throw an exception. PASS Test 2: modDetune.connect(srcTest.detune) did not throw an exception. -PASS k-rate detune with input equals [0,0.3387378752231598,0.6374238729476929,0.8607419729232788,0.9822871685028076,0.9876880645751953,0.8763062953948975,0.6613117456436157,0.3681243062019348,0.03141050040721893,-0.3090170621871948,-0.6129071116447449,-0.8443278074264526,-0.9759165644645691,-0.9921145439147949,-0.8910062313079834...] with an element-wise tolerance of {"absoluteThreshold":0,"relativeThreshold":0}. +PASS k-rate detune with input equals [0,0.3311063051223755,0.6248595118522644,0.8481203317642212,0.9757022261619568,0.9932120442390442,0.898674488067627,0.7027547955513,0.4275550842285156,0.10412158071994781,-0.23105812072753906,-0.5401715040206909,-0.7883464097976685,-0.9475855827331543,-0.247789382935,-0.9394593238830566...] with an element-wise tolerance of {"absoluteThreshold":0,"relativeThreshold":0}. PASS < [Test 2] All assertions passed. (total 8 assertions) PASS > [Test 3] k-rate frequency input with a-rate detune PASS Test 3: srcRef.frequency.automationRate = 'k-rate' did not throw an exception. @@ -38,7 +38,7 @@ PASS Test 3: modFreq.offset.setValueAtTime(100, 0) did not throw an exception. PASS Test 3: modFreq.offset.linearRampToValueAtTi
[webkit-changes] [266569] trunk/LayoutTests
Title: [266569] trunk/LayoutTests Revision 266569 Author hector_i_lo...@apple.com Date 2020-09-03 18:54:05 -0700 (Thu, 03 Sep 2020) Log Message [ iOS wk2 Debug ] imported/w3c/web-platform-tests/encoding/textdecoder-fatal-single-byte.any.worker.html is a flaky timeout https://bugs.webkit.org/show_bug.cgi?id=216162 Unreviewed test gardening. * platform/ios-wk2/TestExpectations: Modified Paths trunk/LayoutTests/ChangeLog trunk/LayoutTests/platform/ios-wk2/TestExpectations Diff Modified: trunk/LayoutTests/ChangeLog (266568 => 266569) --- trunk/LayoutTests/ChangeLog 2020-09-04 01:11:55 UTC (rev 266568) +++ trunk/LayoutTests/ChangeLog 2020-09-04 01:54:05 UTC (rev 266569) @@ -1,3 +1,12 @@ +2020-09-03 Hector Lopez + +[ iOS wk2 Debug ] imported/w3c/web-platform-tests/encoding/textdecoder-fatal-single-byte.any.worker.html is a flaky timeout +https://bugs.webkit.org/show_bug.cgi?id=216162 + +Unreviewed test gardening. + +* platform/ios-wk2/TestExpectations: + 2020-09-03 Patrick Angle Web Inspector fails to preview response from XHR requests Modified: trunk/LayoutTests/platform/ios-wk2/TestExpectations (266568 => 266569) --- trunk/LayoutTests/platform/ios-wk2/TestExpectations 2020-09-04 01:11:55 UTC (rev 266568) +++ trunk/LayoutTests/platform/ios-wk2/TestExpectations 2020-09-04 01:54:05 UTC (rev 266569) @@ -1879,3 +1879,5 @@ webkit.org/b/216160 css2.1/t0905-c5525-fltwidth-00-c-g.html [ Failure ] +webkit.org/b/216162 [ Debug ] imported/w3c/web-platform-tests/encoding/textdecoder-fatal-single-byte.any.worker.html [ Pass Timeout ] + ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [266568] trunk
Title: [266568] trunk Revision 266568 Author commit-qu...@webkit.org Date 2020-09-03 18:11:55 -0700 (Thu, 03 Sep 2020) Log Message Web Inspector fails to preview response from XHR requests https://bugs.webkit.org/show_bug.cgi?id=215852 Patch by Patrick Angle on 2020-09-03 Reviewed by Devin Rousso. Source/WebCore: Test: http/tests/inspector/network/fetch-response-body.html Added workaround for 304 XHR/Fetch requests so that the mimeType and content are correctly set, otherwise the frontend does not have the information it needs to preview the response. * inspector/NetworkResourcesData.cpp: (WebCore::NetworkResourcesData::responseReceived): Storing new ResourceData members (WebCore::NetworkResourcesData::dataForURL): Support for finding a previous non-304 response for a URL. * inspector/NetworkResourcesData.h: (WebCore::NetworkResourcesData::ResourceData::httpStatusText const): (WebCore::NetworkResourcesData::ResourceData::setHTTPStatusText): (WebCore::NetworkResourcesData::ResourceData::mimeType const): (WebCore::NetworkResourcesData::ResourceData::setMIMEType): (WebCore::NetworkResourcesData::ResourceData::responseTimestamp const): (WebCore::NetworkResourcesData::ResourceData::setResponseTimestamp): * inspector/agents/InspectorNetworkAgent.cpp: (WebCore::InspectorNetworkAgent::willSendRequest): Fixed issue where it was possible that we would inform the frontend that a request was of type `Other` even though we had request information indicating it was `XHR` or `Fetch`. (WebCore::InspectorNetworkAgent::didReceiveResponse): Added code path to work around underlying issue where XHR/Fetch 304s are not cached, and end up not passing necessary information to the frontend as a result. Source/WebInspectorUI: Responses with a no content error and a status code of 304 now show a `Resource has no cached content` message instead of a generic error. Also responses with empty content and no mime type now show a `Resource has no content` message. * Localizations/en.lproj/localizedStrings.js: * UserInterface/Models/Resource.js: More consistant error handling model - previously some paths rejected on failure and some resolved with an error property. (WI.Resource.prototype.requestContent): (WI.Resource.prototype._requestContentFailure): * UserInterface/Views/ResourceContentView.js: Error messages (WI.ResourceContentView.prototype.async showGenericNoContentMessage): Text now consistent with other messages. (WI.ResourceContentView.prototype.showNoCachedContentMessage): (WI.ResourceContentView.prototype._contentAvailable): LayoutTests: Added new test cases and associated resources to test handling of `304 Not Modified` responses to XHR requests. We test both XHR for a PHP page as well as for a text file, as they behaved differently (incorrectly) before this patch. * http/tests/inspector/network/fetch-response-body-304-expected.txt: * http/tests/inspector/network/fetch-response-body-304.html: * http/tests/inspector/network/resources/.htaccess: Cache-Control header for fetch-cachable.txt * http/tests/inspector/network/resources/fetch-cachable.php: * http/tests/inspector/network/resources/fetch-cachable.txt: * platform/mac-wk1/TestExpectations: Tests rely on disk-cache which is not present in WK1 Modified Paths trunk/LayoutTests/ChangeLog trunk/LayoutTests/platform/mac-wk1/TestExpectations trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/inspector/NetworkResourcesData.cpp trunk/Source/WebCore/inspector/NetworkResourcesData.h trunk/Source/WebCore/inspector/agents/InspectorNetworkAgent.cpp trunk/Source/WebInspectorUI/ChangeLog trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js trunk/Source/WebInspectorUI/UserInterface/Models/Resource.js trunk/Source/WebInspectorUI/UserInterface/Views/ResourceContentView.js Added Paths trunk/LayoutTests/http/tests/inspector/network/fetch-response-body-304-expected.txt trunk/LayoutTests/http/tests/inspector/network/fetch-response-body-304.html trunk/LayoutTests/http/tests/inspector/network/resources/.htaccess trunk/LayoutTests/http/tests/inspector/network/resources/fetch-cachable.php trunk/LayoutTests/http/tests/inspector/network/resources/fetch-cachable.txt Diff Modified: trunk/LayoutTests/ChangeLog (266567 => 266568) --- trunk/LayoutTests/ChangeLog 2020-09-04 01:03:33 UTC (rev 266567) +++ trunk/LayoutTests/ChangeLog 2020-09-04 01:11:55 UTC (rev 266568) @@ -1,3 +1,21 @@ +2020-09-03 Patrick Angle + +Web Inspector fails to preview response from XHR requests +https://bugs.webkit.org/show_bug.cgi?id=215852 + +Reviewed by Devin Rousso. + +Added new test cases and associated resources to test handling of `304 Not Modified` responses to XHR requests. +We test both XHR for a PHP page as well as for a text file, as they behaved differently (incorrectly) before +this patch. + +* http/tests/inspector/network/fetch-response-body-304-expected.txt: +* http/tests/inspec
[webkit-changes] [266567] trunk
Title: [266567] trunk Revision 266567 Author ysuz...@apple.com Date 2020-09-03 18:03:33 -0700 (Thu, 03 Sep 2020) Log Message [JSC] Cache toString / valueOf / @@toPrimitive for major cases https://bugs.webkit.org/show_bug.cgi?id=216061 Reviewed by Saam Barati. JSTests: * stress/delete-cached-to-primitive-property.js: Added. (shouldBe): (object.__proto__.Symbol.toPrimitive): * stress/delete-cached-to-string-property.js: Added. (shouldBe): (object.__proto__.toString): * stress/delete-cached-value-of-property.js: Added. (shouldBe): (shouldThrow): (object.__proto__.valueOf): * stress/hide-cached-to-primitive-property.js: Added. (shouldBe): (object.__proto__.Symbol.toPrimitive): * stress/hide-cached-to-string-property.js: Added. (shouldBe): (object.__proto__.toString): * stress/hide-cached-value-of-property.js: Added. (shouldBe): (object.__proto__.valueOf): * stress/replace-cached-to-primitive-property.js: Added. (shouldBe): (object.__proto__.Symbol.toPrimitive): * stress/replace-cached-to-string-property.js: Added. (shouldBe): (object.__proto__.toString): * stress/replace-cached-value-of-property.js: Added. (shouldBe): (object.__proto__.valueOf): Source/_javascript_Core: When toPrimitive is called, we need to look-up three properties at most to perform operation. And these special properties do not have caching mechanism at all. We found that Speedometer2/EmberJS-Debug-TodoMVC is using very much time for this property look-up. We should have caching mechanism in StructureRareData, which should be similar to @@toStringTag & Object#toString caching mechanism. This patch generalizes @@toStringTag & Object#toString caching mechanism as SpecialPropertyCache. And we accelerate toString / valueOf / @@toPrimitive look-ups in toPrimitive with this caching mechanism. This patch improved Speedometer2/EmberJS-Debug-TodoMVC by 10%. * _javascript_Core.xcodeproj/project.pbxproj: * Sources.txt: * bytecode/Watchpoint.cpp: * bytecode/Watchpoint.h: * runtime/CachedSpecialPropertyAdaptiveStructureWatchpoint.cpp: Renamed from Source/_javascript_Core/runtime/ObjectToStringAdaptiveStructureWatchpoint.cpp. (JSC::CachedSpecialPropertyAdaptiveStructureWatchpoint::CachedSpecialPropertyAdaptiveStructureWatchpoint): (JSC::CachedSpecialPropertyAdaptiveStructureWatchpoint::install): (JSC::CachedSpecialPropertyAdaptiveStructureWatchpoint::fireInternal): * runtime/CachedSpecialPropertyAdaptiveStructureWatchpoint.h: Renamed from Source/_javascript_Core/runtime/ObjectToStringAdaptiveStructureWatchpoint.h. * runtime/JSGlobalObject.cpp: (JSC::JSGlobalObject::init): (JSC::JSGlobalObject::visitChildren): * runtime/JSGlobalObject.h: (JSC::JSGlobalObject::objectProtoToStringFunction const): * runtime/JSObject.cpp: (JSC::callToPrimitiveFunction): (JSC::JSObject::ordinaryToPrimitive const): (JSC::JSObject::toPrimitive const): * runtime/ObjectPrototype.cpp: (JSC::ObjectPrototype::finishCreation): (JSC::objectProtoFuncToString): * runtime/Structure.h: * runtime/StructureInlines.h: (JSC::Structure::cacheSpecialProperty): (JSC::Structure::setObjectToStringValue): Deleted. * runtime/StructureRareData.cpp: (JSC::StructureRareData::visitChildren): (JSC::StructureRareData::ensureSpecialPropertyCacheSlow): (JSC::StructureRareData::giveUpOnSpecialPropertyCache): (JSC::StructureRareData::cacheSpecialPropertySlow): (JSC::StructureRareData::clearCachedSpecialProperty): (JSC::StructureRareData::finalizeUnconditionally): (JSC::CachedSpecialPropertyAdaptiveInferredPropertyValueWatchpoint::CachedSpecialPropertyAdaptiveInferredPropertyValueWatchpoint): (JSC::CachedSpecialPropertyAdaptiveInferredPropertyValueWatchpoint::isValid const): (JSC::CachedSpecialPropertyAdaptiveInferredPropertyValueWatchpoint::handleFire): (JSC::StructureRareData::setObjectToStringValue): Deleted. (JSC::StructureRareData::clearObjectToStringValue): Deleted. (JSC::ObjectToStringAdaptiveInferredPropertyValueWatchpoint::ObjectToStringAdaptiveInferredPropertyValueWatchpoint): Deleted. (JSC::ObjectToStringAdaptiveInferredPropertyValueWatchpoint::isValid const): Deleted. (JSC::ObjectToStringAdaptiveInferredPropertyValueWatchpoint::handleFire): Deleted. * runtime/StructureRareData.h: * runtime/StructureRareDataInlines.h: (JSC::StructureRareData::cachedSpecialProperty const): (JSC::StructureRareData::canCacheSpecialProperty): (JSC::StructureRareData::ensureSpecialPropertyCache): (JSC::StructureRareData::cacheSpecialProperty): (JSC::StructureRareData::objectToStringValue const): Deleted. Modified Paths trunk/JSTests/ChangeLog trunk/Source/_javascript_Core/ChangeLog trunk/Source/_javascript_Core/_javascript_Core.xcodeproj/project.pbxproj trunk/Source/_javascript_Core/Sources.txt trunk/Source/_javascript_Core/bytecode/Watchpoint.cpp trunk/Source/_javascript_Core/bytecode/Watchpoint.h trunk/Source/_javascript_Core/runtime/JSGlobalObject.cpp trunk/Source/_javascript_Core/runtime/JSGlobalObject.h trunk/Source/_javascript_Core/runtime/JSObject.cpp trunk/Source/_javascript_Core/runtime/Object
[webkit-changes] [266566] trunk/LayoutTests/ChangeLog
Title: [266566] trunk/LayoutTests/ChangeLog Revision 266566 Author hector_i_lo...@apple.com Date 2020-09-03 18:02:12 -0700 (Thu, 03 Sep 2020) Log Message REGRESSION(r266509): [ iOS wk2 ] css2.1/t0905-c5525-fltwidth-00-c-g.html is a constant failure https://bugs.webkit.org/show_bug.cgi?id=216160 Unreviewed test gardening. * platform/ios-wk2/TestExpectations: Modified Paths trunk/LayoutTests/ChangeLog Diff Modified: trunk/LayoutTests/ChangeLog (266565 => 266566) --- trunk/LayoutTests/ChangeLog 2020-09-04 00:59:50 UTC (rev 266565) +++ trunk/LayoutTests/ChangeLog 2020-09-04 01:02:12 UTC (rev 266566) @@ -1,6 +1,6 @@ 2020-09-03 Hector Lopez -RERESSION(r266509): [ iOS wk2 ] css2.1/t0905-c5525-fltwidth-00-c-g.html is a constant failure +REGRESSION(r266509): [ iOS wk2 ] css2.1/t0905-c5525-fltwidth-00-c-g.html is a constant failure https://bugs.webkit.org/show_bug.cgi?id=216160 Unreviewed test gardening. ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [266565] trunk/LayoutTests
Title: [266565] trunk/LayoutTests Revision 266565 Author hector_i_lo...@apple.com Date 2020-09-03 17:59:50 -0700 (Thu, 03 Sep 2020) Log Message RERESSION(r266509): [ iOS wk2 ] css2.1/t0905-c5525-fltwidth-00-c-g.html is a constant failure https://bugs.webkit.org/show_bug.cgi?id=216160 Unreviewed test gardening. * platform/ios-wk2/TestExpectations: Modified Paths trunk/LayoutTests/ChangeLog trunk/LayoutTests/platform/ios-wk2/TestExpectations Diff Modified: trunk/LayoutTests/ChangeLog (266564 => 266565) --- trunk/LayoutTests/ChangeLog 2020-09-04 00:58:57 UTC (rev 266564) +++ trunk/LayoutTests/ChangeLog 2020-09-04 00:59:50 UTC (rev 266565) @@ -1,3 +1,12 @@ +2020-09-03 Hector Lopez + +RERESSION(r266509): [ iOS wk2 ] css2.1/t0905-c5525-fltwidth-00-c-g.html is a constant failure +https://bugs.webkit.org/show_bug.cgi?id=216160 + +Unreviewed test gardening. + +* platform/ios-wk2/TestExpectations: + 2020-09-03 Karl Rackler [ Mac wk2 ] webgpu/whlsl/ensure-proper-variable-lifetime.html is flaky ImageOnlyFailure. Modified: trunk/LayoutTests/platform/ios-wk2/TestExpectations (266564 => 266565) --- trunk/LayoutTests/platform/ios-wk2/TestExpectations 2020-09-04 00:58:57 UTC (rev 266564) +++ trunk/LayoutTests/platform/ios-wk2/TestExpectations 2020-09-04 00:59:50 UTC (rev 266565) @@ -1876,3 +1876,6 @@ webkit.org/b/216156 http/tests/misc/script-async.html [ Pass Failure ] webkit.org/b/216159 imported/w3c/web-platform-tests/webrtc/RTCPeerConnection-restartIce.https.html [ Pass Failure ] + +webkit.org/b/216160 css2.1/t0905-c5525-fltwidth-00-c-g.html [ Failure ] + ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [266564] trunk/LayoutTests
Title: [266564] trunk/LayoutTests Revision 266564 Author rack...@apple.com Date 2020-09-03 17:58:57 -0700 (Thu, 03 Sep 2020) Log Message [ Mac wk2 ] webgpu/whlsl/ensure-proper-variable-lifetime.html is flaky ImageOnlyFailure. https://bugs.webkit.org/show_bug.cgi?id=207267 Unreviewed test gardening. * platform/mac-wk2/TestExpectations: Modified Paths trunk/LayoutTests/ChangeLog trunk/LayoutTests/platform/mac-wk2/TestExpectations Diff Modified: trunk/LayoutTests/ChangeLog (266563 => 266564) --- trunk/LayoutTests/ChangeLog 2020-09-04 00:43:27 UTC (rev 266563) +++ trunk/LayoutTests/ChangeLog 2020-09-04 00:58:57 UTC (rev 266564) @@ -1,3 +1,12 @@ +2020-09-03 Karl Rackler + +[ Mac wk2 ] webgpu/whlsl/ensure-proper-variable-lifetime.html is flaky ImageOnlyFailure. +https://bugs.webkit.org/show_bug.cgi?id=207267 + +Unreviewed test gardening. + +* platform/mac-wk2/TestExpectations: + 2020-09-03 Hector Lopez REGRESSION(r266511): [ macOS iOS wk2 ] imported/w3c/web-platform-tests/webrtc/RTCPeerConnection-restartIce.https.html is a flaky failure Modified: trunk/LayoutTests/platform/mac-wk2/TestExpectations (266563 => 266564) --- trunk/LayoutTests/platform/mac-wk2/TestExpectations 2020-09-04 00:43:27 UTC (rev 266563) +++ trunk/LayoutTests/platform/mac-wk2/TestExpectations 2020-09-04 00:58:57 UTC (rev 266564) @@ -926,7 +926,7 @@ webkit.org/b/206627 storage/websql [ Skip ] -webkit.org/b/207267 webgpu/whlsl/ensure-proper-variable-lifetime.html [ Pass Failure ] +webkit.org/b/207267 webgpu/whlsl/ensure-proper-variable-lifetime.html [ Pass ImageOnlyFailure ] webkit.org/b/207269 [ Debug ] http/tests/websocket/tests/hybi/server-close.html [ Pass Crash ] ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [266563] trunk/LayoutTests
Title: [266563] trunk/LayoutTests Revision 266563 Author hector_i_lo...@apple.com Date 2020-09-03 17:43:27 -0700 (Thu, 03 Sep 2020) Log Message REGRESSION(r266511): [ macOS iOS wk2 ] imported/w3c/web-platform-tests/webrtc/RTCPeerConnection-restartIce.https.html is a flaky failure https://bugs.webkit.org/show_bug.cgi?id=216159 Unreviewed test gardening. * platform/ios-wk2/TestExpectations: * platform/mac-wk2/TestExpectations: Modified Paths trunk/LayoutTests/ChangeLog trunk/LayoutTests/platform/ios-wk2/TestExpectations trunk/LayoutTests/platform/mac-wk2/TestExpectations Diff Modified: trunk/LayoutTests/ChangeLog (266562 => 266563) --- trunk/LayoutTests/ChangeLog 2020-09-04 00:13:35 UTC (rev 266562) +++ trunk/LayoutTests/ChangeLog 2020-09-04 00:43:27 UTC (rev 266563) @@ -1,3 +1,13 @@ +2020-09-03 Hector Lopez + +REGRESSION(r266511): [ macOS iOS wk2 ] imported/w3c/web-platform-tests/webrtc/RTCPeerConnection-restartIce.https.html is a flaky failure +https://bugs.webkit.org/show_bug.cgi?id=216159 + +Unreviewed test gardening. + +* platform/ios-wk2/TestExpectations: +* platform/mac-wk2/TestExpectations: + 2020-09-03 Karl Rackler [ Mojave+ debug wk2 ] imported/w3c/web-platform-tests/css/css-transitions/transition-base-response-002.html is a flaky failure Modified: trunk/LayoutTests/platform/ios-wk2/TestExpectations (266562 => 266563) --- trunk/LayoutTests/platform/ios-wk2/TestExpectations 2020-09-04 00:13:35 UTC (rev 266562) +++ trunk/LayoutTests/platform/ios-wk2/TestExpectations 2020-09-04 00:43:27 UTC (rev 266563) @@ -1874,3 +1874,5 @@ webkit.org/b/216126 fast/encoding/charset-replacement.html [ Failure ] webkit.org/b/216156 http/tests/misc/script-async.html [ Pass Failure ] + +webkit.org/b/216159 imported/w3c/web-platform-tests/webrtc/RTCPeerConnection-restartIce.https.html [ Pass Failure ] Modified: trunk/LayoutTests/platform/mac-wk2/TestExpectations (266562 => 266563) --- trunk/LayoutTests/platform/mac-wk2/TestExpectations 2020-09-04 00:13:35 UTC (rev 266562) +++ trunk/LayoutTests/platform/mac-wk2/TestExpectations 2020-09-04 00:43:27 UTC (rev 266563) @@ -1280,3 +1280,6 @@ webkit.org/b/215875 [ Debug ] fast/layoutformattingcontext/line-heigt-when-text-is-inside-inline-container.html [ Skip ] webkit.org/b/216059 fast/scrolling/latching/latched-scroll-remove-iframe.html [ Pass Failure ] + +webkit.org/b/216159 imported/w3c/web-platform-tests/webrtc/RTCPeerConnection-restartIce.https.html [ Pass Failure ] + ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [266562] trunk/LayoutTests
Title: [266562] trunk/LayoutTests Revision 266562 Author rack...@apple.com Date 2020-09-03 17:13:35 -0700 (Thu, 03 Sep 2020) Log Message [ Mojave+ debug wk2 ] imported/w3c/web-platform-tests/css/css-transitions/transition-base-response-002.html is a flaky failure https://bugs.webkit.org/show_bug.cgi?id=216155 Unreviewed test gardening. * platform/mac-wk2/TestExpectations: Modified Paths trunk/LayoutTests/ChangeLog trunk/LayoutTests/platform/mac-wk2/TestExpectations Diff Modified: trunk/LayoutTests/ChangeLog (266561 => 266562) --- trunk/LayoutTests/ChangeLog 2020-09-04 00:00:34 UTC (rev 266561) +++ trunk/LayoutTests/ChangeLog 2020-09-04 00:13:35 UTC (rev 266562) @@ -1,3 +1,12 @@ +2020-09-03 Karl Rackler + +[ Mojave+ debug wk2 ] imported/w3c/web-platform-tests/css/css-transitions/transition-base-response-002.html is a flaky failure +https://bugs.webkit.org/show_bug.cgi?id=216155 + +Unreviewed test gardening. + +* platform/mac-wk2/TestExpectations: + 2020-09-03 Hector Lopez [ iOS wk2 ] http/tests/misc/script-async.html is a flaky failure Modified: trunk/LayoutTests/platform/mac-wk2/TestExpectations (266561 => 266562) --- trunk/LayoutTests/platform/mac-wk2/TestExpectations 2020-09-04 00:00:34 UTC (rev 266561) +++ trunk/LayoutTests/platform/mac-wk2/TestExpectations 2020-09-04 00:13:35 UTC (rev 266562) @@ -1258,7 +1258,7 @@ [ arm64 ] fast/inline/hidpi-inline-block-is-subpixel-while-line-is-not.html [ ImageOnlyFailure ] # rdar://66807554 -[ arm64 ] imported/w3c/web-platform-tests/css/css-transitions/transition-base-response-002.html [ Failure ] +webkit.org/b/216155 [ Mojave+ Debug ] imported/w3c/web-platform-tests/css/css-transitions/transition-base-response-002.html [ Pass Failure ] webkit.org/b/215581 imported/w3c/web-platform-tests/webrtc/RTCRtpReceiver-getStats.https.html [ Pass Failure ] ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [266561] trunk/LayoutTests
Title: [266561] trunk/LayoutTests Revision 266561 Author hector_i_lo...@apple.com Date 2020-09-03 17:00:34 -0700 (Thu, 03 Sep 2020) Log Message [ iOS wk2 ] http/tests/misc/script-async.html is a flaky failure https://bugs.webkit.org/show_bug.cgi?id=216156 Unreviewed test gardening. * platform/ios-wk2/TestExpectations: Modified Paths trunk/LayoutTests/ChangeLog trunk/LayoutTests/platform/ios-wk2/TestExpectations Diff Modified: trunk/LayoutTests/ChangeLog (266560 => 266561) --- trunk/LayoutTests/ChangeLog 2020-09-03 22:47:33 UTC (rev 266560) +++ trunk/LayoutTests/ChangeLog 2020-09-04 00:00:34 UTC (rev 266561) @@ -1,3 +1,12 @@ +2020-09-03 Hector Lopez + +[ iOS wk2 ] http/tests/misc/script-async.html is a flaky failure +https://bugs.webkit.org/show_bug.cgi?id=216156 + +Unreviewed test gardening. + +* platform/ios-wk2/TestExpectations: + 2020-09-03 Frank Yang CoreImage Implementation of SourceGraphic and saturate(), hue-rotate(), grayscale() and sepia() Modified: trunk/LayoutTests/platform/ios-wk2/TestExpectations (266560 => 266561) --- trunk/LayoutTests/platform/ios-wk2/TestExpectations 2020-09-03 22:47:33 UTC (rev 266560) +++ trunk/LayoutTests/platform/ios-wk2/TestExpectations 2020-09-04 00:00:34 UTC (rev 266561) @@ -1872,3 +1872,5 @@ webkit.org/b/216124 imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location_hash.html [ Failure ] webkit.org/b/216126 fast/encoding/charset-replacement.html [ Failure ] + +webkit.org/b/216156 http/tests/misc/script-async.html [ Pass Failure ] ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [266560] trunk/Source/JavaScriptCore
Title: [266560] trunk/Source/_javascript_Core Revision 266560 Author sbar...@apple.com Date 2020-09-03 15:47:33 -0700 (Thu, 03 Sep 2020) Log Message Sampling profiler should dump hash as part of the top function key to prevent incorrectly grouping nameless functions together https://bugs.webkit.org/show_bug.cgi?id=216087 Reviewed by Tadeu Zagallo. * runtime/SamplingProfiler.cpp: (JSC::SamplingProfiler::reportTopFunctions): Modified Paths trunk/Source/_javascript_Core/ChangeLog trunk/Source/_javascript_Core/runtime/SamplingProfiler.cpp Diff Modified: trunk/Source/_javascript_Core/ChangeLog (266559 => 266560) --- trunk/Source/_javascript_Core/ChangeLog 2020-09-03 21:43:41 UTC (rev 266559) +++ trunk/Source/_javascript_Core/ChangeLog 2020-09-03 22:47:33 UTC (rev 266560) @@ -1,3 +1,13 @@ +2020-09-03 Saam Barati + +Sampling profiler should dump hash as part of the top function key to prevent incorrectly grouping nameless functions together +https://bugs.webkit.org/show_bug.cgi?id=216087 + +Reviewed by Tadeu Zagallo. + +* runtime/SamplingProfiler.cpp: +(JSC::SamplingProfiler::reportTopFunctions): + 2020-09-03 Devin Rousso Web Inspector: allow url breakpoints to be configured Modified: trunk/Source/_javascript_Core/runtime/SamplingProfiler.cpp (266559 => 266560) --- trunk/Source/_javascript_Core/runtime/SamplingProfiler.cpp 2020-09-03 21:43:41 UTC (rev 266559) +++ trunk/Source/_javascript_Core/runtime/SamplingProfiler.cpp 2020-09-03 22:47:33 UTC (rev 266560) @@ -1030,7 +1030,14 @@ continue; StackFrame& frame = stackTrace.frames.first(); -String frameDescription = makeString(frame.displayName(m_vm), ':', frame.sourceID()); +String hash = ""_s; +if (frame.semanticLocation.hasCodeBlockHash()) { +StringPrintStream stream; +frame.semanticLocation.codeBlockHash.dump(stream); +hash = stream.toString(); +} else +hash = ""_s; +String frameDescription = makeString(frame.displayName(m_vm), '#', hash, ':', frame.sourceID()); functionCounts.add(frameDescription, 0).iterator->value++; } @@ -1050,7 +1057,7 @@ if (Options::samplingProfilerTopFunctionsCount()) { out.print("\n\nSampling rate: ", m_timingInterval.microseconds(), " microseconds\n"); -out.print("Top functions as \n"); +out.print("Top functions as \n"); for (size_t i = 0; i < Options::samplingProfilerTopFunctionsCount(); i++) { auto pair = takeMax(); if (pair.first.isEmpty()) ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [266559] trunk
Title: [266559] trunk Revision 266559 Author cdu...@apple.com Date 2020-09-03 14:43:41 -0700 (Thu, 03 Sep 2020) Log Message AudioDestinationNode.maxChannelCount always returns 0 https://bugs.webkit.org/show_bug.cgi?id=216127 Reviewed by Eric Carlson. LayoutTests/imported/w3c: Rebaseline WPT tests now that more checks are passing. * web-platform-tests/webaudio/the-audio-api/the-analysernode-interface/ctor-analyser-expected.txt: * web-platform-tests/webaudio/the-audio-api/the-biquadfilternode-interface/ctor-biquadfilter-expected.txt: * web-platform-tests/webaudio/the-audio-api/the-convolvernode-interface/ctor-convolver-expected.txt: * web-platform-tests/webaudio/the-audio-api/the-delaynode-interface/ctor-delay-expected.txt: * web-platform-tests/webaudio/the-audio-api/the-destinationnode-interface/destination-expected.txt: * web-platform-tests/webaudio/the-audio-api/the-dynamicscompressornode-interface/ctor-dynamicscompressor-expected.txt: * web-platform-tests/webaudio/the-audio-api/the-gainnode-interface/ctor-gain-expected.txt: * web-platform-tests/webaudio/the-audio-api/the-iirfilternode-interface/ctor-iirfilter-expected.txt: * web-platform-tests/webaudio/the-audio-api/the-mediastreamaudiodestinationnode-interface/ctor-mediastreamaudiodestination-expected.txt: * web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/ctor-oscillator-expected.txt: * web-platform-tests/webaudio/the-audio-api/the-pannernode-interface/ctor-panner-expected.txt: * web-platform-tests/webaudio/the-audio-api/the-stereopanner-interface/ctor-stereopanner-expected.txt: * web-platform-tests/webaudio/the-audio-api/the-waveshapernode-interface/ctor-waveshaper-expected.txt: Source/WebCore: Update AudioDestinationNode.maxChannelCount to return a sane value on both macOS and iOS. Also make sure the proper exceptions are thrown when trying to create an AudioNode with an invalid number of channels. No new tests, rebaselined existing tests. * Modules/webaudio/AudioDestinationNode.h: * Modules/webaudio/AudioNode.cpp: (WebCore::AudioNode::setChannelCount): * Modules/webaudio/DefaultAudioDestinationNode.cpp: (WebCore::DefaultAudioDestinationNode::setChannelCount): * platform/audio/AudioSession.cpp: (WebCore::AudioSession::maximumNumberOfOutputChannels const): * platform/audio/AudioSession.h: * platform/audio/cocoa/AudioDestinationCocoa.cpp: (WebCore::AudioDestination::create): (WebCore::AudioDestination::maxChannelCount): * platform/audio/ios/AudioSessionIOS.mm: (WebCore::AudioSession::maximumNumberOfOutputChannels const): * platform/audio/mac/AudioSessionMac.mm: (WebCore::AudioSession::maximumNumberOfOutputChannels const): Modified Paths trunk/LayoutTests/imported/w3c/ChangeLog trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-analysernode-interface/ctor-analyser-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-biquadfilternode-interface/ctor-biquadfilter-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-convolvernode-interface/ctor-convolver-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-delaynode-interface/ctor-delay-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-destinationnode-interface/destination-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-dynamicscompressornode-interface/ctor-dynamicscompressor-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-gainnode-interface/ctor-gain-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-iirfilternode-interface/ctor-iirfilter-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-mediastreamaudiodestinationnode-interface/ctor-mediastreamaudiodestination-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-oscillatornode-interface/ctor-oscillator-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-pannernode-interface/ctor-panner-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-stereopanner-interface/ctor-stereopanner-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-waveshapernode-interface/ctor-waveshaper-expected.txt trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/Modules/webaudio/AudioDestinationNode.h trunk/Source/WebCore/Modules/webaudio/AudioNode.cpp trunk/Source/WebCore/Modules/webaudio/DefaultAudioDestinationNode.cpp trunk/Source/WebCore/platform/audio/AudioSession.cpp trunk/Source/WebCore/platform/audio/AudioSession.h trunk/Source/WebCore/platform/audio/cocoa/AudioDestinationCocoa.cpp trunk/Source/WebCore/platform/audio/ios/AudioSessionIOS.mm trunk/Source/WebCore/platform/audio/mac/AudioSessionMac.mm Diff Modified: trunk/LayoutTests/imported/w3c/ChangeL
[webkit-changes] [266558] trunk
Title: [266558] trunk Revision 266558 Author cdu...@apple.com Date 2020-09-03 14:42:44 -0700 (Thu, 03 Sep 2020) Log Message Make AudioParam.cancelScheduledValues() standards compliant https://bugs.webkit.org/show_bug.cgi?id=216132 Reviewed by Geoffrey Garen. LayoutTests/imported/w3c: Rebaseline WPT test now that it is passing. * web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/cancel-scheduled-values-expected.txt: Source/WebCore: Align our implementation of AudioParam.cancelScheduledValues() with Chromium's to give us a few more passes on WPT tests. In particular, this adds special handling for when the cancelTime lands in the middle of a SetValueCurve event. No new tests, rebaselined existing test. * Modules/webaudio/AudioParamTimeline.cpp: (WebCore::AudioParamTimeline::cancelScheduledValues): Modified Paths trunk/LayoutTests/imported/w3c/ChangeLog trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/cancel-scheduled-values-expected.txt trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/Modules/webaudio/AudioParamTimeline.cpp Diff Modified: trunk/LayoutTests/imported/w3c/ChangeLog (266557 => 266558) --- trunk/LayoutTests/imported/w3c/ChangeLog 2020-09-03 21:38:50 UTC (rev 266557) +++ trunk/LayoutTests/imported/w3c/ChangeLog 2020-09-03 21:42:44 UTC (rev 266558) @@ -1,5 +1,16 @@ 2020-09-03 Chris Dumez +Make AudioParam.cancelScheduledValues() standards compliant +https://bugs.webkit.org/show_bug.cgi?id=216132 + +Reviewed by Geoffrey Garen. + +Rebaseline WPT test now that it is passing. + +* web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/cancel-scheduled-values-expected.txt: + +2020-09-03 Chris Dumez + BiquadFilterNode.getFrequencyResponse() should return NaN for out-of-bounds frequencies https://bugs.webkit.org/show_bug.cgi?id=216130 Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/cancel-scheduled-values-expected.txt (266557 => 266558) --- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/cancel-scheduled-values-expected.txt 2020-09-03 21:38:50 UTC (rev 266557) +++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-audioparam-interface/cancel-scheduled-values-expected.txt 2020-09-03 21:42:44 UTC (rev 266558) @@ -10,22 +10,10 @@ PASS gain.gain.setValueCurveAtTime(..., 0.25, 0.25) did not throw an exception. PASS gain.gain.setValueAtTime(99, 0.5) did not throw an exception. PASS gain.gain.cancelScheduledValues(0.3) did not throw an exception. -FAIL X gain.gain.setValueAtTime(3, 0.375) incorrectly threw NotSupportedError: "Events are overlapping". assert_true: expected true got false +PASS gain.gain.setValueAtTime(3, 0.375) did not throw an exception. PASS output[0:1999] contains only the constant 0.5. -FAIL X output[2000:2999]: Expected 1.5 for all values but found 1000 unexpected values: - Index Actual - [0] 1 - [1] 1 - [2] 1 - [3] 1 - ...and 996 more errors. assert_true: expected true got false -FAIL X output[3000:]: Expected 3 for all values but found 5000 unexpected values: - Index Actual - [0] -1 - [1] -1 - [2] -1 - [3] -1 - ...and 4996 more errors. assert_true: expected true got false -FAIL < [cancel1] 3 out of 11 assertions were failed. assert_true: expected true got false -FAIL # AUDIT TASK RUNNER FINISHED: 1 out of 1 tasks were failed. assert_true: expected true got false +PASS output[2000:2999] contains only the constant 1.5. +PASS output[3000:] contains only the constant 3. +PASS < [cancel1] All assertions passed. (total 11 assertions) +PASS # AUDIT TASK RUNNER FINISHED: 1 tasks ran successfully. Modified: trunk/Source/WebCore/ChangeLog (266557 => 266558) --- trunk/Source/WebCore/ChangeLog 2020-09-03 21:38:50 UTC (rev 266557) +++ trunk/Source/WebCore/ChangeLog 2020-09-03 21:42:44 UTC (rev 266558) @@ -1,3 +1,19 @@ +2020-09-03 Chris Dumez + +Make AudioParam.cancelScheduledValues() standards compliant +https://bugs.webkit.org/show_bug.cgi?id=216132 + +Reviewed by Geoffrey Garen. + +Align our implementation of AudioParam.cancelScheduledValues() with Chromium's +to give us a few more passes on WPT tests. In particular, this adds special +handling for when the cancelTime lands in the middle of a SetValueCurve event. + +No new tests, rebaselined existing test. + +* Modules/webaudio/AudioParamTimeline.cpp: +(WebCore::AudioParamTimeline::cancelScheduledValues): + 2020-09-02 Darin Adler Remove EAffinity, UPSTREAM, DOWNSTREAM, SEL_DEFAULT_AFFINITY, and VisibleSelection::selectionType Modified: trunk/Source/WebCore/Modules/webaudio/AudioParamTimeline.cpp (266557 => 266558) --- trunk/Source/WebCore/Modules/webaudio/AudioParamTimeline.cpp 2020-09-03 21:38:50 UTC (rev 266557) +++
[webkit-changes] [266556] trunk/Source/WebCore
Title: [266556] trunk/Source/WebCore Revision 266556 Author commit-qu...@webkit.org Date 2020-09-03 14:35:17 -0700 (Thu, 03 Sep 2020) Log Message Unreviewed, reverting r266498. https://bugs.webkit.org/show_bug.cgi?id=216143 crashes in debug Reverted changeset: "Simplify some editing code" https://bugs.webkit.org/show_bug.cgi?id=216097 https://trac.webkit.org/changeset/266498 Modified Paths trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/dom/ContainerNode.cpp trunk/Source/WebCore/dom/Node.cpp trunk/Source/WebCore/editing/ios/EditorIOS.mm trunk/Source/WebCore/html/HTMLElement.cpp trunk/Source/WebCore/page/DOMSelection.cpp Diff Modified: trunk/Source/WebCore/ChangeLog (266555 => 266556) --- trunk/Source/WebCore/ChangeLog 2020-09-03 21:31:21 UTC (rev 266555) +++ trunk/Source/WebCore/ChangeLog 2020-09-03 21:35:17 UTC (rev 266556) @@ -1,3 +1,16 @@ +2020-09-03 Commit Queue + +Unreviewed, reverting r266498. +https://bugs.webkit.org/show_bug.cgi?id=216143 + +crashes in debug + +Reverted changeset: + +"Simplify some editing code" +https://bugs.webkit.org/show_bug.cgi?id=216097 +https://trac.webkit.org/changeset/266498 + 2020-09-03 Frank Yang CoreImage Implementation of SourceGraphic and saturate(), hue-rotate(), grayscale() and sepia() Modified: trunk/Source/WebCore/dom/ContainerNode.cpp (266555 => 266556) --- trunk/Source/WebCore/dom/ContainerNode.cpp 2020-09-03 21:31:21 UTC (rev 266555) +++ trunk/Source/WebCore/dom/ContainerNode.cpp 2020-09-03 21:35:17 UTC (rev 266556) @@ -632,11 +632,6 @@ // https://dom.spec.whatwg.org/#concept-node-replace-all void ContainerNode::replaceAllChildrenWithNewText(const String& text) { -if (text.isEmpty()) { -replaceAllChildren(nullptr); -return; -} - auto node = document().createTextNode(text); if (!hasChildNodes()) { // appendChildWithoutPreInsertionValidityCheck() can only throw when node has a parent and we already asserted it doesn't. Modified: trunk/Source/WebCore/dom/Node.cpp (266555 => 266556) --- trunk/Source/WebCore/dom/Node.cpp 2020-09-03 21:31:21 UTC (rev 266555) +++ trunk/Source/WebCore/dom/Node.cpp 2020-09-03 21:35:17 UTC (rev 266556) @@ -1580,9 +1580,14 @@ case PROCESSING_INSTRUCTION_NODE: return setNodeValue(text); case ELEMENT_NODE: -case DOCUMENT_FRAGMENT_NODE: -downcast(*this).replaceAllChildrenWithNewText(text); +case DOCUMENT_FRAGMENT_NODE: { +auto& container = downcast(*this); +if (text.isEmpty()) +container.replaceAllChildren(nullptr); +else +container.replaceAllChildrenWithNewText(text); return { }; +} case DOCUMENT_NODE: case DOCUMENT_TYPE_NODE: // Do nothing. Modified: trunk/Source/WebCore/editing/ios/EditorIOS.mm (266555 => 266556) --- trunk/Source/WebCore/editing/ios/EditorIOS.mm 2020-09-03 21:31:21 UTC (rev 266555) +++ trunk/Source/WebCore/editing/ios/EditorIOS.mm 2020-09-03 21:35:17 UTC (rev 266556) @@ -329,21 +329,49 @@ clearUndoRedoOperations(); // If the element is empty already and we're not adding text, we can early return and avoid clearing/setting -// a selection at [0, 0] and the expense involved in creating VisiblePositions. +// a selection at [0, 0] and the expense involved in creation VisiblePositions. if (!element.firstChild() && text.isEmpty()) return; -// As a side effect this function sets a caret selection after the inserted content. -// What follows is more expensive if there is a selection, so clear it since it's going to change anyway. +// As a side effect this function sets a caret selection after the inserted content. Much of what +// follows is more expensive if there is a selection, so clear it since it's going to change anyway. m_document.selection().clear(); -element.replaceAllChildrenWithNewText(text); +// clear out all current children of element +element.removeChildren(); -VisiblePosition afterContents = createLegacyEditingPosition(&element, element.countChildNodes()); -if (afterContents.isNull()) +if (text.length()) { +// insert new text +// remove element from tree while doing it +// FIXME: The element we're inserting into is often the body element. It seems strange to be removing it +// (even if it is only temporary). ReplaceSelectionCommand doesn't bother doing this when it inserts +// content, why should we here? +RefPtr parent = element.parentNode(); +RefPtr siblingAfter = element.nextSibling(); +if (parent) +element.remove(); + +element.appendChild(createFragmentFromText(makeRangeSelectingNodeContents(element), text)); + +// restore element to document +if (parent) { +if (siblingAfter) +parent->insertBefore(element, siblingAfter.get()); +
[webkit-changes] [266553] branches/safari-610-branch
Title: [266553] branches/safari-610-branch Revision 266553 Author alanc...@apple.com Date 2020-09-03 14:31:12 -0700 (Thu, 03 Sep 2020) Log Message Cherry-pick r266156. rdar://problem/68168945 Facebook post with lots of comments has cut off scrollbar, and can't scroll fully to the bottom (sticky) https://bugs.webkit.org/show_bug.cgi?id=215719 Reviewed by Simon Fraser. Source/WebCore: While computing the scrollable overflow for inflow positioned (or transformed) renderers, we need to take their paint geometry into account so that scrolling matches their final positions. e.g. While the inflow positioned block box is placed right below the previous sibling div, visually they overlap each other. If these boxes happen to be in a scrollable container, the scrolling should be driven by the overlapping state (paint geometry) and not by the layout geometry (where the 2 boxes are placed vertically after each other). While stickily positioned boxes are also considered inflow positioned, their initial inflow layout positions contribute to the scrollable overflow as they are not stationary boxes. Test: fast/css/scrollable-overflow-with-sticky-positioning.html * rendering/RenderBox.cpp: (WebCore::RenderBox::layoutOverflowRectForPropagation const): LayoutTests: * fast/css/scrollable-overflow-with-sticky-positioning-expected.html: Added. * fast/css/scrollable-overflow-with-sticky-positioning.html: Added. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266156 268f45cc-cd09-0410-ab3c-d52691b4dbfc Modified Paths branches/safari-610-branch/LayoutTests/ChangeLog branches/safari-610-branch/Source/WebCore/ChangeLog branches/safari-610-branch/Source/WebCore/rendering/RenderBox.cpp Added Paths branches/safari-610-branch/LayoutTests/fast/css/scrollable-overflow-with-sticky-positioning-expected.html branches/safari-610-branch/LayoutTests/fast/css/scrollable-overflow-with-sticky-positioning.html Diff Modified: branches/safari-610-branch/LayoutTests/ChangeLog (266552 => 266553) --- branches/safari-610-branch/LayoutTests/ChangeLog 2020-09-03 21:31:09 UTC (rev 266552) +++ branches/safari-610-branch/LayoutTests/ChangeLog 2020-09-03 21:31:12 UTC (rev 266553) @@ -1,5 +1,55 @@ 2020-09-03 Alan Coon +Cherry-pick r266156. rdar://problem/68168945 + +Facebook post with lots of comments has cut off scrollbar, and can't scroll fully to the bottom (sticky) +https://bugs.webkit.org/show_bug.cgi?id=215719 + + +Reviewed by Simon Fraser. + +Source/WebCore: + +While computing the scrollable overflow for inflow positioned (or transformed) renderers, we need to take their paint geometry into +account so that scrolling matches their final positions. +e.g. + + + + +While the inflow positioned block box is placed right below the previous sibling div, visually they overlap each other. +If these boxes happen to be in a scrollable container, the scrolling should be driven by the overlapping state (paint geometry) and not +by the layout geometry (where the 2 boxes are placed vertically after each other). + +While stickily positioned boxes are also considered inflow positioned, their initial inflow layout positions contribute to the scrollable overflow +as they are not stationary boxes. + +Test: fast/css/scrollable-overflow-with-sticky-positioning.html + +* rendering/RenderBox.cpp: +(WebCore::RenderBox::layoutOverflowRectForPropagation const): + +LayoutTests: + +* fast/css/scrollable-overflow-with-sticky-positioning-expected.html: Added. +* fast/css/scrollable-overflow-with-sticky-positioning.html: Added. + + +git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266156 268f45cc-cd09-0410-ab3c-d52691b4dbfc + +2020-08-25 Zalan Bujtas + +Facebook post with lots of comments has cut off scrollbar, and can't scroll fully to the bottom (sticky) +https://bugs.webkit.org/show_bug.cgi?id=215719 + + +Reviewed by Simon Fraser. + +* fast/css/scrollable-overflow-with-sticky-positioning-expected.html: Added. +* fast/css/scrollable-overflow-with-sticky-positioning.html: Added. + +2020-09-03 Alan Coon + Cherry-pick r266158. rdar://problem/67812825 Web Share API Level 2 functions even when its experimental feature flag is disabled Added: branches/safari-610-branch/LayoutTests/fast/css/scrollable-overflow-with-sticky-positioning-expected.html (0 => 266553) --- branches/safari-610-branch/LayoutTests/fast/css/scrollable-overflow-with-sticky-positioning-expected.html (rev 0) +++ branches/safari-610-branch/LayoutTests/fast/css/scrollable-overflow-with-sticky-positioning-expected.html 2020-09-03 21:31:12 UTC (rev 266553) @@ -0,0 +1,40 @@ + +#container { + height: 500px; + width
[webkit-changes] [266547] branches/safari-610-branch
Title: [266547] branches/safari-610-branch Revision 266547 Author alanc...@apple.com Date 2020-09-03 14:30:50 -0700 (Thu, 03 Sep 2020) Log Message Cherry-pick r266248. rdar://problem/67963541 Occasional crashes when restoring replaced text under Editor::changeBackToReplacedString https://bugs.webkit.org/show_bug.cgi?id=215892 Reviewed by Tim Horton. Source/WebCore: While reverting the replaced string in `Editor::changeBackToReplacedString`, it's possible for text replacement (`Editor::replaceSelectionWithText`) to cause the text checking paragraph range to become orphaned (if for no reason other than the fact that arbitrary script can run in between). If this happens, then our attempts to expand the checking range to paragraph boundaries underneath `TextCheckingParagraph::paragraphRange` will result in a null dereference, since the boundary points computed underneath the `expandToParagraphBoundary` helper will be `nullopt`. Mitigate this (and any other potentially similar crashes) by making `expandToParagraphBoundary` robust in the case where expanding to the start and end fails, and just fall back to returning the original text checking range instead. Test: editing/mac/input/change-back-to-replaced-string.html * editing/Editor.h: * editing/TextCheckingHelper.cpp: (WebCore::expandToParagraphBoundary): See above for more details. * testing/Internals.cpp: (WebCore::Internals::changeBackToReplacedString): * testing/Internals.h: * testing/Internals.idl: Add a simple internal testing hook to change the currently selected text back to the given replaced string. LayoutTests: Add a layout test to exercise the crash. * editing/mac/input/change-back-to-replaced-string-expected.txt: Added. * editing/mac/input/change-back-to-replaced-string.html: Added. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266248 268f45cc-cd09-0410-ab3c-d52691b4dbfc Modified Paths branches/safari-610-branch/LayoutTests/ChangeLog branches/safari-610-branch/Source/WebCore/ChangeLog branches/safari-610-branch/Source/WebCore/editing/Editor.h branches/safari-610-branch/Source/WebCore/editing/TextCheckingHelper.cpp branches/safari-610-branch/Source/WebCore/testing/Internals.cpp branches/safari-610-branch/Source/WebCore/testing/Internals.h branches/safari-610-branch/Source/WebCore/testing/Internals.idl Added Paths branches/safari-610-branch/LayoutTests/editing/mac/input/change-back-to-replaced-string-expected.txt branches/safari-610-branch/LayoutTests/editing/mac/input/change-back-to-replaced-string.html Diff Modified: branches/safari-610-branch/LayoutTests/ChangeLog (266546 => 266547) --- branches/safari-610-branch/LayoutTests/ChangeLog 2020-09-03 21:30:46 UTC (rev 266546) +++ branches/safari-610-branch/LayoutTests/ChangeLog 2020-09-03 21:30:50 UTC (rev 266547) @@ -1,5 +1,66 @@ 2020-09-03 Alan Coon +Cherry-pick r266248. rdar://problem/67963541 + +Occasional crashes when restoring replaced text under Editor::changeBackToReplacedString +https://bugs.webkit.org/show_bug.cgi?id=215892 + + +Reviewed by Tim Horton. + +Source/WebCore: + +While reverting the replaced string in `Editor::changeBackToReplacedString`, it's possible for text replacement +(`Editor::replaceSelectionWithText`) to cause the text checking paragraph range to become orphaned (if for no +reason other than the fact that arbitrary script can run in between). If this happens, then our attempts to +expand the checking range to paragraph boundaries underneath `TextCheckingParagraph::paragraphRange` will result +in a null dereference, since the boundary points computed underneath the `expandToParagraphBoundary` helper will +be `nullopt`. + +Mitigate this (and any other potentially similar crashes) by making `expandToParagraphBoundary` robust in the +case where expanding to the start and end fails, and just fall back to returning the original text checking +range instead. + +Test: editing/mac/input/change-back-to-replaced-string.html + +* editing/Editor.h: +* editing/TextCheckingHelper.cpp: +(WebCore::expandToParagraphBoundary): + +See above for more details. + +* testing/Internals.cpp: +(WebCore::Internals::changeBackToReplacedString): +* testing/Internals.h: +* testing/Internals.idl: + +Add a simple internal testing hook to change the currently selected text back to the given replaced string. + +LayoutTests: + +Add a layout test to exercise the crash. + +* editing/mac/input/change-back-to-replaced-string-expected.txt: Added. +* editing/mac/input/change-back-to-replaced-string.html: Added. + + +git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266248 268f45cc-cd09-0410-ab3c-d52691b4dbfc + +2020-08-27 Wenson Hsieh + +Occ
[webkit-changes] [266551] branches/safari-610-branch
Title: [266551] branches/safari-610-branch Revision 266551 Author alanc...@apple.com Date 2020-09-03 14:31:06 -0700 (Thu, 03 Sep 2020) Log Message Cherry-pick r266158. rdar://problem/67812825 Web Share API Level 2 functions even when its experimental feature flag is disabled https://bugs.webkit.org/show_bug.cgi?id=215831 Reviewed by Darin Adler. Source/WebCore: Tests: fast/web-share/canShare-with-files-feature-disabled.html fast/web-share/share-with-files-feature-disabled.html We had a feature flag for Web Share API Level 2, but it isn't actually consulted anywhere in the implementation. * page/Navigator.cpp: (WebCore::Navigator::canShare): Rewrite canShare to be a bit more readable, and also to consult the Level 2 feature flag. (WebCore::Navigator::share): Since canShare (per the spec) will return true if we have files and other content, even if files are not shareable, check the feature flag again before loading the files. Source/WebKit: * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::showShareSheet): If the Web Content process sends us files, but the Level 2 feature flag is disabled, something fishy is happening, so fire a MESSAGE_CHECK. LayoutTests: * fast/web-share/canShare-with-files-feature-disabled-expected.txt: Added. * fast/web-share/canShare-with-files-feature-disabled.html: Added. * fast/web-share/share-with-files-feature-disabled-expected.txt: Added. * fast/web-share/share-with-files-feature-disabled.html: Added. Add some tests that ensure that disabling the feature actually works. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266158 268f45cc-cd09-0410-ab3c-d52691b4dbfc Modified Paths branches/safari-610-branch/LayoutTests/ChangeLog branches/safari-610-branch/Source/WebCore/ChangeLog branches/safari-610-branch/Source/WebCore/page/Navigator.cpp branches/safari-610-branch/Source/WebKit/ChangeLog branches/safari-610-branch/Source/WebKit/UIProcess/WebPageProxy.cpp Added Paths branches/safari-610-branch/LayoutTests/fast/web-share/canShare-with-files-feature-disabled-expected.txt branches/safari-610-branch/LayoutTests/fast/web-share/canShare-with-files-feature-disabled.html branches/safari-610-branch/LayoutTests/fast/web-share/share-with-files-feature-disabled-expected.txt branches/safari-610-branch/LayoutTests/fast/web-share/share-with-files-feature-disabled.html Diff Modified: branches/safari-610-branch/LayoutTests/ChangeLog (266550 => 266551) --- branches/safari-610-branch/LayoutTests/ChangeLog 2020-09-03 21:31:02 UTC (rev 266550) +++ branches/safari-610-branch/LayoutTests/ChangeLog 2020-09-03 21:31:06 UTC (rev 266551) @@ -1,5 +1,63 @@ 2020-09-03 Alan Coon +Cherry-pick r266158. rdar://problem/67812825 + +Web Share API Level 2 functions even when its experimental feature flag is disabled +https://bugs.webkit.org/show_bug.cgi?id=215831 + + +Reviewed by Darin Adler. + +Source/WebCore: + +Tests: fast/web-share/canShare-with-files-feature-disabled.html + fast/web-share/share-with-files-feature-disabled.html + +We had a feature flag for Web Share API Level 2, but it isn't actually +consulted anywhere in the implementation. + +* page/Navigator.cpp: +(WebCore::Navigator::canShare): +Rewrite canShare to be a bit more readable, and also to consult the Level 2 feature flag. + +(WebCore::Navigator::share): +Since canShare (per the spec) will return true if we have files and other content, +even if files are not shareable, check the feature flag again before loading the files. + +Source/WebKit: + +* UIProcess/WebPageProxy.cpp: +(WebKit::WebPageProxy::showShareSheet): +If the Web Content process sends us files, but the Level 2 feature flag is disabled, +something fishy is happening, so fire a MESSAGE_CHECK. + +LayoutTests: + +* fast/web-share/canShare-with-files-feature-disabled-expected.txt: Added. +* fast/web-share/canShare-with-files-feature-disabled.html: Added. +* fast/web-share/share-with-files-feature-disabled-expected.txt: Added. +* fast/web-share/share-with-files-feature-disabled.html: Added. +Add some tests that ensure that disabling the feature actually works. + + +git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266158 268f45cc-cd09-0410-ab3c-d52691b4dbfc + +2020-08-25 Tim Horton + +Web Share API Level 2 functions even when its experimental feature flag is disabled +https://bugs.webkit.org/show_bug.cgi?id=215831 + + +Reviewed by Darin Adler. + +* fast/web-share/canShare-with-files-feature-disabled-expected.txt: Added. +* fast/web-share/canShare-with-files-feature-disabled.html: Added. +* fast/web-share/share-with-files-feature-disabled-expected.txt: Added. +
[webkit-changes] [266552] branches/safari-610-branch/Source/WebCore
Title: [266552] branches/safari-610-branch/Source/WebCore Revision 266552 Author alanc...@apple.com Date 2020-09-03 14:31:09 -0700 (Thu, 03 Sep 2020) Log Message Cherry-pick r266144. rdar://problem/68168942 When using airplay with Youtube, the Youtube tab becomes completely empty and is unresponsive for an extended period of time if we switch the tab https://bugs.webkit.org/show_bug.cgi?id=215821 Reviewed by Eric Carlson. We should ignore the request to paint the current video frame when we are using airplay. It is not necessary to do so, and -[AVAssetImageGenerator copyCGImageAtTime:actualTime:error:] will block the web process for a long time if the video is airplaying. * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: (WebCore::MediaPlayerPrivateAVFoundationObjC::paintCurrentFrameInContext): git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266144 268f45cc-cd09-0410-ab3c-d52691b4dbfc Modified Paths branches/safari-610-branch/Source/WebCore/ChangeLog branches/safari-610-branch/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm Diff Modified: branches/safari-610-branch/Source/WebCore/ChangeLog (266551 => 266552) --- branches/safari-610-branch/Source/WebCore/ChangeLog 2020-09-03 21:31:06 UTC (rev 266551) +++ branches/safari-610-branch/Source/WebCore/ChangeLog 2020-09-03 21:31:09 UTC (rev 266552) @@ -1,5 +1,38 @@ 2020-09-03 Alan Coon +Cherry-pick r266144. rdar://problem/68168942 + +When using airplay with Youtube, the Youtube tab becomes completely empty and is unresponsive for an extended period of time if we switch the tab +https://bugs.webkit.org/show_bug.cgi?id=215821 + +Reviewed by Eric Carlson. + +We should ignore the request to paint the current video frame when we are using airplay. +It is not necessary to do so, and -[AVAssetImageGenerator copyCGImageAtTime:actualTime:error:] +will block the web process for a long time if the video is airplaying. + +* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: +(WebCore::MediaPlayerPrivateAVFoundationObjC::paintCurrentFrameInContext): + + +git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266144 268f45cc-cd09-0410-ab3c-d52691b4dbfc + +2020-08-25 Peng Liu + +When using airplay with Youtube, the Youtube tab becomes completely empty and is unresponsive for an extended period of time if we switch the tab +https://bugs.webkit.org/show_bug.cgi?id=215821 + +Reviewed by Eric Carlson. + +We should ignore the request to paint the current video frame when we are using airplay. +It is not necessary to do so, and -[AVAssetImageGenerator copyCGImageAtTime:actualTime:error:] +will block the web process for a long time if the video is airplaying. + +* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: +(WebCore::MediaPlayerPrivateAVFoundationObjC::paintCurrentFrameInContext): + +2020-09-03 Alan Coon + Cherry-pick r266158. rdar://problem/67812825 Web Share API Level 2 functions even when its experimental feature flag is disabled Modified: branches/safari-610-branch/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm (266551 => 266552) --- branches/safari-610-branch/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm 2020-09-03 21:31:06 UTC (rev 266551) +++ branches/safari-610-branch/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm 2020-09-03 21:31:09 UTC (rev 266552) @@ -1523,7 +1523,7 @@ void MediaPlayerPrivateAVFoundationObjC::paintCurrentFrameInContext(GraphicsContext& context, const FloatRect& rect) { -if (!metaDataAvailable() || context.paintingDisabled()) +if (!metaDataAvailable() || context.paintingDisabled() || isCurrentPlaybackTargetWireless()) return; setDelayCallbacks(true); ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [266546] branches/safari-610-branch/Source/WebKit
Title: [266546] branches/safari-610-branch/Source/WebKit Revision 266546 Author alanc...@apple.com Date 2020-09-03 14:30:46 -0700 (Thu, 03 Sep 2020) Log Message Cherry-pick r266240. rdar://problem/67963550 REGRESSION(r264710): Initializing the AVPlayer Obj-C class at process start up causes a regression in power-use tests https://bugs.webkit.org/show_bug.cgi?id=215861 Reviewed by Eric Carlson. Calling +instancesRespondToSelector: will cause the underyling Obj-C class to be initialized, which in the case of AVPlayer does a bunch of work which shows up on power-use tests. Because the API being checked for will always exist in macOS 11, and that code is already protected by a HAVE(AVPLAYER_VIDEORANGEOVERRIDE) pragma, just return early here without running the +instancesRespondToSelector: check. * WebProcess/cocoa/WebProcessCocoa.mm: (WebKit::WebProcess::updatePageScreenProperties): git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266240 268f45cc-cd09-0410-ab3c-d52691b4dbfc Modified Paths branches/safari-610-branch/Source/WebKit/ChangeLog branches/safari-610-branch/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm Diff Modified: branches/safari-610-branch/Source/WebKit/ChangeLog (266545 => 266546) --- branches/safari-610-branch/Source/WebKit/ChangeLog 2020-09-03 21:30:44 UTC (rev 266545) +++ branches/safari-610-branch/Source/WebKit/ChangeLog 2020-09-03 21:30:46 UTC (rev 266546) @@ -1,3 +1,38 @@ +2020-09-03 Alan Coon + +Cherry-pick r266240. rdar://problem/67963550 + +REGRESSION(r264710): Initializing the AVPlayer Obj-C class at process start up causes a regression in power-use tests +https://bugs.webkit.org/show_bug.cgi?id=215861 + +Reviewed by Eric Carlson. + +Calling +instancesRespondToSelector: will cause the underyling Obj-C class to be initialized, which in the case of +AVPlayer does a bunch of work which shows up on power-use tests. Because the API being checked for will always exist +in macOS 11, and that code is already protected by a HAVE(AVPLAYER_VIDEORANGEOVERRIDE) pragma, just return early +here without running the +instancesRespondToSelector: check. + +* WebProcess/cocoa/WebProcessCocoa.mm: +(WebKit::WebProcess::updatePageScreenProperties): + + +git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266240 268f45cc-cd09-0410-ab3c-d52691b4dbfc + +2020-08-27 Jer Noble + +REGRESSION(r264710): Initializing the AVPlayer Obj-C class at process start up causes a regression in power-use tests +https://bugs.webkit.org/show_bug.cgi?id=215861 + +Reviewed by Eric Carlson. + +Calling +instancesRespondToSelector: will cause the underyling Obj-C class to be initialized, which in the case of +AVPlayer does a bunch of work which shows up on power-use tests. Because the API being checked for will always exist +in macOS 11, and that code is already protected by a HAVE(AVPLAYER_VIDEORANGEOVERRIDE) pragma, just return early +here without running the +instancesRespondToSelector: check. + +* WebProcess/cocoa/WebProcessCocoa.mm: +(WebKit::WebProcess::updatePageScreenProperties): + 2020-09-01 Alan Coon Cherry-pick r266301. rdar://problem/68177648 Modified: branches/safari-610-branch/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm (266545 => 266546) --- branches/safari-610-branch/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm 2020-09-03 21:30:44 UTC (rev 266545) +++ branches/safari-610-branch/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm 2020-09-03 21:30:46 UTC (rev 266546) @@ -1016,14 +1016,9 @@ #if PLATFORM(MAC) void WebProcess::updatePageScreenProperties() { -#if HAVE(AVPLAYER_VIDEORANGEOVERRIDE) -// If AVPlayer.videoRangeOverride support is present, there's no need to override HDR mode -// at the MediaToolbox level, as the MediaToolbox override functionality is both duplicative -// and process global. -if (PAL::isAVFoundationFrameworkAvailable() && [PAL::getAVPlayerClass() instancesRespondToSelector:@selector(setVideoRangeOverride:)]) -return; -#endif - +#if !HAVE(AVPLAYER_VIDEORANGEOVERRIDE) +// Only override HDR support at the MediaToolbox level if AVPlayer.videoRangeOverride support is +// not present, as the MediaToolbox override functionality is both duplicative and process global. if (hasProcessPrivilege(ProcessPrivilege::CanCommunicateWithWindowServer)) { setShouldOverrideScreenSupportsHighDynamicRange(false, false); return; @@ -1033,6 +1028,7 @@ return screenSupportsHighDynamicRange(page->mainFrameView()); }); setShouldOverrideScreenSupportsHighDynamicRange(true, allPagesAreOnHDRScreens); +#endif } #endif ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailma
[webkit-changes] [266555] branches/safari-610-branch
Title: [266555] branches/safari-610-branch Revision 266555 Author alanc...@apple.com Date 2020-09-03 14:31:21 -0700 (Thu, 03 Sep 2020) Log Message Cherry-pick r266265. rdar://problem/68168939 [iOS] provide a way to get previously inserted alternatives for the selected text https://bugs.webkit.org/show_bug.cgi?id=215816 Reviewed by Darin Adler. Source/WebCore: * editing/cocoa/AlternativeTextUIController.h: * editing/cocoa/AlternativeTextUIController.mm: (WebCore::AlternativeTextUIController::alternativesForContext): Return the raw `NSTextAlternatives *` and let the caller create the `Vector` if they need to so that callers that don't can use the actual `NSTextAlternatives *`. * editing/Editor.h: * editing/Editor.cpp: (WebCore::Editor::applyDictationAlternative): Added. (WebCore::Editor::applyDictationAlternativelternative): Deleted. * page/ContextMenuController.cpp: (WebCore::ContextMenuController::contextMenuItemSelected): Drive-by: fix typo. Source/WebKit: * UIProcess/ios/WKContentViewInteraction.mm: (-[WKContentView alternativesForSelectedText]): * UIProcess/WebPageProxy.h: * UIProcess/Cocoa/WebPageProxyCocoa.mm: (WebKit::WebPageProxy::platformDictationAlternatives): Added. * UIProcess/PageClient.h: * UIProcess/Cocoa/PageClientImplCocoa.h: * UIProcess/Cocoa/PageClientImplCocoa.mm: (WebKit::PageClientImplCocoa::dictationAlternatives): (WebKit::PageClientImplCocoa::platformDictationAlternatives): Added. Provide a way to get the raw `NSTextAlternatives *` for a given `WebCore::DictationContext`. * Shared/EditorState.h: * Shared/EditorState.cpp: (WebKit::EditorState::PostLayoutData::encode const): (WebKit::EditorState::PostLayoutData::decode): * WebProcess/WebPage/ios/WebPageIOS.mm: (WebKit::WebPage::getPlatformEditorState const): Include a `Vector` as part of the `EditorState` that contains all of the `WebCore::DictationContext` that exist in the currently selected range (or the range of the word containing the cursor if nothing is selected). * Platform/spi/ios/UIKitSPI.h: Source/WebKitLegacy/mac: * WebView/WebView.mm: (-[WebView _dictationAlternatives:]): Create a `Vector` from the returned `NSTextAlternatives *` now that the member `WebCore::AlternativeTextUIController::alternativesForContext` returns it. Tools: * TestWebKitAPI/Tests/WebKitCocoa/InsertTextAlternatives.mm: (InsertTextAlternatives.Simple): * TestWebKitAPI/ios/UIKitSPI.h: git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266265 268f45cc-cd09-0410-ab3c-d52691b4dbfc Modified Paths branches/safari-610-branch/Source/WebCore/ChangeLog branches/safari-610-branch/Source/WebCore/editing/Editor.cpp branches/safari-610-branch/Source/WebCore/editing/Editor.h branches/safari-610-branch/Source/WebCore/editing/cocoa/AlternativeTextUIController.h branches/safari-610-branch/Source/WebCore/editing/cocoa/AlternativeTextUIController.mm branches/safari-610-branch/Source/WebCore/page/ContextMenuController.cpp branches/safari-610-branch/Source/WebKit/ChangeLog branches/safari-610-branch/Source/WebKit/Platform/spi/ios/UIKitSPI.h branches/safari-610-branch/Source/WebKit/Shared/EditorState.cpp branches/safari-610-branch/Source/WebKit/Shared/EditorState.h branches/safari-610-branch/Source/WebKit/UIProcess/Cocoa/PageClientImplCocoa.h branches/safari-610-branch/Source/WebKit/UIProcess/Cocoa/PageClientImplCocoa.mm branches/safari-610-branch/Source/WebKit/UIProcess/Cocoa/WebPageProxyCocoa.mm branches/safari-610-branch/Source/WebKit/UIProcess/PageClient.h branches/safari-610-branch/Source/WebKit/UIProcess/WebPageProxy.h branches/safari-610-branch/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm branches/safari-610-branch/Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm branches/safari-610-branch/Source/WebKitLegacy/mac/ChangeLog branches/safari-610-branch/Source/WebKitLegacy/mac/WebView/WebView.mm branches/safari-610-branch/Tools/ChangeLog branches/safari-610-branch/Tools/TestWebKitAPI/Tests/WebKitCocoa/InsertTextAlternatives.mm branches/safari-610-branch/Tools/TestWebKitAPI/ios/UIKitSPI.h Diff Modified: branches/safari-610-branch/Source/WebCore/ChangeLog (266554 => 266555) --- branches/safari-610-branch/Source/WebCore/ChangeLog 2020-09-03 21:31:15 UTC (rev 266554) +++ branches/safari-610-branch/Source/WebCore/ChangeLog 2020-09-03 21:31:21 UTC (rev 266555) @@ -1,5 +1,97 @@ 2020-09-03 Alan Coon +Cherry-pick r266265. rdar://problem/68168939 + +[iOS] provide a way to get previously inserted alternatives for the selected text +https://bugs.webkit.org/show_bug.cgi?id=215816 + + +Reviewed by Darin Adler. + +Source/WebCore: + +* editing/cocoa/AlternativeTextUIController.h: +* editing/cocoa/AlternativeTextUIController.mm: +(WebCore::AlternativeTextUIController::alternativesForCo
[webkit-changes] [266550] branches/safari-610-branch
Title: [266550] branches/safari-610-branch Revision 266550 Author alanc...@apple.com Date 2020-09-03 14:31:02 -0700 (Thu, 03 Sep 2020) Log Message Cherry-pick r266151. rdar://problem/68168950 Web Share API can share non-HTTP(S) URLs https://bugs.webkit.org/show_bug.cgi?id=215823 Reviewed by Wenson Hsieh. Source/WebCore: Test: fast/web-share/share-disallows-file-urls.html * page/Navigator.cpp: (WebCore::shareableURLForShareData): (WebCore::Navigator::canShare): (WebCore::Navigator::share): Factor out the code to complete and check the scheme of the URL. Make canShare() return NO and share() fail for non-HTTP(S) or data: URLs. Source/WebKit: * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::showShareSheet): Ensure that only HTTP family or data: URLs are shared. LayoutTests: * fast/web-share/share-disallows-file-urls-expected.txt: Added. * fast/web-share/share-disallows-file-urls.html: Added. * fast/web-share/share-transient-activation-expired.html: * fast/web-share/share-transient-activation.html: * fast/web-share/share.html: Add a test that ensures that sharing a non-HTTP-family URL fails, and fix the existing tests to share HTTP-family URLs. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266151 268f45cc-cd09-0410-ab3c-d52691b4dbfc Modified Paths branches/safari-610-branch/LayoutTests/ChangeLog branches/safari-610-branch/LayoutTests/fast/web-share/share-transient-activation-expired.html branches/safari-610-branch/LayoutTests/fast/web-share/share-transient-activation.html branches/safari-610-branch/LayoutTests/fast/web-share/share.html branches/safari-610-branch/Source/WebCore/ChangeLog branches/safari-610-branch/Source/WebCore/page/Navigator.cpp branches/safari-610-branch/Source/WebKit/ChangeLog branches/safari-610-branch/Source/WebKit/UIProcess/WebPageProxy.cpp Added Paths branches/safari-610-branch/LayoutTests/fast/web-share/share-disallows-file-urls-expected.txt branches/safari-610-branch/LayoutTests/fast/web-share/share-disallows-file-urls.html Diff Modified: branches/safari-610-branch/LayoutTests/ChangeLog (266549 => 266550) --- branches/safari-610-branch/LayoutTests/ChangeLog 2020-09-03 21:30:58 UTC (rev 266549) +++ branches/safari-610-branch/LayoutTests/ChangeLog 2020-09-03 21:31:02 UTC (rev 266550) @@ -1,5 +1,61 @@ 2020-09-03 Alan Coon +Cherry-pick r266151. rdar://problem/67812825 + +Web Share API can share non-HTTP(S) URLs +https://bugs.webkit.org/show_bug.cgi?id=215823 + + +Reviewed by Wenson Hsieh. + +Source/WebCore: + +Test: fast/web-share/share-disallows-file-urls.html + +* page/Navigator.cpp: +(WebCore::shareableURLForShareData): +(WebCore::Navigator::canShare): +(WebCore::Navigator::share): +Factor out the code to complete and check the scheme of the URL. +Make canShare() return NO and share() fail for non-HTTP(S) or data: URLs. + +Source/WebKit: + +* UIProcess/WebPageProxy.cpp: +(WebKit::WebPageProxy::showShareSheet): +Ensure that only HTTP family or data: URLs are shared. + +LayoutTests: + +* fast/web-share/share-disallows-file-urls-expected.txt: Added. +* fast/web-share/share-disallows-file-urls.html: Added. +* fast/web-share/share-transient-activation-expired.html: +* fast/web-share/share-transient-activation.html: +* fast/web-share/share.html: +Add a test that ensures that sharing a non-HTTP-family URL fails, +and fix the existing tests to share HTTP-family URLs. + + +git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266151 268f45cc-cd09-0410-ab3c-d52691b4dbfc + +2020-08-25 Tim Horton + +Web Share API can share non-HTTP(S) URLs +https://bugs.webkit.org/show_bug.cgi?id=215823 + + +Reviewed by Wenson Hsieh. + +* fast/web-share/share-disallows-file-urls-expected.txt: Added. +* fast/web-share/share-disallows-file-urls.html: Added. +* fast/web-share/share-transient-activation-expired.html: +* fast/web-share/share-transient-activation.html: +* fast/web-share/share.html: +Add a test that ensures that sharing a non-HTTP-family URL fails, +and fix the existing tests to share HTTP-family URLs. + +2020-09-03 Alan Coon + Cherry-pick r266292. rdar://problem/67963525 Vertical scrolling gets stuck when a horizontal scroller is under the mouse (google search results) Added: branches/safari-610-branch/LayoutTests/fast/web-share/share-disallows-file-urls-expected.txt (0 => 266550) --- branches/safari-610-branch/LayoutTests/fast/web-share/share-disallows-file-urls-expected.txt (rev 0) +++ branches/safari-610-branch/LayoutTests/fast/web-share/share-disallows-file-urls-expected.txt 2020-09-03 21:31:02 UTC (rev 266550) @@ -
[webkit-changes] [266554] branches/safari-610-branch/Source/WebCore
Title: [266554] branches/safari-610-branch/Source/WebCore Revision 266554 Author alanc...@apple.com Date 2020-09-03 14:31:15 -0700 (Thu, 03 Sep 2020) Log Message Cherry-pick r266218. rdar://problem/68168930 REGRESSION: touchbar controls don't reflect video state in fullscreen https://bugs.webkit.org/show_bug.cgi?id=215873 Reviewed by Eric Carlson. * platform/mac/WebPlaybackControlsManager.h: * platform/mac/WebPlaybackControlsManager.mm: (-[WebPlaybackControlsManager setPlaying:]): (-[WebPlaybackControlsManager isPlaying]): Create an actual ivar `_playing` for holding the play/pause state. This is needed because `AVTouchBarScrubber` uses KVO to update the state of the play/pause button whenever the related video controller (in this case `AVTouchBarPlaybackControlsControlling`) changes using an `NSValueBinding`. KVO needs an actual ivar in order to function properly. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266218 268f45cc-cd09-0410-ab3c-d52691b4dbfc Modified Paths branches/safari-610-branch/Source/WebCore/ChangeLog branches/safari-610-branch/Source/WebCore/platform/mac/WebPlaybackControlsManager.h branches/safari-610-branch/Source/WebCore/platform/mac/WebPlaybackControlsManager.mm Diff Modified: branches/safari-610-branch/Source/WebCore/ChangeLog (266553 => 266554) --- branches/safari-610-branch/Source/WebCore/ChangeLog 2020-09-03 21:31:12 UTC (rev 266553) +++ branches/safari-610-branch/Source/WebCore/ChangeLog 2020-09-03 21:31:15 UTC (rev 266554) @@ -1,5 +1,44 @@ 2020-09-03 Alan Coon +Cherry-pick r266218. rdar://problem/68168930 + +REGRESSION: touchbar controls don't reflect video state in fullscreen +https://bugs.webkit.org/show_bug.cgi?id=215873 + + +Reviewed by Eric Carlson. + +* platform/mac/WebPlaybackControlsManager.h: +* platform/mac/WebPlaybackControlsManager.mm: +(-[WebPlaybackControlsManager setPlaying:]): +(-[WebPlaybackControlsManager isPlaying]): +Create an actual ivar `_playing` for holding the play/pause state. This is needed because +`AVTouchBarScrubber` uses KVO to update the state of the play/pause button whenever the +related video controller (in this case `AVTouchBarPlaybackControlsControlling`) changes +using an `NSValueBinding`. KVO needs an actual ivar in order to function properly. + + +git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266218 268f45cc-cd09-0410-ab3c-d52691b4dbfc + +2020-08-26 Devin Rousso + +REGRESSION: touchbar controls don't reflect video state in fullscreen +https://bugs.webkit.org/show_bug.cgi?id=215873 + + +Reviewed by Eric Carlson. + +* platform/mac/WebPlaybackControlsManager.h: +* platform/mac/WebPlaybackControlsManager.mm: +(-[WebPlaybackControlsManager setPlaying:]): +(-[WebPlaybackControlsManager isPlaying]): +Create an actual ivar `_playing` for holding the play/pause state. This is needed because +`AVTouchBarScrubber` uses KVO to update the state of the play/pause button whenever the +related video controller (in this case `AVTouchBarPlaybackControlsControlling`) changes +using an `NSValueBinding`. KVO needs an actual ivar in order to function properly. + +2020-09-03 Alan Coon + Cherry-pick r266156. rdar://problem/68168945 Facebook post with lots of comments has cut off scrollbar, and can't scroll fully to the bottom (sticky) Modified: branches/safari-610-branch/Source/WebCore/platform/mac/WebPlaybackControlsManager.h (266553 => 266554) --- branches/safari-610-branch/Source/WebCore/platform/mac/WebPlaybackControlsManager.h 2020-09-03 21:31:12 UTC (rev 266553) +++ branches/safari-610-branch/Source/WebCore/platform/mac/WebPlaybackControlsManager.h 2020-09-03 21:31:15 UTC (rev 266554) @@ -51,6 +51,7 @@ RetainPtr _currentAudioTouchBarMediaSelectionOption; RetainPtr> _legibleTouchBarMediaSelectionOptions; RetainPtr _currentLegibleTouchBarMediaSelectionOption; +BOOL _playing; float _rate; BOOL _canTogglePlayback; Modified: branches/safari-610-branch/Source/WebCore/platform/mac/WebPlaybackControlsManager.mm (266553 => 266554) --- branches/safari-610-branch/Source/WebCore/platform/mac/WebPlaybackControlsManager.mm 2020-09-03 21:31:12 UTC (rev 266553) +++ branches/safari-610-branch/Source/WebCore/platform/mac/WebPlaybackControlsManager.mm 2020-09-03 21:31:15 UTC (rev 266554) @@ -288,22 +288,27 @@ - (void)setPlaying:(BOOL)playing { -if (!_playbackSessionInterfaceMac || !_playbackSessionInterfaceMac->playbackSessionModel()) +if (playing != _playing) { +[self willChangeValueForKey:@"playing"]; +_playing = playing; +[self didChangeValueForKey:@"playing"]; +} + +if (!_playbackSessionInterfaceMac) return; -BOOL isCurrentlyPlayi
[webkit-changes] [266549] branches/safari-610-branch
Title: [266549] branches/safari-610-branch Revision 266549 Author alanc...@apple.com Date 2020-09-03 14:30:58 -0700 (Thu, 03 Sep 2020) Log Message Cherry-pick r266292. rdar://problem/67963525 Vertical scrolling gets stuck when a horizontal scroller is under the mouse (google search results) https://bugs.webkit.org/show_bug.cgi?id=215641 Reviewed by Tim Horton. Source/WebCore: There are two parts to this fix. First, findEnclosingScrollableContainer() needs to use the same vertical-biasing delta fixup that we use in other places, to bias towards vertical scrolling. Second, when we've determined that the main frame should perform the scroll and dispatch the wheel event to the scrolling thread, we used to hit-test from scratch on the scrolling thread and and try to send the event to a scroller which we already know should not handle it. So pass along a target ScrollingNodeID, and start the scrolling thread handling from that node. Test: fast/scrolling/mac/horizontal-overflow-trapping-small-deltas.html * page/FrameView.cpp: (WebCore::FrameView::wheelEvent): * page/mac/EventHandlerMac.mm: (WebCore::findEnclosingScrollableContainer): * page/scrolling/ScrollingCoordinator.h: (WebCore::ScrollingCoordinator::handleWheelEvent): * page/scrolling/ScrollingTree.cpp: (WebCore::ScrollingTree::handleWheelEvent): (WebCore::ScrollingTree::handleWheelEventWithNode): * page/scrolling/ScrollingTree.h: * page/scrolling/ThreadedScrollingTree.cpp: (WebCore::ThreadedScrollingTree::handleWheelEventAfterMainThread): * page/scrolling/ThreadedScrollingTree.h: * page/scrolling/mac/ScrollingCoordinatorMac.h: * page/scrolling/mac/ScrollingCoordinatorMac.mm: (WebCore::ScrollingCoordinatorMac::handleWheelEvent): * page/scrolling/nicosia/ScrollingCoordinatorNicosia.cpp: (WebCore::ScrollingCoordinatorNicosia::handleWheelEvent): * page/scrolling/nicosia/ScrollingCoordinatorNicosia.h: LayoutTests: After this change iframe-latch-small-deltas.html would time-out because WheelEventTestMonitor would get stuck with a "content scrolling" defer region, due to begin/end wheel events not getting both sent to the iframe. But the test was actually broken; logging shows that it reset latching state anyway, and it's not testing the shipping configuration of async iframe scrolling. So fix the test to use async iframe scrolling, and to avoid rubber-banding, so that latching is not cleared due to elapsed time. * fast/scrolling/latching/iframe-latch-small-deltas-expected.txt: * fast/scrolling/latching/iframe-latch-small-deltas.html: * fast/scrolling/mac/horizontal-overflow-trapping-small-deltas-expected.txt: Added. * fast/scrolling/mac/horizontal-overflow-trapping-small-deltas.html: Added. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266292 268f45cc-cd09-0410-ab3c-d52691b4dbfc Modified Paths branches/safari-610-branch/LayoutTests/ChangeLog branches/safari-610-branch/LayoutTests/fast/scrolling/latching/iframe-latch-small-deltas-expected.txt branches/safari-610-branch/LayoutTests/fast/scrolling/latching/iframe-latch-small-deltas.html branches/safari-610-branch/LayoutTests/platform/mac-wk1/fast/scrolling/latching/iframe-latch-small-deltas-expected.txt branches/safari-610-branch/Source/WebCore/ChangeLog branches/safari-610-branch/Source/WebCore/page/FrameView.cpp branches/safari-610-branch/Source/WebCore/page/mac/EventHandlerMac.mm branches/safari-610-branch/Source/WebCore/page/scrolling/ScrollingCoordinator.h branches/safari-610-branch/Source/WebCore/page/scrolling/ScrollingTree.cpp branches/safari-610-branch/Source/WebCore/page/scrolling/ScrollingTree.h branches/safari-610-branch/Source/WebCore/page/scrolling/ThreadedScrollingTree.cpp branches/safari-610-branch/Source/WebCore/page/scrolling/ThreadedScrollingTree.h branches/safari-610-branch/Source/WebCore/page/scrolling/mac/ScrollingCoordinatorMac.h branches/safari-610-branch/Source/WebCore/page/scrolling/mac/ScrollingCoordinatorMac.mm branches/safari-610-branch/Source/WebCore/page/scrolling/nicosia/ScrollingCoordinatorNicosia.cpp branches/safari-610-branch/Source/WebCore/page/scrolling/nicosia/ScrollingCoordinatorNicosia.h Added Paths branches/safari-610-branch/LayoutTests/fast/scrolling/mac/horizontal-overflow-trapping-small-deltas-expected.txt branches/safari-610-branch/LayoutTests/fast/scrolling/mac/horizontal-overflow-trapping-small-deltas.html Diff Modified: branches/safari-610-branch/LayoutTests/ChangeLog (266548 => 266549) --- branches/safari-610-branch/LayoutTests/ChangeLog 2020-09-03 21:30:53 UTC (rev 266548) +++ branches/safari-610-branch/LayoutTests/ChangeLog 2020-09-03 21:30:58 UTC (rev 266549) @@ -1,5 +1,84 @@ 2020-09-03 Alan Coon +Cherry-pick r266292. rdar://problem/67963525 + +Vertical scrolling gets stuck when a horizontal scroller is under the mouse (googl
[webkit-changes] [266544] branches/safari-610-branch
Title: [266544] branches/safari-610-branch Revision 266544 Author alanc...@apple.com Date 2020-09-03 14:30:40 -0700 (Thu, 03 Sep 2020) Log Message Cherry-pick r266189. rdar://problem/68145721 Flickering on sedona.dev https://bugs.webkit.org/show_bug.cgi?id=215141 Reviewed by Darin Adler. Source/WebCore: Test: fast/canvas/webgl/compositing-without-drawing.html Our logic to determine if a canvas needs to be "repainted" was over-zealous for WebGL. We were marking any context that called draw commands as dirty, but they could in fact be rendering to an offscreen texture/framebuffer. Then, when it came time to composite, we'd happily swap buffers and show something that had never been rendered to. The fix is simply to ignore any of the dirtying notifications when we are not bound to the default (canvas) framebuffer. * html/canvas/WebGLRenderingContextBase.cpp: (WebCore::WebGLRenderingContextBase::markContextChangedAndNotifyCanvasObserver): Only mark if we're rendering to the default framebuffer. LayoutTests: Test that serves an animation frame that touches WebGL, but not in a way that requires a recomposite. * fast/canvas/webgl/compositing-without-drawing-expected.html: Added. * fast/canvas/webgl/compositing-without-drawing.html: Added. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266189 268f45cc-cd09-0410-ab3c-d52691b4dbfc Modified Paths branches/safari-610-branch/LayoutTests/ChangeLog branches/safari-610-branch/Source/WebCore/ChangeLog branches/safari-610-branch/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp Added Paths branches/safari-610-branch/LayoutTests/fast/canvas/webgl/compositing-without-drawing-expected.html branches/safari-610-branch/LayoutTests/fast/canvas/webgl/compositing-without-drawing.html Diff Modified: branches/safari-610-branch/LayoutTests/ChangeLog (266543 => 266544) --- branches/safari-610-branch/LayoutTests/ChangeLog 2020-09-03 21:30:37 UTC (rev 266543) +++ branches/safari-610-branch/LayoutTests/ChangeLog 2020-09-03 21:30:40 UTC (rev 266544) @@ -1,3 +1,53 @@ +2020-09-03 Alan Coon + +Cherry-pick r266189. rdar://problem/68145721 + +Flickering on sedona.dev +https://bugs.webkit.org/show_bug.cgi?id=215141 + +Reviewed by Darin Adler. + +Source/WebCore: + +Test: fast/canvas/webgl/compositing-without-drawing.html + +Our logic to determine if a canvas needs to be "repainted" +was over-zealous for WebGL. We were marking any context +that called draw commands as dirty, but they could in fact +be rendering to an offscreen texture/framebuffer. Then, when +it came time to composite, we'd happily swap buffers and +show something that had never been rendered to. + +The fix is simply to ignore any of the dirtying notifications +when we are not bound to the default (canvas) framebuffer. + +* html/canvas/WebGLRenderingContextBase.cpp: +(WebCore::WebGLRenderingContextBase::markContextChangedAndNotifyCanvasObserver): Only +mark if we're rendering to the default framebuffer. + +LayoutTests: + +Test that serves an animation frame that touches +WebGL, but not in a way that requires a recomposite. + +* fast/canvas/webgl/compositing-without-drawing-expected.html: Added. +* fast/canvas/webgl/compositing-without-drawing.html: Added. + +git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266189 268f45cc-cd09-0410-ab3c-d52691b4dbfc + +2020-08-26 Dean Jackson + +Flickering on sedona.dev +https://bugs.webkit.org/show_bug.cgi?id=215141 + +Reviewed by Darin Adler. + +Test that serves an animation frame that touches +WebGL, but not in a way that requires a recomposite. + +* fast/canvas/webgl/compositing-without-drawing-expected.html: Added. +* fast/canvas/webgl/compositing-without-drawing.html: Added. + 2020-09-01 Alan Coon Cherry-pick r266280. rdar://problem/68177624 Added: branches/safari-610-branch/LayoutTests/fast/canvas/webgl/compositing-without-drawing-expected.html (0 => 266544) --- branches/safari-610-branch/LayoutTests/fast/canvas/webgl/compositing-without-drawing-expected.html (rev 0) +++ branches/safari-610-branch/LayoutTests/fast/canvas/webgl/compositing-without-drawing-expected.html 2020-09-03 21:30:40 UTC (rev 266544) @@ -0,0 +1,101 @@ + +body { +font-family: monospace; +} +canvas { +width: 10px; +height: 10px; +} + + +if (window.testRunner) { +testRunner.waitUntilDone(); +} + +const WIDTH = 10; +const HEIGHT = 10; + +const COLORS = [ +[0, 0, 1, 1], +[0, 1, 1, 1], +[0, 0.5, 0, 1], +[1, 0, 1, 1], +[1, 1, 0.5, 1], +[0.5, 0, 1, 1], +[0.5, 0.5, 0.5, 1], +[0.5, 0.5, 1, 1], +[0.25, 1, 1, 1], +[0, 1, 0, 1] +]; + +let gl; +let currentFrame = 0;
[webkit-changes] [266548] branches/safari-610-branch
Title: [266548] branches/safari-610-branch Revision 266548 Author alanc...@apple.com Date 2020-09-03 14:30:53 -0700 (Thu, 03 Sep 2020) Log Message Cherry-pick r266262. rdar://problem/67963581 Scrolling on select element doesn't work after scrolling the page https://bugs.webkit.org/show_bug.cgi?id=215900 Source/WebCore: Reviewed by Tim Horton. The scrolling thread could use a node that was latched some time ago; we need to check the freshness of the latched node before using it. Test: fast/scrolling/latching/latching-stuck-to-main-page.html * page/scrolling/ScrollingTreeLatchingController.cpp: (WebCore::ScrollingTreeLatchingController::receivedWheelEvent): (WebCore::ScrollingTreeLatchingController::latchedNodeForEvent const): (WebCore::ScrollingTreeLatchingController::latchedNodeIsRelevant const): * page/scrolling/ScrollingTreeLatchingController.h: LayoutTests: Reviewed by Tim Horton. * fast/scrolling/latching/latching-stuck-to-main-page-expected.txt: Added. * fast/scrolling/latching/latching-stuck-to-main-page.html: Added. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266262 268f45cc-cd09-0410-ab3c-d52691b4dbfc Modified Paths branches/safari-610-branch/LayoutTests/ChangeLog branches/safari-610-branch/Source/WebCore/ChangeLog branches/safari-610-branch/Source/WebCore/page/scrolling/ScrollingTreeLatchingController.cpp branches/safari-610-branch/Source/WebCore/page/scrolling/ScrollingTreeLatchingController.h Added Paths branches/safari-610-branch/LayoutTests/fast/scrolling/latching/latching-stuck-to-main-page-expected.txt branches/safari-610-branch/LayoutTests/fast/scrolling/latching/latching-stuck-to-main-page.html Diff Modified: branches/safari-610-branch/LayoutTests/ChangeLog (266547 => 266548) --- branches/safari-610-branch/LayoutTests/ChangeLog 2020-09-03 21:30:50 UTC (rev 266547) +++ branches/safari-610-branch/LayoutTests/ChangeLog 2020-09-03 21:30:53 UTC (rev 266548) @@ -1,5 +1,48 @@ 2020-09-03 Alan Coon +Cherry-pick r266262. rdar://problem/67963581 + +Scrolling on select element doesn't work after scrolling the page +https://bugs.webkit.org/show_bug.cgi?id=215900 +Source/WebCore: + + + +Reviewed by Tim Horton. + +The scrolling thread could use a node that was latched some time ago; we need to +check the freshness of the latched node before using it. + +Test: fast/scrolling/latching/latching-stuck-to-main-page.html + +* page/scrolling/ScrollingTreeLatchingController.cpp: +(WebCore::ScrollingTreeLatchingController::receivedWheelEvent): +(WebCore::ScrollingTreeLatchingController::latchedNodeForEvent const): +(WebCore::ScrollingTreeLatchingController::latchedNodeIsRelevant const): +* page/scrolling/ScrollingTreeLatchingController.h: + +LayoutTests: + +Reviewed by Tim Horton. + +* fast/scrolling/latching/latching-stuck-to-main-page-expected.txt: Added. +* fast/scrolling/latching/latching-stuck-to-main-page.html: Added. + + +git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266262 268f45cc-cd09-0410-ab3c-d52691b4dbfc + +2020-08-27 Simon Fraser + +Scrolling on select element doesn't work after scrolling the page +https://bugs.webkit.org/show_bug.cgi?id=215900 + +Reviewed by Tim Horton. + +* fast/scrolling/latching/latching-stuck-to-main-page-expected.txt: Added. +* fast/scrolling/latching/latching-stuck-to-main-page.html: Added. + +2020-09-03 Alan Coon + Cherry-pick r266248. rdar://problem/67963541 Occasional crashes when restoring replaced text under Editor::changeBackToReplacedString Added: branches/safari-610-branch/LayoutTests/fast/scrolling/latching/latching-stuck-to-main-page-expected.txt (0 => 266548) --- branches/safari-610-branch/LayoutTests/fast/scrolling/latching/latching-stuck-to-main-page-expected.txt (rev 0) +++ branches/safari-610-branch/LayoutTests/fast/scrolling/latching/latching-stuck-to-main-page-expected.txt 2020-09-03 21:30:53 UTC (rev 266548) @@ -0,0 +1,21 @@ + +Tests that scrolling doesn't get wrongly latched to the main page. + +On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". + + +Checking wheel event over the select +PASS selectScrollCount > 0 is true +PASS pageScrollCount == 0 is true +Triggering main page latch; scrolling down +Triggering main page latch; scrolling up +PASS selectScrollCount == 0 is true +PASS pageScrollCount > 0 is true +PASS document.scrollingElement.scrollTop == 0 is true +Checking wheel event over the select again +PASS selectScrollCount > 0 is true +PASS pageScrollCount == 0 is true +PASS successfullyParsed is true + +TEST COMPLETE + Added: branches/safari-610-branch/LayoutTests/fast/scrolling/latching/latching-stuck-to-main-page.html (0 => 266548) --- branches/saf
[webkit-changes] [266542] trunk
Title: [266542] trunk Revision 266542 Author commit-qu...@webkit.org Date 2020-09-03 14:04:05 -0700 (Thu, 03 Sep 2020) Log Message CoreImage Implementation of SourceGraphic and saturate(), hue-rotate(), grayscale() and sepia() https://bugs.webkit.org/show_bug.cgi?id=213673 Patch by Frank Yang on 2020-09-03 Reviewed by Darin Adler, Simon Fraser. Source/WebCore: Tests: css3/filters/effect-grayscale-square.html css3/filters/effect-hue-rotate-square.html css3/filters/effect-saturate-square.html css3/filters/effect-sepia-square.html Added CoreImage implementation of SourceGraphic and partial of FEColorMatrix, which is used to implement sepia(), grayscale() hue-rotate() and saturate(). Also added CIFilter caching, by storing CIFilters in a hash map, where the key is the level of traversal (an integer). * platform/graphics/coreimage/FilterEffectRendererCoreImage.h: Imported FEColorMatrix.h and SourceGraphic.h; added function getCIContext() that returns a static copy of CIContext. * platform/graphics/coreimage/FilterEffectRendererCoreImage.mm: (WebCore::FilterEffectRendererCoreImage::getCIContext): Creating a CIContext is expensive. Instead of creating a CIContext on each frame update, we just use a static singleton on every draw (WebCore::FilterEffectRendererCoreImage::supportsCoreImageRendering): the function now returns true if the filter chain contains SourceGraphic and FEColorMatrix of TYPE_MATRIX, TYPE_SATURATE and TYPE_HUEROTATE (WebCore::FilterEffectRendererCoreImage::connectCIFilters): Made slight changes to wrap Obj-C pointers in RetainPtr (WebCore::FilterEffectRendererCoreImage::imageForSourceGraphic): Use the source image to create a CIImage and return it. If the source image is backed by IOSurface, we create a CIImage directly from the IOSurface; otherwise we create a CIImage by getting the NativeImagePtr from source image. (WebCore::FilterEffectRendererCoreImage::imageForFEColorMatrix): Based on the type of the matrix and input parameter, create different types of CIColorMatrix filers that are used to implement sepia, grayscale, hue-rotate, saturate (WebCore::FilterEffectRendererCoreImage::output const): Added a logging line (WebCore::FilterEffectRendererCoreImage::renderToImageBuffer): Minor refactors (WebCore::FilterEffectRendererCoreImage::clearResult): (WebCore::FilterEffectRendererCoreImage::FilterEffectRendererCoreImage): * platform/graphics/filters/FEColorMatrix.h: (isType): added SPECIALIZE_TYPE_TRAITS so that we can downcast to FEColorMatrix * platform/graphics/filters/FilterEffect.cpp: (WebCore::FilterEffect::requestedRegionOfInputImageData const): removed ASSERT(hasResult()); from the function, because CoreImage path wouldn't create image buffers inside FilterEffect, but CI path still needs to consult this function to obtain geometry info * platform/graphics/filters/FilterEffect.h: (WebCore::FilterEffect::filterEffectClassType const): Made the function a const (WebCore::FilterEffect::normalizedFloats): Changed this function to public since it is consulted in FilterEffectCoreImageRenderer. (WebCore::FilterEffect::filterEffectClassType): Deleted. * platform/graphics/filters/SourceGraphic.h: (isType): added SPECIALIZE_TYPE_TRAITS so that we can downcast to SourceGraphic * rendering/CSSFilter.cpp: (WebCore::CSSFilter::build): Checks whether m_filterRenderer is already created, no need to re-create if the pointer is non-null (WebCore::CSSFilter::allocateBackingStoreIfNeeded): If we are using m_filterRenderer, which is currently using CoreImage and relies on IOSurfaces, we ask source image to use IOSurface for performance concerns. LayoutTests: * css3/filters/effect-grayscale-square-expected.html: Added. * css3/filters/effect-grayscale-square.html: Added. * css3/filters/effect-hue-rotate-square-expected.html: Added. * css3/filters/effect-hue-rotate-square.html: Added. * css3/filters/effect-saturate-square-expected.html: Added. * css3/filters/effect-saturate-square.html: Added. * css3/filters/effect-sepia-square-expected.html: Added. * css3/filters/effect-sepia-square.html: Added. * fast/filter-image/background-filter-image-expected.html: This is the expected result for the background image filter. The background image is not upsampled for retina screens due to a bug, so the test runner is comparing an unscaled image with an upscaled-then-downscaled image. CoreImage handles upscaling and downscaling differently, so the pixel diff will fail. Thus, turning off CI for this particular test case until the background image filter not upsampling bug is fixed. * fast/filter-image/background-filter-image.html: ditto Modified Paths trunk/LayoutTests/ChangeLog trunk/LayoutTests/fast/filter-image/background-filter-image-expected.html trunk/LayoutTests/fast/filter-image/background-filter-image.html trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/platf
[webkit-changes] [266541] trunk
Title: [266541] trunk Revision 266541 Author cdu...@apple.com Date 2020-09-03 13:54:28 -0700 (Thu, 03 Sep 2020) Log Message BiquadFilterNode.getFrequencyResponse() should return NaN for out-of-bounds frequencies https://bugs.webkit.org/show_bug.cgi?id=216130 Reviewed by Eric Carlson. LayoutTests/imported/w3c: Rebaseline WPT test now that it is passing. * web-platform-tests/webaudio/the-audio-api/the-biquadfilternode-interface/biquad-getFrequencyResponse-expected.txt: Source/WebCore: BiquadFilterNode.getFrequencyResponse() should return NaN for out-of-bounds frequencies. No new tests, rebaselined existing test. * platform/audio/Biquad.cpp: (WebCore::Biquad::getFrequencyResponse): Modified Paths trunk/LayoutTests/imported/w3c/ChangeLog trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-biquadfilternode-interface/biquad-getFrequencyResponse-expected.txt trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/platform/audio/Biquad.cpp Diff Modified: trunk/LayoutTests/imported/w3c/ChangeLog (266540 => 266541) --- trunk/LayoutTests/imported/w3c/ChangeLog 2020-09-03 20:43:43 UTC (rev 266540) +++ trunk/LayoutTests/imported/w3c/ChangeLog 2020-09-03 20:54:28 UTC (rev 266541) @@ -1,3 +1,14 @@ +2020-09-03 Chris Dumez + +BiquadFilterNode.getFrequencyResponse() should return NaN for out-of-bounds frequencies +https://bugs.webkit.org/show_bug.cgi?id=216130 + +Reviewed by Eric Carlson. + +Rebaseline WPT test now that it is passing. + +* web-platform-tests/webaudio/the-audio-api/the-biquadfilternode-interface/biquad-getFrequencyResponse-expected.txt: + 2020-09-03 Alex Christensen Remove unused test expectations file. Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-biquadfilternode-interface/biquad-getFrequencyResponse-expected.txt (266540 => 266541) --- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-biquadfilternode-interface/biquad-getFrequencyResponse-expected.txt 2020-09-03 20:43:43 UTC (rev 266540) +++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-biquadfilternode-interface/biquad-getFrequencyResponse-expected.txt 2020-09-03 20:54:28 UTC (rev 266541) @@ -83,10 +83,10 @@ PASS allpass: Max error (0.13259871597205388 deg) in phase response at frequency 1080 Hz is less than or equal to 0.0007597420363434716. PASS < [allpass] All assertions passed. (total 7 assertions) PASS > [getFrequencyResponse] Test out-of-bounds frequency values -FAIL X Magnitude response at frequency -1 is not NaN but should be. Got 1.048875808716. assert_true: expected true got false -FAIL X Magnitude response at frequency 16385 is not NaN but should be. Got 1.0357666981042346e-11. assert_true: expected true got false -FAIL X Phase response at frequency -1 is not NaN but should be. Got 0.0025454906281083822. assert_true: expected true got false -FAIL X Phase response at frequency 16385 is not NaN but should be. Got 3.141589879989624. assert_true: expected true got false -FAIL < [getFrequencyResponse] 4 out of 4 assertions were failed. assert_true: expected true got false -FAIL # AUDIT TASK RUNNER FINISHED: 1 out of 9 tasks were failed. assert_true: expected true got false +PASS Magnitude response at frequency -1 is NaN. +PASS Magnitude response at frequency 16385 is NaN. +PASS Phase response at frequency -1 is NaN. +PASS Phase response at frequency 16385 is NaN. +PASS < [getFrequencyResponse] All assertions passed. (total 4 assertions) +PASS # AUDIT TASK RUNNER FINISHED: 9 tasks ran successfully. Modified: trunk/Source/WebCore/ChangeLog (266540 => 266541) --- trunk/Source/WebCore/ChangeLog 2020-09-03 20:43:43 UTC (rev 266540) +++ trunk/Source/WebCore/ChangeLog 2020-09-03 20:54:28 UTC (rev 266541) @@ -1,3 +1,17 @@ +2020-09-03 Chris Dumez + +BiquadFilterNode.getFrequencyResponse() should return NaN for out-of-bounds frequencies +https://bugs.webkit.org/show_bug.cgi?id=216130 + +Reviewed by Eric Carlson. + +BiquadFilterNode.getFrequencyResponse() should return NaN for out-of-bounds frequencies. + +No new tests, rebaselined existing test. + +* platform/audio/Biquad.cpp: +(WebCore::Biquad::getFrequencyResponse): + 2020-09-03 Devin Rousso Web Inspector: allow url breakpoints to be configured Modified: trunk/Source/WebCore/platform/audio/Biquad.cpp (266540 => 266541) --- trunk/Source/WebCore/platform/audio/Biquad.cpp 2020-09-03 20:43:43 UTC (rev 266540) +++ trunk/Source/WebCore/platform/audio/Biquad.cpp 2020-09-03 20:54:28 UTC (rev 266541) @@ -576,13 +576,19 @@ double a2 = m_a2[0]; for (unsigned k = 0; k < nFrequencies; ++k) { -double omega = -piDouble * frequency[k]; -std::complex z = std::complex(cos(omega), sin(omega)); -std::complex numerator = b0 + (b1 + b2 * z) * z; -std::complex denominat
[webkit-changes] [266540] trunk/Tools
Title: [266540] trunk/Tools Revision 266540 Author lmo...@igalia.com Date 2020-09-03 13:43:43 -0700 (Thu, 03 Sep 2020) Log Message [GTK][WPE] generate-bundle: Remove the zip extension from the uploaded checksum filename https://bugs.webkit.org/show_bug.cgi?id=216137 Reviewed by Jonathan Bedard. * Scripts/generate-bundle: Modified Paths trunk/Tools/ChangeLog trunk/Tools/Scripts/generate-bundle Diff Modified: trunk/Tools/ChangeLog (266539 => 266540) --- trunk/Tools/ChangeLog 2020-09-03 20:32:28 UTC (rev 266539) +++ trunk/Tools/ChangeLog 2020-09-03 20:43:43 UTC (rev 266540) @@ -1,3 +1,12 @@ +2020-09-03 Lauro Moura + +[GTK][WPE] generate-bundle: Remove the zip extension from the uploaded checksum filename +https://bugs.webkit.org/show_bug.cgi?id=216137 + +Reviewed by Jonathan Bedard. + +* Scripts/generate-bundle: + 2020-09-03 Commit Queue Unreviewed, reverting r266507. Modified: trunk/Tools/Scripts/generate-bundle (266539 => 266540) --- trunk/Tools/Scripts/generate-bundle 2020-09-03 20:32:28 UTC (rev 266539) +++ trunk/Tools/Scripts/generate-bundle 2020-09-03 20:43:43 UTC (rev 266540) @@ -552,7 +552,8 @@ # SFTP upload instructions file uploadinstructionsfile.write('progress\n') uploadinstructionsfile.write('put %s %s\n' % (self._bundle_file_path, remote_file_bundle_path)) -uploadinstructionsfile.write('put %s %s\n' % (hashcheckfile.name, remote_file_bundle_path + '.sha256sum')) +remote_file_bundle_path_no_ext, _ = os.path.splitext(remote_file_bundle_path) +uploadinstructionsfile.write('put %s %s\n' % (hashcheckfile.name, remote_file_bundle_path_no_ext + '.sha256sum')) uploadinstructionsfile.write('put %s %s\n' % (lastisfile.name, os.path.join(os.path.dirname(remote_file_bundle_path), 'LAST-IS'))) uploadinstructionsfile.write('quit\n') uploadinstructionsfile.flush() ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [266539] trunk
Title: [266539] trunk Revision 266539 Author commit-qu...@webkit.org Date 2020-09-03 13:32:28 -0700 (Thu, 03 Sep 2020) Log Message Mark uniform samplers in an array unused per element https://bugs.webkit.org/show_bug.cgi?id=215630 Patch by Kimmo Kinnunen on 2020-09-03 Reviewed by Dean Jackson. Mark uniform samplers in an uniform sampler array unused per element, if driver informs the element being unused. Before, one element would mark the whole array as being unused, and samplers that were in use would not be updated. Source/ThirdParty/ANGLE: * src/libANGLE/Context.cpp: (gl::StateCache::updateActiveImageUnitIndices): * src/libANGLE/Program.cpp: (gl::SamplerBinding::SamplerBinding): (gl::ImageBinding::ImageBinding): (gl::Program::getSamplerUniformBinding const): (gl::Program::getImageUniformBinding const): (gl::Program::linkSamplerAndImageBindings): (gl::Program::updateSamplerUniform): (gl::Program::serialize const): (gl::Program::deserialize): * src/libANGLE/ProgramExecutable.cpp: (gl::ProgramExecutable::updateActiveSamplers): (gl::ProgramExecutable::updateActiveImages): (gl::ProgramExecutable::setSamplerUniformTextureTypeAndFormat): * src/libANGLE/ProgramExecutable.h: * src/libANGLE/renderer/gl/ProgramGL.cpp: (rx::ProgramGL::markUnusedUniformLocations): * src/libANGLE/renderer/metal/ProgramMtl.mm: (rx::ProgramMtl::updateTextures): * src/libANGLE/renderer/vulkan/ProgramExecutableVk.cpp: (rx::ProgramExecutableVk::updateImagesDescriptorSet): (rx::ProgramExecutableVk::updateTexturesDescriptorSet): * src/tests/gl_tests/ComputeShaderTest.cpp: * src/tests/gl_tests/UniformTest.cpp: LayoutTests: * fast/canvas/webgl/glsl-sampler-array-unused-element-expected.txt: Added. * fast/canvas/webgl/glsl-sampler-array-unused-element.html: Added. Modified Paths trunk/LayoutTests/ChangeLog trunk/Source/ThirdParty/ANGLE/ChangeLog trunk/Source/ThirdParty/ANGLE/src/libANGLE/Context.cpp trunk/Source/ThirdParty/ANGLE/src/libANGLE/Program.cpp trunk/Source/ThirdParty/ANGLE/src/libANGLE/ProgramExecutable.cpp trunk/Source/ThirdParty/ANGLE/src/libANGLE/ProgramExecutable.h trunk/Source/ThirdParty/ANGLE/src/libANGLE/renderer/gl/ProgramGL.cpp trunk/Source/ThirdParty/ANGLE/src/libANGLE/renderer/metal/ProgramMtl.mm trunk/Source/ThirdParty/ANGLE/src/libANGLE/renderer/vulkan/ProgramExecutableVk.cpp trunk/Source/ThirdParty/ANGLE/src/tests/gl_tests/ComputeShaderTest.cpp trunk/Source/ThirdParty/ANGLE/src/tests/gl_tests/UniformTest.cpp Added Paths trunk/LayoutTests/fast/canvas/webgl/glsl-sampler-array-unused-element-expected.txt trunk/LayoutTests/fast/canvas/webgl/glsl-sampler-array-unused-element.html Diff Modified: trunk/LayoutTests/ChangeLog (266538 => 266539) --- trunk/LayoutTests/ChangeLog 2020-09-03 20:07:39 UTC (rev 266538) +++ trunk/LayoutTests/ChangeLog 2020-09-03 20:32:28 UTC (rev 266539) @@ -1,3 +1,18 @@ +2020-09-03 Kimmo Kinnunen + +Mark uniform samplers in an array unused per element +https://bugs.webkit.org/show_bug.cgi?id=215630 + +Reviewed by Dean Jackson. + +Mark uniform samplers in an uniform sampler array unused per +element, if driver informs the element being unused. +Before, one element would mark the whole array as being +unused, and samplers that were in use would not be updated. + +* fast/canvas/webgl/glsl-sampler-array-unused-element-expected.txt: Added. +* fast/canvas/webgl/glsl-sampler-array-unused-element.html: Added. + 2020-09-03 Devin Rousso Web Inspector: allow url breakpoints to be configured Added: trunk/LayoutTests/fast/canvas/webgl/glsl-sampler-array-unused-element-expected.txt (0 => 266539) --- trunk/LayoutTests/fast/canvas/webgl/glsl-sampler-array-unused-element-expected.txt (rev 0) +++ trunk/LayoutTests/fast/canvas/webgl/glsl-sampler-array-unused-element-expected.txt 2020-09-03 20:32:28 UTC (rev 266539) @@ -0,0 +1,12 @@ +Test that GLSL uniform sampler2D arrays work in presence of unused elements. + +On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". + +PASS getError was expected value: NO_ERROR : Should be no errors from setup +PASS getError was expected value: NO_ERROR : Should be no errors from setup +PASS getError was expected value: NO_ERROR : Should be no errors from setup +PASS getError was expected value: NO_ERROR : Should be no errors from setup +PASS successfullyParsed is true + +TEST COMPLETE + Added: trunk/LayoutTests/fast/canvas/webgl/glsl-sampler-array-unused-element.html (0 => 266539) --- trunk/LayoutTests/fast/canvas/webgl/glsl-sampler-array-unused-element.html (rev 0) +++ trunk/LayoutTests/fast/canvas/webgl/glsl-sampler-array-unused-element.html 2020-09-03 20:32:28 UTC (rev 266539) @@ -0,0 +1,86 @@ + + + +WebGL GLSL uniform sampler2D array unused element test. + +
[webkit-changes] [266537] trunk/Source/WebInspectorUI
Title: [266537] trunk/Source/WebInspectorUI Revision 266537 Author nvasil...@apple.com Date 2020-09-03 12:17:00 -0700 (Thu, 03 Sep 2020) Log Message Web Inspector: Timelines: record button disappears when UI is narrow https://bugs.webkit.org/show_bug.cgi?id=216133 Reviewed by Devin Rousso. The record button is one of the most important items on Timelines toolbar. It should always be visible. * UserInterface/Views/TimelineTabContentView.js: (WI.TimelineTabContentView): Modified Paths trunk/Source/WebInspectorUI/ChangeLog trunk/Source/WebInspectorUI/UserInterface/Views/TimelineTabContentView.js Diff Modified: trunk/Source/WebInspectorUI/ChangeLog (266536 => 266537) --- trunk/Source/WebInspectorUI/ChangeLog 2020-09-03 18:42:32 UTC (rev 266536) +++ trunk/Source/WebInspectorUI/ChangeLog 2020-09-03 19:17:00 UTC (rev 266537) @@ -1,3 +1,16 @@ +2020-09-03 Nikita Vasilyev + +Web Inspector: Timelines: record button disappears when UI is narrow +https://bugs.webkit.org/show_bug.cgi?id=216133 + +Reviewed by Devin Rousso. + +The record button is one of the most important items on Timelines toolbar. +It should always be visible. + +* UserInterface/Views/TimelineTabContentView.js: +(WI.TimelineTabContentView): + 2020-09-03 Devin Rousso Web Inspector: allow special _javascript_ breakpoints to be configured Modified: trunk/Source/WebInspectorUI/UserInterface/Views/TimelineTabContentView.js (266536 => 266537) --- trunk/Source/WebInspectorUI/UserInterface/Views/TimelineTabContentView.js 2020-09-03 18:42:32 UTC (rev 266536) +++ trunk/Source/WebInspectorUI/UserInterface/Views/TimelineTabContentView.js 2020-09-03 19:17:00 UTC (rev 266537) @@ -46,11 +46,11 @@ let toolTip = WI.UIString("Start recording (%s)\nCreate new recording (%s)").format(this._toggleRecordingShortcut.displayName, this._toggleNewRecordingShortcut.displayName); let altToolTip = WI.UIString("Stop recording (%s)").format(this._toggleRecordingShortcut.displayName); this._recordButton = new WI.ToggleButtonNavigationItem("record-start-stop", toolTip, altToolTip, "Images/Record.svg", "Images/Stop.svg", 13, 13); -this._recordButton.visibilityPriority = WI.NavigationItem.VisibilityPriority.Low; +this._recordButton.visibilityPriority = WI.NavigationItem.VisibilityPriority.High; this._recordButton.addEventListener(WI.ButtonNavigationItem.Event.Clicked, this._recordButtonClicked, this); this._continueButton = new WI.ButtonNavigationItem("record-continue", WI.UIString("Continue without automatically stopping"), "Images/Resume.svg", 13, 13); -this._continueButton.visibilityPriority = WI.NavigationItem.VisibilityPriority.Low; +this._continueButton.visibilityPriority = WI.NavigationItem.VisibilityPriority.High; this._continueButton.addEventListener(WI.ButtonNavigationItem.Event.Clicked, this._continueButtonClicked, this); this._continueButton.hidden = true; ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [266536] trunk/Tools
Title: [266536] trunk/Tools Revision 266536 Author commit-qu...@webkit.org Date 2020-09-03 11:42:32 -0700 (Thu, 03 Sep 2020) Log Message Unreviewed, reverting r266507. https://bugs.webkit.org/show_bug.cgi?id=216135 Broke JSC EWS Reverted changeset: "kill-old-processes: Remove stale Apache2 shm segments" https://bugs.webkit.org/show_bug.cgi?id=216068 https://trac.webkit.org/changeset/266507 Modified Paths trunk/Tools/BuildSlaveSupport/kill-old-processes trunk/Tools/ChangeLog Diff Modified: trunk/Tools/BuildSlaveSupport/kill-old-processes (266535 => 266536) --- trunk/Tools/BuildSlaveSupport/kill-old-processes 2020-09-03 18:21:26 UTC (rev 266535) +++ trunk/Tools/BuildSlaveSupport/kill-old-processes 2020-09-03 18:42:32 UTC (rev 266536) @@ -24,8 +24,6 @@ # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. import os, sys -import subprocess -import re def listAllWebKitPrograms(builddir_bin): foundWebKitPrograms = [] @@ -35,45 +33,7 @@ foundWebKitPrograms.append(file) return foundWebKitPrograms -def removeOrphanShmSegmentsOf(task): -pid = futurePidOf(task) -segments = filter(lambda s: s['owner'] == os.environ.get("USER"), allShmSegments()) -segments = filter(lambda s: s['cpid'] == pid, segments) -removeShmSegments(segments) -def removeShmSegments(l): -for each in l: -removeShmSegment(each) - -def removeShmSegment(s): -subprocess.check_call(cmd("ipcrm -m {}".format(s['shmid']))) - -def cmd(string): -return re.split(r'\s+', string) - -def futurePidOf(task): -devnull = open(os.devnull, 'w') -ps = subprocess.Popen(task, stderr=subprocess.STDOUT, stdout=devnull) -pid = ps.pid -ps.wait() -try: -ps.terminate() -except OSError: -pass -return pid - -def allShmSegments(): -ret = [] -output = subprocess.check_output(cmd("ipcs -m -p")) -if len(output) > 0: -lines = output.split("\n") -for line in lines[3:]: -line = line.strip() -if len(line) == 0: continue -shmid, owner, cpid, lpid = re.split(r'\s+', line) -ret.append({'shmid': int(shmid), 'owner': owner, 'cpid': int(cpid), 'lpid': int(lpid)}) -return ret - def main(user=None): tasksToKillWin = [ "cl.exe", @@ -181,7 +141,6 @@ for task in tasksToKill + taskToKillUnix + listAllWebKitPrograms(builddir_bin): os.system("killall -9 -v " + task) os.system("ps aux | grep -P '.+/python .+(run_webkit_tests|run-webkit-tests|mod_pywebsocket)' | grep -v grep | awk '{print $2}' | xargs kill") -removeOrphanShmSegmentsOf("apache2") else: sys.exit() # FIXME: Should we return an exit code based on how the kills went? Modified: trunk/Tools/ChangeLog (266535 => 266536) --- trunk/Tools/ChangeLog 2020-09-03 18:21:26 UTC (rev 266535) +++ trunk/Tools/ChangeLog 2020-09-03 18:42:32 UTC (rev 266536) @@ -1,3 +1,16 @@ +2020-09-03 Commit Queue + +Unreviewed, reverting r266507. +https://bugs.webkit.org/show_bug.cgi?id=216135 + +Broke JSC EWS + +Reverted changeset: + +"kill-old-processes: Remove stale Apache2 shm segments" +https://bugs.webkit.org/show_bug.cgi?id=216068 +https://trac.webkit.org/changeset/266507 + 2020-09-03 Diego Pino Garcia kill-old-processes: Remove stale Apache2 shm segments ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [266535] trunk/LayoutTests/imported/w3c
Title: [266535] trunk/LayoutTests/imported/w3c Revision 266535 Author achristen...@apple.com Date 2020-09-03 11:21:26 -0700 (Thu, 03 Sep 2020) Log Message Remove unused test expectations file. * web-platform-tests/encoding/textdecoder-labels-expected.txt: Removed. Modified Paths trunk/LayoutTests/imported/w3c/ChangeLog Removed Paths trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/textdecoder-labels-expected.txt Diff Modified: trunk/LayoutTests/imported/w3c/ChangeLog (266534 => 266535) --- trunk/LayoutTests/imported/w3c/ChangeLog 2020-09-03 17:53:21 UTC (rev 266534) +++ trunk/LayoutTests/imported/w3c/ChangeLog 2020-09-03 18:21:26 UTC (rev 266535) @@ -1,5 +1,11 @@ 2020-09-03 Alex Christensen +Remove unused test expectations file. + +* web-platform-tests/encoding/textdecoder-labels-expected.txt: Removed. + +2020-09-03 Alex Christensen + Implement TextEncoder's encodeInto() https://bugs.webkit.org/show_bug.cgi?id=193274 Deleted: trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/textdecoder-labels-expected.txt (266534 => 266535) --- trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/textdecoder-labels-expected.txt 2020-09-03 17:53:21 UTC (rev 266534) +++ trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/textdecoder-labels-expected.txt 2020-09-03 18:21:26 UTC (rev 266535) @@ -1,215 +0,0 @@ - -PASS unicode-1-1-utf-8 => UTF-8 -PASS utf-8 => UTF-8 -PASS utf8 => UTF-8 -PASS 866 => IBM866 -PASS cp866 => IBM866 -PASS csibm866 => IBM866 -PASS ibm866 => IBM866 -PASS csisolatin2 => ISO-8859-2 -PASS iso-8859-2 => ISO-8859-2 -PASS iso-ir-101 => ISO-8859-2 -PASS iso8859-2 => ISO-8859-2 -PASS iso88592 => ISO-8859-2 -PASS iso_8859-2 => ISO-8859-2 -PASS iso_8859-2:1987 => ISO-8859-2 -PASS l2 => ISO-8859-2 -PASS latin2 => ISO-8859-2 -PASS csisolatin3 => ISO-8859-3 -PASS iso-8859-3 => ISO-8859-3 -PASS iso-ir-109 => ISO-8859-3 -PASS iso8859-3 => ISO-8859-3 -PASS iso88593 => ISO-8859-3 -PASS iso_8859-3 => ISO-8859-3 -PASS iso_8859-3:1988 => ISO-8859-3 -PASS l3 => ISO-8859-3 -PASS latin3 => ISO-8859-3 -PASS csisolatin4 => ISO-8859-4 -PASS iso-8859-4 => ISO-8859-4 -PASS iso-ir-110 => ISO-8859-4 -PASS iso8859-4 => ISO-8859-4 -PASS iso88594 => ISO-8859-4 -PASS iso_8859-4 => ISO-8859-4 -PASS iso_8859-4:1988 => ISO-8859-4 -PASS l4 => ISO-8859-4 -PASS latin4 => ISO-8859-4 -PASS csisolatincyrillic => ISO-8859-5 -PASS cyrillic => ISO-8859-5 -PASS iso-8859-5 => ISO-8859-5 -PASS iso-ir-144 => ISO-8859-5 -PASS iso8859-5 => ISO-8859-5 -PASS iso88595 => ISO-8859-5 -PASS iso_8859-5 => ISO-8859-5 -PASS iso_8859-5:1988 => ISO-8859-5 -PASS arabic => ISO-8859-6 -PASS asmo-708 => ISO-8859-6 -PASS csiso88596e => ISO-8859-6 -PASS csiso88596i => ISO-8859-6 -PASS csisolatinarabic => ISO-8859-6 -PASS ecma-114 => ISO-8859-6 -PASS iso-8859-6 => ISO-8859-6 -PASS iso-8859-6-e => ISO-8859-6 -PASS iso-8859-6-i => ISO-8859-6 -PASS iso-ir-127 => ISO-8859-6 -PASS iso8859-6 => ISO-8859-6 -PASS iso88596 => ISO-8859-6 -PASS iso_8859-6 => ISO-8859-6 -PASS iso_8859-6:1987 => ISO-8859-6 -PASS csisolatingreek => ISO-8859-7 -PASS ecma-118 => ISO-8859-7 -PASS elot_928 => ISO-8859-7 -PASS greek => ISO-8859-7 -PASS greek8 => ISO-8859-7 -PASS iso-8859-7 => ISO-8859-7 -PASS iso-ir-126 => ISO-8859-7 -PASS iso8859-7 => ISO-8859-7 -PASS iso88597 => ISO-8859-7 -PASS iso_8859-7 => ISO-8859-7 -PASS iso_8859-7:1987 => ISO-8859-7 -PASS sun_eu_greek => ISO-8859-7 -PASS csiso88598e => ISO-8859-8 -PASS csisolatinhebrew => ISO-8859-8 -PASS hebrew => ISO-8859-8 -PASS iso-8859-8 => ISO-8859-8 -PASS iso-8859-8-e => ISO-8859-8 -PASS iso-ir-138 => ISO-8859-8 -PASS iso8859-8 => ISO-8859-8 -PASS iso88598 => ISO-8859-8 -PASS iso_8859-8 => ISO-8859-8 -PASS iso_8859-8:1988 => ISO-8859-8 -PASS visual => ISO-8859-8 -PASS csiso88598i => ISO-8859-8-I -PASS iso-8859-8-i => ISO-8859-8-I -PASS logical => ISO-8859-8-I -PASS csisolatin6 => ISO-8859-10 -PASS iso-8859-10 => ISO-8859-10 -PASS iso-ir-157 => ISO-8859-10 -PASS iso8859-10 => ISO-8859-10 -PASS iso885910 => ISO-8859-10 -PASS l6 => ISO-8859-10 -PASS latin6 => ISO-8859-10 -PASS iso-8859-13 => ISO-8859-13 -PASS iso8859-13 => ISO-8859-13 -PASS iso885913 => ISO-8859-13 -PASS iso-8859-14 => ISO-8859-14 -PASS iso8859-14 => ISO-8859-14 -PASS iso885914 => ISO-8859-14 -PASS csisolatin9 => ISO-8859-15 -PASS iso-8859-15 => ISO-8859-15 -PASS iso8859-15 => ISO-8859-15 -PASS iso885915 => ISO-8859-15 -PASS iso_8859-15 => ISO-8859-15 -PASS l9 => ISO-8859-15 -PASS iso-8859-16 => ISO-8859-16 -PASS cskoi8r => KOI8-R -PASS koi => KOI8-R -PASS koi8 => KOI8-R -PASS koi8-r => KOI8-R -PASS koi8_r => KOI8-R -PASS koi8-ru => KOI8-U -PASS koi8-u => KOI8-U -PASS csmacintosh => macintosh -PASS mac => macintosh -PASS macintosh => macintosh -PASS x-mac-roman => macintosh -PASS dos-874 => windows-874 -PASS iso-8859-11 => windows-874 -PASS iso8859-11 => windows-874
[webkit-changes] [266533] trunk
Title: [266533] trunk Revision 266533 Author achristen...@apple.com Date 2020-09-03 10:53:01 -0700 (Thu, 03 Sep 2020) Log Message Implement TextEncoder's encodeInto() https://bugs.webkit.org/show_bug.cgi?id=193274 Reviewed by Darin Adler. LayoutTests/imported/w3c: * web-platform-tests/encoding/encodeInto.any-expected.txt: * web-platform-tests/encoding/encodeInto.any.worker-expected.txt: * web-platform-tests/encoding/idlharness-expected.txt: Removed. * web-platform-tests/encoding/idlharness.any-expected.txt: Source/WebCore: Covered by newly passing web platform tests. * bindings/js/JSDOMConvertBufferSource.h: (WebCore::JSConverter::convertNewlyCreated): * dom/TextEncoder.cpp: (WebCore::TextEncoder::encodeInto): * dom/TextEncoder.h: * dom/TextEncoder.idl: Modified Paths trunk/LayoutTests/imported/w3c/ChangeLog trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/encodeInto.any-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/encodeInto.any.worker-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/idlharness.any-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/idlharness.any.worker-expected.txt trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/bindings/js/JSDOMConvertBufferSource.h trunk/Source/WebCore/bindings/scripts/IDLAttributes.json trunk/Source/WebCore/dom/TextEncoder.cpp trunk/Source/WebCore/dom/TextEncoder.h trunk/Source/WebCore/dom/TextEncoder.idl Removed Paths trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/idlharness-expected.txt Diff Modified: trunk/LayoutTests/imported/w3c/ChangeLog (266532 => 266533) --- trunk/LayoutTests/imported/w3c/ChangeLog 2020-09-03 17:39:07 UTC (rev 266532) +++ trunk/LayoutTests/imported/w3c/ChangeLog 2020-09-03 17:53:01 UTC (rev 266533) @@ -1,5 +1,17 @@ 2020-09-03 Alex Christensen +Implement TextEncoder's encodeInto() +https://bugs.webkit.org/show_bug.cgi?id=193274 + +Reviewed by Darin Adler. + +* web-platform-tests/encoding/encodeInto.any-expected.txt: +* web-platform-tests/encoding/encodeInto.any.worker-expected.txt: +* web-platform-tests/encoding/idlharness-expected.txt: Removed. +* web-platform-tests/encoding/idlharness.any-expected.txt: + +2020-09-03 Alex Christensen + TextDecoder should ignore byte-order-mark like other browsers and spec https://bugs.webkit.org/show_bug.cgi?id=216108 Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/encodeInto.any-expected.txt (266532 => 266533) --- trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/encodeInto.any-expected.txt 2020-09-03 17:39:07 UTC (rev 266532) +++ trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/encodeInto.any-expected.txt 2020-09-03 17:53:01 UTC (rev 266533) @@ -1,88 +1,88 @@ -FAIL encodeInto() into ArrayBuffer with Hi and destination length 0, offset 0, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined) -FAIL encodeInto() into SharedArrayBuffer with Hi and destination length 0, offset 0, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined) -FAIL encodeInto() into ArrayBuffer with Hi and destination length 0, offset 4, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined) -FAIL encodeInto() into SharedArrayBuffer with Hi and destination length 0, offset 4, filler 0 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined) -FAIL encodeInto() into ArrayBuffer with Hi and destination length 0, offset 0, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined) -FAIL encodeInto() into SharedArrayBuffer with Hi and destination length 0, offset 0, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined) -FAIL encodeInto() into ArrayBuffer with Hi and destination length 0, offset 4, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined) -FAIL encodeInto() into SharedArrayBuffer with Hi and destination length 0, offset 4, filler 128 encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined) -FAIL encodeInto() into ArrayBuffer with Hi and destination length 0, offset 0, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is undefined) -FAIL encodeInto() into SharedArrayBuffer with Hi and destination length 0, offset 0, filler random encoder.encodeInto is not a function. (In 'encoder.encodeInto(testData.input, view)', 'encoder.encodeInto' is unde
[webkit-changes] [266532] trunk/Source/JavaScriptCore
Title: [266532] trunk/Source/_javascript_Core Revision 266532 Author keith_mil...@apple.com Date 2020-09-03 10:39:07 -0700 (Thu, 03 Sep 2020) Log Message Finish comment describing the various *Stack SSA nodes in DFG https://bugs.webkit.org/show_bug.cgi?id=216110 Reviewed by Sam Weinig. * dfg/DFGNodeType.h: Modified Paths trunk/Source/_javascript_Core/ChangeLog trunk/Source/_javascript_Core/dfg/DFGNodeType.h Diff Modified: trunk/Source/_javascript_Core/ChangeLog (266531 => 266532) --- trunk/Source/_javascript_Core/ChangeLog 2020-09-03 17:22:27 UTC (rev 266531) +++ trunk/Source/_javascript_Core/ChangeLog 2020-09-03 17:39:07 UTC (rev 266532) @@ -1,3 +1,12 @@ +2020-09-03 Keith Miller + +Finish comment describing the various *Stack SSA nodes in DFG +https://bugs.webkit.org/show_bug.cgi?id=216110 + +Reviewed by Sam Weinig. + +* dfg/DFGNodeType.h: + 2020-09-03 David Kilzer AbstractMacroAssembler::Jump class has uninitialized instance variables Modified: trunk/Source/_javascript_Core/dfg/DFGNodeType.h (266531 => 266532) --- trunk/Source/_javascript_Core/dfg/DFGNodeType.h 2020-09-03 17:22:27 UTC (rev 266531) +++ trunk/Source/_javascript_Core/dfg/DFGNodeType.h 2020-09-03 17:39:07 UTC (rev 266532) @@ -74,7 +74,9 @@ macro(GetLocal, NodeResultJS | NodeMustGenerate) \ macro(SetLocal, 0) \ \ -/* These are used in SSA form to represent to track */\ +/* These are used in SSA form to represent OSR availability on the stack. As long as a local is */\ +/* available on the stack from all paths into a merge point we don't need to have a Phi. Since OSR */\ +/* exits are rare this is preferable to representing availability directly in SSA. */\ macro(PutStack, NodeMustGenerate) \ macro(KillStack, NodeMustGenerate) \ macro(GetStack, NodeResultJS) \ ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [266531] trunk/Source/WebCore
Title: [266531] trunk/Source/WebCore Revision 266531 Author ddkil...@apple.com Date 2020-09-03 10:22:27 -0700 (Thu, 03 Sep 2020) Log Message REGRESSION (r237835): WebCore::TextDecorationThickness constructor fails to initialize m_length Reviewed by Tim Horton. * rendering/style/TextDecorationThickness.h: (WebCore::TextDecorationThickness): - Add default initializer for m_length. Modified Paths trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/rendering/style/TextDecorationThickness.h Diff Modified: trunk/Source/WebCore/ChangeLog (266530 => 266531) --- trunk/Source/WebCore/ChangeLog 2020-09-03 17:20:45 UTC (rev 266530) +++ trunk/Source/WebCore/ChangeLog 2020-09-03 17:22:27 UTC (rev 266531) @@ -1,3 +1,14 @@ +2020-09-03 David Kilzer + +REGRESSION (r237835): WebCore::TextDecorationThickness constructor fails to initialize m_length + + +Reviewed by Tim Horton. + +* rendering/style/TextDecorationThickness.h: +(WebCore::TextDecorationThickness): +- Add default initializer for m_length. + 2020-09-03 Alex Christensen TextDecoder should ignore byte-order-mark like other browsers and spec Modified: trunk/Source/WebCore/rendering/style/TextDecorationThickness.h (266530 => 266531) --- trunk/Source/WebCore/rendering/style/TextDecorationThickness.h 2020-09-03 17:20:45 UTC (rev 266530) +++ trunk/Source/WebCore/rendering/style/TextDecorationThickness.h 2020-09-03 17:22:27 UTC (rev 266531) @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018 Apple Inc. All rights reserved. + * Copyright (C) 2018-2020 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -119,7 +119,7 @@ } Type m_type; -float m_length; +float m_length { 0 }; }; inline TextStream& operator<<(TextStream& ts, const TextDecorationThickness& thickness) ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [266530] trunk/Source/JavaScriptCore
Title: [266530] trunk/Source/_javascript_Core Revision 266530 Author ddkil...@apple.com Date 2020-09-03 10:20:45 -0700 (Thu, 03 Sep 2020) Log Message AbstractMacroAssembler::Jump class has uninitialized instance variables Reviewed by Michael Saboff. * assembler/AbstractMacroAssembler.h: (JSC::AbstractMacroAssembler::Jump): - Switch to default constructor syntax. - Provide defaults for instance variables. Modified Paths trunk/Source/_javascript_Core/ChangeLog trunk/Source/_javascript_Core/assembler/AbstractMacroAssembler.h Diff Modified: trunk/Source/_javascript_Core/ChangeLog (266529 => 266530) --- trunk/Source/_javascript_Core/ChangeLog 2020-09-03 17:04:09 UTC (rev 266529) +++ trunk/Source/_javascript_Core/ChangeLog 2020-09-03 17:20:45 UTC (rev 266530) @@ -1,3 +1,15 @@ +2020-09-03 David Kilzer + +AbstractMacroAssembler::Jump class has uninitialized instance variables + + +Reviewed by Michael Saboff. + +* assembler/AbstractMacroAssembler.h: +(JSC::AbstractMacroAssembler::Jump): +- Switch to default constructor syntax. +- Provide defaults for instance variables. + 2020-09-03 Ross Kirsling [JSC] Add missing detached buffer errors for DataView Modified: trunk/Source/_javascript_Core/assembler/AbstractMacroAssembler.h (266529 => 266530) --- trunk/Source/_javascript_Core/assembler/AbstractMacroAssembler.h 2020-09-03 17:04:09 UTC (rev 266529) +++ trunk/Source/_javascript_Core/assembler/AbstractMacroAssembler.h 2020-09-03 17:20:45 UTC (rev 266530) @@ -579,10 +579,8 @@ friend struct DFG::OSRExit; friend class LinkBuffer; public: -Jump() -{ -} - +Jump() = default; + #if CPU(ARM_THUMB2) // Fixme: this information should be stored in the instruction stream, not in the Jump object. Jump(AssemblerLabel jmp, ARMv7Assembler::JumpType type = ARMv7Assembler::JumpNoCondition, ARMv7Assembler::Condition condition = ARMv7Assembler::ConditionInvalid) @@ -679,14 +677,14 @@ private: AssemblerLabel m_label; #if CPU(ARM_THUMB2) -ARMv7Assembler::JumpType m_type; -ARMv7Assembler::Condition m_condition; +ARMv7Assembler::JumpType m_type { ARMv7Assembler::JumpNoCondition }; +ARMv7Assembler::Condition m_condition { ARMv7Assembler::ConditionInvalid }; #elif CPU(ARM64) -ARM64Assembler::JumpType m_type; -ARM64Assembler::Condition m_condition; -bool m_is64Bit; -unsigned m_bitNumber; -ARM64Assembler::RegisterID m_compareRegister; +ARM64Assembler::JumpType m_type { ARM64Assembler::JumpNoCondition }; +ARM64Assembler::Condition m_condition { ARM64Assembler::ConditionInvalid }; +bool m_is64Bit { false }; +unsigned m_bitNumber { 0 }; +ARM64Assembler::RegisterID m_compareRegister { ARM64Registers::InvalidGPRReg }; #endif }; ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [266529] trunk
Title: [266529] trunk Revision 266529 Author ross.kirsl...@sony.com Date 2020-09-03 10:04:09 -0700 (Thu, 03 Sep 2020) Log Message [JSC] Add missing detached buffer errors for DataView https://bugs.webkit.org/show_bug.cgi?id=216062 Reviewed by Yusuke Suzuki. JSTests: * stress/detached-buffer-typeerror.js: Add new test. * stress/dataview-jit-neuter.js: * stress/native-constructors-length.js: Update existing tests. * test262/expectations.yaml: Mark 74 test cases as passing. Source/_javascript_Core: DataView methods are often expected to throw a TypeError if the underlying ArrayBuffer is detached (or neutered, in older terminology) -- this patch adds a slew of missing cases from the following spec section: - https://tc39.es/ecma262/#sec-properties-of-the-dataview-prototype-object At the same time: - get rid of JSDataView::getOwnPropertySlot, which was turning dataViewProtoGetterByte{Length,Offset} into mostly unreachable code and erroneously causing byte{Length,Offset} to have property descriptors - perform some simple cleanup of neighboring error calls / messages - fix value of DataView.length (our only other DataView spec bug) * runtime/JSDataView.cpp: (JSC::JSDataView::create): (JSC::JSDataView::getOwnPropertySlot): Deleted. * runtime/JSDataView.h: * runtime/JSDataViewPrototype.cpp: (JSC::getData): (JSC::setData): (JSC::dataViewProtoGetterByteLength): (JSC::dataViewProtoGetterByteOffset): * runtime/JSGenericTypedArrayViewConstructorInlines.h: (JSC::JSGenericTypedArrayViewConstructor::finishCreation): LayoutTests: * fast/canvas/webgl/arraybuffer-transfer-of-control.html: * js/dom/constructor-length.html: * js/script-tests/typedarray-constructors.js: * js/typedarray-constructors-expected.txt: * platform/glib/js/dom/constructor-length-expected.txt: * platform/ios/js/dom/constructor-length-expected.txt: * platform/mac/js/dom/constructor-length-expected.txt: * platform/win/js/dom/constructor-length-expected.txt: * platform/wincairo/js/dom/constructor-length-expected.txt: Update tests and expectations. Modified Paths trunk/JSTests/ChangeLog trunk/JSTests/stress/dataview-jit-neuter.js trunk/JSTests/stress/native-constructors-length.js trunk/JSTests/test262/expectations.yaml trunk/LayoutTests/ChangeLog trunk/LayoutTests/fast/canvas/webgl/arraybuffer-transfer-of-control.html trunk/LayoutTests/js/dom/constructor-length.html trunk/LayoutTests/js/script-tests/typedarray-constructors.js trunk/LayoutTests/js/typedarray-constructors-expected.txt trunk/LayoutTests/platform/glib/js/dom/constructor-length-expected.txt trunk/LayoutTests/platform/ios/js/dom/constructor-length-expected.txt trunk/LayoutTests/platform/mac/js/dom/constructor-length-expected.txt trunk/LayoutTests/platform/win/js/dom/constructor-length-expected.txt trunk/LayoutTests/platform/wincairo/js/dom/constructor-length-expected.txt trunk/Source/_javascript_Core/ChangeLog trunk/Source/_javascript_Core/runtime/JSDataView.cpp trunk/Source/_javascript_Core/runtime/JSDataView.h trunk/Source/_javascript_Core/runtime/JSDataViewPrototype.cpp trunk/Source/_javascript_Core/runtime/JSGenericTypedArrayViewConstructorInlines.h Added Paths trunk/JSTests/stress/detached-buffer-typeerror.js Diff Modified: trunk/JSTests/ChangeLog (266528 => 266529) --- trunk/JSTests/ChangeLog 2020-09-03 16:57:49 UTC (rev 266528) +++ trunk/JSTests/ChangeLog 2020-09-03 17:04:09 UTC (rev 266529) @@ -1,3 +1,20 @@ +2020-09-03 Ross Kirsling + +[JSC] Add missing detached buffer errors for DataView +https://bugs.webkit.org/show_bug.cgi?id=216062 + +Reviewed by Yusuke Suzuki. + +* stress/detached-buffer-typeerror.js: +Add new test. + +* stress/dataview-jit-neuter.js: +* stress/native-constructors-length.js: +Update existing tests. + +* test262/expectations.yaml: +Mark 74 test cases as passing. + 2020-09-02 Yusuke Suzuki [JSC] Update test262 Modified: trunk/JSTests/stress/dataview-jit-neuter.js (266528 => 266529) --- trunk/JSTests/stress/dataview-jit-neuter.js 2020-09-03 16:57:49 UTC (rev 266528) +++ trunk/JSTests/stress/dataview-jit-neuter.js 2020-09-03 17:04:09 UTC (rev 266529) @@ -48,7 +48,7 @@ } catch(err) { e = err; } -assert(e instanceof RangeError); +assert(e instanceof TypeError); } test(); @@ -75,6 +75,6 @@ } catch(err) { e = err; } -assert(e instanceof RangeError); +assert(e instanceof TypeError); } test2(); Added: trunk/JSTests/stress/detached-buffer-typeerror.js (0 => 266529) --- trunk/JSTests/stress/detached-buffer-typeerror.js (rev 0) +++ trunk/JSTests/stress/detached-buffer-typeerror.js 2020-09-03 17:04:09 UTC (rev 266529) @@ -0,0 +1,53 @@ +function shouldBe(actual, expected) { +if (actual !== expected) +throw new Error(`expected ${expected} but got ${actual}`); +} + +function shouldThrowTypeError(func) { +let error; +try { +func(); +
[webkit-changes] [266528] trunk
Title: [266528] trunk Revision 266528 Author achristen...@apple.com Date 2020-09-03 09:57:49 -0700 (Thu, 03 Sep 2020) Log Message TextDecoder should ignore byte-order-mark like other browsers and spec https://bugs.webkit.org/show_bug.cgi?id=216108 Reviewed by Darin Adler. LayoutTests/imported/w3c: * web-platform-tests/encoding/streams/decode-ignore-bom.any-expected.txt: * web-platform-tests/encoding/textdecoder-ignorebom.any-expected.txt: Source/WebCore: Covered by newly passing web platform tests. * dom/TextDecoder.cpp: (WebCore::TextDecoder::ignoreBOMIfNecessary): (WebCore::TextDecoder::decode): (WebCore::TextDecoder::prependBOMIfNecessary): Deleted. * dom/TextDecoder.h: Modified Paths trunk/LayoutTests/imported/w3c/ChangeLog trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-ignore-bom.any-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-ignore-bom.any.worker-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/textdecoder-copy.any-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/textdecoder-copy.any.worker-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/textdecoder-ignorebom.any-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/textdecoder-ignorebom.any.worker-expected.txt trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/dom/TextDecoder.cpp trunk/Source/WebCore/dom/TextDecoder.h Diff Modified: trunk/LayoutTests/imported/w3c/ChangeLog (266527 => 266528) --- trunk/LayoutTests/imported/w3c/ChangeLog 2020-09-03 16:33:59 UTC (rev 266527) +++ trunk/LayoutTests/imported/w3c/ChangeLog 2020-09-03 16:57:49 UTC (rev 266528) @@ -1,5 +1,15 @@ 2020-09-03 Alex Christensen +TextDecoder should ignore byte-order-mark like other browsers and spec +https://bugs.webkit.org/show_bug.cgi?id=216108 + +Reviewed by Darin Adler. + +* web-platform-tests/encoding/streams/decode-ignore-bom.any-expected.txt: +* web-platform-tests/encoding/textdecoder-ignorebom.any-expected.txt: + +2020-09-03 Alex Christensen + Align ISO-8859-{3,6,7,8,8-I} and windows-{874,1253,1255,1257} encodings with Chrome, Firefox, and the specification https://bugs.webkit.org/show_bug.cgi?id=216094 Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-ignore-bom.any-expected.txt (266527 => 266528) --- trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-ignore-bom.any-expected.txt 2020-09-03 16:33:59 UTC (rev 266527) +++ trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-ignore-bom.any-expected.txt 2020-09-03 16:57:49 UTC (rev 266528) @@ -1,14 +1,14 @@ PASS ignoreBOM should work for encoding utf-8, split at character 0 -FAIL ignoreBOM should work for encoding utf-8, split at character 1 assert_equals: BOM should be stripped expected "abc" but got "abc" -FAIL ignoreBOM should work for encoding utf-8, split at character 2 assert_equals: BOM should be stripped expected "abc" but got "abc" +PASS ignoreBOM should work for encoding utf-8, split at character 1 +PASS ignoreBOM should work for encoding utf-8, split at character 2 PASS ignoreBOM should work for encoding utf-8, split at character 3 PASS ignoreBOM should work for encoding utf-16le, split at character 0 -FAIL ignoreBOM should work for encoding utf-16le, split at character 1 assert_equals: BOM should be stripped expected "abc" but got "abc" +PASS ignoreBOM should work for encoding utf-16le, split at character 1 PASS ignoreBOM should work for encoding utf-16le, split at character 2 -FAIL ignoreBOM should work for encoding utf-16le, split at character 3 assert_equals: BOM should be preserved expected "abc" but got "abc" +PASS ignoreBOM should work for encoding utf-16le, split at character 3 PASS ignoreBOM should work for encoding utf-16be, split at character 0 -FAIL ignoreBOM should work for encoding utf-16be, split at character 1 assert_equals: BOM should be stripped expected "abc" but got "abc" +PASS ignoreBOM should work for encoding utf-16be, split at character 1 PASS ignoreBOM should work for encoding utf-16be, split at character 2 -FAIL ignoreBOM should work for encoding utf-16be, split at character 3 assert_equals: BOM should be preserved expected "abc" but got "abc" +PASS ignoreBOM should work for encoding utf-16be, split at character 3 Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-ignore-bom.any.worker-expected.txt (266527 => 266528) --- trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-ignore-bom.any.worker-expected.txt 2020-09-03 16:33:59 UTC (rev 266527) +++ trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-ignore-bom.any.worker-expected.txt 2020-09-03 16:57:49 UTC (rev 266528) @@ -1,14 +1,14 @@ PASS ignoreBOM should work for encoding utf-8, split at character 0 -
[webkit-changes] [266526] trunk
Title: [266526] trunk Revision 266526 Author grao...@webkit.org Date 2020-09-03 09:31:05 -0700 (Thu, 03 Sep 2020) Log Message Consecutive requestAnimationFrame callbacks may be passed the same timestamp https://bugs.webkit.org/show_bug.cgi?id=216122 Reviewed by Simon Fraser. Source/WebCore: Test: fast/animation/request-animation-frame-unique-timestamp.html Ensure that the page only sees increasing timestamps in requestAnimationFrame() callbacks. * dom/ScriptedAnimationController.cpp: (WebCore::ScriptedAnimationController::shouldRescheduleRequestAnimationFrame const): LayoutTests: Add a test that two subsequent animation frames as identified via requestAnimationFrame() callbacks are provided increasing timestamps. Also removing flaky expectation for two WPT animations tests which pass reliably after this fix. * fast/animation/request-animation-frame-unique-timestamp-expected.txt: Added. * fast/animation/request-animation-frame-unique-timestamp.html: Added. * platform/mac-wk2/TestExpectations: Modified Paths trunk/LayoutTests/ChangeLog trunk/LayoutTests/platform/mac-wk2/TestExpectations trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/dom/ScriptedAnimationController.cpp Added Paths trunk/LayoutTests/fast/animation/request-animation-frame-unique-timestamp-expected.txt trunk/LayoutTests/fast/animation/request-animation-frame-unique-timestamp.html Diff Modified: trunk/LayoutTests/ChangeLog (266525 => 266526) --- trunk/LayoutTests/ChangeLog 2020-09-03 16:28:55 UTC (rev 266525) +++ trunk/LayoutTests/ChangeLog 2020-09-03 16:31:05 UTC (rev 266526) @@ -1,3 +1,20 @@ +2020-09-03 Antoine Quint + +Consecutive requestAnimationFrame callbacks may be passed the same timestamp +https://bugs.webkit.org/show_bug.cgi?id=216122 + + +Reviewed by Simon Fraser. + +Add a test that two subsequent animation frames as identified via requestAnimationFrame() callbacks +are provided increasing timestamps. + +Also removing flaky expectation for two WPT animations tests which pass reliably after this fix. + +* fast/animation/request-animation-frame-unique-timestamp-expected.txt: Added. +* fast/animation/request-animation-frame-unique-timestamp.html: Added. +* platform/mac-wk2/TestExpectations: + 2020-09-03 Hector Lopez REGRESSION(r266466): [ iOS wk2 ] fast/encoding/charset-replacement.html is a constant failure Added: trunk/LayoutTests/fast/animation/request-animation-frame-unique-timestamp-expected.txt (0 => 266526) --- trunk/LayoutTests/fast/animation/request-animation-frame-unique-timestamp-expected.txt (rev 0) +++ trunk/LayoutTests/fast/animation/request-animation-frame-unique-timestamp-expected.txt 2020-09-03 16:31:05 UTC (rev 266526) @@ -0,0 +1,3 @@ + +PASS Timestamps of requestAnimationFrame() callbacks increase. + Added: trunk/LayoutTests/fast/animation/request-animation-frame-unique-timestamp.html (0 => 266526) --- trunk/LayoutTests/fast/animation/request-animation-frame-unique-timestamp.html (rev 0) +++ trunk/LayoutTests/fast/animation/request-animation-frame-unique-timestamp.html 2020-09-03 16:31:05 UTC (rev 266526) @@ -0,0 +1,16 @@ + + + + + +promise_test(async t => { + let firstFrameTimestamp = await new Promise(requestAnimationFrame); + let secondFrameTimestamp = await new Promise(requestAnimationFrame); + assert_greater_than(secondFrameTimestamp, firstFrameTimestamp); +}, "Timestamps of requestAnimationFrame() callbacks increase."); + + + + Modified: trunk/LayoutTests/platform/mac-wk2/TestExpectations (266525 => 266526) --- trunk/LayoutTests/platform/mac-wk2/TestExpectations 2020-09-03 16:28:55 UTC (rev 266525) +++ trunk/LayoutTests/platform/mac-wk2/TestExpectations 2020-09-03 16:31:05 UTC (rev 266526) @@ -1251,9 +1251,6 @@ [ arm64 ] inspector/canvas/memory.html [ Failure ] [ arm64 ] media/video-canvas-createPattern.html [ Failure ] -# rdar://66798751 (REGRESSION (20A2321a-20A2327a): imported/w3c/web-platform-tests/css/css-animations/event-dispatch.tentative.html is a flaky failure) -[ arm64 ] imported/w3c/web-platform-tests/css/css-animations/event-dispatch.tentative.html [ Pass Failure ] - # rdar://66806059 (REGRESSION (20A2321a-20A2348b): 4 fast hidpi tests are a flaky image failure) [ arm64 ] fast/flexbox/hidpi-simple-line-layout-with-flexbox-and-transition.html [ ImageOnlyFailure ] [ arm64 ] fast/forms/hidpi-fieldset-on-subpixel-position-when-legend-is-present.html [ ImageOnlyFailure ] @@ -1263,9 +1260,6 @@ # rdar://66807554 [ arm64 ] imported/w3c/web-platform-tests/css/css-transitions/transition-base-response-002.html [ Failure ] -# rdar://66808228 (REGRESSION (20A2321a-20A2348b): imported/w3c/web-platform-tests/web-animations/interfaces/Animation/onremove.html is a flaky failure) -[ arm64 ] imported/w3c/web-platform-tests/web-animations/interfaces/Animation/onremove.html [ Failure ] - webkit.org/b/215581 imported/w3c/
[webkit-changes] [266525] trunk/LayoutTests
Title: [266525] trunk/LayoutTests Revision 266525 Author hector_i_lo...@apple.com Date 2020-09-03 09:28:55 -0700 (Thu, 03 Sep 2020) Log Message REGRESSION(r266466): [ iOS wk2 ] fast/encoding/charset-replacement.html is a constant failure https://bugs.webkit.org/show_bug.cgi?id=216126 Unreviewed test gardening. * platform/ios-wk2/TestExpectations: Modified Paths trunk/LayoutTests/ChangeLog trunk/LayoutTests/platform/ios-wk2/TestExpectations Diff Modified: trunk/LayoutTests/ChangeLog (266524 => 266525) --- trunk/LayoutTests/ChangeLog 2020-09-03 16:28:11 UTC (rev 266524) +++ trunk/LayoutTests/ChangeLog 2020-09-03 16:28:55 UTC (rev 266525) @@ -1,3 +1,12 @@ +2020-09-03 Hector Lopez + +REGRESSION(r266466): [ iOS wk2 ] fast/encoding/charset-replacement.html is a constant failure +https://bugs.webkit.org/show_bug.cgi?id=216126 + +Unreviewed test gardening. + +* platform/ios-wk2/TestExpectations: + 2020-09-03 Aditya Keerthi [macOS] Support stepping using keyboard in date inputs Modified: trunk/LayoutTests/platform/ios-wk2/TestExpectations (266524 => 266525) --- trunk/LayoutTests/platform/ios-wk2/TestExpectations 2020-09-03 16:28:11 UTC (rev 266524) +++ trunk/LayoutTests/platform/ios-wk2/TestExpectations 2020-09-03 16:28:55 UTC (rev 266525) @@ -1870,3 +1870,5 @@ webkit.org/b/215929 compositing/video/poster.html [ Pass ImageOnlyFailure ] webkit.org/b/216124 imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location_hash.html [ Failure ] + +webkit.org/b/216126 fast/encoding/charset-replacement.html [ Failure ] ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [266524] trunk
Title: [266524] trunk Revision 266524 Author akeer...@apple.com Date 2020-09-03 09:28:11 -0700 (Thu, 03 Sep 2020) Log Message [macOS] Support stepping using keyboard in date inputs https://bugs.webkit.org/show_bug.cgi?id=216090 Reviewed by Darin Adler. Source/WebCore: Users should be able to step through dates using the up and down arrow keys, matching the functionality of NSDatePicker. To achieve this functionality, stepUp and stepDown methods were added to DateTimeFieldElement, incrementing and decrementing the value of the focused field on an up arrow keypress and a down arrow keypress respectively. If the currently focused field is empty during the keypress, stepping up will start from the minimum value and stepping down will start from the maximum value. Covered by a new test case in an existing test file. * html/shadow/DateTimeFieldElement.cpp: (WebCore::DateTimeFieldElement::defaultKeyboardEventHandler): * html/shadow/DateTimeFieldElement.h: * html/shadow/DateTimeNumericFieldElement.cpp: (WebCore::DateTimeNumericFieldElement::setValueAsIntegerByStepping): (WebCore::DateTimeNumericFieldElement::stepDown): (WebCore::DateTimeNumericFieldElement::stepUp): * html/shadow/DateTimeNumericFieldElement.h: * html/shadow/DateTimeSymbolicFieldElement.cpp: (WebCore::DateTimeSymbolicFieldElement::stepDown): (WebCore::DateTimeSymbolicFieldElement::stepUp): * html/shadow/DateTimeSymbolicFieldElement.h: LayoutTests: Added a new test case to the existing set of keyboard testcases for editable date inputs. * fast/forms/date/date-editable-components/date-editable-components-keyboard-events-expected.txt: * fast/forms/date/date-editable-components/date-editable-components-keyboard-events.html: Modified Paths trunk/LayoutTests/ChangeLog trunk/LayoutTests/fast/forms/date/date-editable-components/date-editable-components-keyboard-events-expected.txt trunk/LayoutTests/fast/forms/date/date-editable-components/date-editable-components-keyboard-events.html trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/html/shadow/DateTimeFieldElement.cpp trunk/Source/WebCore/html/shadow/DateTimeFieldElement.h trunk/Source/WebCore/html/shadow/DateTimeNumericFieldElement.cpp trunk/Source/WebCore/html/shadow/DateTimeNumericFieldElement.h trunk/Source/WebCore/html/shadow/DateTimeSymbolicFieldElement.cpp trunk/Source/WebCore/html/shadow/DateTimeSymbolicFieldElement.h Diff Modified: trunk/LayoutTests/ChangeLog (266523 => 266524) --- trunk/LayoutTests/ChangeLog 2020-09-03 16:27:46 UTC (rev 266523) +++ trunk/LayoutTests/ChangeLog 2020-09-03 16:28:11 UTC (rev 266524) @@ -1,3 +1,15 @@ +2020-09-03 Aditya Keerthi + +[macOS] Support stepping using keyboard in date inputs +https://bugs.webkit.org/show_bug.cgi?id=216090 + +Reviewed by Darin Adler. + +Added a new test case to the existing set of keyboard testcases for editable date inputs. + +* fast/forms/date/date-editable-components/date-editable-components-keyboard-events-expected.txt: +* fast/forms/date/date-editable-components/date-editable-components-keyboard-events.html: + 2020-09-03 Alex Christensen Rebase Windows test expectations after r266466 Modified: trunk/LayoutTests/fast/forms/date/date-editable-components/date-editable-components-keyboard-events-expected.txt (266523 => 266524) --- trunk/LayoutTests/fast/forms/date/date-editable-components/date-editable-components-keyboard-events-expected.txt 2020-09-03 16:27:46 UTC (rev 266523) +++ trunk/LayoutTests/fast/forms/date/date-editable-components/date-editable-components-keyboard-events-expected.txt 2020-09-03 16:28:11 UTC (rev 266524) @@ -35,6 +35,14 @@ PASS changeEventsFired is 3 PASS inputEventsFired is 3 +Up/Down arrow keys +PASS input.value is "2020-01-20" +PASS input.value is "2020-02-20" +PASS input.value is "2020-01-20" +PASS input.value is "2020-12-20" +PASS changeEventsFired is 4 +PASS inputEventsFired is 4 + Tab key PASS input.value is "0002-02-02" PASS document.activeElement.id is "after" Modified: trunk/LayoutTests/fast/forms/date/date-editable-components/date-editable-components-keyboard-events.html (266523 => 266524) --- trunk/LayoutTests/fast/forms/date/date-editable-components/date-editable-components-keyboard-events.html 2020-09-03 16:27:46 UTC (rev 266523) +++ trunk/LayoutTests/fast/forms/date/date-editable-components/date-editable-components-keyboard-events.html 2020-09-03 16:28:11 UTC (rev 266524) @@ -130,6 +130,18 @@ shouldBe("changeEventsFired", "3"); shouldBe("inputEventsFired", "3"); +beginTest("Up/Down arrow keys", "2020-12-20"); // [12]/20/2020 +UIHelper.keyDown("upArrow"); // [01]/20/2020 +shouldBeEqualToString("input.value", "2020-01-20"); +UIHelper.keyDown("upArrow"); // [02]/20/2020 +shouldBeEqualToString("input.value", "2020-02-20"); +UIHelper.keyDown("downArrow"); // [01]/20/2020 +shouldBe
[webkit-changes] [266522] trunk/LayoutTests
Title: [266522] trunk/LayoutTests Revision 266522 Author achristen...@apple.com Date 2020-09-03 09:14:40 -0700 (Thu, 03 Sep 2020) Log Message Rebase Windows test expectations after r266466 Modified Paths trunk/LayoutTests/ChangeLog Added Paths trunk/LayoutTests/platform/ios/fast/encoding/charset-replacement-expected.txt Diff Modified: trunk/LayoutTests/ChangeLog (266521 => 266522) --- trunk/LayoutTests/ChangeLog 2020-09-03 16:11:51 UTC (rev 266521) +++ trunk/LayoutTests/ChangeLog 2020-09-03 16:14:40 UTC (rev 266522) @@ -1,5 +1,13 @@ 2020-09-03 Alex Christensen +Rebase Windows test expectations after r266466 +​ https://bugs.webkit.org/show_bug.cgi?id=216063 + +* platform/ios/fast/encoding/charset-replacement-expected.txt: Copied from fast/encoding/charset-replacement-expected.txt. +Everyone seems to render a document with just one replacement character just a little different. + +2020-09-03 Alex Christensen + Rebase iOS test results after r266399 https://bugs.webkit.org/show_bug.cgi?id=216022 Copied: trunk/LayoutTests/platform/ios/fast/encoding/charset-replacement-expected.txt (from rev 266518, trunk/LayoutTests/fast/encoding/charset-replacement-expected.txt) (0 => 266522) --- trunk/LayoutTests/platform/ios/fast/encoding/charset-replacement-expected.txt (rev 0) +++ trunk/LayoutTests/platform/ios/fast/encoding/charset-replacement-expected.txt 2020-09-03 16:14:40 UTC (rev 266522) @@ -0,0 +1,7 @@ +layer at (0,0) size 800x600 + RenderView at (0,0) size 800x600 +layer at (0,0) size 800x600 + RenderBlock {HTML} at (0,0) size 800x600 +RenderBody {BODY} at (8,8) size 784x584 + RenderText {#text} at (0,0) size 10x19 +text run at (0,0) width 10: "\x{FFFD}" ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [266521] trunk/LayoutTests
Title: [266521] trunk/LayoutTests Revision 266521 Author achristen...@apple.com Date 2020-09-03 09:11:51 -0700 (Thu, 03 Sep 2020) Log Message Rebase iOS test results after r266399 https://bugs.webkit.org/show_bug.cgi?id=216022 * platform/ios/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location_hash-expected.txt: Modified Paths trunk/LayoutTests/ChangeLog trunk/LayoutTests/platform/ios/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location_hash-expected.txt Diff Modified: trunk/LayoutTests/ChangeLog (266520 => 266521) --- trunk/LayoutTests/ChangeLog 2020-09-03 16:06:17 UTC (rev 266520) +++ trunk/LayoutTests/ChangeLog 2020-09-03 16:11:51 UTC (rev 266521) @@ -1,3 +1,10 @@ +2020-09-03 Alex Christensen + +Rebase iOS test results after r266399 +https://bugs.webkit.org/show_bug.cgi?id=216022 + +* platform/ios/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location_hash-expected.txt: + 2020-09-03 Hector Lopez REGRESSION(266399?): [ iOS wk2 ] imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location_hash.html is a constant failure Modified: trunk/LayoutTests/platform/ios/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location_hash-expected.txt (266520 => 266521) --- trunk/LayoutTests/platform/ios/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location_hash-expected.txt 2020-09-03 16:06:17 UTC (rev 266520) +++ trunk/LayoutTests/platform/ios/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location_hash-expected.txt 2020-09-03 16:11:51 UTC (rev 266521) @@ -4,5 +4,4 @@ PASS Setting hash should automatically include hash character PASS Setting hash should encode incompatible characters PASS Setting hash to an already encoded value should not double encode it -FAIL Setting hash which is partially encoded should only encode incompatible characters assert_equals: expected "#mixed%20encoding%20here" but got "#mixed encoding%20here" - +PASS Setting hash which is partially encoded should only encode incompatible characters ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [266519] trunk/LayoutTests
Title: [266519] trunk/LayoutTests Revision 266519 Author hector_i_lo...@apple.com Date 2020-09-03 09:05:53 -0700 (Thu, 03 Sep 2020) Log Message REGRESSION(266399?): [ iOS wk2 ] imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location_hash.html is a constant failure https://bugs.webkit.org/show_bug.cgi?id=216124 Unreviewed test gardening. * platform/ios-wk2/TestExpectations: Modified Paths trunk/LayoutTests/ChangeLog trunk/LayoutTests/platform/ios-wk2/TestExpectations Diff Modified: trunk/LayoutTests/ChangeLog (266518 => 266519) --- trunk/LayoutTests/ChangeLog 2020-09-03 15:33:04 UTC (rev 266518) +++ trunk/LayoutTests/ChangeLog 2020-09-03 16:05:53 UTC (rev 266519) @@ -1,3 +1,12 @@ +2020-09-03 Hector Lopez + +REGRESSION(266399?): [ iOS wk2 ] imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location_hash.html is a constant failure +https://bugs.webkit.org/show_bug.cgi?id=216124 + +Unreviewed test gardening. + +* platform/ios-wk2/TestExpectations: + 2020-09-03 Zalan Bujtas [LFC][IFC] Add support for vertical-align: text-bottom Modified: trunk/LayoutTests/platform/ios-wk2/TestExpectations (266518 => 266519) --- trunk/LayoutTests/platform/ios-wk2/TestExpectations 2020-09-03 15:33:04 UTC (rev 266518) +++ trunk/LayoutTests/platform/ios-wk2/TestExpectations 2020-09-03 16:05:53 UTC (rev 266519) @@ -1868,3 +1868,5 @@ webkit.org/b/209461 imported/w3c/web-platform-tests/css/css-grid/grid-items/grid-item-dynamic-min-contribution-001.html [ Failure ] webkit.org/b/215929 compositing/video/poster.html [ Pass ImageOnlyFailure ] + +webkit.org/b/216124 imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location_hash.html [ Failure ] ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [266518] trunk
Title: [266518] trunk Revision 266518 Author cdu...@apple.com Date 2020-09-03 08:33:04 -0700 (Thu, 03 Sep 2020) Log Message Make our implementation of ChannelMergerNode standards compliant https://bugs.webkit.org/show_bug.cgi?id=216113 Reviewed by Darin Adler. LayoutTests/imported/w3c: Rebaseline WPT tests now that they are passing. * web-platform-tests/webaudio/the-audio-api/the-channelmergernode-interface/audiochannelmerger-disconnect-expected.txt: * web-platform-tests/webaudio/the-audio-api/the-channelmergernode-interface/audiochannelmerger-input-expected.txt: * web-platform-tests/webaudio/the-audio-api/the-channelmergernode-interface/audiochannelmerger-input-non-default-expected.txt: Source/WebCore: This aligns our implementation of ChannelMergerNode with Chromium's, allowing us to pass more web platform tests. No new tests, rebaselined existing tests. * Modules/webaudio/AudioNode.cpp: (WebCore::AudioNode::disableOutputsIfNecessary): (WebCore::AudioNode::disableOutputs): * Modules/webaudio/AudioNode.h: Split disableOutputs() out of disableOutputsIfNecessary() so that it can be called directly. * Modules/webaudio/AudioNodeInput.cpp: (WebCore::AudioNodeInput::connect): * Modules/webaudio/AudioNodeOutput.h: (WebCore::AudioNodeOutput::isEnabled const): When connected to an output, AudioNodeInput keeps the output either in m_outputs when the output is enabled, m_disabledOutputs when it is disabled. AudioNodeInput's enable() & disable() take care of moving the output from one map to another. However, connect() would assume that the output we're connecting to is enabled and add it to m_outputs unconditionally. This was causing an assertion to get hit in enable() later on because the output we're trying to enable was not in m_disabledOutputs (because it was already in m_outputs). This change is needed because the ChannelMergerNode now disables its output right away, before it is connected. * Modules/webaudio/ChannelMergerNode.cpp: (WebCore::ChannelMergerNode::ChannelMergerNode): Make sure that the output has a number of channels equal to the number of inputs. Initially disable outputs so that we output a single silent channel until something is connected. (WebCore::ChannelMergerNode::process): * Modules/webaudio/ChannelMergerNode.h: Simplify code now that the number of inputs is equal to output's number of channels. Modified Paths trunk/LayoutTests/imported/w3c/ChangeLog trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-channelmergernode-interface/audiochannelmerger-disconnect-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-channelmergernode-interface/audiochannelmerger-input-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-channelmergernode-interface/audiochannelmerger-input-non-default-expected.txt trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/Modules/webaudio/AudioNode.cpp trunk/Source/WebCore/Modules/webaudio/AudioNode.h trunk/Source/WebCore/Modules/webaudio/AudioNodeInput.cpp trunk/Source/WebCore/Modules/webaudio/AudioNodeOutput.h trunk/Source/WebCore/Modules/webaudio/ChannelMergerNode.cpp trunk/Source/WebCore/Modules/webaudio/ChannelMergerNode.h Diff Modified: trunk/LayoutTests/imported/w3c/ChangeLog (266517 => 266518) --- trunk/LayoutTests/imported/w3c/ChangeLog 2020-09-03 15:29:57 UTC (rev 266517) +++ trunk/LayoutTests/imported/w3c/ChangeLog 2020-09-03 15:33:04 UTC (rev 266518) @@ -1,3 +1,16 @@ +2020-09-03 Chris Dumez + +Make our implementation of ChannelMergerNode standards compliant +https://bugs.webkit.org/show_bug.cgi?id=216113 + +Reviewed by Darin Adler. + +Rebaseline WPT tests now that they are passing. + +* web-platform-tests/webaudio/the-audio-api/the-channelmergernode-interface/audiochannelmerger-disconnect-expected.txt: +* web-platform-tests/webaudio/the-audio-api/the-channelmergernode-interface/audiochannelmerger-input-expected.txt: +* web-platform-tests/webaudio/the-audio-api/the-channelmergernode-interface/audiochannelmerger-input-non-default-expected.txt: + 2020-09-03 Youenn Fablet Expose RTCPeerConnection.restartIce Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-channelmergernode-interface/audiochannelmerger-disconnect-expected.txt (266517 => 266518) --- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-channelmergernode-interface/audiochannelmerger-disconnect-expected.txt 2020-09-03 15:29:57 UTC (rev 266517) +++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-channelmergernode-interface/audiochannelmerger-disconnect-expected.txt 2020-09-03 15:33:04 UTC (rev 266518) @@ -4,8 +4,8 @@ PASS Audit report PASS > [silent-disconnect] PASS Channel #0 contains only the constant 1. -FAIL X Channel #1 expected to have the value sequence of [1,0] but got 1 values, [1], instead of
[webkit-changes] [266517] trunk/Source/WebCore
Title: [266517] trunk/Source/WebCore Revision 266517 Author commit-qu...@webkit.org Date 2020-09-03 08:29:57 -0700 (Thu, 03 Sep 2020) Log Message Use unicode macros instead of manual range checks in TextCodecUTF16 https://bugs.webkit.org/show_bug.cgi?id=216098 Patch by Alex Christensen on 2020-09-03 Reviewed by Darin Adler. No change in behavior. Just responding to feedback from bug 216058. * platform/text/TextCodecSingleByte.cpp: Added. (WebCore::tableForDecoding): (WebCore::tableForEncoding): (WebCore::TextCodecSingleByte::encode): (WebCore::TextCodecSingleByte::decode): (WebCore::TextCodecSingleByte::TextCodecSingleByte): (WebCore::TextCodecSingleByte::registerEncodingNames): (WebCore::TextCodecSingleByte::registerCodecs): * platform/text/TextCodecSingleByte.h: Added. * platform/text/TextCodecUTF16.cpp: (WebCore::TextCodecUTF16::decode): Modified Paths trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/platform/text/TextCodecUTF16.cpp Diff Modified: trunk/Source/WebCore/ChangeLog (266516 => 266517) --- trunk/Source/WebCore/ChangeLog 2020-09-03 14:56:24 UTC (rev 266516) +++ trunk/Source/WebCore/ChangeLog 2020-09-03 15:29:57 UTC (rev 266517) @@ -1,3 +1,24 @@ +2020-09-03 Alex Christensen + +Use unicode macros instead of manual range checks in TextCodecUTF16 +https://bugs.webkit.org/show_bug.cgi?id=216098 + +Reviewed by Darin Adler. + +No change in behavior. Just responding to feedback from bug 216058. + +* platform/text/TextCodecSingleByte.cpp: Added. +(WebCore::tableForDecoding): +(WebCore::tableForEncoding): +(WebCore::TextCodecSingleByte::encode): +(WebCore::TextCodecSingleByte::decode): +(WebCore::TextCodecSingleByte::TextCodecSingleByte): +(WebCore::TextCodecSingleByte::registerEncodingNames): +(WebCore::TextCodecSingleByte::registerCodecs): +* platform/text/TextCodecSingleByte.h: Added. +* platform/text/TextCodecUTF16.cpp: +(WebCore::TextCodecUTF16::decode): + 2020-09-03 Zalan Bujtas [LFC][IFC] Add support for vertical-align: text-bottom Modified: trunk/Source/WebCore/platform/text/TextCodecUTF16.cpp (266516 => 266517) --- trunk/Source/WebCore/platform/text/TextCodecUTF16.cpp 2020-09-03 14:56:24 UTC (rev 266516) +++ trunk/Source/WebCore/platform/text/TextCodecUTF16.cpp 2020-09-03 15:29:57 UTC (rev 266517) @@ -76,8 +76,8 @@ processBytesShared = [&] (UChar codeUnit) { if (m_leadSurrogate) { auto leadSurrogate = *std::exchange(m_leadSurrogate, WTF::nullopt); -if (codeUnit >= 0xDC00 && codeUnit <= 0xDFFF) { -result.appendCharacter(0x1 + ((leadSurrogate - 0xD800) << 10) + codeUnit - 0xDC00); +if (U16_IS_TRAIL(codeUnit)) { +result.appendCharacter(U16_GET_SUPPLEMENTARY(leadSurrogate, codeUnit)); return; } sawError = true; @@ -85,11 +85,11 @@ processBytesShared(codeUnit); return; } -if (codeUnit >= 0xD800 && codeUnit <= 0xDBFF) { +if (U16_IS_LEAD(codeUnit)) { m_leadSurrogate = codeUnit; return; } -if (codeUnit >= 0xDC00 && codeUnit <=0xDFFF) { +if (U16_IS_TRAIL(codeUnit)) { sawError = true; result.append(replacementCharacter); return; ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [266516] trunk
Title: [266516] trunk Revision 266516 Author za...@apple.com Date 2020-09-03 07:56:24 -0700 (Thu, 03 Sep 2020) Log Message [LFC][IFC] Add support for vertical-align: text-bottom https://bugs.webkit.org/show_bug.cgi?id=215538 Reviewed by Antti Koivisto. Source/WebCore: See https://www.w3.org/TR/css-inline-3/#propdef-alignment-baseline (align with the baseline + descent of the parent inline box) Test: fast/layoutformattingcontext/vertical-align-bottom-nested.html * layout/inlineformatting/InlineLineBox.cpp: (WebCore::Layout::LineBox::computeInlineBoxesLogicalHeight): (WebCore::Layout::LineBox::alignInlineBoxesVerticallyAndComputeLineBoxHeight): LayoutTests: * fast/layoutformattingcontext/vertical-align-bottom-nested-expected.html: Added. * fast/layoutformattingcontext/vertical-align-bottom-nested.html: Added. Modified Paths trunk/LayoutTests/ChangeLog trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/layout/inlineformatting/InlineLineBox.cpp Added Paths trunk/LayoutTests/fast/layoutformattingcontext/vertical-align-bottom-nested-expected.html trunk/LayoutTests/fast/layoutformattingcontext/vertical-align-bottom-nested.html Diff Modified: trunk/LayoutTests/ChangeLog (266515 => 266516) --- trunk/LayoutTests/ChangeLog 2020-09-03 14:51:51 UTC (rev 266515) +++ trunk/LayoutTests/ChangeLog 2020-09-03 14:56:24 UTC (rev 266516) @@ -1,5 +1,16 @@ 2020-09-03 Zalan Bujtas +[LFC][IFC] Add support for vertical-align: text-bottom +https://bugs.webkit.org/show_bug.cgi?id=215538 + + +Reviewed by Antti Koivisto. + +* fast/layoutformattingcontext/vertical-align-bottom-nested-expected.html: Added. +* fast/layoutformattingcontext/vertical-align-bottom-nested.html: Added. + +2020-09-03 Zalan Bujtas + [LFC][IFC] Add support for vertical-align: text-top https://bugs.webkit.org/show_bug.cgi?id=215545 Added: trunk/LayoutTests/fast/layoutformattingcontext/vertical-align-bottom-nested-expected.html (0 => 266516) --- trunk/LayoutTests/fast/layoutformattingcontext/vertical-align-bottom-nested-expected.html (rev 0) +++ trunk/LayoutTests/fast/layoutformattingcontext/vertical-align-bottom-nested-expected.html 2020-09-03 14:56:24 UTC (rev 266516) @@ -0,0 +1,7 @@ + + +div { +background-color: green; +} + + Added: trunk/LayoutTests/fast/layoutformattingcontext/vertical-align-bottom-nested.html (0 => 266516) --- trunk/LayoutTests/fast/layoutformattingcontext/vertical-align-bottom-nested.html (rev 0) +++ trunk/LayoutTests/fast/layoutformattingcontext/vertical-align-bottom-nested.html 2020-09-03 14:56:24 UTC (rev 266516) @@ -0,0 +1,16 @@ + + +.container { + background-color: green; + color: green; + font-family: Ahem; +} + + + + + +XXX +XXX + + Modified: trunk/Source/WebCore/ChangeLog (266515 => 266516) --- trunk/Source/WebCore/ChangeLog 2020-09-03 14:51:51 UTC (rev 266515) +++ trunk/Source/WebCore/ChangeLog 2020-09-03 14:56:24 UTC (rev 266516) @@ -1,5 +1,22 @@ 2020-09-03 Zalan Bujtas +[LFC][IFC] Add support for vertical-align: text-bottom +https://bugs.webkit.org/show_bug.cgi?id=215538 + + +Reviewed by Antti Koivisto. + +See https://www.w3.org/TR/css-inline-3/#propdef-alignment-baseline +(align with the baseline + descent of the parent inline box) + +Test: fast/layoutformattingcontext/vertical-align-bottom-nested.html + +* layout/inlineformatting/InlineLineBox.cpp: +(WebCore::Layout::LineBox::computeInlineBoxesLogicalHeight): +(WebCore::Layout::LineBox::alignInlineBoxesVerticallyAndComputeLineBoxHeight): + +2020-09-03 Zalan Bujtas + [LFC][IFC] Add support for vertical-align: text-top https://bugs.webkit.org/show_bug.cgi?id=215545 Modified: trunk/Source/WebCore/layout/inlineformatting/InlineLineBox.cpp (266515 => 266516) --- trunk/Source/WebCore/layout/inlineformatting/InlineLineBox.cpp 2020-09-03 14:51:51 UTC (rev 266515) +++ trunk/Source/WebCore/layout/inlineformatting/InlineLineBox.cpp 2020-09-03 14:56:24 UTC (rev 266516) @@ -275,6 +275,17 @@ parentInlineBox.setLogicalHeight(parentInlineBox.logicalHeight() + belowBaselineOverflow); break; } +case VerticalAlign::TextBottom: { +auto& parentInlineBox = inlineBoxForLayoutBox(layoutBox.parent()); +auto parentTextLogicalBottom = parentInlineBox.baseline() + parentInlineBox.descent().valueOr(InlineLayoutUnit { }); +auto overflow = std::max(0.0f, inlineBox->logicalHeight() - parentTextLogicalBottom); +if (overflow) { +// TextBottom pushes the baseline downward the same way 'bottom' does. +parentInlineBox.setLogicalHeight(parentInlineBox.logicalHeight() + overflow); +parentInlineBox.setBaseline(parentInlineBox.baseline() + overflow); +} +
[webkit-changes] [266515] trunk
Title: [266515] trunk Revision 266515 Author za...@apple.com Date 2020-09-03 07:51:51 -0700 (Thu, 03 Sep 2020) Log Message [LFC][IFC] Add support for vertical-align: text-top https://bugs.webkit.org/show_bug.cgi?id=215545 Reviewed by Antti Koivisto. Source/WebCore: See https://www.w3.org/TR/css-inline-3/#propdef-alignment-baseline (align with the baseline + ascent of the parent inline box) Test: fast/layoutformattingcontext/vertical-align-top-nested.html * layout/inlineformatting/InlineLineBox.cpp: (WebCore::Layout::LineBox::computeInlineBoxesLogicalHeight): (WebCore::Layout::LineBox::alignInlineBoxesVerticallyAndComputeLineBoxHeight): LayoutTests: * fast/layoutformattingcontext/vertical-align-top-nested-expected.html: Added. * fast/layoutformattingcontext/vertical-align-top-nested.html: Added. Modified Paths trunk/LayoutTests/ChangeLog trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/layout/inlineformatting/InlineLineBox.cpp Added Paths trunk/LayoutTests/fast/layoutformattingcontext/vertical-align-top-nested-expected.html trunk/LayoutTests/fast/layoutformattingcontext/vertical-align-top-nested.html Diff Modified: trunk/LayoutTests/ChangeLog (266514 => 266515) --- trunk/LayoutTests/ChangeLog 2020-09-03 14:40:06 UTC (rev 266514) +++ trunk/LayoutTests/ChangeLog 2020-09-03 14:51:51 UTC (rev 266515) @@ -1,3 +1,14 @@ +2020-09-03 Zalan Bujtas + +[LFC][IFC] Add support for vertical-align: text-top +https://bugs.webkit.org/show_bug.cgi?id=215545 + + +Reviewed by Antti Koivisto. + +* fast/layoutformattingcontext/vertical-align-top-nested-expected.html: Added. +* fast/layoutformattingcontext/vertical-align-top-nested.html: Added. + 2020-09-03 Aditya Keerthi [macOS] Add disabled and readonly behaviors to date inputs Added: trunk/LayoutTests/fast/layoutformattingcontext/vertical-align-top-nested-expected.html (0 => 266515) --- trunk/LayoutTests/fast/layoutformattingcontext/vertical-align-top-nested-expected.html (rev 0) +++ trunk/LayoutTests/fast/layoutformattingcontext/vertical-align-top-nested-expected.html 2020-09-03 14:51:51 UTC (rev 266515) @@ -0,0 +1,7 @@ + + +div { +background-color: green; +} + + Added: trunk/LayoutTests/fast/layoutformattingcontext/vertical-align-top-nested.html (0 => 266515) --- trunk/LayoutTests/fast/layoutformattingcontext/vertical-align-top-nested.html (rev 0) +++ trunk/LayoutTests/fast/layoutformattingcontext/vertical-align-top-nested.html 2020-09-03 14:51:51 UTC (rev 266515) @@ -0,0 +1,16 @@ + + +.container { + background-color: green; + color: green; + font-family: Ahem; +} + + + + + +XXX +XXX + + Modified: trunk/Source/WebCore/ChangeLog (266514 => 266515) --- trunk/Source/WebCore/ChangeLog 2020-09-03 14:40:06 UTC (rev 266514) +++ trunk/Source/WebCore/ChangeLog 2020-09-03 14:51:51 UTC (rev 266515) @@ -1,3 +1,20 @@ +2020-09-03 Zalan Bujtas + +[LFC][IFC] Add support for vertical-align: text-top +https://bugs.webkit.org/show_bug.cgi?id=215545 + + +Reviewed by Antti Koivisto. + +See https://www.w3.org/TR/css-inline-3/#propdef-alignment-baseline +(align with the baseline + ascent of the parent inline box) + +Test: fast/layoutformattingcontext/vertical-align-top-nested.html + +* layout/inlineformatting/InlineLineBox.cpp: +(WebCore::Layout::LineBox::computeInlineBoxesLogicalHeight): +(WebCore::Layout::LineBox::alignInlineBoxesVerticallyAndComputeLineBoxHeight): + 2020-09-03 Aditya Keerthi [macOS] Add disabled and readonly behaviors to date inputs Modified: trunk/Source/WebCore/layout/inlineformatting/InlineLineBox.cpp (266514 => 266515) --- trunk/Source/WebCore/layout/inlineformatting/InlineLineBox.cpp 2020-09-03 14:40:06 UTC (rev 266514) +++ trunk/Source/WebCore/layout/inlineformatting/InlineLineBox.cpp 2020-09-03 14:51:51 UTC (rev 266515) @@ -255,6 +255,12 @@ case VerticalAlign::Bottom: // top and bottom alignments only stretch the line box. They don't stretch any of the inline boxes, not even the root inline box. break; +case VerticalAlign::TextTop: { +auto& parentInlineBox = inlineBoxForLayoutBox(layoutBox.parent()); +auto parentTextLogicalTop = parentInlineBox.baseline() - parentInlineBox.layoutBox().style().fontMetrics().ascent(); +parentInlineBox.setLogicalHeight(std::max(parentInlineBox.logicalHeight(), parentTextLogicalTop + inlineBox->logicalHeight())); +break; +} case VerticalAlign::Baseline: { auto& parentInlineBox = inlineBoxForLayoutBox(layoutBox.parent()); auto baselineOverflow = std::max(0.0f, inlineBox->baseline() - parentInlineBox.baseline()); @@ -327,6 +333,12 @@ inlineBoxLogicalTop = parentInlineBox.logicalTop() + parentInlineBox.baseline() - inlineBox->ba
[webkit-changes] [266514] trunk
Title: [266514] trunk Revision 266514 Author akeer...@apple.com Date 2020-09-03 07:40:06 -0700 (Thu, 03 Sep 2020) Log Message [macOS] Add disabled and readonly behaviors to date inputs https://bugs.webkit.org/show_bug.cgi?id=216005 Reviewed by Devin Rousso. Source/WebCore: Added methods to EditControlOwner and FieldOwner so that DateTimeEditElement and DateTimeFieldElement are aware of the readonly and disabled states of their containing element. Disabled inputs should not be focusable and should not respond to any keyboard events. On the other hand, readonly inputs should respond to some keyboard events (such as left arrow, right arrow, and the tab key), but should not be editable. * css/html.css: Updated to add GrayText color for disabled fields. (input[disabled]::-webkit-datetime-edit-year-field,): * html/BaseChooserOnlyDateAndTimeInputType.cpp: (WebCore::BaseChooserOnlyDateAndTimeInputType::isEditControlOwnerDisabled const): (WebCore::BaseChooserOnlyDateAndTimeInputType::isEditControlOwnerReadOnly const): * html/BaseChooserOnlyDateAndTimeInputType.h: * html/shadow/DateTimeEditElement.cpp: (WebCore::DateTimeEditElement::isFieldOwnerDisabled const): (WebCore::DateTimeEditElement::isFieldOwnerReadOnly const): * html/shadow/DateTimeEditElement.h: * html/shadow/DateTimeFieldElement.cpp: (WebCore::DateTimeFieldElement::defaultEventHandler): If the owning element is disabled or readonly, elide a call to handleKeyboardEvent, which is implemented by subclasses to achieve editability. (WebCore::DateTimeFieldElement::defaultKeyboardEventHandler): Disabled inputs should not respond to any events. (WebCore::DateTimeFieldElement::isFieldOwnerDisabled const): (WebCore::DateTimeFieldElement::isFieldOwnerReadOnly const): (WebCore::DateTimeFieldElement::isFocusable const): Disabled inputs should not be focusable. * html/shadow/DateTimeFieldElement.h: LayoutTests: Added tests for disabled and readonly date inputs in existing test files. * fast/forms/date/date-editable-components/date-editable-components-focus-and-blur-events-expected.txt: * fast/forms/date/date-editable-components/date-editable-components-focus-and-blur-events.html: * fast/forms/date/date-editable-components/date-editable-components-keyboard-events-expected.txt: * fast/forms/date/date-editable-components/date-editable-components-keyboard-events.html: * fast/forms/date/date-editable-components/date-editable-components-mouse-events-expected.txt: * fast/forms/date/date-editable-components/date-editable-components-mouse-events.html: Modified Paths trunk/LayoutTests/ChangeLog trunk/LayoutTests/fast/forms/date/date-editable-components/date-editable-components-focus-and-blur-events-expected.txt trunk/LayoutTests/fast/forms/date/date-editable-components/date-editable-components-focus-and-blur-events.html trunk/LayoutTests/fast/forms/date/date-editable-components/date-editable-components-keyboard-events-expected.txt trunk/LayoutTests/fast/forms/date/date-editable-components/date-editable-components-keyboard-events.html trunk/LayoutTests/fast/forms/date/date-editable-components/date-editable-components-mouse-events-expected.txt trunk/LayoutTests/fast/forms/date/date-editable-components/date-editable-components-mouse-events.html trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/css/html.css trunk/Source/WebCore/html/BaseChooserOnlyDateAndTimeInputType.cpp trunk/Source/WebCore/html/BaseChooserOnlyDateAndTimeInputType.h trunk/Source/WebCore/html/shadow/DateTimeEditElement.cpp trunk/Source/WebCore/html/shadow/DateTimeEditElement.h trunk/Source/WebCore/html/shadow/DateTimeFieldElement.cpp trunk/Source/WebCore/html/shadow/DateTimeFieldElement.h Diff Modified: trunk/LayoutTests/ChangeLog (266513 => 266514) --- trunk/LayoutTests/ChangeLog 2020-09-03 14:20:25 UTC (rev 266513) +++ trunk/LayoutTests/ChangeLog 2020-09-03 14:40:06 UTC (rev 266514) @@ -1,3 +1,19 @@ +2020-09-03 Aditya Keerthi + +[macOS] Add disabled and readonly behaviors to date inputs +https://bugs.webkit.org/show_bug.cgi?id=216005 + +Reviewed by Devin Rousso. + +Added tests for disabled and readonly date inputs in existing test files. + +* fast/forms/date/date-editable-components/date-editable-components-focus-and-blur-events-expected.txt: +* fast/forms/date/date-editable-components/date-editable-components-focus-and-blur-events.html: +* fast/forms/date/date-editable-components/date-editable-components-keyboard-events-expected.txt: +* fast/forms/date/date-editable-components/date-editable-components-keyboard-events.html: +* fast/forms/date/date-editable-components/date-editable-components-mouse-events-expected.txt: +* fast/forms/date/date-editable-components/date-editable-components-mouse-events.html: + 2020-09-03 Diego Pino Garcia [GTK] Unreviewed test gardening. Mark more convolver related tests as flaky crash. Modified: trunk/LayoutTests/fast/forms/date/date-editable-components/
[webkit-changes] [266513] trunk/Source/WebCore
Title: [266513] trunk/Source/WebCore Revision 266513 Author wenson_hs...@apple.com Date 2020-09-03 07:20:25 -0700 (Thu, 03 Sep 2020) Log Message Make TransformationMatrix::inverse() faster in the case of affine transformation matrices https://bugs.webkit.org/show_bug.cgi?id=216101 Reviewed by Tim Horton. The Multiply subtest of MotionMark places a large number of elements that are all rotated by some angle; when painting these, we currently spend about 7% of the time under `RenderLayer::paintLayerByApplyingTransform` just inverting the transformation matrix (underneath `TransformationMatrix::inverse()`) so that we can map the bounds of the dirty rect through this inverse. `TransformationMatrix::inverse()` currently has a fast path for identity and translation matrices that avoids having to fall back to the generalized 4-by-4 matrix inverse equation; this generalized algorithm works by dividing the entire adjoint matrix by the determinant, a process that involves nearly 1000 floating point additions and multiplications. However, in this case, all of the matrices are a combination of translations and rotations, which all result in affine transformations. As such, there's no need to fall back to the generalized algorithm for computing the inverse; instead, we can bail early with simpler strategy that only requires 15 floating point additions and multiplications. We can also take advantange of the fact that we currently go through most of the entries in the 4x4 matrix to determine whether the matrix is an identity or translation matrix, by introducing a new helper method that returns not only whether the matrix is the identity matrix or translation, but also whether the matrix is affine (by the definition of `TransformationMatrix::isAffine()`). Since most of the entries that need to be 1 or 0 in order for a matrix to be a translation matrix vs. just an affine transformation matrix are the same, this helps avoid some redundant checks in `TransformationMatrix::inverse()`. We also apply a similar optimization to `TransformationMatrix::isInvertible()`, reducing the multiplications and additions from roughly 200 to just 3. I measured this locally to be a (statistically significant) 2% improvement on Multiply. * platform/graphics/transforms/TransformationMatrix.cpp: (WebCore::TransformationMatrix::isInvertible const): (WebCore::TransformationMatrix::inverse const): * platform/graphics/transforms/TransformationMatrix.h: (WebCore::TransformationMatrix::type const): Modified Paths trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/platform/graphics/transforms/TransformationMatrix.cpp trunk/Source/WebCore/platform/graphics/transforms/TransformationMatrix.h Diff Modified: trunk/Source/WebCore/ChangeLog (266512 => 266513) --- trunk/Source/WebCore/ChangeLog 2020-09-03 14:19:37 UTC (rev 266512) +++ trunk/Source/WebCore/ChangeLog 2020-09-03 14:20:25 UTC (rev 266513) @@ -1,3 +1,43 @@ +2020-09-03 Wenson Hsieh + +Make TransformationMatrix::inverse() faster in the case of affine transformation matrices +https://bugs.webkit.org/show_bug.cgi?id=216101 + +Reviewed by Tim Horton. + +The Multiply subtest of MotionMark places a large number of elements that are all rotated by some angle; when +painting these, we currently spend about 7% of the time under `RenderLayer::paintLayerByApplyingTransform` just +inverting the transformation matrix (underneath `TransformationMatrix::inverse()`) so that we can map the bounds +of the dirty rect through this inverse. + +`TransformationMatrix::inverse()` currently has a fast path for identity and translation matrices that avoids +having to fall back to the generalized 4-by-4 matrix inverse equation; this generalized algorithm works by +dividing the entire adjoint matrix by the determinant, a process that involves nearly 1000 floating point +additions and multiplications. + +However, in this case, all of the matrices are a combination of translations and rotations, which all result in +affine transformations. As such, there's no need to fall back to the generalized algorithm for computing the +inverse; instead, we can bail early with simpler strategy that only requires 15 floating point additions and +multiplications. + +We can also take advantange of the fact that we currently go through most of the entries in the 4x4 matrix to +determine whether the matrix is an identity or translation matrix, by introducing a new helper method that +returns not only whether the matrix is the identity matrix or translation, but also whether the matrix is affine +(by the definition of `TransformationMatrix::isAffine()`). Since most of the entries that need to be 1 or 0 in +order for a matrix to be a translation matrix vs. just an affine transformation matrix are the same, this helps +avoid some redundant checks in `Tran
[webkit-changes] [266512] trunk/LayoutTests
Title: [266512] trunk/LayoutTests Revision 266512 Author dp...@igalia.com Date 2020-09-03 07:19:37 -0700 (Thu, 03 Sep 2020) Log Message [GTK] Unreviewed test gardening. Mark more convolver related tests as flaky crash. * platform/gtk/TestExpectations: Modified Paths trunk/LayoutTests/ChangeLog trunk/LayoutTests/platform/gtk/TestExpectations Diff Modified: trunk/LayoutTests/ChangeLog (266511 => 266512) --- trunk/LayoutTests/ChangeLog 2020-09-03 13:24:33 UTC (rev 266511) +++ trunk/LayoutTests/ChangeLog 2020-09-03 14:19:37 UTC (rev 266512) @@ -1,3 +1,9 @@ +2020-09-03 Diego Pino Garcia + +[GTK] Unreviewed test gardening. Mark more convolver related tests as flaky crash. + +* platform/gtk/TestExpectations: + 2020-09-03 Youenn Fablet Expose RTCPeerConnection.restartIce Modified: trunk/LayoutTests/platform/gtk/TestExpectations (266511 => 266512) --- trunk/LayoutTests/platform/gtk/TestExpectations 2020-09-03 13:24:33 UTC (rev 266511) +++ trunk/LayoutTests/platform/gtk/TestExpectations 2020-09-03 14:19:37 UTC (rev 266512) @@ -66,8 +66,14 @@ # WebAudio webkit.org/b/216118 imported/w3c/web-platform-tests/webaudio/the-audio-api/the-convolvernode-interface/active-processing.https.html [ Crash Pass ] -webkit.org/b/216118 imported/w3c/web-platform-tests/webaudio/the-audio-api/the-convolvernode-interface/convolver-upmixing-1-channel-response.html [ Crash Pass Failure ] -webkit.org/b/216118 imported/w3c/web-platform-tests/webaudio/the-audio-api/the-convolvernode-interface/realtime-conv.html [ Crash Pass Failure ] +webkit.org/b/216118 imported/w3c/web-platform-tests/webaudio/the-audio-api/the-convolvernode-interface/convolution-mono-mono.html [ Crash Pass ] +webkit.org/b/216118 imported/w3c/web-platform-tests/webaudio/the-audio-api/the-convolvernode-interface/convolver-cascade.html [ Crash Pass ] +webkit.org/b/216118 imported/w3c/web-platform-tests/webaudio/the-audio-api/the-convolvernode-interface/convolver-response-1-chan.html [ Crash Failure Pass ] +webkit.org/b/216118 imported/w3c/web-platform-tests/webaudio/the-audio-api/the-convolvernode-interface/convolver-response-2-chan.html [ Crash Failure Pass ] +webkit.org/b/216118 imported/w3c/web-platform-tests/webaudio/the-audio-api/the-convolvernode-interface/convolver-response-4-chan.html [ Crash Failure Pass ] +webkit.org/b/216118 imported/w3c/web-platform-tests/webaudio/the-audio-api/the-convolvernode-interface/convolver-upmixing-1-channel-response.html [ Crash Failure Pass ] +webkit.org/b/216118 imported/w3c/web-platform-tests/webaudio/the-audio-api/the-convolvernode-interface/ctor-convolver.html [ Crash Pass ] +webkit.org/b/216118 imported/w3c/web-platform-tests/webaudio/the-audio-api/the-convolvernode-interface/realtime-conv.html [ Crash Failure Pass ] #// # End of Triaged Expectations ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [266511] trunk
Title: [266511] trunk Revision 266511 Author you...@apple.com Date 2020-09-03 06:24:33 -0700 (Thu, 03 Sep 2020) Log Message Expose RTCPeerConnection.restartIce https://bugs.webkit.org/show_bug.cgi?id=216072 Reviewed by Darin Adler. LayoutTests/imported/w3c: * web-platform-tests/webrtc/RTCPeerConnection-restartIce.https-expected.txt: * web-platform-tests/webrtc/idlharness.https.window-expected.txt: Source/WebCore: Add plubming code to expose restartIce. Covered by rebased test. * Modules/mediastream/PeerConnectionBackend.h: * Modules/mediastream/RTCPeerConnection.h: * Modules/mediastream/RTCPeerConnection.idl: * Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp: (WebCore::LibWebRTCMediaEndpoint::restartIce): * Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.h: * Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.cpp: (WebCore::LibWebRTCPeerConnectionBackend::restartIce): * Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.h: LayoutTests: * TestExpectations: Modified Paths trunk/LayoutTests/ChangeLog trunk/LayoutTests/TestExpectations trunk/LayoutTests/imported/w3c/ChangeLog trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/RTCPeerConnection-restartIce-onnegotiationneeded.https-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/RTCPeerConnection-restartIce.https-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/idlharness.https.window-expected.txt trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/Modules/mediastream/PeerConnectionBackend.h trunk/Source/WebCore/Modules/mediastream/RTCPeerConnection.h trunk/Source/WebCore/Modules/mediastream/RTCPeerConnection.idl trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.h trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.cpp trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCPeerConnectionBackend.h Diff Modified: trunk/LayoutTests/ChangeLog (266510 => 266511) --- trunk/LayoutTests/ChangeLog 2020-09-03 11:22:19 UTC (rev 266510) +++ trunk/LayoutTests/ChangeLog 2020-09-03 13:24:33 UTC (rev 266511) @@ -1,3 +1,12 @@ +2020-09-03 Youenn Fablet + +Expose RTCPeerConnection.restartIce +https://bugs.webkit.org/show_bug.cgi?id=216072 + +Reviewed by Darin Adler. + +* TestExpectations: + 2020-09-03 Zalan Bujtas [LFC][IFC] Fix nested inline box sizing and positioning Modified: trunk/LayoutTests/TestExpectations (266510 => 266511) --- trunk/LayoutTests/TestExpectations 2020-09-03 11:22:19 UTC (rev 266510) +++ trunk/LayoutTests/TestExpectations 2020-09-03 13:24:33 UTC (rev 266511) @@ -1956,6 +1956,7 @@ imported/w3c/web-platform-tests/webrtc/RTCPeerConnection-iceGatheringState.html [ Pass Failure ] imported/w3c/web-platform-tests/webrtc/RTCPeerConnection-addIceCandidate-timing.https.html [ Pass Failure ] imported/w3c/web-platform-tests/webrtc/protocol/split.https.html [ Pass Failure ] +imported/w3c/web-platform-tests/webrtc/RTCPeerConnection-restartIce-onnegotiationneeded.https.html [ Pass Failure ] # Skip timing out test imported/w3c/web-platform-tests/webrtc/RTCPeerConnection-setRemoteDescription-tracks.https.html [ Skip ] Modified: trunk/LayoutTests/imported/w3c/ChangeLog (266510 => 266511) --- trunk/LayoutTests/imported/w3c/ChangeLog 2020-09-03 11:22:19 UTC (rev 266510) +++ trunk/LayoutTests/imported/w3c/ChangeLog 2020-09-03 13:24:33 UTC (rev 266511) @@ -1,5 +1,15 @@ 2020-09-03 Youenn Fablet +Expose RTCPeerConnection.restartIce +https://bugs.webkit.org/show_bug.cgi?id=216072 + +Reviewed by Darin Adler. + +* web-platform-tests/webrtc/RTCPeerConnection-restartIce.https-expected.txt: +* web-platform-tests/webrtc/idlharness.https.window-expected.txt: + +2020-09-03 Youenn Fablet + calling transceiver setCodecPreferences doesn't change the order of codecs in the offer/answer generated by the browser https://bugs.webkit.org/show_bug.cgi?id=215567 Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/RTCPeerConnection-restartIce-onnegotiationneeded.https-expected.txt (266510 => 266511) --- trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/RTCPeerConnection-restartIce-onnegotiationneeded.https-expected.txt 2020-09-03 11:22:19 UTC (rev 266510) +++ trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/RTCPeerConnection-restartIce-onnegotiationneeded.https-expected.txt 2020-09-03 13:24:33 UTC (rev 266511) @@ -1,3 +1,3 @@ -FAIL Negotiation needed when returning to stable does not fire too early promise_test: Unhandled rejection with value: object "TypeError: pc1.restartIce is not a function. (In 'pc1.restartIce()', 'pc1.restartIce' is undefined)" +PASS Negotiation needed when returning to stable does not fire too early Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/w
[webkit-changes] [266510] trunk
Title: [266510] trunk Revision 266510 Author za...@apple.com Date 2020-09-03 04:22:19 -0700 (Thu, 03 Sep 2020) Log Message Source/WebCore: [LFC][IFC] Add support nested inline box sizing and positioning https://bugs.webkit.org/show_bug.cgi?id=215748 Reviewed by Antti Koivisto. This patch splits the line box construction process into a few distinct steps. 1. Construct the inline boxes as needed. There's always a root inline box. 2. Size them by taking the vertical alignment into account - child inline boxes stretch their parent inline boxes in most cases (depending on the vertical-align property value). 3. Position the inline boxes relative to the line box. Test: fast/layoutformattingcontext/vertical-align-middle-nested.html fast/layoutformattingcontext/vertical-align-middle-simple.html * layout/inlineformatting/InlineLineBox.cpp: (WebCore::Layout::m_inlineFormattingContext): (WebCore::Layout::LineBox::inlineRectForTextRun const): (WebCore::Layout::LineBox::constructInlineBoxes): (WebCore::Layout::LineBox::computeInlineBoxesLogicalHeight): (WebCore::Layout::LineBox::alignInlineBoxesVerticallyAndComputeLineHeight): (WebCore::Layout::LineBox::inlineBoxForLayoutBox const): Deleted. (WebCore::Layout::LineBox::alignVertically): Deleted. * layout/inlineformatting/InlineLineBox.h: (WebCore::Layout::LineBox::InlineBox::setLogicalTop): (WebCore::Layout::LineBox::InlineBox::setLogicalWidth): (WebCore::Layout::LineBox::InlineBox::setLogicalHeight): (WebCore::Layout::LineBox::InlineBox::setBaseline): (WebCore::Layout::LineBox::inlineBoxForLayoutBox const): (WebCore::Layout::LineBox::inlineBoxForLayoutBox): LayoutTests: [LFC][IFC] Fix nested inline box sizing and positioning https://bugs.webkit.org/show_bug.cgi?id=215748 Reviewed by Antti Koivisto. * fast/layoutformattingcontext/vertical-align-middle-nested-expected.html: * fast/layoutformattingcontext/vertical-align-middle-nested.html: * fast/layoutformattingcontext/vertical-align-middle-simple-expected.html: * fast/layoutformattingcontext/vertical-align-middle-simple.html: Modified Paths trunk/LayoutTests/ChangeLog trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/layout/displaytree/DisplayPainter.cpp trunk/Source/WebCore/layout/inlineformatting/InlineLineBox.cpp trunk/Source/WebCore/layout/inlineformatting/InlineLineBox.h Added Paths trunk/LayoutTests/fast/layoutformattingcontext/vertical-align-middle-nested-expected.html trunk/LayoutTests/fast/layoutformattingcontext/vertical-align-middle-nested.html trunk/LayoutTests/fast/layoutformattingcontext/vertical-align-middle-simple-expected.html trunk/LayoutTests/fast/layoutformattingcontext/vertical-align-middle-simple.html Diff Modified: trunk/LayoutTests/ChangeLog (266509 => 266510) --- trunk/LayoutTests/ChangeLog 2020-09-03 10:15:04 UTC (rev 266509) +++ trunk/LayoutTests/ChangeLog 2020-09-03 11:22:19 UTC (rev 266510) @@ -1,3 +1,15 @@ +2020-09-03 Zalan Bujtas + +[LFC][IFC] Fix nested inline box sizing and positioning +https://bugs.webkit.org/show_bug.cgi?id=215748 + +Reviewed by Antti Koivisto. + +* fast/layoutformattingcontext/vertical-align-middle-nested-expected.html: +* fast/layoutformattingcontext/vertical-align-middle-nested.html: +* fast/layoutformattingcontext/vertical-align-middle-simple-expected.html: +* fast/layoutformattingcontext/vertical-align-middle-simple.html: + 2020-09-02 Alex Christensen Rebase Windows test expectations after r266466 Added: trunk/LayoutTests/fast/layoutformattingcontext/vertical-align-middle-nested-expected.html (0 => 266510) --- trunk/LayoutTests/fast/layoutformattingcontext/vertical-align-middle-nested-expected.html (rev 0) +++ trunk/LayoutTests/fast/layoutformattingcontext/vertical-align-middle-nested-expected.html 2020-09-03 11:22:19 UTC (rev 266510) @@ -0,0 +1,7 @@ + + +div { +background-color: green; +} + + Added: trunk/LayoutTests/fast/layoutformattingcontext/vertical-align-middle-nested.html (0 => 266510) --- trunk/LayoutTests/fast/layoutformattingcontext/vertical-align-middle-nested.html (rev 0) +++ trunk/LayoutTests/fast/layoutformattingcontext/vertical-align-middle-nested.html 2020-09-03 11:22:19 UTC (rev 266510) @@ -0,0 +1,20 @@ + + +.container { + background-color: green; + color: green; + font-size: 40px; + font-family: Ahem; +} + +span { + vertical-align: middle; +} + + + + XX + +XX + + Added: trunk/LayoutTests/fast/layoutformattingcontext/vertical-align-middle-simple-expected.html (0 => 266510) --- trunk/LayoutTests/fast/layoutformattingcontext/vertical-align-middle-simple-expected.html (rev 0) +++ trunk/LayoutTests/fast/layoutformattingcontext/vertical-align-middle-simple-expected.html 2020-09-03 11:22:19 UTC (rev 266510) @@ -0,0 +1,9 @@ + + +div { +background-color: green; +} + + + + Added: trunk/LayoutTests/fast/layoutformattingcontext/vertical-align-
[webkit-changes] [266509] trunk/Source/WebCore
Title: [266509] trunk/Source/WebCore Revision 266509 Author za...@apple.com Date 2020-09-03 03:15:04 -0700 (Thu, 03 Sep 2020) Log Message [LFC][IFC] Finalize InlineBox alignment in LineBox https://bugs.webkit.org/show_bug.cgi?id=215410 Reviewed by Antti Koivisto. This patch completes the InlineBox transition. LineBox now has a dedicated root inline box and additional inline boxes as needed. Both horizontal and vertical alignments are performed on the inline boxes as opposed to on the runs. * layout/inlineformatting/InlineFormattingContext.cpp: (WebCore::Layout::InlineFormattingContext::lineLayout): (WebCore::Layout::InlineFormattingContext::constraintsForLine): (WebCore::Layout::InlineFormattingContext::setDisplayBoxesForLine): * layout/inlineformatting/InlineFormattingContext.h: * layout/inlineformatting/InlineFormattingContextQuirks.cpp: (WebCore::Layout::InlineFormattingContext::Quirks::initialLineHeight const): * layout/inlineformatting/InlineLineBox.cpp: (WebCore::Layout::collectHangingContent): (WebCore::Layout::horizontalAlignmentOffset): (WebCore::Layout::halfLeadingMetrics): (WebCore::Layout::LineBox::InlineBox::InlineBox): (WebCore::Layout::LineBox::LineBox): (WebCore::Layout::m_inlineFormattingContext): (WebCore::Layout::LineBox::inlineBoxForLayoutBox const): (WebCore::Layout::LineBox::inlineRectForTextRun const): (WebCore::Layout::LineBox::constructInlineBoxes): (WebCore::Layout::LineBox::alignVertically): (WebCore::Layout::LineBox::rectForRun const): Deleted. (WebCore::Layout::LineBox::alignHorizontally): Deleted. (WebCore::Layout::LineBox::adjustBaselineAndLineHeight): Deleted. (WebCore::Layout::LineBox::collectHangingContent const): Deleted. * layout/inlineformatting/InlineLineBox.h: (WebCore::Layout::LineBox::InlineBox::AscentAndDescent::height const): (WebCore::Layout::LineBox::InlineBox::logicalRect const): (WebCore::Layout::LineBox::InlineBox::logicalTop const): (WebCore::Layout::LineBox::InlineBox::logicalLeft const): (WebCore::Layout::LineBox::InlineBox::logicalWidth const): (WebCore::Layout::LineBox::InlineBox::logicalHeight const): (WebCore::Layout::LineBox::InlineBox::baseline const): (WebCore::Layout::LineBox::InlineBox::descent const): (WebCore::Layout::LineBox::InlineBox::setLogicalTop): (WebCore::Layout::LineBox::InlineBox::setLogicalWidth): (WebCore::Layout::LineBox::InlineBox::isAtomicInlineLevelBox const): (WebCore::Layout::LineBox::InlineBox::setHasStrut): (WebCore::Layout::LineBox::InlineBox::hasStrut const): (WebCore::Layout::LineBox::alignmentBaseline const): (WebCore::Layout::AscentAndDescent::height const): Deleted. (WebCore::Layout::LineBox::ascentAndDescent const): Deleted. (WebCore::Layout::LineBox::setScrollableOverflow): Deleted. (WebCore::Layout::LineBox::InlineBox::InlineBox): Deleted. (WebCore::Layout::LineBox::setLogicalHeightIfGreater): Deleted. (WebCore::Layout::LineBox::setAlignmentBaselineIfGreater): Deleted. (WebCore::Layout::LineBox::setAscentIfGreater): Deleted. (WebCore::Layout::LineBox::setDescentIfGreater): Deleted. (WebCore::Layout::LineBox::halfLeadingMetrics): Deleted. * layout/inlineformatting/InlineLineBuilder.h: (WebCore::Layout::LineBuilder::Run::logicalRight const): Modified Paths trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/layout/displaytree/DisplayInlineRect.h trunk/Source/WebCore/layout/inlineformatting/InlineFormattingContext.cpp trunk/Source/WebCore/layout/inlineformatting/InlineFormattingContext.h trunk/Source/WebCore/layout/inlineformatting/InlineFormattingContextQuirks.cpp trunk/Source/WebCore/layout/inlineformatting/InlineLineBox.cpp trunk/Source/WebCore/layout/inlineformatting/InlineLineBox.h trunk/Source/WebCore/layout/inlineformatting/InlineLineBuilder.cpp trunk/Source/WebCore/layout/inlineformatting/InlineLineBuilder.h Diff Modified: trunk/Source/WebCore/ChangeLog (266508 => 266509) --- trunk/Source/WebCore/ChangeLog 2020-09-03 08:38:50 UTC (rev 266508) +++ trunk/Source/WebCore/ChangeLog 2020-09-03 10:15:04 UTC (rev 266509) @@ -1,3 +1,64 @@ +2020-09-03 Zalan Bujtas + +[LFC][IFC] Finalize InlineBox alignment in LineBox +https://bugs.webkit.org/show_bug.cgi?id=215410 + +Reviewed by Antti Koivisto. + +This patch completes the InlineBox transition. + +LineBox now has a dedicated root inline box and additional inline boxes as needed. +Both horizontal and vertical alignments are performed on the inline boxes as opposed to on the runs. + +* layout/inlineformatting/InlineFormattingContext.cpp: +(WebCore::Layout::InlineFormattingContext::lineLayout): +(WebCore::Layout::InlineFormattingContext::constraintsForLine): +(WebCore::Layout::InlineFormattingContext::setDisplayBoxesForLine): +* layout/inlineformatting/InlineFormattingContext.h: +* layout/inlineformatting/InlineFormattingContextQuirks.cpp: +(WebCore::Layout::InlineFormattingContext::Quirks::initialLineHeight const): +* layout/inlineformattin
[webkit-changes] [266508] trunk
Title: [266508] trunk Revision 266508 Author you...@apple.com Date 2020-09-03 01:38:50 -0700 (Thu, 03 Sep 2020) Log Message calling transceiver setCodecPreferences doesn't change the order of codecs in the offer/answer generated by the browser https://bugs.webkit.org/show_bug.cgi?id=215567 Reviewed by Eric Carlson. LayoutTests/imported/w3c: * web-platform-tests/webrtc/RTCRtpTransceiver-setCodecPreferences-expected.txt: * web-platform-tests/webrtc/RTCRtpTransceiver-setCodecPreferences.html: Source/WebCore: Make sure to serialize sdpFmtp information so that setCodecPreferences succeeds. Also make sure to throw the exception if there is any. Covered by updated imported/w3c/web-platform-tests/webrtc/RTCRtpTransceiver-setCodecPreferences.html. * Modules/mediastream/RTCRtpTransceiver.idl: * platform/mediastream/libwebrtc/LibWebRTCProvider.cpp: (WebCore::toRTCRtpCapabilities): Modified Paths trunk/LayoutTests/imported/w3c/ChangeLog trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/RTCRtpTransceiver-setCodecPreferences-expected.txt trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/RTCRtpTransceiver-setCodecPreferences.html trunk/Source/WebCore/ChangeLog trunk/Source/WebCore/Modules/mediastream/RTCRtpTransceiver.idl trunk/Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCProvider.cpp Diff Modified: trunk/LayoutTests/imported/w3c/ChangeLog (266507 => 266508) --- trunk/LayoutTests/imported/w3c/ChangeLog 2020-09-03 08:07:48 UTC (rev 266507) +++ trunk/LayoutTests/imported/w3c/ChangeLog 2020-09-03 08:38:50 UTC (rev 266508) @@ -1,3 +1,14 @@ +2020-09-03 Youenn Fablet + +calling transceiver setCodecPreferences doesn't change the order of codecs in the offer/answer generated by the browser +https://bugs.webkit.org/show_bug.cgi?id=215567 + + +Reviewed by Eric Carlson. + +* web-platform-tests/webrtc/RTCRtpTransceiver-setCodecPreferences-expected.txt: +* web-platform-tests/webrtc/RTCRtpTransceiver-setCodecPreferences.html: + 2020-09-02 Alex Christensen Remove some unused old expectations files Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/RTCRtpTransceiver-setCodecPreferences-expected.txt (266507 => 266508) --- trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/RTCRtpTransceiver-setCodecPreferences-expected.txt 2020-09-03 08:07:48 UTC (rev 266507) +++ trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/RTCRtpTransceiver-setCodecPreferences-expected.txt 2020-09-03 08:38:50 UTC (rev 266508) @@ -4,13 +4,16 @@ PASS setCodecPreferences() with both sender receiver codecs combined should succeed PASS setCodecPreferences([]) should succeed PASS setCodecPreferences() with reordered codecs should succeed -PASS setCodecPreferences() with only one video codec should succeed -FAIL setCodecPreferences() on audio transceiver with codecs returned from getCapabilities('video') should throw InvalidModificationError assert_throws_dom: function "() => transceiver.setCodecPreferences(capabilities.codecs)" did not throw -FAIL setCodecPreferences() with user defined codec with invalid mimeType should throw InvalidModificationError assert_throws_dom: function "() => transceiver.setCodecPreferences(codecs)" did not throw -FAIL setCodecPreferences() with user defined codec should throw InvalidModificationError assert_throws_dom: function "() => transceiver.setCodecPreferences(codecs)" did not throw -FAIL setCodecPreferences() with user defined codec together with codecs returned from getCapabilities() should throw InvalidModificationError assert_throws_dom: function "() => transceiver.setCodecPreferences(codecs)" did not throw -FAIL setCodecPreferences() with modified codec clock rate should throw InvalidModificationError assert_throws_dom: function "() => transceiver.setCodecPreferences(codecs)" did not throw -FAIL setCodecPreferences() with modified codec channel count should throw InvalidModificationError assert_throws_dom: function "() => transceiver.setCodecPreferences(codecs)" did not throw -FAIL setCodecPreferences() with modified codec parameters should throw InvalidModificationError assert_throws_dom: function "() => transceiver.setCodecPreferences(codecs)" did not throw -FAIL setCodecPreferences() with modified codecs returned from getCapabilities() should throw InvalidModificationError assert_throws_dom: function "() => transceiver.setCodecPreferences(codecs)" did not throw +PASS setCodecPreferences() with only VP8 should succeed +PASS setCodecPreferences() with only H264 should succeed +PASS setCodecPreferences() should allow setting H264 as first codec +PASS setCodecPreferences() should allow setting VP8 as first codec +PASS setCodecPreferences() on audio transceiver with codecs returned from getCapabilities('video') should throw InvalidModificationError +PASS setCodecPreferences() with user defined codec with invalid mimeType should throw InvalidModificationError +PASS setCodecPrefe
[webkit-changes] [266507] trunk/Tools
Title: [266507] trunk/Tools Revision 266507 Author dp...@igalia.com Date 2020-09-03 01:07:48 -0700 (Thu, 03 Sep 2020) Log Message kill-old-processes: Remove stale Apache2 shm segments https://bugs.webkit.org/show_bug.cgi?id=216068 Reviewed by Alexey Proskuryakov. When Apache2 terminates abruptely, it may not free up allocated shared memory segments. When later Apache2 is started again, if its pid matches the pid of orphan shm segments it fails believing there's already an Apache2 instance running. To avoid this situation, after killing Apache2 we check for potential conflicting shm segments and remove them. * BuildSlaveSupport/kill-old-processes: (listAllWebKitPrograms): (removeOrphanShmSegmentsOf): (removeShmSegments): (removeShmSegment): (cmd): (allShmSegments): (main): Modified Paths trunk/Tools/BuildSlaveSupport/kill-old-processes trunk/Tools/ChangeLog Diff Modified: trunk/Tools/BuildSlaveSupport/kill-old-processes (266506 => 266507) --- trunk/Tools/BuildSlaveSupport/kill-old-processes 2020-09-03 07:48:56 UTC (rev 266506) +++ trunk/Tools/BuildSlaveSupport/kill-old-processes 2020-09-03 08:07:48 UTC (rev 266507) @@ -24,6 +24,8 @@ # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. import os, sys +import subprocess +import re def listAllWebKitPrograms(builddir_bin): foundWebKitPrograms = [] @@ -33,7 +35,45 @@ foundWebKitPrograms.append(file) return foundWebKitPrograms +def removeOrphanShmSegmentsOf(task): +pid = futurePidOf(task) +segments = filter(lambda s: s['owner'] == os.environ.get("USER"), allShmSegments()) +segments = filter(lambda s: s['cpid'] == pid, segments) +removeShmSegments(segments) +def removeShmSegments(l): +for each in l: +removeShmSegment(each) + +def removeShmSegment(s): +subprocess.check_call(cmd("ipcrm -m {}".format(s['shmid']))) + +def cmd(string): +return re.split(r'\s+', string) + +def futurePidOf(task): +devnull = open(os.devnull, 'w') +ps = subprocess.Popen(task, stderr=subprocess.STDOUT, stdout=devnull) +pid = ps.pid +ps.wait() +try: +ps.terminate() +except OSError: +pass +return pid + +def allShmSegments(): +ret = [] +output = subprocess.check_output(cmd("ipcs -m -p")) +if len(output) > 0: +lines = output.split("\n") +for line in lines[3:]: +line = line.strip() +if len(line) == 0: continue +shmid, owner, cpid, lpid = re.split(r'\s+', line) +ret.append({'shmid': int(shmid), 'owner': owner, 'cpid': int(cpid), 'lpid': int(lpid)}) +return ret + def main(user=None): tasksToKillWin = [ "cl.exe", @@ -141,6 +181,7 @@ for task in tasksToKill + taskToKillUnix + listAllWebKitPrograms(builddir_bin): os.system("killall -9 -v " + task) os.system("ps aux | grep -P '.+/python .+(run_webkit_tests|run-webkit-tests|mod_pywebsocket)' | grep -v grep | awk '{print $2}' | xargs kill") +removeOrphanShmSegmentsOf("apache2") else: sys.exit() # FIXME: Should we return an exit code based on how the kills went? Modified: trunk/Tools/ChangeLog (266506 => 266507) --- trunk/Tools/ChangeLog 2020-09-03 07:48:56 UTC (rev 266506) +++ trunk/Tools/ChangeLog 2020-09-03 08:07:48 UTC (rev 266507) @@ -1,3 +1,26 @@ +2020-09-03 Diego Pino Garcia + +kill-old-processes: Remove stale Apache2 shm segments +https://bugs.webkit.org/show_bug.cgi?id=216068 + +Reviewed by Alexey Proskuryakov. + +When Apache2 terminates abruptely, it may not free up allocated shared +memory segments. When later Apache2 is started again, if its pid +matches the pid of orphan shm segments it fails believing there's +already an Apache2 instance running. To avoid this situation, after +killing Apache2 we check for potential conflicting shm segments and +remove them. + +* BuildSlaveSupport/kill-old-processes: +(listAllWebKitPrograms): +(removeOrphanShmSegmentsOf): +(removeShmSegments): +(removeShmSegment): +(cmd): +(allShmSegments): +(main): + 2020-09-03 Ryosuke Niwa Static assert the return type of compactMap ___ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes
[webkit-changes] [266506] trunk/Tools
Title: [266506] trunk/Tools Revision 266506 Author rn...@webkit.org Date 2020-09-03 00:48:56 -0700 (Thu, 03 Sep 2020) Log Message Static assert the return type of compactMap https://bugs.webkit.org/show_bug.cgi?id=216119 Reviewed by Darin Adler. Added static_assert for the return types of compactMap in varoius unit tests. (WTF_Vector.CompactMapStaticFunctionReturnOptional): (WTF_Vector.CompactMapStaticFunctionReturnRefPtr): (WTF_Vector.CompactMapStaticFunctionReturnOptionalRef): (WTF_Vector.CompactMapStaticFunctionReturnOptionalRefPtr): (WTF_Vector.CompactMapLambdaReturnOptional): (WTF_Vector.CompactMapLambdaCopyVectorReturnOptionalCountedObject): (WTF_Vector.CompactMapLambdaMoveVectorReturnOptionalCountedObject): (WTF_Vector.CompactMapLambdaReturnRefPtr): (WTF_Vector.CompactMapLambdaReturnRefPtrFromMovedRef): (WTF_Vector.CompactMapLambdaReturnOptionalRefPtr): Modified Paths trunk/Tools/ChangeLog trunk/Tools/TestWebKitAPI/Tests/WTF/Vector.cpp Diff Modified: trunk/Tools/ChangeLog (266505 => 266506) --- trunk/Tools/ChangeLog 2020-09-03 05:51:40 UTC (rev 266505) +++ trunk/Tools/ChangeLog 2020-09-03 07:48:56 UTC (rev 266506) @@ -1,3 +1,23 @@ +2020-09-03 Ryosuke Niwa + +Static assert the return type of compactMap +https://bugs.webkit.org/show_bug.cgi?id=216119 + +Reviewed by Darin Adler. + +Added static_assert for the return types of compactMap in varoius unit tests. + +(WTF_Vector.CompactMapStaticFunctionReturnOptional): +(WTF_Vector.CompactMapStaticFunctionReturnRefPtr): +(WTF_Vector.CompactMapStaticFunctionReturnOptionalRef): +(WTF_Vector.CompactMapStaticFunctionReturnOptionalRefPtr): +(WTF_Vector.CompactMapLambdaReturnOptional): +(WTF_Vector.CompactMapLambdaCopyVectorReturnOptionalCountedObject): +(WTF_Vector.CompactMapLambdaMoveVectorReturnOptionalCountedObject): +(WTF_Vector.CompactMapLambdaReturnRefPtr): +(WTF_Vector.CompactMapLambdaReturnRefPtrFromMovedRef): +(WTF_Vector.CompactMapLambdaReturnOptionalRefPtr): + 2020-09-02 Dean Jackson Update Kimmo's email. Modified: trunk/Tools/TestWebKitAPI/Tests/WTF/Vector.cpp (266505 => 266506) --- trunk/Tools/TestWebKitAPI/Tests/WTF/Vector.cpp 2020-09-03 05:51:40 UTC (rev 266505) +++ trunk/Tools/TestWebKitAPI/Tests/WTF/Vector.cpp 2020-09-03 07:48:56 UTC (rev 266506) @@ -882,6 +882,8 @@ { Vector vector { 1, 2, 3, 4 }; +static_assert(std::is_same>::value, +"WTF::compactMap returns Vector> when the mapped function returns Optional<>"); auto mapped = WTF::compactMap(vector, evenMultipliedByFive); EXPECT_EQ(2U, mapped.size()); @@ -923,7 +925,9 @@ Vector vector { 1, 2, 3, 4 }; RefCountedObject::s_totalRefCount = 0; -Vector> mapped = WTF::compactMap(vector, createRefCountedForOdd); +static_assert(std::is_same>>::value, +"WTF::compactMap returns Vector when the mapped function returns Optional"); +auto mapped = WTF::compactMap(vector, createRefCountedForOdd); EXPECT_EQ(0U, RefCountedObject::s_totalRefCount); EXPECT_EQ(2U, mapped.size()); @@ -943,6 +947,8 @@ Vector vector { 1, 2, 3, 4 }; RefCountedObject::s_totalRefCount = 0; +static_assert(std::is_same>>::value, +"WTF::compactMap returns Vector> when the mapped function returns RefPtr<>"); auto mapped = WTF::compactMap(vector, createRefCountedForEven); EXPECT_EQ(0U, RefCountedObject::s_totalRefCount); @@ -965,7 +971,9 @@ Vector vector { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; RefCountedObject::s_totalRefCount = 0; -Vector> mapped = WTF::compactMap(vector, createRefCountedWhenDivisibleByThree); +static_assert(std::is_same>>::value, +"WTF::compactMap returns Vector> when the mapped function returns Optional>"); +auto mapped = WTF::compactMap(vector, createRefCountedWhenDivisibleByThree); EXPECT_EQ(0U, RefCountedObject::s_totalRefCount); EXPECT_EQ(3U, mapped.size()); @@ -978,11 +986,14 @@ { Vector vector { "a", "b", "hello", "ciao", "world", "webkit" }; -auto mapped = WTF::compactMap(vector, [](const String& value) -> Optional { +auto function = [](const String& value) -> Optional { if (value.length() < 5) return WTF::nullopt; return value.convertToASCIIUppercase(); -}); +}; +static_assert(std::is_same>::value, +"WTF::compactMap returns Vector when the mapped function returns Optional"); +auto mapped = WTF::compactMap(vector, function); EXPECT_EQ(3U, mapped.size()); EXPECT_STREQ("HELLO", mapped[0].ascii().data()); @@ -1022,12 +1033,16 @@ CountedObject::count() = 0; -auto mapped = WTF::compactMap(vector, [](const CountedObject& object) -> Optional { +auto function = [](const CountedObject& object) -> Optional { if (object.value() % 2) return object; return WTF::nullopt; -}); +}; +static_a