Repository navigation
Upgrade to upstream WebKit ce481c4cfedb - #261
Conversation
https://bugs.webkit.org/show_bug.cgi?id=317733 Reviewed by Yusuke Suzuki. When the subject of for-of / for-await-of / array destructuring / yield* / array spread is a constant or other node that does not itself emit expression info (e.g. a null or undefined literal), the get_by_id for [Symbol.iterator] (or the OpSpread) inherited the previous statement's expression range. The resulting TypeError was attributed to the wrong line and the "evaluating '...'" text quoted the previous statement. print("here"); for (const b of null) {} // TypeError: null is not an object (evaluating 'print("here")') // at test.js:1:6 Emit expression info from the enclosing ThrowableExpressionData before each of these ops so the throw is attributed to the iterating construct itself, matching what emitIteratorOpen / emitIteratorNext already do. // TypeError: null is not an object (evaluating 'b of null') // at test.js:2:14 Test: JSTests/stress/iterator-open-expression-info.js * JSTests/stress/catch-rest-parameter.js: (async let): (shouldThrow.async f): (shouldThrow.f): * JSTests/stress/iterator-error-messages-consistent.js: * JSTests/stress/iterator-open-expression-info.js: Added. (shouldBe): (await): * LayoutTests/js/arguments-iterator-expected.txt: * Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp: (JSC::BytecodeGenerator::emitNewArrayWithSpread): (JSC::BytecodeGenerator::emitCall): (JSC::BytecodeGenerator::emitConstructImpl): (JSC::BytecodeGenerator::emitEnumeration): (JSC::BytecodeGenerator::emitGetGenericIterator): (JSC::BytecodeGenerator::emitGetAsyncIterator): * Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp: (JSC::ArrayPatternNode::bindValue const): Canonical link: https://commits.webkit.org/315867@main
https://bugs.webkit.org/show_bug.cgi?id=317877 rdar://180661221 Reviewed by Yusuke Suzuki. Extract the relativeTo endpoint computation (AddZonedDateTime, AddTime + CalendarDateAdd) into computeZonedRelativeEndpoints and computePlainRelativeTarget, and lift the inline blocks for DifferenceZonedDateTimeWithTotal / DifferencePlainDateTimeWithTotal into file-static functions named after their spec abstract ops. Duration.prototype.round and Duration.prototype.total had parallel implementations of the zoned and plain relativeTo paths; they now share one code path and each call site labels its spec steps in place. Move toInternalDurationRecordWith24HourDays and the InternalDuration overload of round to private — both are only used internally. Drop TemporalDuration::regulateISODate; its only external callers (PlainMonthDay/PlainYearMonth.prototype.toPlainDate) now call TemporalCore::regulateISODate directly. Canonical link: https://commits.webkit.org/315868@main
rdar://180378045 https://bugs.webkit.org/show_bug.cgi?id=317770 Reviewed by Jean-Yves Avenard. When splitting a sample during a remove() operation, it's possible to have the start time for the removal range to advance such that it becomes >= the end time, which causes subsequent range iterations to walk off the end of the SampleMap and hit a null dereference when incrementing the end() iterator. Protect against this by adding an additional order validation step before iterating over the discovered range. Because this same pattern exists in TrackBuffer::codedFramesIntervalSize(...) as well, perform the same validation there. Test: media/media-source/media-source-remove-divisible-sample-overlap.html * LayoutTests/media/media-source/media-source-remove-divisible-sample-overlap-expected.txt: Added. * LayoutTests/media/media-source/media-source-remove-divisible-sample-overlap.html: Added. * Source/WebCore/platform/graphics/TrackBuffer.cpp: (WebCore::TrackBuffer::removeCodedFrames): (WebCore::TrackBuffer::codedFramesIntervalSize): Canonical link: https://commits.webkit.org/315869@main
…ode upon failure https://bugs.webkit.org/show_bug.cgi?id=317904 rdar://180688954 Reviewed by Zak Ridouh. Use "set -e" so that the Python script error propagates to the bash script. * Source/WTF/WTF.xcodeproj/project.pbxproj: * Source/WebCore/PAL/PAL.xcodeproj/project.pbxproj: * Source/bmalloc/bmalloc.xcodeproj/project.pbxproj: Canonical link: https://commits.webkit.org/315870@main
https://bugs.webkit.org/show_bug.cgi?id=317764 Reviewed by Anne van Kesteren. This is an import of the latest tests and an update of their expectations. Upstream commit: web-platform-tests/wpt@80b7ba4 * LayoutTests/TestExpectations: * LayoutTests/imported/w3c/resources/resource-files.json: * LayoutTests/imported/w3c/web-platform-tests/lint.ignore: * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/WEB_FEATURES.yml: Added. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/content-encoding.https.html: Added. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/content-encoding.https_pipe=gzip-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/dom-interactive-image-document-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/dom_interactive_image_document-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/dom-interactive-image-document.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/dom_interactive_image_document.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/dom-interactive-media-document-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/dom_interactive_media_document-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/dom-interactive-media-document.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/dom_interactive_media_document.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/idlharness.window-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/idlharness.window.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/supported_navigation_type.any.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-data-uri.html: Added. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-attributes-exist-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_attributes_exist-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-attributes-exist.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_attributes_exist.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-attributes-values-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_attributes_values-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-attributes-values.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_attributes_values.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-document-open-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_document_open-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-document-open.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_document_open.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-document-replaced-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-document-replaced.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_document_replaced.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-frame-removed-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_frame_removed-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-frame-removed.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_frame_removed.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-instance-accessible-from-the-start-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_instance_accessible_from_the_start-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-instance-accessible-from-the-start.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_instance_accessible_from_the_start.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-instance-accessors-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_instance_accessors-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-instance-accessors.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_instance_accessors.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-navigate-iframe-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_navigate_iframe-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-navigate-iframe.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_navigate_iframe.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-navigate-within-document-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_navigate_within_document-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-navigate-within-document.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_navigate_within_document.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-navigation-type-backforward-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_navigation_type_backforward-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-navigation-type-backforward.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_navigation_type_backforward.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-navigation-type-navigate-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_navigation_type_navigate-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-navigation-type-navigate.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_navigation_type_navigate.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-navigation-type-reload-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_navigation_type_reload-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-navigation-type-reload.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_navigation_type_reload.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-redirect-chain-xserver-final-original-origin-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_redirect_chain_xserver_final_original_origin-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-redirect-chain-xserver-final-original-origin.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_redirect_chain_xserver_final_original_origin.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-redirect-chain-xserver-partial-opt-in-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_redirect_chain_xserver_partial_opt_in-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-redirect-chain-xserver-partial-opt-in.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_redirect_chain_xserver_partial_opt_in.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-redirect-none-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_redirect_none-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-redirect-none.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_redirect_none.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-redirect-server-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_redirect_server-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-redirect-server.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_redirect_server.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-redirect-xserver-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_redirect_xserver-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-redirect-xserver.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_redirect_xserver.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-response-end-and-duration-before-during-and-after-load-event-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_response_end_and_duration_before_during_and_after_load_event-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-response-end-and-duration-before-during-and-after-load-event.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_response_end_and_duration_before_during_and_after_load_event.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-timing-persistent-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-timing-persistent.html: Added. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-unique-nav-instances-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_unique_nav_instances-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2-test-unique-nav-instances.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_unique_nav_instances.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nav2_test_document_replaced-expected.txt: Removed. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/navigation-type-post-backforward-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/navigation-type-post-backforward.html: Added. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nested-unload-timing-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/nested-unload-timing.html: Added. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/prefetch-transfer-size-executor-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/prefetch-transfer-size-executor.html: Added. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/prefetch-transfer-size-iframe-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/prefetch-transfer-size-iframe.html: Added. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/redirect-tao-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/redirect-tao.html: Added. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/resources/blank-page-green-with-onunload.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/resources/blank_page_green_with_onunload.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/resources/blank-page-green.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/resources/blank_page_green.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/resources/blank-page-meta-redirect.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/resources/blank_page_meta_redirect.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/resources/blank-page-unload.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/resources/blank_page_unload.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/resources/blank-page-yellow-with-onunload.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/resources/blank_page_yellow_with_onunload.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/resources/blank-page-yellow.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/resources/blank_page_yellow.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/resources/blank_page_prefetch.html: Added. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/resources/blank_page_prefetch.html.headers: Added. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/resources/coop-response-start.html: Added. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/resources/coop-response-start.html.headers: Added. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/resources/iframe-prefetch-transfer-size.html: Added. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/resources/navigation-type-post-back.html: Added. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/resources/navigation_type_post_back.py: Added. (main): * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/resources/performance-attribute-sender.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/resources/performance_attribute_sender.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/resources/redirect-tao-helper.js: Added. (redirect_chain_url): (navigation_entry_after_redirects): * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/resources/redirect-tao.py: Added. (main): * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/resources/respond-slowly.py: Added. (main): * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/resources/respond_slowly.py: Removed. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/resources/w3c-import.log: Added. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/resources/webperftestharness.js: * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/response-start-after-coop-bcg-switch.https-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/response-start-after-coop-bcg-switch.https.html: Added. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/secure-connection-start-non-zero.https-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/secure_connection_start_non_zero.https-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/secure-connection-start-non-zero.https.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/secure_connection_start_non_zero.https.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/supported-navigation-type.window-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/supported_navigation_type.any-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/supported-navigation-type.window.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/supported_navigation_type.any.worker.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/supported-navigation-type.window.js: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/supported_navigation_type.any.js. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/supported_navigation_type.any.worker-expected.txt: Removed. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/supported_navigation_type.window.js: Removed. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-document-onload-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_document_onload-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-document-onload.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_document_onload.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-document-open-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_document_open-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-document-open.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_document_open.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-document-readiness-exist-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_document_readiness_exist-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-document-readiness-exist.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_document_readiness_exist.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-navigate-within-document-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_navigate_within_document-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-navigate-within-document.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_navigate_within_document.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-navigation-attributes-exist-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_navigation_attributes_exist-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-navigation-attributes-exist.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_navigation_attributes_exist.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-navigation-redirectCount-none-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_navigation_redirectCount_none-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-navigation-redirectCount-none.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_navigation_redirectCount_none.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-navigation-type-backforward-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_navigation_type_backforward-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-navigation-type-backforward.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_navigation_type_backforward.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-navigation-type-enums-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_navigation_type_enums-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-navigation-type-enums.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_navigation_type_enums.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-navigation-type-reload-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_navigation_type_reload-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-navigation-type-reload.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_navigation_type_reload.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-no-previous-document-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_no_previous_document-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-no-previous-document.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_no_previous_document.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-performance-attributes-exist-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_performance_attributes_exist-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-performance-attributes-exist-in-object-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_performance_attributes_exist_in_object-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-performance-attributes-exist-in-object.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_performance_attributes_exist_in_object.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-performance-attributes-exist.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_performance_attributes_exist.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-performance-attributes.sub-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_performance_attributes.sub-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-performance-attributes.sub.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_performance_attributes.sub.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-readwrite-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_readwrite-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-readwrite.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_readwrite.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-timing-attributes-dependent-on-document-load-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-timing-attributes-dependent-on-document-load.html: Added. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-timing-attributes-exist-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_timing_attributes_exist-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-timing-attributes-exist.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_timing_attributes_exist.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-timing-attributes-order-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_timing_attributes_order-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-timing-attributes-order.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_timing_attributes_order.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-timing-client-redirect-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_timing_client_redirect-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-timing-client-redirect.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_timing_client_redirect.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-timing-reload-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_timing_reload-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-timing-reload.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_timing_reload.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-timing-server-redirect-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_timing_server_redirect-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-timing-server-redirect.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_timing_server_redirect.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-timing-xserver-redirect-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_timing_xserver_redirect-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-timing-xserver-redirect.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_timing_xserver_redirect.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-unique-performance-objects-expected.txt: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_unique_performance_objects-expected.txt. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test-unique-performance-objects.html: Renamed from LayoutTests/imported/w3c/web-platform-tests/navigation-timing/test_unique_performance_objects.html. * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/unload-event-same-origin-check-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/unload-event-same-origin-check.html: * LayoutTests/imported/w3c/web-platform-tests/navigation-timing/w3c-import.log: Added. * LayoutTests/platform/glib/imported/w3c/web-platform-tests/navigation-timing/nav2-test-redirect-chain-xserver-final-original-origin-expected.txt: Renamed from LayoutTests/platform/glib/imported/w3c/web-platform-tests/navigation-timing/nav2_test_redirect_chain_xserver_final_original_origin-expected.txt. * LayoutTests/platform/glib/imported/w3c/web-platform-tests/navigation-timing/navigation-type-post-backforward-expected.txt: Added. * LayoutTests/platform/ios/TestExpectations: * LayoutTests/platform/mac-wk2/TestExpectations: * LayoutTests/platform/mac/TestExpectations: * LayoutTests/tests-options.json: Canonical link: https://commits.webkit.org/315871@main
…oteFrameViews on change rdar://179748816 https://bugs.webkit.org/show_bug.cgi?id=317152 Reviewed by Megan Gardner and Simon Fraser. ScrollView::viewToContents() and contentsToView() (used by rootViewToContents, which is used in a bunch of places including Intersection Observer) needs to know the current scroll position of a frame. When Site Isolation is enabled, we didn't synchronize the scroll position between processes on scrolling, so it's possible a process thinks a remote frame is at the original scroll position, which it's actually halfway scrolled. Fix this by synchronizing the scroll position when it changes using FrameTreeSyncData. Test: imported/w3c/web-platform-tests/intersection-observer/nested-cross-origin-iframe.sub.html * LayoutTests/ipc/serialized-type-info.html: - Add instruction to fix missing IPC description issue. * LayoutTests/platform/ios-site-isolation/TestExpectations: * LayoutTests/platform/mac-site-isolation/TestExpectations: * Source/WebCore/page/FrameTreeSyncData.in: * Source/WebCore/page/LocalFrameView.cpp: (WebCore::LocalFrameView::scrollPositionChanged): * Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in: * Source/WebKit/UIProcess/WebFrameProxy.cpp: (WebKit::WebFrameProxy::calculateFrameTreeSyncData const): * Source/WebKit/WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::frameTreeSyncDataChangedInAnotherProcess): Canonical link: https://commits.webkit.org/315872@main
https://bugs.webkit.org/show_bug.cgi?id=317906 rdar://180692182 Reviewed by Adrian Taylor. * Source/WebKit/UIProcess/StdlibExtras.swift: (CxxVectorIterator.vec): Deleted. (CxxVectorIterator.pos): Deleted. (CxxVectorIterator.next): Deleted. Canonical link: https://commits.webkit.org/315873@main
https://bugs.webkit.org/show_bug.cgi?id=317841 Reviewed by Alejandro G. Castro. We disabled it because it regressed MotionMark suits test, but it also improved images test a bit, reduced the GPU and CPU load and fixed glitches in android. We'll continue working on improving suits on top of DDL instead of disabling it. * Source/WebCore/platform/graphics/skia/SkiaPaintingEngine.cpp: (WebCore::SkiaPaintingEngine::isDDLEnabled): Canonical link: https://commits.webkit.org/315874@main
https://bugs.webkit.org/show_bug.cgi?id=317595 rdar://180314661 Reviewed by Brandon Stewart and Tim Nguyen. Upstream commit: web-platform-tests/wpt@c3004ab * LayoutTests/TestExpectations: * LayoutTests/imported/w3c/resources/resource-files.json: * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/crashtests/w3c-import.log: * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/input/keyboard-snap-interruption-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/input/keyboard-snap-interruption.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/input/snap-area-overflow-boundary-viewport-covering.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/input/w3c-import.log: * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/overflowing-snap-areas-nested.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/parsing/w3c-import.log: * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/resnap-on-layout-is-immediate-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/resnap-on-layout-is-immediate.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/scroll-initial-target/parsing/w3c-import.log: * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/scroll-initial-target/w3c-import.log: * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/scroll-padding-percentage.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/scroll-snap-stop-002-nested.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/scroll-snap-stop-002.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/scroll-target-004-ref.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/scroll-target-005-ref.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/scroll-target-006-ref.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/scroll-target-align-004-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/scroll-target-align-004.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/scroll-target-align-005-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/scroll-target-align-005.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/scroll-target-align-006-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/scroll-target-align-006.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/snap-after-initial-layout/w3c-import.log: * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/snap-after-relayout/multiple-aligned-targets/common-to-both-axes-supercedes-first-in-tree-order-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/snap-after-relayout/multiple-aligned-targets/nested-supercedes-common-to-both-axes-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/snap-after-relayout/multiple-aligned-targets/nested-supercedes-common-to-both-axes.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/snap-after-relayout/multiple-aligned-targets/prefer-inner-target-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/snap-after-relayout/multiple-aligned-targets/prefer-inner-target.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/snap-after-relayout/multiple-aligned-targets/prefer-snap-target-containing-focused-element-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/snap-after-relayout/multiple-aligned-targets/prefer-snap-target-containing-focused-element.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/snap-after-relayout/multiple-aligned-targets/prefer-targeted-element-both-axes-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/snap-after-relayout/multiple-aligned-targets/prefer-targeted-element-both-axes-iframe.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/snap-after-relayout/multiple-aligned-targets/prefer-targeted-element-both-axes.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/snap-after-relayout/multiple-aligned-targets/resources/common.js: (async scrollToAlignedElements): * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/snap-after-relayout/multiple-aligned-targets/resources/w3c-import.log: * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/snap-after-relayout/multiple-aligned-targets/w3c-import.log: * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/snap-after-relayout/w3c-import.log: * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/snap-after-style-change-respects-scroll-behavior-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/snap-after-style-change-respects-scroll-behavior.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/snap-events/resources/w3c-import.log: * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/snap-events/scrollsnapchange/w3c-import.log: * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/snap-events/scrollsnapchanging/w3c-import.log: * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/snap-events/w3c-import.log: * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/snap-into-covering-area.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/support/scroll-target-align-004-iframe.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/support/w3c-import.log: * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/unreachable-snap-positions-003-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/unreachable-snap-positions-003.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/unreachable-snap-positions-004-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/unreachable-snap-positions-004.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/unrelated-gesture-scroll-during-snap.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/w3c-import.log: * LayoutTests/platform/glib/TestExpectations: * LayoutTests/platform/gtk/imported/w3c/web-platform-tests/css/css-scroll-snap/input/keyboard-snap-interruption-expected.txt: Added. * LayoutTests/platform/ios/TestExpectations: * LayoutTests/platform/wpe/TestExpectations: * LayoutTests/platform/wpe/imported/w3c/web-platform-tests/css/css-scroll-snap/input/keyboard-snap-interruption-expected.txt: Added. Canonical link: https://commits.webkit.org/315875@main
https://bugs.webkit.org/show_bug.cgi?id=317908 rdar://180240279 Reviewed by Abrar Rahman Protyasha. * Source/WebCore/page/LocalFrameView.cpp: (WebCore::LocalFrameView::textFragmentIndicatorTimerFired): Keep a local copy of m_pendingTextFragmentIndicatorRange when calling into plainText(), because plainText() does layout, which can in turn result in m_pendingTextFragmentIndicatorRange being reset, subsequently causing a null deref. Canonical link: https://commits.webkit.org/315876@main
https://bugs.webkit.org/show_bug.cgi?id=317911 Reviewed by Dan Glastonbury. Use downcast<> instead of static_cast<> as recommended by the safer cpp guidelines[1] as it validates the type at runtime. No new tests required. [1] https://github.com/WebKit/WebKit/wiki/Safer-CPP-Guidelines#use-downcast-when-casting-to-a-subclass-type * Source/WebCore/Modules/webxr/XRLayerBacking.h: (WebCore::XRLayerBacking::isWebGLBacking const): * Source/WebCore/Modules/webxr/XRWebGLBinding.cpp: (WebCore::XRWebGLBinding::allocateColorTexturesForLayer): (WebCore::XRWebGLBinding::allocateDepthTexturesForLayer): (WebCore::XRWebGLBinding::allocateColorTexturesForProjectionLayer): (WebCore::XRWebGLBinding::allocateDepthTexturesForProjectionLayer): * Source/WebCore/Modules/webxr/XRWebGLLayerBacking.h: (isType): Canonical link: https://commits.webkit.org/315877@main
… singleton https://bugs.webkit.org/show_bug.cgi?id=317813 rdar://180583975 Reviewed by Rob Buis. Use static NeverDestroyed<>, the idiomatic WebCore pattern for a never-destroyed singleton throughout other code. * Source/WebCore/rendering/svg/legacy/LegacyRenderSVGResource.cpp: (WebCore::LegacyRenderSVGResource::sharedSolidPaintingResource): Canonical link: https://commits.webkit.org/315878@main
https://bugs.webkit.org/show_bug.cgi?id=317909 Reviewed by Adrian Perez de Castro. As explained https://docs.webkit.org/Other/Licensing.html new code should use the BSD license, LGPL is mainly for legacy KHTML code. Somehow we used the LGPL by mistake when creating these files. Igalia is the copyright holder so explicitly granting permission for this change. * Source/WebKit/UIProcess/XR/openxr/OpenXRExtensions.cpp: * Source/WebKit/UIProcess/XR/openxr/OpenXRExtensions.h: * Source/WebKit/UIProcess/XR/openxr/OpenXRHitTestManager.cpp: * Source/WebKit/UIProcess/XR/openxr/OpenXRHitTestManager.h: * Source/WebKit/UIProcess/XR/openxr/OpenXRInput.cpp: * Source/WebKit/UIProcess/XR/openxr/OpenXRInput.h: * Source/WebKit/UIProcess/XR/openxr/OpenXRInputMappings.h: * Source/WebKit/UIProcess/XR/openxr/OpenXRInputSource.cpp: * Source/WebKit/UIProcess/XR/openxr/OpenXRInputSource.h: * Source/WebKit/UIProcess/XR/openxr/OpenXRLayer.cpp: * Source/WebKit/UIProcess/XR/openxr/OpenXRLayer.h: * Source/WebKit/UIProcess/XR/openxr/OpenXRSwapchain.cpp: * Source/WebKit/UIProcess/XR/openxr/OpenXRSwapchain.h: * Source/WebKit/UIProcess/XR/openxr/OpenXRUtils.h: * Source/WebKit/UIProcess/XR/openxr/PlatformXROpenXR.cpp: * Source/WebKit/UIProcess/XR/openxr/PlatformXROpenXR.h: Canonical link: https://commits.webkit.org/315879@main
…geted snap area among multiple aligned snap targets https://bugs.webkit.org/show_bug.cgi?id=317481 rdar://180108825 Reviewed by Simon Fraser. When several snap areas resolve to the same snap offset (an aligned "tie"), the re-snap performed after a layout change must follow the highest-priority box per https://drafts.csswg.org/css-scroll-snap-1/#re-snap: a focused box, then a fragment-targeted (:target) box, then the box first in tree order. WebCore only tracked focused boxes, and only re-chose a target when the tie collapsed to a single box. So a fragment-targeted box was never preferred, and when nothing was focused the choice fell back to an arbitrary hash-set order. Track the document's fragment-targeted element through the snap-offset pipeline, mirroring the existing focused-element handling: - Add SnapOffset::isTarget, populated from Document::cssTarget(), and serialize it so the async scrolling tree observes it as well. - Accumulate isFocused/isTarget across every area that shares an offset (not just the first one added), and point the offset's snapTargetID at the highest-priority box (focused, then targeted, then first added) so re-snapping resolves to it. - During re-snap, when the scroller was snapped to multiple aligned boxes, follow a focused or targeted box to its post-layout offset even if other boxes remain aligned at the old offset. With no such explicit preference, behavior is unchanged: a target is only re-chosen once the tie collapses to a single box. * LayoutTests/platform/mac/TestExpectations: Unskip now passing test * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/snap-after-relayout/multiple-aligned-targets/prefer-targeted-element-expected.txt: Progressions * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/snap-after-relayout/multiple-aligned-targets/prefer-targeted-element-main-frame-expected.txt: Ditto * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/snap-after-relayout/multiple-aligned-targets/prefer-targeted-element-positioned-expected.txt: Ditto * Source/WebCore/page/LocalFrameView.cpp: (WebCore::LocalFrameView::updateSnapOffsets): Pass the fragment-targeted element * Source/WebCore/page/scrolling/ScrollSnapOffsetsInfo.cpp: (WebCore::updateSnapOffsetsForScrollableArea): Accept the targeted element; accumulate isFocused/isTarget and choose the representative snapTargetID, preferring focused over targeted over the first box in tree order. (WebCore::convertOffsetInfo): * Source/WebCore/page/scrolling/ScrollSnapOffsetsInfo.h: (WebCore::operator<<): * Source/WebCore/platform/ScrollSnapAnimatorState.cpp: (WebCore::ScrollSnapAnimatorState::preserveCurrentTargetForAxis): (WebCore::preferredSnapTarget): Return the focused-then-targeted box, if any. (WebCore::chooseBoxToResnapTo): Use preferredSnapTarget before the fallback. (WebCore::ScrollSnapAnimatorState::resnapAfterLayout): Follow a preferred box even while peers remain aligned. * Source/WebCore/rendering/RenderLayerScrollableArea.cpp: (WebCore::RenderLayerScrollableArea::updateSnapOffsets): Pass the fragment-targeted element. * Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in: Canonical link: https://commits.webkit.org/315880@main
https://bugs.webkit.org/show_bug.cgi?id=317835 rdar://180609461 Reviewed by Eric Carlson. VP9 codec isn't available on iOS simulator, we make the preference SWVPDecodersAlwaysEnabled true by default on simulator. Covered by existing tests. * LayoutTests/media/media-video-fullrange-offscreen.html: * LayoutTests/media/media-video-fullrange.html: * LayoutTests/media/media-video-videorange-offscreen.html: * LayoutTests/media/media-video-videorange.html: * LayoutTests/media/media-webm-av1.html: * LayoutTests/media/video-webm-canvas-drawing.html: * LayoutTests/media/video-webm-seek-multi-audio-tracks.html: * LayoutTests/media/vp9.html: * LayoutTests/platform/mac/media/mediacapabilities/vp9-decodingInfo-sw.html: * Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml: Canonical link: https://commits.webkit.org/315881@main
https://bugs.webkit.org/show_bug.cgi?id=317748 rdar://180505090 Reviewed by Dan Glastonbury. Access context attributes through WebGLDefaultFramebuffer instead of GraphicsContextGL. This is work to reduce bugs due to state management in GraphicsContextGL, preparing to move the context default framebuffer implementation (MSAA management, etc.) from GraphicsContextGL into the WebGL layer. Fixes following theoretical bugs: - Theoretically adjusted contextAttributes were not communicated back from GPUP. - The theoretically adjusted stencil attribute wasn't adjusted in WCP side due to copy-paste error: `if (m_attributes.stencil) m_attributes.depth = glAttributes.depth;` * Source/WebCore/html/canvas/WebGLDefaultFramebuffer.cpp: (WebCore::WebGLDefaultFramebuffer::WebGLDefaultFramebuffer): (WebCore::WebGLDefaultFramebuffer::size const): (WebCore::WebGLDefaultFramebuffer::reshape): * Source/WebCore/html/canvas/WebGLDefaultFramebuffer.h: * Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp: (WebCore::WebGLRenderingContextBase::initializeContextState): * Source/WebCore/html/canvas/WebGLRenderingContextBase.h: (WebCore::WebGLRenderingContextBase::attributes const): * Source/WebKit/GPUProcess/graphics/RemoteGraphicsContextGL.cpp: (WebKit::RemoteGraphicsContextGL::workQueueInitialize): * Source/WebKit/GPUProcess/graphics/RemoteGraphicsContextGLInitializationState.h: * Source/WebKit/GPUProcess/graphics/RemoteGraphicsContextGLInitializationState.serialization.in: * Source/WebKit/WebProcess/GPU/graphics/RemoteGraphicsContextGLProxy.cpp: (WebKit::RemoteGraphicsContextGLProxy::initialize): Canonical link: https://commits.webkit.org/315882@main
…s used for glyph cache https://bugs.webkit.org/show_bug.cgi?id=317914 Reviewed by Nikolas Zimmermann. Now that deferred display list is enabled with the skia compositor, we are using more internal skia resources, so it's important to set the limits for skia internal caches depending the device. * Source/WebCore/platform/graphics/PlatformDisplay.h: * Source/WebCore/platform/graphics/skia/PlatformDisplaySkia.cpp: (WebCore::glyphCacheTextureMaximumBytes): (WebCore::initializeMaxResourceCacheBytes): (WebCore::SkiaGLContext::maxResourceCacheBytes const): (WebCore::SkiaGLContext::SkiaGLContext): (WebCore::PlatformDisplay::maxSkiaResourceCacheBytes const): * Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedTileBuffer.cpp: (WebCore::CoordinatedAcceleratedTileBuffer::create): Canonical link: https://commits.webkit.org/315883@main
…system service without UI-process re-derivation at 4 sites https://bugs.webkit.org/show_bug.cgi?id=315534 rdar://176895464 Reviewed by Sihui Liu. Four UI-process IPC handlers accepted an origin/domain field from a DispatchedFrom=WebContent message and forwarded it verbatim to a system service as a per-site authorization key, without comparing it against UI-process-authoritative state. A compromised WebContent process could spoof the origin and have CoreLocation / AppSSO / MarketplaceKit / the geolocation policy decider apply another site's permission decision. This change re-derives each value from UI-process-authoritative state (WebFrameProxy::url() / WebFrameProxy::securityOrigin() / the page's committed main-frame URL) instead of trusting the IPC-supplied field: - SOAuthorizationSession: derive InitiatorOrigin from m_page->mainFrame()->url() for all initiating actions, matching the existing SubFrame override and dropping the read of NavigationActionData::originatingFrameInfoData.securityOrigin. - interceptMarketplaceKitNavigation: derive the referrer/top-origin URL from page.mainFrame()->url() instead of NavigationRequester::topOrigin. - WebPageProxy::requestGeolocationPermissionForFrame: overwrite FrameInfoData::securityOrigin with WebFrameProxy::securityOrigin() (computed UI-side at commit time) before passing it to the embedder, and MESSAGE_CHECK that the frame resolves. The override is only applied when the frame's load URL carries a meaningful host, since some loads (e.g. webarchives loaded from a local file URL) commit a document whose origin is determined by content the UIProcess cannot inspect; in that case the WebContent-supplied origin is left in place. - WebGeolocationManagerProxy::startUpdatingWithProxy: bind the RegistrableDomain (derived UI-side from the page's committed main-frame URL at permission-request time) to the authorization token, and MESSAGE_CHECK that the WebContent-supplied domain in StartUpdating matches the token's bound domain. When the UI-derived domain is empty (same webarchive / opaque-document case as above), the equality check is skipped and the WebContent-supplied domain is accepted, matching the pre-existing behavior for those edge cases. Tests: ipc/forged-geolocation-permission-frame-origin.html Tools/TestWebKitAPI/Tests/WebKitCocoa/SOAuthorizationTests.mm * LayoutTests/ipc/forged-geolocation-permission-frame-origin-expected.txt: Added. * LayoutTests/ipc/forged-geolocation-permission-frame-origin.html: Added. * Source/WebKit/UIProcess/Cocoa/NavigationState.mm: (WebKit::interceptMarketplaceKitNavigation): * Source/WebKit/UIProcess/Cocoa/SOAuthorization/SOAuthorizationSession.mm: (WebKit::SOAuthorizationSession::continueStartAfterDecidePolicy): * Source/WebKit/UIProcess/GeolocationPermissionRequestManagerProxy.cpp: (WebKit::GeolocationPermissionRequestManagerProxy::createRequest): (WebKit::GeolocationPermissionRequestManagerProxy::didReceiveGeolocationPermissionDecision): (WebKit::GeolocationPermissionRequestManagerProxy::registrableDomainForAuthorizationToken const): * Source/WebKit/UIProcess/GeolocationPermissionRequestManagerProxy.h: * Source/WebKit/UIProcess/GeolocationPermissionRequestProxy.cpp: (WebKit::GeolocationPermissionRequestProxy::GeolocationPermissionRequestProxy): * Source/WebKit/UIProcess/GeolocationPermissionRequestProxy.h: (WebKit::GeolocationPermissionRequestProxy::create): * Source/WebKit/UIProcess/WebGeolocationManagerProxy.cpp: (WebKit::WebGeolocationManagerProxy::startUpdatingWithProxy): * Source/WebKit/UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::requestGeolocationPermissionForFrame): * Tools/TestWebKitAPI/Tests/WebKitCocoa/SOAuthorizationTests.mm: (TestWebKitAPI::overrideBeginAuthorizationWithURLAndRecordInitiatorOrigin): (TestWebKitAPI::TEST(SOAuthorizationRedirect, InitiatorOriginIgnoresWebProcessSuppliedSourceFrameOrigin)): Canonical link: https://commits.webkit.org/315884@main
…start method for python 3.14 compatibility https://bugs.webkit.org/show_bug.cgi?id=317863 Reviewed by Carlos Alberto Lopez Perez. Python 3.14 changed multiprocessing default start method from fork to forkserver, where a server process is in charge of forking the new processes out of it. This method breaks the current WebDriver W3C executor, which assumes that the spawned code will inherit the state of the parent, like envvars, etc. This commit reverts back to use the original 'fork' method locally for these workers. Note that we still need the changes from bug317850 with the required bumps for full 3.14 compatibility. * Tools/Scripts/webkitpy/webdriver_tests/webdriver_w3c_executor.py: (WebDriverW3CExecutor.__init__): (WebDriverW3CExecutor.setup): Canonical link: https://commits.webkit.org/315885@main
… IOSurface rdar://164306288 https://bugs.webkit.org/show_bug.cgi?id=317842 Reviewed by Jean-Yves Avenard. Some IOSurfaces that are not readable by CPU will have their base address equal to nullptr. But their base address of plane would not be nullptr since an offset would be added. This breaks SharedVideoFrameInfo::writePixelBuffer which was only testing for the plan address to not be nullptr. We add a check that the base address is nullptr to prevent crashing the GPU process. The web process will then create a black pixel buffer instead in RemoteVideoFrameProxy::pixelBuffer. Covered by added test. * LayoutTests/http/tests/media/fairplay/fps-video-frame-expected.txt: Added. * LayoutTests/http/tests/media/fairplay/fps-video-frame.html: Added. * Source/WebCore/platform/cocoa/SharedVideoFrameInfo.mm: (WebCore::SharedVideoFrameInfo::writePixelBuffer): Canonical link: https://commits.webkit.org/315886@main
…io session active while capturing rdar://174786023 https://bugs.webkit.org/show_bug.cgi?id=317741 Reviewed by Eric Carlson. Microphone capture requires the AudioSession unit to stay active. While for getUserMedia, the WebProcess is ensuring that the AudioSession is active, this is not the case for speech recognition. This can cause issues in case other WebProcess deactivate the AudioSession. To prevent this, we make sure that SpeechRecognitionRealtimeMediaSourceManager sources are tied to the MediaSessionManager, by making each source an AudioCaptureSource. It ensures that the audio session is properly set up whenever capture for speech recgonition starts. We also make sure to deactivate the AudioSession as needed when capture stops. We have to fix a race condition in how RemoteAudioSession is returning whether active or not. When AudioSession is enabled/disabled very quickly, there might be configuration changed messages being received in between. They might change the active state creating flakiness in tests. To prevent this, we only set RemoteAudioSession::m_active in tryToSetActiveInternal and no longer synchronize it when configuration changes. We add a protected setActive in AudioSession, so that RemoteAudioSession can set it back to false when GPU process crashes. We no longer need AudioSession::isActive to be virtual as a small bonus. This test can be flaky in case of rerunning it since navigating away stops the recognition right away but was stopping the capture asynchronously in WebProcess since it needs to go through UIProcess. We add a way for the source created in the WebProcess to register itself to the SpeechRecognition object. This allows to synchronously stop capture when the SpeechRecognition gets stopped. Test: fast/mediastream/audio-session-stays-active-when-removing-session-during-speech-recognition.html * LayoutTests/fast/mediastream/audio-session-stays-active-when-removing-session-during-speech-recognition-expected.txt: Added. * LayoutTests/fast/mediastream/audio-session-stays-active-when-removing-session-during-speech-recognition.html: Added. * LayoutTests/http/tests/webrtc/audioSessionInFrames.html: * LayoutTests/platform/glib/TestExpectations: * Source/WebCore/Modules/mediastream/MediaStreamTrack.cpp: (WebCore::MediaStreamTrack::stopTrack): (WebCore::MediaStreamTrack::trackMutedChanged): * Source/WebCore/Modules/speech/SpeechRecognition.cpp: (WebCore::SpeechRecognition::stop): (WebCore::SpeechRecognition::captureSourceCreated): * Source/WebCore/Modules/speech/SpeechRecognition.h: * Source/WebCore/Modules/speech/SpeechRecognitionConnection.h: (WebCore::SpeechRecognitionConnection::dispatchCaptureSourceCreated): * Source/WebCore/Modules/speech/SpeechRecognitionConnectionClient.h: (WebCore::SpeechRecognitionConnectionClient::captureSourceCreated): * Source/WebCore/platform/audio/AudioSession.cpp: (WebCore::AudioSession::tryToSetActive): (WebCore::AudioSession::setActive): * Source/WebCore/platform/audio/AudioSession.h: * Source/WebCore/platform/audio/MediaSessionManagerInterface.cpp: (WebCore::MediaSessionManagerInterface::audioCaptureSourceStateChanged): * Source/WebCore/platform/audio/MediaSessionManagerInterface.h: * Source/WebKit/GPUProcess/media/RemoteAudioSessionProxy.cpp: (WebKit::RemoteAudioSessionProxy::configuration): * Source/WebKit/GPUProcess/webrtc/UserMediaCaptureManagerProxy.cpp: * Source/WebKit/UIProcess/Media/RemoteMediaSessionManagerProxy.cpp: (WebKit::RemoteMediaSessionManagerProxy::tryToSetActiveInternal): * Source/WebKit/UIProcess/SpeechRecognitionRemoteRealtimeMediaSource.cpp: (WebKit::SpeechRecognitionRemoteRealtimeMediaSource::create): (WebKit::SpeechRecognitionRemoteRealtimeMediaSource::SpeechRecognitionRemoteRealtimeMediaSource): * Source/WebKit/UIProcess/SpeechRecognitionRemoteRealtimeMediaSource.h: (WebKit::SpeechRecognitionRemoteRealtimeMediaSource::clientIdentifier const): * Source/WebKit/UIProcess/SpeechRecognitionRemoteRealtimeMediaSourceManager.cpp: (WebKit::SpeechRecognitionRemoteRealtimeMediaSourceManager::addSource): * Source/WebKit/UIProcess/SpeechRecognitionServer.cpp: (WebKit::SpeechRecognitionServer::handleRequest): * Source/WebKit/UIProcess/SpeechRecognitionServer.h: * Source/WebKit/UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::createRealtimeMediaSourceForSpeechRecognition): * Source/WebKit/UIProcess/WebPageProxy.h: * Source/WebKit/UIProcess/WebProcessProxy.cpp: (WebKit::WebProcessProxy::createSpeechRecognitionServer): * Source/WebKit/WebProcess/GPU/media/RemoteAudioSession.cpp: (WebKit::RemoteAudioSession::gpuProcessConnectionDidClose): (WebKit::RemoteAudioSession::tryToSetActiveInternal): (WebKit::RemoteAudioSession::configurationChanged): * Source/WebKit/WebProcess/GPU/media/RemoteAudioSession.h: * Source/WebKit/WebProcess/GPU/media/RemoteAudioSessionConfiguration.h: * Source/WebKit/WebProcess/GPU/media/RemoteAudioSessionConfiguration.serialization.in: * Source/WebKit/WebProcess/Media/RemoteMediaSessionManager.cpp: (WebKit::RemoteMediaSessionManager::RemoteMediaSessionManager): * Source/WebKit/WebProcess/Speech/SpeechRecognitionRealtimeMediaSourceManager.cpp: (WebKit::SpeechRecognitionRealtimeMediaSourceManager::createSource): (WebKit::SpeechRecognitionRealtimeMediaSourceManager::start): (WebKit::SpeechRecognitionRealtimeMediaSourceManager::stop): * Source/WebKit/WebProcess/Speech/SpeechRecognitionRealtimeMediaSourceManager.h: * Source/WebKit/WebProcess/Speech/SpeechRecognitionRealtimeMediaSourceManager.messages.in: * Source/WebKit/WebProcess/WebCoreSupport/WebSpeechRecognitionConnection.cpp: (WebKit::WebSpeechRecognitionConnection::dispatchCaptureSourceCreated): * Source/WebKit/WebProcess/WebCoreSupport/WebSpeechRecognitionConnection.h: Canonical link: https://commits.webkit.org/315887@main
https://bugs.webkit.org/show_bug.cgi?id=317820 <rdar://problem/180631575> Reviewed by Abrar Rahman Protyasha. <body style="transform: scale(0.75)"> <div style="margin-top: 15.5px; font-size: 17px; text-decoration: underline">underlined text</div> </body> The underline should be one continuous line just below the text. Instead it was rounded up onto the text, and text-decoration-skip-ink then chopped it into pieces around the letters it now overlapped. CoreGraphics y axis points up while WebKit lays out with y pointing down, so any destination that paints into a flipped context (scale 1, -1) has a negative y scale in getCTM(). The snap always rounded toward larger device y, which is down the page (away from the text) only when the context is not flipped; in a flipped context that direction points up, into the text. Round toward increasing local y regardless of the flip: ceil the device y in an unflipped context and floor it in a flipped one, so the line always snaps to the device pixel away from the text. * LayoutTests/fast/text/text-decoration-underline-snapping-expected.html: Added. * LayoutTests/fast/text/text-decoration-underline-snapping.html: Added. * Source/WebCore/platform/graphics/GraphicsContext.cpp: (WebCore::GraphicsContext::computeLineBoundsAndAntialiasingModeForText): Snap the line away from the text whether or not the destination context flips y. Canonical link: https://commits.webkit.org/315888@main
https://bugs.webkit.org/show_bug.cgi?id=317746 rdar://180503395 Reviewed by Dan Glastonbury. Make all limits used in context creation be sent as initialization parameters. This way the initialization does not run extra synchronous queries to GPUP. Works towards avoiding open-ended queries to GPUP. * Source/WebCore/html/canvas/WebGL2RenderingContext.cpp: (WebCore::WebGL2RenderingContext::initializeContextState): * Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp: (WebCore::WebGLRenderingContextBase::initializeContextState): * Source/WebCore/platform/graphics/GraphicsContextGL.h: * Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp: (WebCore::GraphicsContextGLANGLE::maxCombinedTextureImageUnits): (WebCore::GraphicsContextGLANGLE::maxVertexAttribs): (WebCore::GraphicsContextGLANGLE::maxTextureSize): (WebCore::GraphicsContextGLANGLE::maxCubeMapTextureSize): (WebCore::GraphicsContextGLANGLE::maxRenderbufferSize): (WebCore::GraphicsContextGLANGLE::maxViewportDims): (WebCore::GraphicsContextGLANGLE::maxSamples): (WebCore::GraphicsContextGLANGLE::maxTransformFeedbackSeparateAttribs): (WebCore::GraphicsContextGLANGLE::maxUniformBufferBindings): (WebCore::GraphicsContextGLANGLE::uniformBufferOffsetAlignment): (WebCore::GraphicsContextGLANGLE::max3DTextureSize): (WebCore::GraphicsContextGLANGLE::maxArrayTextureLayers): * Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.h: * Source/WebKit/GPUProcess/graphics/RemoteGraphicsContextGL.cpp: (WebKit::RemoteGraphicsContextGL::workQueueInitialize): * Source/WebKit/GPUProcess/graphics/RemoteGraphicsContextGLInitializationState.h: * Source/WebKit/GPUProcess/graphics/RemoteGraphicsContextGLInitializationState.serialization.in: * Source/WebKit/WebProcess/GPU/graphics/RemoteGraphicsContextGLProxy.cpp: (WebKit::RemoteGraphicsContextGLProxy::initialize): * Source/WebKit/WebProcess/GPU/graphics/RemoteGraphicsContextGLProxy.h: Canonical link: https://commits.webkit.org/315889@main
https://bugs.webkit.org/show_bug.cgi?id=317850 Reviewed by Carlos Alberto Lopez Perez. Python 3.14 removed the ast.Str member, which was first marked as deprecated in Python 3.8, breaking packages that still use it, like older pytest versions. This commit bumps pytest and related packages, alongside other packages that failed to install with 3.14 at the current version, to a newer version that suports 3.14. Note: This commit also drops the sqlalchemy-migrate autoinstall for buildbot, as since Buildbot 3.4.0 (Oct 2021) Alembic is used for migrations[1] (And we're running buildbot 4.3.0 nowadays). pytest: 7.2.0 -> 8.4.2 pluggy: 0.13.1 -> 1.5.0 pytest-asyncio: 0.18.3 -> 1.1.1 pytest-timeout: 2.1.0 -> 2.4.0 coverage: 7.6.1 -> 7.10.7 pyfakefs: 5.7.3 -> 5.10.2 pyyaml: 6.0.2 -> 6.0.3 zope-interface: 7.0.1 -> 8.1 (cond. Python >= 3.10) rapidfuzz: 3.4.0 -> 3.14.5 (cond. Python >=3.10) * Tools/Scripts/libraries/webkitcorepy/webkitcorepy/__init__.py: * Tools/Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py: * Tools/Scripts/webkitpy/__init__.py: * Tools/Scripts/webkitpy/autoinstalled/buildbot.py: [1] https://buildbot.readthedocs.io/en/v4.3.0/relnotes/3.x.html#buildbot-3-4-0-2021-10-15 Canonical link: https://commits.webkit.org/315890@main
… digital credentials https://bugs.webkit.org/show_bug.cgi?id=317840 rdar://180618646 Reviewed by Anne van Kesteren. DigitalCredential inherits Credential.type, which the Digital Credentials specification defines (section 8.4) as "digital". WebKit returned "digital-credential", so a page calling navigator.credentials.get({digital}) and reading the resolved credential's type observed the wrong value. Return "digital" to match the spec. The web-platform-test digital-credentials/mdoc/valid-roundtrip.https.html asserts credential.type === "digital". It is currently skipped pending the WebDriver virtual-wallet test infrastructure (bug 306292) and will exercise this fix once that infrastructure lands and the test is enabled. * Source/WebCore/Modules/credentialmanagement/BasicCredential.cpp: (WebCore::BasicCredential::type const): Canonical link: https://commits.webkit.org/315891@main
…traction failure https://bugs.webkit.org/show_bug.cgi?id=317922 Reviewed by Claudio Saavedra. ArgumentCoder<GRefPtr<GTlsCertificate>>::decode() unconditionally reads a vector of cert data as its first field. The encoder, however, fails to write anything if the certificate fails to produce its DER data. This means that the decoder will go out of sync, reading subsequent elements as if they were the certificate, which in turn can cause intermittent crashes afterwards. This is a regression from 278316@main. Before its refactoring, the certificate size was unconditionally written, and when 0 the decoder would handle it appropriately. After the refactoring, empty certificates are skipped, and the 0 size is not communicated. This ensures an empty vector is encoded on the failure path, so that decoder and encoder are kept in sync. No new tests: this would probably require IPC API tests to run for GLib platforms. * Source/WebKit/Shared/glib/ArgumentCodersGLib.cpp: (IPC::ArgumentCoder<GRefPtr<GTlsCertificate>>::encode): Canonical link: https://commits.webkit.org/315892@main
…o Requesting state before setting promise https://bugs.webkit.org/show_bug.cgi?id=309625 rdar://172236892 Reviewed by Anne van Kesteren. Maintain the invariant that the interaction state is 'idle' iff no current promise is set. Set the state and promise as an atomic pair at the top of prepareCredentialRequests (after the idle check), and route error paths through a new rejectTheCredentialRequestWith helper that implements §6.5 "Reject the credential request with": https://w3c-fedid.github.io/digital-credentials/#dfn-reject-the-credential-request-with Covered by existing digital-credentials tests. * Source/WebCore/Modules/identity/CredentialRequestCoordinator.cpp: (WebCore::CredentialRequestCoordinator::setCurrentPromise): (WebCore::CredentialRequestCoordinator::prepareCredentialRequests): (WebCore::CredentialRequestCoordinator::initiateTheCredentialRequest): (WebCore::CredentialRequestCoordinator::rejectTheCredentialRequestWith): (WebCore::CredentialRequestCoordinator::abortTheCredentialRequest): * Source/WebCore/Modules/identity/CredentialRequestCoordinator.h: Canonical link: https://commits.webkit.org/315893@main
https://bugs.webkit.org/show_bug.cgi?id=317930 rdar://180722527 Reviewed by Jonathan Bedard. Attempted build fix. Only changing bmalloc/WTF for now. Will loop back with a more comprehensive fix later. Canonical link: https://commits.webkit.org/315894@main
…not AbortError https://bugs.webkit.org/show_bug.cgi?id=313735 rdar://174895437 Reviewed by Abrar Rahman Protyasha. Reject with NotAllowedError (not AbortError) when the user cancels the credential chooser, per spec 'initiate the credential request' step 3c. AbortError is reserved for AbortSignal-driven cancellation. Test coverage requires mock credential provider (Bug 285651). * Source/WebCore/Modules/identity/CredentialRequestCoordinator.cpp: (WebCore::CredentialRequestCoordinator::processCredentialChooserResponse): Canonical link: https://commits.webkit.org/315895@main
https://bugs.webkit.org/show_bug.cgi?id=317727 rdar://180479954 Unreviewed. Test: Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SiteIsolation.mm * Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCVideoFrameUtilities.h: * Source/WebKit/WebProcess/cocoa/VideoPresentationManager.mm: * Source/WebKitLegacy/mac/DOM/DOMAbstractView.mm: * Source/WebKitLegacy/mac/DOM/DOMElement.mm: * Source/WebKitLegacy/mac/DOM/DOMHTMLAnchorElement.mm: * Source/WebKitLegacy/mac/DOM/DOMHTMLEmbedElement.mm: * Source/WebKitLegacy/mac/DOM/DOMHTMLIFrameElement.mm: * Source/WebKitLegacy/mac/DOM/DOMHTMLMapElement.mm: * Source/WebKitLegacy/mac/DOM/DOMHTMLMetaElement.mm: * Source/WebKitLegacy/mac/DOM/DOMHTMLParamElement.mm: * Source/WebKitLegacy/mac/Misc/WebSharingServicePickerController.mm: * Source/WebKitLegacy/mac/Plugins/WebPluginController.mm: * Source/WebKitLegacy/mac/WebView/WebClipView.mm: * Source/WebKitLegacy/mac/WebView/WebDataSource.mm: * Source/WebKitLegacy/mac/WebView/WebFrame.mm: * Source/WebKitLegacy/mac/WebView/WebFullScreenController.mm: * Source/WebKitLegacy/mac/WebView/WebHTMLView.mm: * Source/WebKitLegacy/mac/WebView/WebImmediateActionController.mm: * Source/WebKitLegacy/mac/WebView/WebPDFView.mm: * Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SiteIsolation.mm: Canonical link: https://commits.webkit.org/315896@main
…Scale, setCurrentTranslate https://bugs.webkit.org/show_bug.cgi?id=318007 rdar://180885531 Reviewed by Brent Fulgham. setCurrentScale and setCurrentTranslate were SVGSVGElement methods in SVG Tiny 1.2. SVG 2 dropped them in favor of the currentScale attribute and the currentTranslate readonly attribute; no engine exposes them as WebIDL methods, so they are undefined on SVGSVGElement.prototype in WebKit, Gecko, and Blink. WebKit retains setCurrentScale() and setCurrentTranslate() as C++ helpers (the latter is used to pan), routed through the attribute setters at the bindings layer rather than bound. Add both to the SVGSVGElement removedMembers list so the historical removals stay covered. * LayoutTests/imported/w3c/web-platform-tests/svg/historical-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/svg/historical.html: Canonical link: https://commits.webkit.org/316099@main
…slate https://bugs.webkit.org/show_bug.cgi?id=318044 rdar://180830216 Reviewed by Brent Fulgham. SVG 2 declares currentTranslate on SVGSVGElement with the WebIDL [SameObject] extended attribute, which requires the getter to return the same object on every access. The existing WPT coverage for this corner of the SVG DOM is reftest-only and visual (svg/struct/reftests/currentScale*); nothing asserts the JS-observable identity requirement svg.currentTranslate === svg.currentTranslate. WebKit already satisfies this: currentTranslate is backed by a stable Ref<SVGPoint> member returned by reference, so the same wrapper is observed on every read. This adds a scripted testharness test that guards that behavior and exposes the cross-engine divergence upstream. The test isolates the readonly check on the attribute value rather than object identity, so an engine that fails [SameObject] still passes the readonly subtest if it honors readonly. No WebKit code change is required. * LayoutTests/imported/w3c/web-platform-tests/svg/struct/SVGSVGElement-currentTranslate-SameObject-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/svg/struct/SVGSVGElement-currentTranslate-SameObject.html: Added. Canonical link: https://commits.webkit.org/316100@main
https://bugs.webkit.org/show_bug.cgi?id=318060 rdar://180852743 Reviewed by Brent Fulgham. The SVG 2 IDL applies the WebIDL [SameObject] extended attribute to ~80 readonly attributes * every SVGAnimated* wrapper (x, y, width, cx, transform, gradientUnits, href, …), * their baseVal/animVal sub-objects, * the live lists (points, requiredExtensions, systemLanguage), * viewBox, preserveAspectRatio, SVGTransform.matrix, currentTranslate, and relList. [SameObject] requires the getter to return the same object on every access. This adds a WPT test to verify that the rule is respected for all properties, and avoid any regressions in the future. * LayoutTests/imported/w3c/web-platform-tests/svg/types/SameObject-identity-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/svg/types/SameObject-identity.html: Added. Canonical link: https://commits.webkit.org/316101@main
…Version members https://bugs.webkit.org/show_bug.cgi?id=318056 rdar://180838174 Reviewed by Dan Glastonbury. Add { 0 } initializers to both members to match the rest of the struct and guarantee defined values for all default-constructed keys. * Source/WebCore/platform/graphics/FontCascadeCache.h: Canonical link: https://commits.webkit.org/316102@main
https://bugs.webkit.org/show_bug.cgi?id=318178 rdar://180988807 Unreviewed build fix. * Source/WebKit/UIProcess/mac/WKAppKitGestureController.swift: Canonical link: https://commits.webkit.org/316103@main
https://bugs.webkit.org/show_bug.cgi?id=318076 rdar://180872461 Reviewed by Sosuke Suzuki. We no longer use op_try_get_by_id and @tryGetById. Remove them. * JSTests/microbenchmarks/try-get-by-id-basic.js: Removed. * JSTests/microbenchmarks/try-get-by-id-polymorphic.js: Removed. * JSTests/modules/namespace-object-try-get.js: Removed. * JSTests/stress/regress-156992.js: Removed. * JSTests/stress/regress-179619.js: (tryGetByIdText): Deleted. * JSTests/stress/try-get-by-id-poly-proto.js: Removed. * JSTests/stress/try-get-by-id-should-spill-registers-dfg.js: Removed. * JSTests/stress/try-get-by-id.js: Removed. * Source/JavaScriptCore/bytecode/BytecodeIntrinsicRegistry.h: * Source/JavaScriptCore/bytecode/BytecodeList.rb: * Source/JavaScriptCore/bytecode/BytecodeUseDef.cpp: (JSC::computeUsesForBytecodeIndexImpl): (JSC::computeDefsForBytecodeIndexImpl): * Source/JavaScriptCore/bytecode/CodeBlock.cpp: (JSC::CodeBlock::finishCreation): (JSC::CodeBlock::finalizeLLIntInlineCaches): * Source/JavaScriptCore/bytecode/GetByStatus.cpp: (JSC::GetByStatus::computeFromLLInt): * Source/JavaScriptCore/bytecode/Opcode.h: * Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp: (JSC::BytecodeGenerator::emitTryGetById): Deleted. * Source/JavaScriptCore/bytecompiler/BytecodeGenerator.h: * Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp: (JSC::BytecodeIntrinsicNode::emit_intrinsic_tryGetById): Deleted. (JSC::BytecodeIntrinsicNode::emit_intrinsic_tryGetByIdWithWellKnownSymbol): Deleted. * Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp: (JSC::DFG::ByteCodeParser::handleGetById): (JSC::DFG::ByteCodeParser::parseGetById): (JSC::DFG::ByteCodeParser::parseBlock): (JSC::DFG::ByteCodeParser::handleIteratorOpen): (JSC::DFG::ByteCodeParser::handleIteratorNext): * Source/JavaScriptCore/jit/JIT.cpp: (JSC::JIT::privateCompileMainPass): (JSC::JIT::privateCompileSlowCases): * Source/JavaScriptCore/jit/JIT.h: * Source/JavaScriptCore/jit/JITPropertyAccess.cpp: (JSC::JIT::emit_op_try_get_by_id): Deleted. (JSC::JIT::emitSlow_op_try_get_by_id): Deleted. * Source/JavaScriptCore/llint/LLIntSlowPaths.cpp: * Source/JavaScriptCore/llint/LLIntSlowPaths.h: * Source/JavaScriptCore/llint/LowLevelInterpreter32_64.asm: * Source/JavaScriptCore/llint/LowLevelInterpreter64.asm: * Source/JavaScriptCore/lol/LOLJIT.cpp: (JSC::LOL::LOLJIT::privateCompileMainPass): (JSC::LOL::LOLJIT::privateCompileSlowCases): * Source/JavaScriptCore/lol/LOLJIT.h: Canonical link: https://commits.webkit.org/316104@main
https://bugs.webkit.org/show_bug.cgi?id=318079 rdar://180873581 Reviewed by Yijia Huang. If CharacterClass holds m_latin1Table and no m_matches32 / m_ranges32 exist, This is latin1 only CharacterClass. So we can use this table even in Char16 case with 0x100 guard. We also add the code using this table in interpreter too. * Source/JavaScriptCore/yarr/YarrInterpreter.cpp: (JSC::Yarr::Interpreter::testCharacterClass): * Source/JavaScriptCore/yarr/YarrJIT.cpp: Canonical link: https://commits.webkit.org/316105@main
https://bugs.webkit.org/show_bug.cgi?id=318008 Reviewed by Yusuke Suzuki. Every read of RegExp.prototype.flags performs eight generic property gets on the receiver, each landing in a host getter on RegExp.prototype, even when nothing is overridden. Add a fast path that builds the flags string directly from the RegExp's flag bits when the receiver is an unmodified RegExpObject covered by regExpPrimordialPropertiesWatchpointSet. Baseline Patched regexp-prototype-flags-getter 328.2361+-8.0599 ^ 32.6714+-0.8326 ^ definitely 10.0466x faster Tests: JSTests/microbenchmarks/regexp-prototype-flags-getter.js JSTests/stress/regexp-flags-getter-fast-path.js * JSTests/microbenchmarks/regexp-prototype-flags-getter.js: Added. * JSTests/stress/regexp-flags-getter-fast-path.js: Added. (shouldBe): (get global): (PlainSubclass): (OverridingSubclass.prototype.get global): (OverridingSubclass): * Source/JavaScriptCore/runtime/RegExpPrototype.cpp: (JSC::regExpFlagsWatchpointIsValid): (JSC::JSC_DEFINE_HOST_FUNCTION): Canonical link: https://commits.webkit.org/316106@main
<https://bugs.webkit.org/show_bug.cgi?id=313175> <rdar://175164594> Reviewed by Said Abou-Hallawa. `HTMLCanvasElement::getContext()` and `OffscreenCanvas::getContext()` check `m_context` at the top, then call `convert<IDLDictionary<...>>()` on the settings argument. Dictionary conversion invokes JS property getters, which can re-enter `getContext()` on the same canvas and assign `m_context`. The outer call then proceeds to `createContext2d()`/`createContextWebGL()`/ `createContextBitmapRenderer()`, which overwrites `m_context` with a new `unique_ptr`, destroying the inner context while its JS wrapper is still alive. `CanvasRenderingContext` forwards `ref()`/`deref()` to its owning `CanvasBase`, so the wrapper's ref does not keep the context alive; on GC sweep the wrapper's `deref()` reads `m_canvas` from a freed `this`. Re-check `m_context` (and `m_detached` for `OffscreenCanvas`) after dictionary conversion. If a re-entrant call set `m_context`, return the existing context when the type matches and null otherwise, matching the existing early-return semantics. Also upgrade `ASSERT(!m_context)` to `ASSERT_WITH_SECURITY_IMPLICATION(!m_context)` in all four `createContext*()` methods. These asserts guard the same invariant this bug violates -- that `m_context` is assigned at most once -- and a violation is security-relevant. Test: fast/canvas/canvas-getContext-reentrant.html * LayoutTests/fast/canvas/canvas-getContext-reentrant-expected.txt: Add. * LayoutTests/fast/canvas/canvas-getContext-reentrant.html: Add. * Source/WebCore/html/HTMLCanvasElement.cpp: (WebCore::HTMLCanvasElement::getContext): (WebCore::HTMLCanvasElement::createContext2d): (WebCore::HTMLCanvasElement::createContextWebGL): (WebCore::HTMLCanvasElement::createContextBitmapRenderer): (WebCore::HTMLCanvasElement::createContextWebGPU): * Source/WebCore/html/OffscreenCanvas.cpp: (WebCore::OffscreenCanvas::getContext): Originally-landed-as: 305413.763@safari-7624-branch (40941e46f2d4). rdar://180436486 Canonical link: https://commits.webkit.org/316107@main
https://bugs.webkit.org/show_bug.cgi?id=318086 Reviewed by Yusuke Suzuki. FastStringifier bails out whenever the space argument is not undefined, so common pretty-printing calls like JSON.stringify(value, null, 2) always run the general Stringifier, which is several times slower than the fast path on typical config / logging shaped objects. This patch resolves the gap inside FastStringifier and writes the newline plus depth * gap indentation directly into the flat buffer. Numbers and 8-bit string spaces are handled; boxed primitives keep falling back since unwrapping them is observable, and so do 16-bit gap strings since the gap is stored as Latin-1. append() is templatized on HasGap so that the no-space instantiation compiles to the same code as before; a runtime-checked version regressed json-stringify-int32-array by 1.78x. baseline patched json-stringify-int32-array 18.9412+-0.8168 ? 19.1482+-0.7348 ? might be 1.0109x slower json-stringify-many-objects 144.2817+-1.2609 ? 145.7997+-0.7796 ? might be 1.0105x slower json-stringify-empty-array 20.6268+-0.8005 20.2796+-0.3744 might be 1.0171x faster json-stringify-pretty-tab 1128.9899+-15.1355 ^ 274.4653+-3.0505 ^ definitely 4.1134x faster json-stringify-array-replacer 13.6181+-0.1381 ? 13.7487+-0.2907 ? json-stringify-pretty 1191.4510+-7.5572 ^ 301.6980+-4.2533 ^ definitely 3.9492x faster json-stringify-many-objects-to-json 89.9216+-0.4452 ? 90.5576+-1.0200 ? vanilla-todomvc-json-stringify 40.9058+-0.6199 ^ 38.5172+-0.8057 ^ definitely 1.0620x faster Tests: JSTests/microbenchmarks/json-stringify-pretty-tab.js JSTests/microbenchmarks/json-stringify-pretty.js JSTests/stress/json-stringify-space-fast-path.js * JSTests/microbenchmarks/json-stringify-pretty-tab.js: Added. * JSTests/microbenchmarks/json-stringify-pretty.js: Added. * JSTests/stress/json-stringify-space-fast-path.js: Added. (f): (new.Date): (show): (const.space.of.spaces.const.value.of.values.catch): (print.string_appeared_here.slowErr.JSON.stringify): (print): * Source/JavaScriptCore/runtime/JSONObject.cpp: (JSC::gap): (JSC::bufferMode>::setGap): (JSC::bufferMode>::newLineAndIndentSize const): (JSC::bufferMode>::appendNewLineAndIndentUnchecked): (JSC::bufferMode>::append): (JSC::bufferMode>::appendInt32Array): (JSC::bufferMode>::stringify): Canonical link: https://commits.webkit.org/316108@main
…a sibling frameID, producing duplicate frameIDs in the BF tree https://bugs.webkit.org/show_bug.cgi?id=318112 rdar://180926736 Reviewed by Sihui Liu. This is the capture-side root cause behind bug 318015, which only added a defensive guard in the per-frame back/forward walk. Under UseUIProcessForBackForwardItemLoading, when a child frame performs a back/forward navigation, WebPageProxy::frameStateForBackForwardChildFrame looks up the child's stored FrameState in the target back/forward item positionally: it takes the live frame's document-order index (WebFrameProxy::indexInFrameTreeSiblings) and calls WebBackForwardList::findFrameStateInItem, which fetches the BF child via WebBackForwardListFrameItem::childItemAtIndex(index). But the BF item's children are stored in commit/append order (the order in which each iframe recorded its initial history item), which can differ from the live frame tree's document order. When a page has two sibling iframes and the second commits its initial history item before the first (e.g. the second has a script and the first is empty), the BF children end up reversed relative to the live tree. With that ordering mismatch, the positional lookup returns the wrong sibling's FrameState. frameStateForBackForwardChildFrame then sees frameState->frameID != live frame.frameID() and "corrects" it by calling WebBackForwardList::updateFrameIdentifier(storedID -> liveID), which walks all back/forward entries and rewrites the first frame carrying storedID. That rewrites the unaffected sibling's frameID onto the navigated frame's frameID, leaving two sibling frame items with the same frameID in a back/forward entry. The duplicate then makes the per-frame walk dispatch a second GoToBackForwardItem to the same live frame, clobbering the intended navigation -- the flaky timeout that bug 318015 fixed defensively. On Debug it also fires the HistoryItem::addChildItem duplicate-frameID assertion when the WebProcess reconstructs the HistoryItem from the corrupted FrameState. Fix: in findFrameStateInItem, match the child by the live frame's identifier first (childItemForFrameID), and fall back to the positional lookup only when that identifier is absent -- i.e. the stored identifiers no longer match the live frames, which happens after session restore or when a cross-site child frame is recreated (where updateFrameIdentifier then legitimately remaps the regenerated identifier). In the common live case the identifier matches, so the wrong sibling can no longer be selected and updateFrameIdentifier is no longer triggered spuriously. The change is mirrored in the Swift (ENABLE_BACK_FORWARD_LIST_SWIFT) implementation. Because the corruption is fixed at the source, the WebProcess never reconstructs a HistoryItem with a duplicate frameID, so the bug-317799 Debug skip for the overlapping-navigations cluster test is removed; the test passes on Debug with the fix. Covered by existing tests (SiteIsolation.NavigateFrameWithSiblingsBackForward, previously flaky; SiteIsolation.BackNavigationOverCrossSiteIframeWithoutBFCache; and the session-restore back/forward tests that exercise the positional fallback) and by http/wpt/site-isolation/overlapping-navigations-and-traversals/cross-document-traversal-cross-document-traversal.html on Debug. Verified on both the C++ and Swift back/forward list implementations: the duplicate-frameID corruption no longer appears across many iterations (it reproduced roughly one run in ten to twenty-five before), and the Debug assertion fires without the fix and is quiet with it. * LayoutTests/platform/mac-wk2/TestExpectations: Remove the bug-317799 Debug skip. * Source/WebKit/UIProcess/WebBackForwardList.cpp: (WebKit::WebBackForwardList::findFrameStateInItem): * Source/WebKit/UIProcess/WebBackForwardList.h: * Source/WebKit/UIProcess/WebBackForwardList.swift: * Source/WebKit/UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::frameStateForBackForwardChildFrame): Canonical link: https://commits.webkit.org/316109@main
https://bugs.webkit.org/show_bug.cgi?id=318128 rdar://180951143 Reviewed by Abrar Rahman Protyasha. We had some ideas for dictation tests to help increase our overall coverage for this area, but unfortunately they did not land as part of 316049@main since it got merged before I was able to get to it and add the tests. This is just a follow up to help add the discussed tests as well as some additional ones to just reinforce our changes. Also go through a couple of places and adopt RetainPtr where possible. * Tools/TestWebKitAPI/Tests/WebKit/WKWebView/ios/UIWKInteractionViewProtocol.mm: (TestWebKitAPI::TEST(UIWKInteractionViewProtocol, TextInteractionCanBeginInExistingSelection)): (TestWebKitAPI::TEST(UIWKInteractionViewProtocol, ReplaceDictatedTextContainingEmojis)): (TestWebKitAPI::TEST(UIWKInteractionViewProtocol, SuppressSelectionChangesDuringDictation)): (TestWebKitAPI::TEST(UIWKInteractionViewProtocol, ReplaceDictatedTextStartsComposition)): (TestWebKitAPI::TEST(UIWKInteractionViewProtocol, ReplaceDictatedTextContinuesComposition)): Updated this test so that the dictated content is a little longer which may be a bit more representative of actual use. (TestWebKitAPI::TEST(UIWKInteractionViewProtocol, ReplaceDictatedTextClearingEmitsCompositionEnd)): (TestWebKitAPI::TEST(UIWKInteractionViewProtocol, ReplaceDictatedTextReplacesSelectedText)): (TestWebKitAPI::TEST(UIWKInteractionViewProtocol, ReplaceDictatedTextReplacesSelectedPortion)): (TestWebKitAPI::TEST(UIWKInteractionViewProtocol, ReplaceDictatedTextReplacesMultiWordSelection)): Make sure that dictation still occurs as expected if the user already had a selection in different scenarios. (TestWebKitAPI::TEST(UIWKInteractionViewProtocol, ReplaceDictatedTextEmitsCompositionEventSequence)): Make sure that we get full order of composition events as expected with a start event, multiple updates, and a final end event. Previous tests were really only checking a subset of the expected events. (TestWebKitAPI::TEST(UIWKInteractionViewProtocol, ReplaceDictatedTextPreservesSurroundingText)): Simple one just to make sure that we get the text as expected if dictation starts in the middle of some content. (TestWebKitAPI::TEST(UIWKInteractionViewProtocol, ReplaceDictatedTextHandlesShrinkingHypothesis)): It is possible for a subsequent hypothesis to be shorter than the previous one. Canonical link: https://commits.webkit.org/316110@main
…acking::paintIntoLayer https://bugs.webkit.org/show_bug.cgi?id=318153 rdar://180962809 Reviewed by Nikolas Zimmermann and Simon Fraser. paintOneLayer() evaluated `&layer == &m_owningLayer` twice back-to-back: once to conditionally assign svgPaintOrderItemRange, and again to open the block that actually consumes it. The std::optional was declared in the outer scope solely to bridge the two checks. svgPaintOrderItemRange is only read inside the second block (the paintLayerContents() calls), so fold the assignment into that block and scope the variable there. This evaluates the condition once and narrows the variable's lifetime. No change in behavior. * Source/WebCore/rendering/RenderLayerBacking.cpp: (WebCore::RenderLayerBacking::paintIntoLayer): Canonical link: https://commits.webkit.org/316111@main
…een clone and pixelBuffer causes use-after-free rdar://175482151 Reviewed by Jean-Yves Avenard. We add a thread annotation to make sure the conversion callback cannot be modified without the pixel buffer lock. We update VideoFrameLibWebRTC::clone so that it holds the pixel buffer lock to ensure it gets a correct conversion callback. We also copy the pixel buffer with a lock, as it could be null on the cloned video frame if the conversion callback has already been called. Covered by LayoutTests/http/wpt/webcodecs/frame-clone-and-convert.html, which does the following: 1. Create a LibWebRTC VideoFrame. 2. Encode it using VP8 so that the VideoFrame pixelBuffer method is executed in a background queue. 3. In parallel, clone the VideoFrame to exercice the racy code path and encode the cloned frame. * LayoutTests/http/wpt/webcodecs/frame-clone-and-convert-expected.txt: Added. * LayoutTests/http/wpt/webcodecs/frame-clone-and-convert.html: Added. * Source/WebCore/platform/mediastream/libwebrtc/VideoFrameLibWebRTC.cpp: (WebCore::VideoFrameLibWebRTC::clone): * Source/WebCore/platform/mediastream/libwebrtc/VideoFrameLibWebRTC.h: Originally-landed-as: 305413.760@safari-7624-branch (f4c62c374952). rdar://180436627 Canonical link: https://commits.webkit.org/316112@main
https://bugs.webkit.org/show_bug.cgi?id=317938 rdar://180739848 Reviewed by Simon Fraser. Adds two geometry helpers to FloatSize needed for computing corner contour geometry per the CSS Borders 4 spec. normalized() returns a unit vector in the same direction (returning the original unchanged if its length is zero), and perpendicular() returns a 90° counter-clockwise rotation. No new tests needed * Source/WebCore/platform/graphics/FloatSize.h: (WebCore::FloatSize::normalized const): (WebCore::FloatSize::perpendicular const): Canonical link: https://commits.webkit.org/316113@main
https://bugs.webkit.org/show_bug.cgi?id=318169 rdar://170649898 Reviewed by David Kilzer. A search string that folds to an all-ignorable collation key produces a zero-length match at every offset. In WebFoundTextRangeController::findTextRangesForStringMatches() a zero-length match at the start of the main frame becomes a WebFoundTextRange equal to the HashMap empty value. Inserting it into m_cachedFoundRanges trips the HashMap key-validation RELEASE_ASSERT, crashing the Web Content process. To fix this, we stop the search when the match length is zero. An all-ignorable target matches nothing meaningful, so reporting no matches is correct. Tests: editing/find/ios/find-interaction-ignorable-character.html Tools/TestWebKitAPI/Tests/WebKit/WKWebView/FindInPage.mm * LayoutTests/editing/find/ios/find-interaction-ignorable-character-expected.txt: Added. * LayoutTests/editing/find/ios/find-interaction-ignorable-character.html: Added. * LayoutTests/resources/ui-helper.js: (window.UIHelper.findStringMatchesUsingFindInteraction.return.new.Promise): (window.UIHelper.findStringMatchesUsingFindInteraction): * Source/WebCore/editing/CachedMatchFinder.cpp: (WebCore::CachedMatchFinder::performSearch): * Tools/TestRunnerShared/UIScriptContext/Bindings/UIScriptController.idl: * Tools/TestRunnerShared/UIScriptContext/UIScriptController.h: (WTR::UIScriptController::findStringMatchesUsingFindInteraction): * Tools/TestWebKitAPI/Tests/WebKit/WKWebView/FindInPage.mm: (TEST(WebKit, FindInPageIgnorableCharacterDoesNotCrash)): * Tools/WebKitTestRunner/ios/UIScriptControllerIOS.h: * Tools/WebKitTestRunner/ios/UIScriptControllerIOS.mm: (-[WTRTextSearchAggregator initWithCompletionHandler:]): (-[WTRTextSearchAggregator allFoundRanges]): (-[WTRTextSearchAggregator foundRange:forSearchString:inDocument:]): (-[WTRTextSearchAggregator finishedSearching]): (-[WTRTextSearchAggregator invalidateFoundRange:inDocument:]): (-[WTRTextSearchAggregator invalidate]): (WTR::UIScriptControllerIOS::findStringMatchesUsingFindInteraction): Canonical link: https://commits.webkit.org/316114@main
There was a problem hiding this comment.
I didn't find issues, but this is an 803-commit upstream merge with hand-resolved conflicts in WasmCalleeGroup.cpp, WasmStreamingCompiler.cpp, and JSObject.h, plus a known downstream break (Buffer.from / console.table) that needs a coordinated oven-sh/bun change — worth a human sign-off on the conflict resolutions and the merge-commit landing.
Extended reasoning...
Overview
This PR merges upstream WebKit dd8cbf1b9932 into the Bun fork — 803 upstream commits spanning JavaScriptCore (104 commits), WTF (52), bmalloc (10), plus WebCore/WebKit and thousands of test files. The GitHub diff is truncated at 300 files (alphabetically: config files, JSTests, LayoutTests), so the Source/ changes — including the eight conflict resolutions described — are not visible in the API diff at all. The vast majority of the change surface is upstream code that has already gone through WebKit review; the fork-specific surface is the eight conflict resolutions.
Security risks
The merge pulls in upstream JIT, Wasm, and parser changes (e.g. the StreamingCompiler::m_ticket UAF fix, the BBQCallee keepalive rework, Yarr pattern changes), and the three substantive conflict resolutions sit directly in those areas. A mis-merge in WasmCalleeGroup.cpp or WasmStreamingCompiler.cpp could reintroduce a lifetime bug that upstream just fixed, and JSObject.h is on every hot path in the engine. These are exactly the spots where a second pair of eyes is warranted; the rest of the merge inherits upstream's review.
Level of scrutiny
High, but narrowly focused. The right review here is not to re-review 803 upstream commits — it's to (a) eyeball the three substantive conflict resolutions against both parents, (b) confirm the five include-list conflicts are purely additive, (c) verify the USE_BUN_JSC_ADDITIONS / BUN_SKIP_FAILING_ASSERTIONS / async-context fork hooks survived intact, and (d) make sure this lands as a merge commit (the description explicitly asks for this to preserve the upstream parent link, since #251's squash required follow-up ancestry-recording commits).
Other factors
The description is unusually thorough and already flags the cross-repo hazard: upstream removed tryGetById/tryGetByIdWithWellKnownSymbol and the Map/Set iterator intrinsics, which will break Bun's Buffer.from and console.Console#table until the matching oven-sh/bun PR rewrites those builtins. That coordination, the merge-commit requirement, and the JIT/Wasm conflict resolutions all need a human in the loop — well outside what an automated approval should cover. No bugs were flagged by the bug-hunting pass, and the author reports a clean JSCOnly debug build plus a working Bun debug build against this tree.
… dropped Upstream 279137d removed the !defined(BUILDING_WITH_CMAKE) condition from the Darwin platform blocks in BPlatform.h and pas_platform.h, because its new CMake-on-macOS flow (WebKitXcodeSDK.cmake, xcrun, full Cocoa) is now a real Cocoa build. Our macOS artifacts come from a CMake build that targets Darwin from a Linux host (Dockerfile.macos) and compiles no Cocoa .mm sources. With the guard gone, BPLATFORM(COCOA) becomes true, ProcessCheck.h stops providing the inline gigacageEnabledForProcess() stub, and linking bin/jsc fails: ld64.lld: error: undefined symbol: bmalloc::gigacageEnabledForProcess() >>> referenced by Gigacage.cpp:282 pas_platform.h has the identical guard and the same commit removed it; dropping that one would silently flip PAS_PLATFORM(MAC) on for the shipped macOS artifacts too. Restore both, so a CMake build of bmalloc/libpas keeps the same platform identity it has always shipped with.
There was a problem hiding this comment.
I didn't find any bugs, but this is an 803-commit upstream merge with hand-resolved conflicts in JSC (WasmCalleeGroup, WasmStreamingCompiler, JSObject.h) plus a post-merge bmalloc/libpas platform-guard revert — definitely worth a human pass over those eight conflict files and the d3fd819 fixup before landing.
Extended reasoning...
Overview
This PR merges upstream WebKit ce481c4cfedb (803 commits) into the Bun fork. The diff spans 300+ files (truncated at ~500K chars): the bulk is upstream-authored JSTests, LayoutTests, and Source/{JavaScriptCore,WTF,WebCore,bmalloc} changes that already passed upstream review. The fork-specific work is concentrated in 8 hand-resolved JSC conflicts (five trivial include-ordering, three substantive: wasm/WasmCalleeGroup.cpp, wasm/WasmStreamingCompiler.cpp, runtime/JSObject.h) and one post-merge commit d3fd81950ab1 restoring the !defined(BUILDING_WITH_CMAKE) Darwin guards in bmalloc/BPlatform.h and libpas/pas_platform.h.
Security risks
No new auth/crypto/permissions surface introduced by the fork-side resolutions. The upstream payload itself contains the usual mix of WebKit security fixes (UAF crashes, etc.), but those were reviewed upstream. The bmalloc/libpas guard restoration is the most behavior-affecting fork change — it preserves the existing platform identity rather than enabling new Darwin code paths in the cross-built macOS artifacts, which is the conservative choice.
Level of scrutiny
High. Even though the vast majority of lines are mechanically inherited from upstream, the manual conflict resolutions sit in core JSC runtime and Wasm tier-up code, and the description explicitly flags a coordinated breakage in oven-sh/bun (Buffer.from / console.table will abort until that repo's builtins are rewritten). The author also requests a non-default merge strategy (merge commit, not squash). These are exactly the kinds of judgment calls and cross-repo coordination a human maintainer needs to sign off on.
Other factors
The PR description is unusually thorough and the author reports a clean JSCOnly debug build plus a linking Bun debug build. No prior reviews or comments exist on the PR, and the automated bug hunter found nothing. Still, the size, the production-critical paths touched, and the cross-repo landing requirements put this well outside the auto-approval bar.
Preview Builds
|
|
The matching oven-sh/bun bump (plus the built-in JS rewrites the removed bytecode intrinsics require) is oven-sh/bun#33133. Its CI runs against this PR's preview release, Please land this with a merge commit rather than a squash so the upstream parent link survives (see the note at the end of the description), and then bump |
oven-sh/WebKit#261 has landed on main as merge commit 0d9ee56ba4f6, so the preview tag (autobuild-preview-pr-261-d3fd8195) is replaced by the real one. The merge commit's git tree is identical to the preview head d3fd8195's tree, so the autobuild-0d9ee56ba4f6... artifacts are built from the exact same source the preview artifacts were.
Bumps `vendor/WebKit` to upstream `WebKit/WebKit@d81bcc3d833c` (2026-06-30). 887 upstream commits since the last Bun sync point (`b5ba38a21e17`, 2026-06-16); 117 touch `Source/JavaScriptCore`, 54 touch `Source/WTF`, 10 touch `Source/bmalloc`. The fork-side work is split across two merge PRs: - oven-sh/WebKit#261: `b5ba38a21e17` to `ce481c4cfedb`, merged as `0d9ee56ba4f6`. - oven-sh/WebKit#263: `ce481c4cfedb` to `d81bcc3d833c`, based on the fork's current `main`, so it also carries oven-sh/WebKit#257 and oven-sh/WebKit#262, which landed on the fork between the two merges and which fix real Bun bugs (see below). > [!NOTE] > oven-sh/WebKit#263 has landed on `main` as `c9ad5813fd23`, and `WEBKIT_VERSION` now points at that commit's release, `autobuild-c9ad5813fd23bd8b98b0738abc3d037ec716aa92`. Nothing else is pending on the WebKit side. It was landed as a squash rather than a merge commit, but `c9ad5813fd23`'s git tree is byte-identical to the preview head `f652829d78`'s tree (verified: both are `470eee60f5`), so the final artifacts are built from exactly the source all of the verification below ran against. The squash does drop the upstream parent link, so whoever does the next fork upgrade will need a merge-base fixup like the one that followed oven-sh/WebKit#251. Fixes #32793 ## Bun changes required by this upgrade ### From `b5ba38a2 -> ce481c4c`: three builtin rewrites Upstream removed three bytecode intrinsics that Bun's built-in JS modules use (https://bugs.webkit.org/show_bug.cgi?id=318076 and https://bugs.webkit.org/show_bug.cgi?id=318028). Bumping the version without these rewrites aborts on every `Buffer.from()` call: ``` ASSERTION FAILED: Private symbol not found: tryGetByIdWithWellKnownSymbol(value, "toPrimitive"); ``` and on `new console.Console(stream).table(...)` (the global `console.table` is native and was unaffected). - `src/js/builtins/JSBufferConstructor.ts`: `$tryGetByIdWithWellKnownSymbol(value, "toPrimitive")` becomes an ordinary `value[Symbol.toPrimitive]` read, which is exactly what Node's `lib/buffer.js` does. The removed intrinsic never invoked accessors, so this is also a Node-compat improvement: a getter-defined `Symbol.toPrimitive` is now honored. `test/js/node/buffer-from-symbol-to-primitive.test.ts` covers it and fails on the released Bun. - `src/js/builtins/ConsoleObject.ts`: `$isMapIterator` / `$isSetIterator` become `require("node:util/types").isMapIterator / isSetIterator`, which is exactly what Node's `internal/console/constructor.js` does. `test/js/node/console/console-table-iterators.test.ts` is a snapshot test that passes on both the released Bun and this branch, proving the rewrite is behavior-preserving (there was no prior coverage for `Console#table` on a Map/Set iterator). - `src/js/builtins.d.ts`: the declarations for all ten removed intrinsics are deleted so nothing reaches for them again. ### From oven-sh/WebKit#257: `jest` fake-time code must use the new `NaN` sentinel oven-sh/WebKit#257 changed the "no override is active" sentinel on `JSGlobalObject::overridenDateNow` from `-1` to `NaN` (see `JSGlobalObject::jsDateNow()`). Bun's reset paths still wrote `-1`, which the new semantics read as a *live* override frozen at `-1` ms, so `jest.useRealTimers()` and `setSystemTime()` with no argument left `Date.now()` stuck at `1969-12-31T23:59:59.999Z`. `test/js/bun/test/test-timers.test.ts` ("we can go back in time") caught this against a Bun built from the #263 artifact. - `src/runtime/test_runner/timers/FakeTimers.rs`: `CurrentTime::clear` (the `jest.useRealTimers()` path) writes `f64::NAN` instead of `-1.0`. - `src/jsc/bindings/JSMockFunction.cpp`, `JSMock__jsSetSystemTime`: the reset value becomes `PNaN`. The old `>= 0` / `std::isnormal()` gating existed only to serve the `-1` sentinel and silently dropped every pre-epoch and zero override (a bug the #257 review called out); with the `NaN` sentinel every real timestamp is a valid override, so `setSystemTime(-1)` and `setSystemTime(new Date("1960-01-01"))` now work. A new test in `test/js/bun/test/test-timers.test.ts` covers the pre-epoch, zero, `-1`, and no-argument-reset cases and fails on Bun 1.4.0. - Deleted `JSMock__jsUseRealTimers` from `JSMockFunction.cpp`: nothing registers it (`jest.useRealTimers` is the Rust `use_real_timers` in `FakeTimers.rs`), and it was the third place that would have needed the sentinel change. `ce481c4c -> d81bcc3d` itself (the 84 upstream commits) requires nothing: no bytecode intrinsics changed, `JSType.h` did not change, and the only WebCore code-generator change is to a helper Bun does not use. ## Bun bugs fixed by the fork-side commits this carries - oven-sh/WebKit#257: `Date.now()` is tagged `DateNowIntrinsic`, so a hot call site is inlined by the DFG/FTL as a `DateNow` node, and `operationDateNow` returned the wall clock instead of reading `JSGlobalObject::overridenDateNow`. A `setSystemTime()` override therefore silently wore off as soon as a `Date.now()` call site tiered up (#32793). `test/regression/issue/32793.test.ts` spawns the loop from that issue and asserts the override never diverges; on the released Bun it diverges at iteration 99, and it also fails against a build of this branch's previous pin (`0d9ee56ba4f6`, which predates #257), so the test isolates exactly this commit. - oven-sh/WebKit#262: a top-level `import()` whose embedder fetch rejects with a value that is not an `ErrorInstance` (a single-message transpile failure rejects with a `BuildMessage`) poisoned its module registry entry, and every later importer of the same file hung forever. The Bun-side regression test lives in #33149, which also pins a WebKit preview; once this lands, #33149 reduces to its test plus its `scripts/sync-webkit-source.ts` improvement. ## Why the regression tests are spawned fixtures Without the three builtin rewrites, a Bun built against this WebKit aborts on the first `Buffer.from()` call: ``` ASSERTION FAILED: Private symbol not found: tryGetByIdWithWellKnownSymbol(value, "toPrimitive"); ``` `Buffer.from` is fundamental enough that this takes down the `bun test` runner itself, before any test file finishes loading and before the JUnit reporter can write anything. So `buffer-from-symbol-to-primitive.test.ts` and `console-table-iterators.test.ts` live in two small files of their own and spawn a child Bun instead of calling the affected APIs in process: a child abort becomes an ordinary `exitCode`/`stdout` assertion failure, whereas an in-process call takes the parent test runner down with it and reports nothing. Their fail-before is "this branch minus the `src/js/` rewrites", which is a deterministic SIGABRT: ```sh git checkout $(git merge-base HEAD origin/main) -- src/js/ # keep scripts/ (the WEBKIT_VERSION bump) bun bd test test/js/node/buffer-from-symbol-to-primitive.test.ts # => ASSERTION FAILED: Private symbol not found: tryGetByIdWithWellKnownSymbol(...) (SIGABRT) git checkout HEAD -- src/js/ ``` `test/js/bun/test/test-timers.test.ts` is the equivalent fail-before for the sentinel change: with the `src/` diff reverted but the new WebKit kept, both "we can go back in time" and the new `setSystemTime` test fail. `test/regression/issue/32793.test.ts` is different from all of the above: its fix lives entirely in the vendored engine, selected by `scripts/build/deps/webkit.ts` rather than by anything under `src/`. So its before/after is a function of which WebKit artifact is linked, not of the `src/` diff: it fails on the released Bun (1.4.0), fails against this branch built with the previous pin `0d9ee56ba4f6`, and passes against this branch built with the #263 artifact. ## Verification All of the following were run against a debug Bun built from this branch and the `autobuild-preview-pr-263-f652829d` artifact. - The four test files this PR adds or modifies (`test/js/bun/test/test-timers.test.ts`, `test/regression/issue/32793.test.ts`, `test/js/node/buffer-from-symbol-to-primitive.test.ts`, `test/js/node/console/console-table-iterators.test.ts`): 5 tests, all pass. Every one fails in the right "before" state as described above. - Every test file in the repo that exercises `setSystemTime` / `useFakeTimers` / `useRealTimers` / `advanceTimers*` (the blast radius of the sentinel change): `test/js/bun/test/fake-timers/fake-timers.test.ts`, `test/js/bun/test/fake-timers/sinonjs/fake-timers.test.ts`, `test/js/bun/cron/in-process-cron.test.ts`, `test/regression/issue/25869.test.ts`, `test/regression/issue/26284.test.ts`, and the five `test/js/third_party/jsonwebtoken/*.test.js` suites. 249 pass, 1 todo, 0 fail. - One more file turned out to be in that blast radius: `test/js/bun/test/fake-timers/sinonjs/issue-207.test.ts`. The sentinel change makes pre-epoch and negative clock values work, so its three long-`.failing` tests ("should floor negative now values", "should floor negative start times", "should handle ticks on the negative side of the Epoch") started passing, which Bun's runner reports as a failure until the stale marker is removed. `d2309c92c2` removes them; all ten tests in the file pass against this branch. - `test/js/node/buffer.test.js`: 539 pass, 1 pre-existing skip, 0 fail. `test/js/node/console/console.test.ts`: 7 pass. Neither file is modified by this PR. - oven-sh/WebKit#263's preview build produced all 43 platform artifacts with no job failures. ## Upstream changelog <details> <summary><code>ce481c4c</code> -> <code>d81bcc3d</code> (the new hop in this revision)</summary> Memory safety and security: - `TypedArray.from()` out-of-bounds read via resizable `ArrayBuffer` resize/transfer inside the `mapFn` callback - Stale structure bit in `SlowPutArrayStorage` - Do not cache property absence on dictionary structures - Missing `codeBlock->m_lock` in `repatchGetBySlowPathCall` - Insert a write barrier for `MultiPutByOffset` when it can reallocate storage - Unconditionally keep `OMGOSREntryCallee` alive while updating its callsites - Disallow defining private names on WasmGC objects - Size limit on Yarr-generated code Correctness: - DFG spread did not account for `cellButterflyOnlyAtomStringsStructure` - YarrJIT `negativeOffsetIndexedAddress` discarded the adjusted base register - `DFGArgumentsEliminationPhase::removeViaKill` did not reset the node scan index between `InlineCallFrame`s Other: - An `ArrayStorage`-specific `GetByVal` DFG operation - ES2022 private method support in the Web Inspector - WTF: `TinyLRUCache::findIfCached` / `insert` </details> <details> <summary>Security / correctness fixes (<code>b5ba38a2</code> -> <code>ce481c4c</code>)</summary> - Use-after-free after Wasm memory grow via a stale pointer folded by DFGConstantFoldingPhase - Keep `JSWebAssemblyMemory` alive from wasm-originated `JSArrayBuffer`s (UAF) - Use-after-free of `StreamingCompiler::m_ticket` - `BBQCallee` kept alive between callsite collection and repatch (upstreams and extends oven-sh/WebKit#210) - `Array.from(arguments)` fast path bails out past `MAX_STORAGE_VECTOR_LENGTH` - `JSArray::fastFlat` bounds-checked against the maximum legal length - `Array#flat` fast path was dropping prototype-backed holes in nested arrays - `Array.from(map.keys())` fast path was ignoring `Symbol.iterator` overrides - `RegExp#@@split` crash on a huge flags string - `LiteralParser` takes the slow path if the original structure changes - Missing exit-profile bails on some DFG nodes - `IteratorClose` in `forEachInIterable` uses the Map/Set's own realm's iterator structure - YARR: JIT backreference with a non-BMP character was skipping the next match start position - Wasm Memory64: fix parsing of data segment init expressions - Track `customSlotBase` for `CustomAccessorGetter` / `CustomAccessorSetter` - Set `MayStoreHole` appropriately; `"entries"` ArrayIterator emits `ExitOK` before `NewArray` - `poisonedDeadOSRExitValue` made crashier and on by default in debug builds </details> <details> <summary>Language features and spec alignment (<code>b5ba38a2</code> -> <code>ce481c4c</code>)</summary> - BigInt Math proposal implemented - Temporal: spec-alignment passes across `PlainDate`, `PlainTime`, `Duration`, `Instant`, plus a unified `ParseISODateTime` - `Intl.PluralRules` reflects `compactDisplay` in its skeleton and `resolvedOptions()` </details> <details> <summary>Performance (<code>b5ba38a2</code> -> <code>ce481c4c</code>)</summary> JavaScript-visible fast paths: - `JSON.stringify` space/indentation argument handled by `FastStringifier` - Fast path for the `RegExp#flags` getter; cached named-capture `groups` Structure on `RegExp` - Map/Set iterator `next` and `%RegExpStringIteratorPrototype%.next` moved to C++ - int32 fast path in `parseInt` for short decimal strings - `NumericStrings` int cache lookup inlined into DFG/FTL `ToString(Int32)` - `Object#isPrototypeOf` uses the `InstanceOf` DFG node - `Object.freeze` / `seal` / `preventExtensions` no longer allocate `ArrayStorage` for `NonArray` objects - Map/Set `set` + `delete` churn no longer expands then immediately shrinks - Avoided an intermediate `StringImpl` allocation feeding `StringBuilder` into `makeString` - Wasm `intoCharCodeArray` bulk-copies 8-bit strings; unnecessary watchpoints avoided - `DFG::GetByVal` widens to `SpecBytecodeTop` instead of forcing an OSR exit on an empty value profile YARR (the RegExp engine): - `latin1Table` for efficient Char8 filtering, reused for Char16 and the interpreter - `StringList` optimization when captures are unused; atom fast path enabled for unicode patterns JIT compile time (a large batch aimed at DFG/FTL/B3/Air throughput): - Semi-NCA algorithm for `WTF::Dominators`; reverse post-order in `WTF::Liveness` and B3 `ReduceStrength`; `SparseBitVector` in `DFGLivenessAnalysis` - Unified `SSACalculator`; dominance frontiers computed once per graph - `AirFixObviousSpills`, `AirEliminateDeadCode`, `Air::RegLiveness`, and the greedy register allocator all got cheaper - B3 CSE reimplemented without `B3::Variable`; `B3::Value::effects` uses a constant table - `ReduceStrength` avoids fixed-point iteration; `InferSwitch` disabled in B3 for Wasm - Fixup-inserted `RegExp` primordial `TryGetById` chains replaced with a single `CheckStructure` - Parser: create save points only when actually needed - Baseline/LLInt profile `op_unsigned` overflow and report int32 overflow to the DFG </details> <details> <summary>WTF, bmalloc, and the build system (<code>b5ba38a2</code> -> <code>ce481c4c</code>)</summary> - `SaturatedArithmetic.h` and its APIs renamed to `Saturating` (Bun does not use these directly) - Checked arithmetic helpers now require two or more arguments - `OrderedHashTable` load-factor policy aligned with `HashTable` - `JSON::Value::dump` no longer corrupts large string values via `PrintStream` truncation - Structured clone: the remaining terminal JS value tags moved from WebCore into JSC (`CloneSerializerBase.h` / `StructuredCloneTags.h`). Bun keeps its own fork of `SerializedScriptValue.cpp`, so this is additive. - Workaround for a GCC 14+ false `-Wuninitialized` in `Variant`; `[[msvc::no_unique_address]]` used on MSVC - WTF / libpas exception codes changed to `0xbb08` - libpas: per-heap tagging policy rework; `pas_deallocate` split into inline-only and casual variants; PGO applied to WTF/bmalloc - CMake: prefix headers expanded, headermap generation reworked, stale staged headers pruned, and the Darwin platform block in `BPlatform.h` / `pas_platform.h` no longer excludes CMake builds (restored in the fork, see oven-sh/WebKit#261; without it the Linux-to-macOS cross lane fails to link `gigacageEnabledForProcess`) </details>
Bumps `vendor/WebKit` to upstream `WebKit/WebKit@d81bcc3d833c` (2026-06-30). 887 upstream commits since the last Bun sync point (`b5ba38a21e17`, 2026-06-16); 117 touch `Source/JavaScriptCore`, 54 touch `Source/WTF`, 10 touch `Source/bmalloc`. The fork-side work is split across two merge PRs: - oven-sh/WebKit#261: `b5ba38a21e17` to `ce481c4cfedb`, merged as `0d9ee56ba4f6`. - oven-sh/WebKit#263: `ce481c4cfedb` to `d81bcc3d833c`, based on the fork's current `main`, so it also carries oven-sh/WebKit#257 and oven-sh/WebKit#262, which landed on the fork between the two merges and which fix real Bun bugs (see below). > [!NOTE] > oven-sh/WebKit#263 has landed on `main` as `c9ad5813fd23`, and `WEBKIT_VERSION` now points at that commit's release, `autobuild-c9ad5813fd23bd8b98b0738abc3d037ec716aa92`. Nothing else is pending on the WebKit side. It was landed as a squash rather than a merge commit, but `c9ad5813fd23`'s git tree is byte-identical to the preview head `f652829d78`'s tree (verified: both are `470eee60f5`), so the final artifacts are built from exactly the source all of the verification below ran against. The squash does drop the upstream parent link, so whoever does the next fork upgrade will need a merge-base fixup like the one that followed oven-sh/WebKit#251. Fixes #32793 ## Bun changes required by this upgrade ### From `b5ba38a2 -> ce481c4c`: three builtin rewrites Upstream removed three bytecode intrinsics that Bun's built-in JS modules use (https://bugs.webkit.org/show_bug.cgi?id=318076 and https://bugs.webkit.org/show_bug.cgi?id=318028). Bumping the version without these rewrites aborts on every `Buffer.from()` call: ``` ASSERTION FAILED: Private symbol not found: tryGetByIdWithWellKnownSymbol(value, "toPrimitive"); ``` and on `new console.Console(stream).table(...)` (the global `console.table` is native and was unaffected). - `src/js/builtins/JSBufferConstructor.ts`: `$tryGetByIdWithWellKnownSymbol(value, "toPrimitive")` becomes an ordinary `value[Symbol.toPrimitive]` read, which is exactly what Node's `lib/buffer.js` does. The removed intrinsic never invoked accessors, so this is also a Node-compat improvement: a getter-defined `Symbol.toPrimitive` is now honored. `test/js/node/buffer-from-symbol-to-primitive.test.ts` covers it and fails on the released Bun. - `src/js/builtins/ConsoleObject.ts`: `$isMapIterator` / `$isSetIterator` become `require("node:util/types").isMapIterator / isSetIterator`, which is exactly what Node's `internal/console/constructor.js` does. `test/js/node/console/console-table-iterators.test.ts` is a snapshot test that passes on both the released Bun and this branch, proving the rewrite is behavior-preserving (there was no prior coverage for `Console#table` on a Map/Set iterator). - `src/js/builtins.d.ts`: the declarations for all ten removed intrinsics are deleted so nothing reaches for them again. ### From oven-sh/WebKit#257: `jest` fake-time code must use the new `NaN` sentinel oven-sh/WebKit#257 changed the "no override is active" sentinel on `JSGlobalObject::overridenDateNow` from `-1` to `NaN` (see `JSGlobalObject::jsDateNow()`). Bun's reset paths still wrote `-1`, which the new semantics read as a *live* override frozen at `-1` ms, so `jest.useRealTimers()` and `setSystemTime()` with no argument left `Date.now()` stuck at `1969-12-31T23:59:59.999Z`. `test/js/bun/test/test-timers.test.ts` ("we can go back in time") caught this against a Bun built from the #263 artifact. - `src/runtime/test_runner/timers/FakeTimers.rs`: `CurrentTime::clear` (the `jest.useRealTimers()` path) writes `f64::NAN` instead of `-1.0`. - `src/jsc/bindings/JSMockFunction.cpp`, `JSMock__jsSetSystemTime`: the reset value becomes `PNaN`. The old `>= 0` / `std::isnormal()` gating existed only to serve the `-1` sentinel and silently dropped every pre-epoch and zero override (a bug the #257 review called out); with the `NaN` sentinel every real timestamp is a valid override, so `setSystemTime(-1)` and `setSystemTime(new Date("1960-01-01"))` now work. A new test in `test/js/bun/test/test-timers.test.ts` covers the pre-epoch, zero, `-1`, and no-argument-reset cases and fails on Bun 1.4.0. - Deleted `JSMock__jsUseRealTimers` from `JSMockFunction.cpp`: nothing registers it (`jest.useRealTimers` is the Rust `use_real_timers` in `FakeTimers.rs`), and it was the third place that would have needed the sentinel change. `ce481c4c -> d81bcc3d` itself (the 84 upstream commits) requires nothing: no bytecode intrinsics changed, `JSType.h` did not change, and the only WebCore code-generator change is to a helper Bun does not use. ## Bun bugs fixed by the fork-side commits this carries - oven-sh/WebKit#257: `Date.now()` is tagged `DateNowIntrinsic`, so a hot call site is inlined by the DFG/FTL as a `DateNow` node, and `operationDateNow` returned the wall clock instead of reading `JSGlobalObject::overridenDateNow`. A `setSystemTime()` override therefore silently wore off as soon as a `Date.now()` call site tiered up (#32793). `test/regression/issue/32793.test.ts` spawns the loop from that issue and asserts the override never diverges; on the released Bun it diverges at iteration 99, and it also fails against a build of this branch's previous pin (`0d9ee56ba4f6`, which predates #257), so the test isolates exactly this commit. - oven-sh/WebKit#262: a top-level `import()` whose embedder fetch rejects with a value that is not an `ErrorInstance` (a single-message transpile failure rejects with a `BuildMessage`) poisoned its module registry entry, and every later importer of the same file hung forever. The Bun-side regression test lives in #33149, which also pins a WebKit preview; once this lands, #33149 reduces to its test plus its `scripts/sync-webkit-source.ts` improvement. ## Why the regression tests are spawned fixtures Without the three builtin rewrites, a Bun built against this WebKit aborts on the first `Buffer.from()` call: ``` ASSERTION FAILED: Private symbol not found: tryGetByIdWithWellKnownSymbol(value, "toPrimitive"); ``` `Buffer.from` is fundamental enough that this takes down the `bun test` runner itself, before any test file finishes loading and before the JUnit reporter can write anything. So `buffer-from-symbol-to-primitive.test.ts` and `console-table-iterators.test.ts` live in two small files of their own and spawn a child Bun instead of calling the affected APIs in process: a child abort becomes an ordinary `exitCode`/`stdout` assertion failure, whereas an in-process call takes the parent test runner down with it and reports nothing. Their fail-before is "this branch minus the `src/js/` rewrites", which is a deterministic SIGABRT: ```sh git checkout $(git merge-base HEAD origin/main) -- src/js/ # keep scripts/ (the WEBKIT_VERSION bump) bun bd test test/js/node/buffer-from-symbol-to-primitive.test.ts # => ASSERTION FAILED: Private symbol not found: tryGetByIdWithWellKnownSymbol(...) (SIGABRT) git checkout HEAD -- src/js/ ``` `test/js/bun/test/test-timers.test.ts` is the equivalent fail-before for the sentinel change: with the `src/` diff reverted but the new WebKit kept, both "we can go back in time" and the new `setSystemTime` test fail. `test/regression/issue/32793.test.ts` is different from all of the above: its fix lives entirely in the vendored engine, selected by `scripts/build/deps/webkit.ts` rather than by anything under `src/`. So its before/after is a function of which WebKit artifact is linked, not of the `src/` diff: it fails on the released Bun (1.4.0), fails against this branch built with the previous pin `0d9ee56ba4f6`, and passes against this branch built with the #263 artifact. ## Verification All of the following were run against a debug Bun built from this branch and the `autobuild-preview-pr-263-f652829d` artifact. - The four test files this PR adds or modifies (`test/js/bun/test/test-timers.test.ts`, `test/regression/issue/32793.test.ts`, `test/js/node/buffer-from-symbol-to-primitive.test.ts`, `test/js/node/console/console-table-iterators.test.ts`): 5 tests, all pass. Every one fails in the right "before" state as described above. - Every test file in the repo that exercises `setSystemTime` / `useFakeTimers` / `useRealTimers` / `advanceTimers*` (the blast radius of the sentinel change): `test/js/bun/test/fake-timers/fake-timers.test.ts`, `test/js/bun/test/fake-timers/sinonjs/fake-timers.test.ts`, `test/js/bun/cron/in-process-cron.test.ts`, `test/regression/issue/25869.test.ts`, `test/regression/issue/26284.test.ts`, and the five `test/js/third_party/jsonwebtoken/*.test.js` suites. 249 pass, 1 todo, 0 fail. - One more file turned out to be in that blast radius: `test/js/bun/test/fake-timers/sinonjs/issue-207.test.ts`. The sentinel change makes pre-epoch and negative clock values work, so its three long-`.failing` tests ("should floor negative now values", "should floor negative start times", "should handle ticks on the negative side of the Epoch") started passing, which Bun's runner reports as a failure until the stale marker is removed. `d2309c92c2` removes them; all ten tests in the file pass against this branch. - `test/js/node/buffer.test.js`: 539 pass, 1 pre-existing skip, 0 fail. `test/js/node/console/console.test.ts`: 7 pass. Neither file is modified by this PR. - oven-sh/WebKit#263's preview build produced all 43 platform artifacts with no job failures. ## Upstream changelog <details> <summary><code>ce481c4c</code> -> <code>d81bcc3d</code> (the new hop in this revision)</summary> Memory safety and security: - `TypedArray.from()` out-of-bounds read via resizable `ArrayBuffer` resize/transfer inside the `mapFn` callback - Stale structure bit in `SlowPutArrayStorage` - Do not cache property absence on dictionary structures - Missing `codeBlock->m_lock` in `repatchGetBySlowPathCall` - Insert a write barrier for `MultiPutByOffset` when it can reallocate storage - Unconditionally keep `OMGOSREntryCallee` alive while updating its callsites - Disallow defining private names on WasmGC objects - Size limit on Yarr-generated code Correctness: - DFG spread did not account for `cellButterflyOnlyAtomStringsStructure` - YarrJIT `negativeOffsetIndexedAddress` discarded the adjusted base register - `DFGArgumentsEliminationPhase::removeViaKill` did not reset the node scan index between `InlineCallFrame`s Other: - An `ArrayStorage`-specific `GetByVal` DFG operation - ES2022 private method support in the Web Inspector - WTF: `TinyLRUCache::findIfCached` / `insert` </details> <details> <summary>Security / correctness fixes (<code>b5ba38a2</code> -> <code>ce481c4c</code>)</summary> - Use-after-free after Wasm memory grow via a stale pointer folded by DFGConstantFoldingPhase - Keep `JSWebAssemblyMemory` alive from wasm-originated `JSArrayBuffer`s (UAF) - Use-after-free of `StreamingCompiler::m_ticket` - `BBQCallee` kept alive between callsite collection and repatch (upstreams and extends oven-sh/WebKit#210) - `Array.from(arguments)` fast path bails out past `MAX_STORAGE_VECTOR_LENGTH` - `JSArray::fastFlat` bounds-checked against the maximum legal length - `Array#flat` fast path was dropping prototype-backed holes in nested arrays - `Array.from(map.keys())` fast path was ignoring `Symbol.iterator` overrides - `RegExp#@@split` crash on a huge flags string - `LiteralParser` takes the slow path if the original structure changes - Missing exit-profile bails on some DFG nodes - `IteratorClose` in `forEachInIterable` uses the Map/Set's own realm's iterator structure - YARR: JIT backreference with a non-BMP character was skipping the next match start position - Wasm Memory64: fix parsing of data segment init expressions - Track `customSlotBase` for `CustomAccessorGetter` / `CustomAccessorSetter` - Set `MayStoreHole` appropriately; `"entries"` ArrayIterator emits `ExitOK` before `NewArray` - `poisonedDeadOSRExitValue` made crashier and on by default in debug builds </details> <details> <summary>Language features and spec alignment (<code>b5ba38a2</code> -> <code>ce481c4c</code>)</summary> - BigInt Math proposal implemented - Temporal: spec-alignment passes across `PlainDate`, `PlainTime`, `Duration`, `Instant`, plus a unified `ParseISODateTime` - `Intl.PluralRules` reflects `compactDisplay` in its skeleton and `resolvedOptions()` </details> <details> <summary>Performance (<code>b5ba38a2</code> -> <code>ce481c4c</code>)</summary> JavaScript-visible fast paths: - `JSON.stringify` space/indentation argument handled by `FastStringifier` - Fast path for the `RegExp#flags` getter; cached named-capture `groups` Structure on `RegExp` - Map/Set iterator `next` and `%RegExpStringIteratorPrototype%.next` moved to C++ - int32 fast path in `parseInt` for short decimal strings - `NumericStrings` int cache lookup inlined into DFG/FTL `ToString(Int32)` - `Object#isPrototypeOf` uses the `InstanceOf` DFG node - `Object.freeze` / `seal` / `preventExtensions` no longer allocate `ArrayStorage` for `NonArray` objects - Map/Set `set` + `delete` churn no longer expands then immediately shrinks - Avoided an intermediate `StringImpl` allocation feeding `StringBuilder` into `makeString` - Wasm `intoCharCodeArray` bulk-copies 8-bit strings; unnecessary watchpoints avoided - `DFG::GetByVal` widens to `SpecBytecodeTop` instead of forcing an OSR exit on an empty value profile YARR (the RegExp engine): - `latin1Table` for efficient Char8 filtering, reused for Char16 and the interpreter - `StringList` optimization when captures are unused; atom fast path enabled for unicode patterns JIT compile time (a large batch aimed at DFG/FTL/B3/Air throughput): - Semi-NCA algorithm for `WTF::Dominators`; reverse post-order in `WTF::Liveness` and B3 `ReduceStrength`; `SparseBitVector` in `DFGLivenessAnalysis` - Unified `SSACalculator`; dominance frontiers computed once per graph - `AirFixObviousSpills`, `AirEliminateDeadCode`, `Air::RegLiveness`, and the greedy register allocator all got cheaper - B3 CSE reimplemented without `B3::Variable`; `B3::Value::effects` uses a constant table - `ReduceStrength` avoids fixed-point iteration; `InferSwitch` disabled in B3 for Wasm - Fixup-inserted `RegExp` primordial `TryGetById` chains replaced with a single `CheckStructure` - Parser: create save points only when actually needed - Baseline/LLInt profile `op_unsigned` overflow and report int32 overflow to the DFG </details> <details> <summary>WTF, bmalloc, and the build system (<code>b5ba38a2</code> -> <code>ce481c4c</code>)</summary> - `SaturatedArithmetic.h` and its APIs renamed to `Saturating` (Bun does not use these directly) - Checked arithmetic helpers now require two or more arguments - `OrderedHashTable` load-factor policy aligned with `HashTable` - `JSON::Value::dump` no longer corrupts large string values via `PrintStream` truncation - Structured clone: the remaining terminal JS value tags moved from WebCore into JSC (`CloneSerializerBase.h` / `StructuredCloneTags.h`). Bun keeps its own fork of `SerializedScriptValue.cpp`, so this is additive. - Workaround for a GCC 14+ false `-Wuninitialized` in `Variant`; `[[msvc::no_unique_address]]` used on MSVC - WTF / libpas exception codes changed to `0xbb08` - libpas: per-heap tagging policy rework; `pas_deallocate` split into inline-only and casual variants; PGO applied to WTF/bmalloc - CMake: prefix headers expanded, headermap generation reworked, stale staged headers pruned, and the Darwin platform block in `BPlatform.h` / `pas_platform.h` no longer excludes CMake builds (restored in the fork, see oven-sh/WebKit#261; without it the Linux-to-macOS cross lane fails to link `gigacageEnabledForProcess`) </details>
Merge upstream WebKit
ce481c4cfedbinto the Bun fork.Previous merge base:
b5ba38a21e17(#251 + thebcdf0a7b42cdancestry-recording merge). 803 upstream commits, of which 104 touchSource/JavaScriptCore, 52 touchSource/WTF, and 10 touchSource/bmalloc.Note on the branch name: the branch is called
bun/upgrade-to-dd8cbf1b9932, but one more upstream commit (ce481c4cfedb,Source/WebCoreonly) landed between that lookup and the actual fetch, and the merge includes it. The merge commit's second parent isce481c4cfedb, which is upstreammainas of the time this PR was opened.Heads up for the matching oven-sh/bun bump
Upstream removed the
tryGetById/tryGetByIdWithWellKnownSymbolbytecode intrinsics (https://bugs.webkit.org/show_bug.cgi?id=318076) and the Map/Set iterator intrinsics (isMapIterator,isSetIterator, ...) in https://bugs.webkit.org/show_bug.cgi?id=318028. Bun's built-in JS modules use both:src/js/builtins/JSBufferConstructor.tsuses$tryGetByIdWithWellKnownSymbol, so anyBuffer.from(...)call aborts withASSERTION FAILED: Private symbol not found: tryGetByIdWithWellKnownSymbol.src/js/builtins/ConsoleObject.tsuses$isMapIterator/$isSetIterator, sonew console.Console(stream).table(...)aborts the same way.The Bun PR that bumps
WEBKIT_VERSIONmust rewrite those three call sites; bumping the version alone ships a brokenBuffer.from.JSType.hdid not change, so Bun'sJSType.rsmirror stays in sync. The WebCore bindings code generator and.github/workflowsdid not change either.Conflict resolutions
8 files, all in
Source/JavaScriptCore. Five were include-list conflicts (the fork uses quote-style includes in those headers; upstream's new includes were added in the file's existing style):bytecode/ValueRecovery.h(+MarkedBlock.h),runtime/JSArrayBuffer.h(+WriteBarrier.h),runtime/JSCInlines.h(+VariableWriteFireDetailInlines.h),runtime/StructureInlines.h(+StructureCache.h, +WeakGCMapInlines.h),yarr/YarrPattern.h(+Yarr.h, +<array>).The substantive three:
wasm/WasmCalleeGroup.cpp: took upstream'sbbqCalleeKeptAlivebookkeeping (https://bugs.webkit.org/show_bug.cgi?id=316602), which supersedes the fork's keepalive from Merge upstream/main (6cc6aff95e13) + #209 BBQCallee keepalive #210 and additionally handles the case where theBBQCalleeis already gone but itsOMGOSREntryCalleeis still pending destruction. Kept the fork's#if ENABLE(WEBASSEMBLY_BBQJIT)around theVector<Ref<BBQCallee>>sinceBBQCalleeis only declared under that guard and the fork builds configurations with it off.wasm/WasmStreamingCompiler.cpp: took upstream'sticketPtrlocal (theStreamingCompiler::m_ticketuse-after-free fix, https://bugs.webkit.org/show_bug.cgi?id=317571) and kept the fork'sBUN_SKIP_FAILING_ASSERTIONSguard around theDeferredWorkTimerasserts, including upstream's newglobalObjectdependency assert, which falls in the same category.runtime/JSObject.h: kept the fork'sfinishCreationassert ordering and applied upstream'sgetPrototypeDirect()tostructure()->storedPrototype()substitution (getPrototypeDirectis only defined inJSObjectInlines.h, whichJSObject.hcannot assume).Post-merge fix: BUILDING_WITH_CMAKE platform guard (d3fd819)
The Linux-to-macOS cross lane failed to link
bin/jscwith:Upstream
279137d4b8(part of the CMake-on-macOS SDK work) removed the!defined(BUILDING_WITH_CMAKE)condition from the Darwin platform blocks inbmalloc/BPlatform.handlibpas/pas_platform.h, because upstream's CMake-on-a-real-Mac flow is now a full Cocoa build. Our macOS artifacts come from a CMake build that targets Darwin from a Linux host (Dockerfile.macos) and compiles no Cocoa.mmsources. With the guard gone,BPLATFORM(COCOA)turns on,ProcessCheck.hstops providing the inlinegigacageEnabledForProcess()stub, and the link fails becauseProcessCheck.mmis not in the CMake source list (and never has been).pas_platform.hhas the identical guard and the same upstream commit removed it. That one did not produce a link error, but without itPAS_PLATFORM(MAC)silently turns on for the shipped macOS artifacts, enabling Darwin libpas code paths that have never been exercised in this build. Both guards are restored so a CMake build of bmalloc/libpas keeps the platform identity it has always shipped with. CompilingProcessCheck.mminstead was rejected: it would make Gigacage enablement depend onNSBundlebundle identifiers at runtime, a behavior change this upgrade has no business making.Verification
JSCOnly debug build (3073/3073, zero warnings promoted to errors) plus a full Bun debug build against this tree; the Bun binary links and runs. All of the fork's
USE_BUN_JSC_ADDITIONS/BUN_SKIP_FAILING_ASSERTIONS/ async-context sites survive the merge at the same file counts as before.Please land this with a merge commit rather than a squash: #251 was squashed, which dropped the upstream parent link and needed
6812aa45de4f+bcdf0a7b42cdto restore a clean merge base afterward.