Repository navigation
bump webkit 20250930 - #110
Merged
Merged
Conversation
…ttingContext. https://bugs.webkit.org/show_bug.cgi?id=299533 rdar://problem/161337846 Reviewed by Brent Fulgham. Currently, PlacedGridItems are created via placedGridItems() on ImplicitGrid by constructing them out of the set of UnplacedGridItems which it has mapped to different areas in the grid. This has worked well enough for now, but as we prepare to size the grid items, we need to be able to store additional data on these objects in order to accomplish this. In particular, we need to store and be able to use the various sizing properties (width, min-width, max-width, etc.) for each dimension (inline vs block). However, we do not have enough information at the ImplicitGrid level in order to map these properties to the appropriate dimension. Instead, we should have GridFormattingContext start creating these objects. Not only will this allow us to correctly create PlacedGridItems with the data that we need, but it also allows ImplicitGrid to return some simple structures that describe the ImplicitGrid rather than a more complex object. * Source/WebCore/layout/formattingContexts/grid/GridLayout.cpp: (WebCore::Layout::GridLayout::placeGridItems): (WebCore::Layout::GridLayout::layout): Previously we were getting the PlacedGridItems as a result of the grid item placement portion (placeGridItems()) of the layout algorithm. Now we get the grid areas for each item which were resolved from that process. We can then ask the GridFormattingContext to create the set of PlacedGridItems from this data. * Source/WebCore/layout/formattingContexts/grid/ImplicitGrid.cpp: (WebCore::Layout::ImplicitGrid::gridAreas const): Instead of returning PlacedGridItems we return the set of grid areas contained within the ImplicitGrid. This is just a map of each item that has been placed in the grid along with the area (set of lines) that it has been placed in. The caller can then take the UnplacedGridItem and its grid area and do whatever it needs to which includes constructing a PlacedGridItem if they need it. Canonical link: https://commits.webkit.org/300547@main
… it clear which evaluation is being applied https://bugs.webkit.org/show_bug.cgi?id=299528 Reviewed by Antti Koivisto. Replaces calls like: `Style::evaluate(length, containerLength, Style::ZoomNeeded { })` with ones that explicitly indicate the result of the evaluation: `Style::evaluate<LengthUnit>(length, containerLength, Style::ZoomNeeded { })` This allows for more clarity and makes disambiguation possible for more cases. * Source/WebCore/accessibility/AccessibilityRenderObject.cpp: * Source/WebCore/accessibility/atspi/AccessibilityObjectTextAtspi.cpp: * Source/WebCore/animation/ScrollTimeline.cpp: * Source/WebCore/animation/ViewTimeline.cpp: * Source/WebCore/dom/Document.cpp: * Source/WebCore/layout/Verification.cpp: * Source/WebCore/layout/formattingContexts/FormattingGeometry.cpp: * Source/WebCore/layout/formattingContexts/FormattingGeometry.h: * Source/WebCore/layout/formattingContexts/block/BlockFormattingGeometry.cpp: * Source/WebCore/layout/formattingContexts/flex/FlexFormattingContext.cpp: * Source/WebCore/layout/formattingContexts/flex/FlexFormattingUtils.cpp: * Source/WebCore/layout/formattingContexts/inline/InlineFormattingUtils.cpp: * Source/WebCore/layout/formattingContexts/inline/InlineLevelBoxInlines.h: * Source/WebCore/layout/formattingContexts/table/TableLayout.cpp: * Source/WebCore/layout/integration/LayoutIntegrationBoxGeometryUpdater.cpp: * Source/WebCore/layout/integration/flex/LayoutIntegrationFlexLayout.cpp: * Source/WebCore/page/IntersectionObserver.cpp: * Source/WebCore/page/LocalFrameView.cpp: * Source/WebCore/page/SpatialNavigation.cpp: * Source/WebCore/platform/graphics/PathUtilities.cpp: * Source/WebCore/rendering/AutoTableLayout.cpp: * Source/WebCore/rendering/BackgroundPainter.cpp: * Source/WebCore/rendering/BorderEdge.cpp: * Source/WebCore/rendering/BorderPainter.cpp: * Source/WebCore/rendering/BorderShape.cpp: * Source/WebCore/rendering/FixedTableLayout.cpp: * Source/WebCore/rendering/GridTrackSizingAlgorithm.cpp: * Source/WebCore/rendering/MotionPath.cpp: * Source/WebCore/rendering/NinePieceImagePainter.cpp: * Source/WebCore/rendering/PositionedLayoutConstraints.h: * Source/WebCore/rendering/RenderBlock.cpp: * Source/WebCore/rendering/RenderBlockFlow.cpp: * Source/WebCore/rendering/RenderBox.cpp: * Source/WebCore/rendering/RenderBoxModelObject.cpp: * Source/WebCore/rendering/RenderBoxModelObjectInlines.h: * Source/WebCore/rendering/RenderElement.cpp: * Source/WebCore/rendering/RenderFileUploadControl.cpp: * Source/WebCore/rendering/RenderFlexibleBox.cpp: * Source/WebCore/rendering/RenderGrid.cpp: * Source/WebCore/rendering/RenderImage.cpp: * Source/WebCore/rendering/RenderInline.cpp: * Source/WebCore/rendering/RenderLayer.cpp: * Source/WebCore/rendering/RenderListBox.cpp: * Source/WebCore/rendering/RenderMarquee.cpp: * Source/WebCore/rendering/RenderMenuList.cpp: * Source/WebCore/rendering/RenderMultiColumnSet.cpp: * Source/WebCore/rendering/RenderReplaced.cpp: * Source/WebCore/rendering/RenderScrollbarPart.cpp: * Source/WebCore/rendering/RenderSlider.cpp: * Source/WebCore/rendering/RenderTable.cpp: * Source/WebCore/rendering/RenderTableCell.cpp: * Source/WebCore/rendering/RenderTableSection.cpp: * Source/WebCore/rendering/RenderTextControl.cpp: * Source/WebCore/rendering/RenderTextInlines.h: * Source/WebCore/rendering/RenderTheme.cpp: * Source/WebCore/rendering/RenderTreeAsText.cpp: * Source/WebCore/rendering/cocoa/RenderThemeCocoa.mm: * Source/WebCore/rendering/ios/RenderThemeIOS.mm: * Source/WebCore/rendering/shapes/LayoutShape.cpp: * Source/WebCore/rendering/shapes/ShapeOutsideInfo.cpp: * Source/WebCore/rendering/style/CollapsedBorderValue.h: * Source/WebCore/rendering/style/RenderStyle.cpp: * Source/WebCore/rendering/svg/SVGRenderSupport.cpp: * Source/WebCore/rendering/svg/SVGTextLayoutEngineBaseline.cpp: * Source/WebCore/style/StyleExtractorCustom.h: * Source/WebCore/style/StyleResolveForFont.cpp: * Source/WebCore/style/values/StyleValueTypes.h: * Source/WebCore/style/values/backgrounds/StyleLineWidth.cpp: * Source/WebCore/style/values/backgrounds/StyleLineWidth.h: * Source/WebCore/style/values/borders/StyleBorderRadius.cpp: * Source/WebCore/style/values/borders/StyleBorderRadius.h: * Source/WebCore/style/values/filter-effects/StyleBrightnessFunction.cpp: * Source/WebCore/style/values/filter-effects/StyleContrastFunction.cpp: * Source/WebCore/style/values/filter-effects/StyleGrayscaleFunction.cpp: * Source/WebCore/style/values/filter-effects/StyleInvertFunction.cpp: * Source/WebCore/style/values/filter-effects/StyleOpacityFunction.cpp: * Source/WebCore/style/values/filter-effects/StyleSaturateFunction.cpp: * Source/WebCore/style/values/filter-effects/StyleSepiaFunction.cpp: * Source/WebCore/style/values/images/StyleGradient.cpp: * Source/WebCore/style/values/non-standard/StyleWebKitTextStrokeWidth.h: * Source/WebCore/style/values/primitives/StyleLengthWrapper.h: * Source/WebCore/style/values/primitives/StylePosition.cpp: * Source/WebCore/style/values/primitives/StylePosition.h: * Source/WebCore/style/values/primitives/StylePrimitiveNumericTypes+Evaluation.h: * Source/WebCore/style/values/scroll-snap/StyleScrollMargin.cpp: * Source/WebCore/style/values/scroll-snap/StyleScrollMargin.h: * Source/WebCore/style/values/scroll-snap/StyleScrollPadding.cpp: * Source/WebCore/style/values/scroll-snap/StyleScrollPadding.h: * Source/WebCore/style/values/shapes/StyleCircleFunction.cpp: * Source/WebCore/style/values/shapes/StyleEllipseFunction.cpp: * Source/WebCore/style/values/shapes/StyleInsetFunction.cpp: * Source/WebCore/style/values/shapes/StylePolygonFunction.cpp: * Source/WebCore/style/values/shapes/StyleShapeFunction.cpp: * Source/WebCore/style/values/text-decoration/StyleTextDecorationThickness.cpp: * Source/WebCore/style/values/text-decoration/StyleTextUnderlineOffset.cpp: * Source/WebCore/svg/SVGLengthContext.cpp: * Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm: * Source/WebKitLegacy/mac/DOM/DOM.mm: Canonical link: https://commits.webkit.org/300548@main
https://bugs.webkit.org/show_bug.cgi?id=299270 <rdar://problem/161130683> Reviewed by Said Abou-Hallawa. The canPaintTransparencyWithSetOpacity optimization only works if we have a single bitmap paint that the opacity can be passed to. When combined with a filter effect that pushes a transparency layer, it no longer has any effect. Test: css3/filters/filter-and-opacity-on-bitmap.html * LayoutTests/css3/filters/filter-and-opacity-on-bitmap-expected.html: Added. * LayoutTests/css3/filters/filter-and-opacity-on-bitmap.html: Added. * LayoutTests/css3/filters/filter-and-opacity-on-bitmap-2-expected.html: Added. * LayoutTests/css3/filters/filter-and-opacity-on-bitmap-2.html: Added. * Source/WebCore/rendering/RenderLayerInlines.h: (WebCore::RenderLayer::canPaintTransparencyWithSetOpacity const): Canonical link: https://commits.webkit.org/300549@main
…ation Enabled. https://bugs.webkit.org/show_bug.cgi?id=299412 <rdar://129267859> Reviewed by Sihui Liu. Adds a new 'sink' option for RemoteSnapshot to generate a bitmap (for print preview) instead of a PDF. Adds new alternative WebPage messages for all the print(-preview) related functionality that generates a RemoteSnapshot (using the existing architecture for generating snapshots across processes) * Source/WebKit/GPUProcess/GPUProcess.cpp: (WebKit::GPUProcess::sinkCompletedSnapshotToPDF): (WebKit::GPUProcess::sinkCompletedSnapshotToBitmap): * Source/WebKit/GPUProcess/GPUProcess.h: * Source/WebKit/GPUProcess/GPUProcess.messages.in: * Source/WebKit/GPUProcess/graphics/RemoteSnapshot.cpp: (WebKit::RemoteSnapshot::drawToPDF): (WebKit::RemoteSnapshot::drawToBitmap): * Source/WebKit/GPUProcess/graphics/RemoteSnapshot.h: * Source/WebKit/Shared/WebImage.cpp: (WebKit::WebImage::create): * Source/WebKit/Shared/WebImage.h: * Source/WebKit/UIProcess/Cocoa/GPUProcessProxyCocoa.mm: (WebKit::GPUProcessProxy::sinkCompletedSnapshotToPDF): * Source/WebKit/UIProcess/GPU/GPUProcessProxy.cpp: (WebKit::GPUProcessProxy::sinkCompletedSnapshotToBitmap): * Source/WebKit/UIProcess/GPU/GPUProcessProxy.h: * Source/WebKit/UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::drawRectToImage): (WebKit::WebPageProxy::drawPagesToPDF): * Source/WebKit/UIProcess/ios/WebPageProxyIOS.mm: (WebKit::WebPageProxy::drawToPDFiOS): (WebKit::WebPageProxy::drawToImage): * Source/WebKit/WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::drawPrintingRectToSnapshot): (WebKit::WebPage::drawPrintingPagesToSnapshot): * Source/WebKit/WebProcess/WebPage/WebPage.h: * Source/WebKit/WebProcess/WebPage/WebPage.messages.in: * Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm: (WebKit::WebPage::drawPrintingToSnapshotiOS): (WebKit::WebPage::drawPrintingPagesToSnapshotiOS): Canonical link: https://commits.webkit.org/300550@main
…dows` https://bugs.webkit.org/show_bug.cgi?id=299380 Reviewed by Yusuke Suzuki. Rather than having two different methods that are almost identical, merge them into one with an argument to control the behavior. - `iter.windows(num)` and `iter.windows(num, "only-full")` behave the same as before. - `iter.windows(num, "allow-partial")` behaves the same as `iter.sliding(num)`. Proposal: <https://github.com/tc39/proposal-iterator-chunking> Spec: <https://tc39.es/proposal-iterator-chunking/> * Source/JavaScriptCore/builtins/JSIteratorPrototype.js: (windows): (sliding): Deleted. * Source/JavaScriptCore/runtime/JSIteratorPrototype.cpp: (JSC::JSIteratorPrototype::finishCreation): * JSTests/stress/iterator-prototype-sliding.js: Removed. * JSTests/stress/iterator-prototype-windows.js: * JSTests/stress/iterator-prototype-chunks.js: Drive-by: tweak wording of error messages for clarity. Canonical link: https://commits.webkit.org/300551@main
…rors on test failure https://bugs.webkit.org/show_bug.cgi?id=296255 Reviewed by BJ Burg. Includes the fix upstreamed in SeleniumHQ/selenium#16271 This reduces the amount of MaxRetryErrors from 61 to 4, which now are related to ungardened tests. * WebDriverTests/imported/selenium/importer.json: Updated hash * WebDriverTests/imported/selenium/: Updated the selenium copy, with the usual skip of Chrome, Edge, and Firefox related code. Canonical link: https://commits.webkit.org/300552@main
…copy of itself rdar://161205381 https://bugs.webkit.org/show_bug.cgi?id=299402 Reviewed by Antti Koivisto. WebKit implements stylesheet caching, such that two stylesheets of identical content share the same StyleSheetContents. When JavaScript code mutates a @position-try, CSSPositionTryDescriptors (JS object representing the rule) signals the CSSStylesheet containing the CSSPositionTryRule that it will be mutated (CSSPositionTryDescriptors::set* -> PropertySetCSSDescriptors::setPropertyInternal -> PropertySetCSSDescriptors::willMutate -> CSSStyleSheet::willMutateRules). CSSStyleSheet holds a StyleSheetContents that stores the content of the stylesheet, and because of StyleSheetContents sharing, mutating the CSSStyleSheet requires (1) cloning the StyleSheetContents into a separate copy, so when the stylesheet mutates, it doesn't affect other CSSStyleSheet sharing the StyleSheetContents (2) Within CSSStyleSheet, each rule has a CSSOM wrapper object that attaches to the rule object in StyleSheetContents. After (1), the CSSOM wrapper objects have to be re-attached to the copied rule. There are two bugs in StyleRulePositionTry that leads to the StyleRulePositionTry not being copied properly: * Cloning StyleSheetContents involves cloning all rules within it by calling ::copy() of the rule object. StyleRulePositionTry::copy() calls the copy constructor of StyleRulePositionTry, but the copy constructor is default, which doesn't deep copy the properties within the rule. * (2) is done by calling CSSPositionTryRule::reattach, but it doesn't actually reattach itself to the new rule. So any mutation on CSSPositionTryRule ends up in the rule object before the clone. If two CSSStyleSheet have identical content at the beginning, then they initially share a StyleSheetContents. If one CSSStyleSheet content mutates, its StyleSheetContents is cloned into a copy separate from the other CSSStyleSheet. But if the CSSStyleSheet contains a @position-try rule, since StyleRulePositionTry doesn't clone itself properly, the new StyleRulePositionTry and old StyleRulePositionTry ends up pointing to the same properties object. Then, when one CSSStyleSheet mutates, the mutation is visible in the other CSSStyleSheet. Test: imported/w3c/web-platform-tests/css/css-anchor-position/position-try-rule-caching.html * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-try-rule-caching-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-try-rule-caching.html: Added. * Source/WebCore/css/CSSPositionTryRule.cpp: (WebCore::StyleRulePositionTry::StyleRulePositionTry): - Make a copy of the StyleProperties. (WebCore::CSSPositionTryRule::reattach): - Actually re-attach the CSSOM wrapper to the new rule object. * Source/WebCore/css/CSSPositionTryRule.h: Canonical link: https://commits.webkit.org/300553@main
… mode https://bugs.webkit.org/show_bug.cgi?id=299574 rdar://158901941 Reviewed by Lily Spiniolas and Ryosuke Niwa. The textarea element in Google search's AI mode renders a fake caret with a DOM element that runs a periodic animation, and suppresses the native caret UI using `caret-color: transparent;`. This allows them to paint the "caret" with different colors a few times a second. The way this is implemented, however, causes the selection to become hosted inside a different composited layer every time the color changes. After enabling "Selection Honors Overflow Scrolling", this causes us to update the native selection UI frequently by calling `-selectionChanged`, due to the fact that the caret view is constantly being reparented. Subsequently, this causes the edit menu to immediately dismiss when tapping to try and present it. To fix this, we simply fall back to hosting the caret selection views in `WKContentView`, in the case where the caret is transparent. Since the selection UI is hidden anyways due to the transparent `caret-color`, we don't actually need to host the selection in a composited view to ensure that it visually scrolls along with subscrollable containers (and/or clipped by other composited containers on top of it). Test: editing/selection/ios/show-edit-menu-with-transparent-caret.html * LayoutTests/editing/selection/ios/show-edit-menu-with-transparent-caret-expected.txt: Added. * LayoutTests/editing/selection/ios/show-edit-menu-with-transparent-caret.html: Added. * Source/WebKit/WebProcess/WebPage/Cocoa/WebPageCocoa.mm: (WebKit::WebPage::getPlatformEditorStateCommon const): Move this logic into `getPlatformEditorState`, so that we can check the caret color and other post-layout data before finding the enclosing layer. * Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm: (WebKit::WebPage::getPlatformEditorState const): Canonical link: https://commits.webkit.org/300554@main
https://bugs.webkit.org/show_bug.cgi?id=299515 Reviewed by Yusuke Suzuki. On ARMv7, the least significant bit in the link register indicates the mode (ARM/Thumb) of the code that we return to. Callers of preserveReturnAddressAfterCall care about the return address and when calling the throwExceptionFromOMGThunk (as introduced in 300298@main) the LSB being set results in a return address outside the function, whose CallSiteIndex can therefore not be looked up. Simply clear the LSB when preserving the return address on ARMv7. Canonical link: https://commits.webkit.org/300555@main
rdar://161232285 https://bugs.webkit.org/show_bug.cgi?id=299425 Reviewed by Tim Nguyen. Upstream commit: web-platform-tests/wpt@90419d4 * LayoutTests/TestExpectations: * LayoutTests/imported/w3c/resources/resource-files.json: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/META.yml: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-center-fallback-transition-behavior-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-center-fallback-transition-behavior.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-getComputedStyle-004-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-getComputedStyle-004.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-name-006-expected.xht: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-name-006.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-name-007-expected.xht: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-name-007.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-name-inline-001-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-name-inline-001.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-name-multicol-003-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-name-multicol-003-expected.txt: Removed. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-name-multicol-003-ref.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-name-multicol-003.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-name-multicol-004-expected.txt: Removed. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-name-multicol-004-expected.xht: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-name-multicol-004.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-grid-001-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-grid-001-expected.txt: Removed. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-grid-001-ref.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-grid-001.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-inline-001.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-inline-002.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-inline-003.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-inline-004-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-inline-004-expected.txt: Removed. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-inline-004-ref.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-inline-004.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-multicol-002-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-multicol-002-expected.txt: Removed. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-multicol-002-ref.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-multicol-002.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-multicol-003-expected.txt: Removed. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-multicol-003-expected.xht: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-multicol-003.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-multicol-004-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-multicol-004-expected.txt: Removed. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-multicol-004-ref.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-multicol-004.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-multicol-007.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-multicol-008.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-multicol-012-expected.xht: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-multicol-012.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-multicol-013-expected.xht: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-multicol-013.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-multicol-014-expected.xht: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-multicol-014.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-multicol-015-expected.xht: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-multicol-015.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-multicol-016-expected.xht: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-multicol-016.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-multicol-017-expected.xht: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-multicol-017.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-multicol-fixed-001-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-multicol-fixed-001-expected.txt: Removed. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-multicol-fixed-001-ref.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-multicol-fixed-001.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-multicol-nested-001-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-multicol-nested-001-expected.txt: Removed. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-multicol-nested-001-ref.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-multicol-nested-001.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-query-fallback-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-query-fallback.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-scroll-004.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-scroll-chained-003-expected.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-scroll-chained-003.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-scroll-chained-004-expected.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-scroll-js-expose.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-scroll-nested-expected.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-scroll-nested.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-scroll-position-try-007.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-scroll-position-try-008.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-scroll-to-sticky-003-expected.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-scroll-to-sticky-003.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-scroll-to-sticky-004-expected.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchored-c-v-hidden-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchored-c-v-hidden.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/chrome-436621815-crash.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/chrome-443261872-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/chrome-443261872.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/chrome-445458885-crash.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/container-queries/anchored-child-transition-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/container-queries/anchored-child-transition.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/container-queries/anchored-fallback-basic-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/container-queries/anchored-fallback-basic.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/container-queries/anchored-fallback-color-change-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/container-queries/anchored-fallback-color-change.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/container-queries/anchored-fallback-display-change-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/container-queries/anchored-fallback-display-change.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/container-queries/anchored-fallback-name-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/container-queries/anchored-fallback-name.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/container-queries/anchored-fallback-position-area-any.tentative-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/container-queries/anchored-fallback-position-area-any.tentative.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/container-queries/anchored-fallback-position-area-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/container-queries/anchored-fallback-position-area-wm-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/container-queries/anchored-fallback-position-area-wm.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/container-queries/anchored-fallback-position-area.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/container-queries/anchored-fallback-scroll-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/container-queries/anchored-fallback-scroll.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/container-queries/anchored-fallback-style-containment-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/container-queries/anchored-fallback-style-containment-ref.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/container-queries/anchored-fallback-style-containment.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/container-queries/anchored-fallback-try-tactic-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/container-queries/anchored-fallback-try-tactic.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/container-queries/at-container-anchored-parsing-any.tentative-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/container-queries/at-container-anchored-parsing-any.tentative.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/container-queries/at-container-anchored-parsing-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/container-queries/at-container-anchored-parsing.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/container-queries/at-container-anchored-serialization-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/container-queries/at-container-anchored-serialization.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/container-queries/container-type-anchored-computed-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/container-queries/container-type-anchored-computed.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/container-queries/container-type-anchored-parsing-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/container-queries/container-type-anchored-parsing.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/container-queries/w3c-import.log: Copied from LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/reference/w3c-import.log. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/no-anchor-anchor-center-expected.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/no-anchor-anchor-center-ref.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/no-anchor-anchor-center.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-ambiguous-self-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-ambiguous-self.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-pseudo-element-implicit-anchor-dynamic-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-pseudo-element-implicit-anchor-dynamic.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-pseudo-element-implicit-anchor-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-pseudo-element-implicit-anchor-expected.txt: Removed. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-pseudo-element-implicit-anchor-ref.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-pseudo-element-implicit-anchor.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-visibility-anchors-visible-change-anchor.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/pseudo-element-implicit-anchor-center-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/pseudo-element-implicit-anchor-center.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/reference/anchor-scroll-chained-002-ref.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/reference/anchor-scroll-chained-003-ref.html: Copied from LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/reference/anchor-scroll-chained-002-ref.html. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/reference/anchor-scroll-chained-004-ref.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/reference/anchor-scroll-nested-ref.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/reference/anchor-scroll-to-sticky-003-ref.html: Copied from LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-scroll-to-sticky-003-expected.html. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/reference/anchor-scroll-to-sticky-004-ref.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/reference/w3c-import.log: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/scrollable-containing-block-position-area-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/scrollable-containing-block-position-area.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/scrollable-containing-block-size-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/scrollable-containing-block-size.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/scrollable-containing-block-validity-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/scrollable-containing-block-validity.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/vertical-aligned-table-cell.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/w3c-import.log: * LayoutTests/platform/mac-wk2/TestExpectations: Canonical link: https://commits.webkit.org/300556@main
https://bugs.webkit.org/show_bug.cgi?id=299587 Reviewed by Chris Dumez. Update the LLVM. This update includes fix a typo in call arguments checker when checking the objective-c message send, treating `@YES` / `@NO` as safe arguments, and only checking objective-C properties when the implementation is seen. * Tools/CISupport/safer-cpp-llvm-version: Canonical link: https://commits.webkit.org/300557@main
https://bugs.webkit.org/show_bug.cgi?id=297885 rdar://159144102 Reviewed by Sihui Liu. Pass in referrer policy from the parent frame or opener. Tests: http/tests/site-isolation/referrer-policy/no-referrer/cross-origin-http-http.html http/tests/site-isolation/referrer-policy/origin/cross-origin-http-http.html http/tests/site-isolation/referrer-policy/unsafe-url/cross-origin-http-http.html * LayoutTests/http/tests/site-isolation/referrer-policy/no-referrer/cross-origin-http-http-expected.txt: Added. * LayoutTests/http/tests/site-isolation/referrer-policy/no-referrer/cross-origin-http-http.html: Added. * LayoutTests/http/tests/site-isolation/referrer-policy/origin/cross-origin-http-http-expected.txt: Added. * LayoutTests/http/tests/site-isolation/referrer-policy/origin/cross-origin-http-http.html: Added. * LayoutTests/http/tests/site-isolation/referrer-policy/resources/document.html: Added. * LayoutTests/http/tests/site-isolation/referrer-policy/unsafe-url/cross-origin-http-http-expected.txt: Added. * LayoutTests/http/tests/site-isolation/referrer-policy/unsafe-url/cross-origin-http-http.html: Added. * Source/WebCore/dom/Document.cpp: (WebCore::Document::initSecurityContext): * Source/WebCore/loader/EmptyClients.cpp: (WebCore::pageConfigurationWithEmptyClients): * Source/WebCore/loader/FrameLoader.cpp: (WebCore::FrameLoader::effectiveReferrerPolicy const): Deleted. * Source/WebCore/loader/FrameLoader.h: * Source/WebCore/page/Frame.h: (WebCore::Frame::updateReferrerPolicy): * Source/WebCore/page/LocalFrame.cpp: (WebCore::LocalFrame::LocalFrame): (WebCore::LocalFrame::createMainFrame): (WebCore::LocalFrame::createSubframe): (WebCore::LocalFrame::createProvisionalSubframe): (WebCore::LocalFrame::effectiveReferrerPolicy const): (WebCore::LocalFrame::updateReferrerPolicy): * Source/WebCore/page/LocalFrame.h: * Source/WebCore/page/Page.cpp: (WebCore::createMainFrame): * Source/WebCore/page/PageConfiguration.h: * Source/WebKit/Scripts/webkit/messages.py: (types_that_cannot_be_forward_declared): * Source/WebKit/Shared/LoadParameters.h: * Source/WebKit/Shared/LoadParameters.serialization.in: * Source/WebKit/Shared/NavigationActionData.h: * Source/WebKit/Shared/NavigationActionData.serialization.in: * Source/WebKit/Shared/ProvisionalFrameCreationParameters.h: * Source/WebKit/Shared/ProvisionalFrameCreationParameters.serialization.in: * Source/WebKit/Shared/WebPageCreationParameters.h: * Source/WebKit/Shared/WebPageCreationParameters.serialization.in: * Source/WebKit/UIProcess/API/APIPageConfiguration.cpp: (API::PageConfiguration::setInitialReferrerPolicy): * Source/WebKit/UIProcess/API/APIPageConfiguration.h: (API::PageConfiguration::initialReferrerPolicy const): * Source/WebKit/UIProcess/API/gtk/WebKitWebViewBase.cpp: (webkitWebViewBaseCreateWebPage): * Source/WebKit/UIProcess/API/wpe/WPEWebViewLegacy.cpp: (WKWPE::ViewLegacy::ViewLegacy): * Source/WebKit/UIProcess/API/wpe/WPEWebViewPlatform.cpp: (WKWPE::ViewPlatform::ViewPlatform): * Source/WebKit/UIProcess/ProvisionalFrameProxy.cpp: (WebKit::ProvisionalFrameProxy::ProvisionalFrameProxy): * Source/WebKit/UIProcess/ProvisionalPageProxy.cpp: (WebKit::ProvisionalPageProxy::ProvisionalPageProxy): (WebKit::ProvisionalPageProxy::initializeWebPage): * Source/WebKit/UIProcess/WebFrameProxy.cpp: (WebKit::WebFrameProxy::WebFrameProxy): (WebKit::WebFrameProxy::didCreateSubframe): * Source/WebKit/UIProcess/WebFrameProxy.h: (WebKit::WebFrameProxy::create): (WebKit::WebFrameProxy::effectiveReferrerPolicy const): (WebKit::WebFrameProxy::updateReferrerPolicy): * Source/WebKit/UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::finishAttachingToWebProcess): (WebKit::WebPageProxy::initializeWebPage): (WebKit::WebPageProxy::receivedNavigationActionPolicyDecision): (WebKit::WebPageProxy::continueNavigationInNewProcess): (WebKit::WebPageProxy::didCreateSubframe): (WebKit::WebPageProxy::updateReferrerPolicy): (WebKit::WebPageProxy::createNewPage): (WebKit::WebPageProxy::creationParameters): * Source/WebKit/UIProcess/WebPageProxy.h: * Source/WebKit/UIProcess/WebPageProxy.messages.in: * Source/WebKit/UIProcess/ios/WKContentView.mm: (-[WKContentView _commonInitializationWithProcessPool:configuration:]): * Source/WebKit/UIProcess/mac/WebViewImpl.mm: (WebKit::m_flagsChangedEventMonitorTrackingArea): * Source/WebKit/UIProcess/playstation/PlayStationWebView.cpp: (WebKit::m_backend): * Source/WebKit/UIProcess/win/AutomationSessionClientWin.cpp: (WebKit::AutomationSessionClient::requestNewPageWithOptions): * Source/WebKit/UIProcess/win/WebView.cpp: (WebKit::WebView::WebView): * Source/WebKit/WebProcess/Storage/WebSWContextManagerConnection.cpp: (WebKit::WebSWContextManagerConnection::installServiceWorker): * Source/WebKit/WebProcess/Storage/WebSharedWorkerContextManagerConnection.cpp: (WebKit::WebSharedWorkerContextManagerConnection::launchSharedWorker): * Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.cpp: (WebKit::WebChromeClient::createWindow): * Source/WebKit/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: (WebKit::WebFrameLoaderClient::navigationActionData const): (WebKit::WebFrameLoaderClient::updateReferrerPolicy): * Source/WebKit/WebProcess/WebCoreSupport/WebFrameLoaderClient.h: * Source/WebKit/WebProcess/WebCoreSupport/WebLocalFrameLoaderClient.cpp: (WebKit::WebLocalFrameLoaderClient::didSameDocumentNavigationForFrameViaJS): (WebKit::WebLocalFrameLoaderClient::dispatchDecidePolicyForNewWindowAction): * Source/WebKit/WebProcess/WebPage/WebFrame.cpp: (WebKit::WebFrame::createSubframe): (WebKit::WebFrame::createProvisionalFrame): * Source/WebKit/WebProcess/WebPage/WebPage.cpp: (WebKit::mainFrameCreationParameters): (WebKit::m_toolbarsAreVisible): * Source/WebKitLegacy/mac/WebCoreSupport/WebChromeClient.mm: (WebChromeClient::createWindow): * Source/WebKitLegacy/mac/WebView/WebFrame.mm: (+[WebFrame _createFrameWithPage:frameName:frameView:ownerElement:]): * Source/WebKitLegacy/mac/WebView/WebView.mm: (-[WebView _commonInitializationWithFrameName:groupName:]): (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]): Canonical link: https://commits.webkit.org/300558@main
https://bugs.webkit.org/show_bug.cgi?id=299581 Reviewed by Ryosuke Niwa. * Source/WebKit/Platform/cocoa/WebPrivacyHelpers.h: (WebKit::ListDataController::setCachedListDataForTesting): * Source/WebKit/Platform/cocoa/WebPrivacyHelpers.mm: (WebKit::ResourceMonitorURLsController::prepare): * Source/WebKit/SaferCPPExpectations/ForwardDeclCheckerExpectations: * Source/WebKit/SaferCPPExpectations/UnretainedCallArgsCheckerExpectations: * Source/WebKit/Shared/Cocoa/WKObject.h: (WebKit::protectedWrapper): Canonical link: https://commits.webkit.org/300559@main
https://bugs.webkit.org/show_bug.cgi?id=299365 rdar://161161377 Reviewed by Jer Noble. We can then re-use the code without duplication. No change in behaviour. Code just moved around. * Source/WebKit/GPUProcess/media/RemoteMediaPlayerProxy.cpp: (WebKit::RemoteMediaPlayerProxy::~RemoteMediaPlayerProxy): * Source/WebKit/GPUProcess/media/RemoteMediaPlayerProxy.h: Remove unused members. * Source/WebKit/GPUProcess/media/RemoteMediaPlayerProxyConfiguration.h: Remove unused field * Source/WebKit/GPUProcess/media/RemoteMediaPlayerProxyConfiguration.serialization.in: Remove unused field * Source/WebKit/GPUProcess/media/cocoa/RemoteMediaPlayerProxyCocoa.mm: (WebKit::RemoteMediaPlayerProxy::mediaPlayerFirstVideoFrameAvailable): (WebKit::RemoteMediaPlayerProxy::mediaPlayerRenderingModeChanged): (WebKit::RemoteMediaPlayerProxy::requestHostingContext): (WebKit::RemoteMediaPlayerProxy::setVideoLayerSizeFenced): (WebKit::RemoteMediaPlayerProxy::setVideoLayerSizeIfPossible): Deleted. * Source/WebKit/Platform/SourcesCocoa.txt: * Source/WebKit/Platform/cocoa/LayerHostingContextManager.h: Added. (WebKit::LayerHostingContextManager::videoLayerSize const): * Source/WebKit/Platform/cocoa/LayerHostingContextManager.mm: Added. (WebKit::LayerHostingContextManager::~LayerHostingContextManager): (WebKit::LayerHostingContextManager::requestHostingContext): (WebKit::LayerHostingContextManager::createHostingContextIfNeeded): (WebKit::LayerHostingContextManager::setVideoLayerSizeFenced): (WebKit::LayerHostingContextManager::setVideoLayerSizeIfPossible): * Source/WebKit/WebKit.xcodeproj/project.pbxproj: * Source/WebKit/WebProcess/GPU/media/RemoteMediaPlayerManager.cpp: (WebKit::RemoteMediaPlayerManager::createRemoteMediaPlayer): Canonical link: https://commits.webkit.org/300560@main
…is captured in a view transition. https://bugs.webkit.org/show_bug.cgi?id=299578 rdar://154886047 Reviewed by Wenson Hsieh. Viewport clipping layers should only be added for layers that have the RenderView as their composited ancestor. Once they get captured in a view transition, their GraphicsLayers will get reparented as replaced contents into the pseudo element's layers (which is guaranteed to be composited) so they no longer meet this criteria. As such, their computed position can be incorrect (not accounting for ancestor offsets) and they clip incorrectly. * LayoutTests/platform/ios-18/TestExpectations: * LayoutTests/platform/ios/TestExpectations: * LayoutTests/platform/mac-sequoia/TestExpectations: * LayoutTests/platform/mac/TestExpectations: * Source/WebCore/rendering/RenderLayerCompositor.cpp: (WebCore::RenderLayerCompositor::viewportConstrainedSublayers const): * Source/WebCore/rendering/RenderObject.cpp: (WebCore::RenderObject::setCapturedInViewTransition): Canonical link: https://commits.webkit.org/300561@main
https://bugs.webkit.org/show_bug.cgi?id=299504 rdar://161294228 Reviewed by Yijia Huang. Previous one 300327@main worked for the same basic block's load, but it didn't work for the load in dominators. This patch updates CSE rules to make immutable load elimination work with dominators' load. Like, BB#0 @0: Load(@x, immutable) @1: CCall(...) # potentially clobber everything Branch ... #1, #2 BB#1 @2: CCall(...) # potentially clobber everything Jump #3 BB#2 @3: CCall(...) # potentially clobber everything Jump #3 BB#3 @4: Load(@x, immutable) ... Then @4 should be replaced with Identity(@0) as dominator BB#0 is having immutable load @0 matching to @4. Tests: Source/JavaScriptCore/b3/testb3_1.cpp Source/JavaScriptCore/b3/testb3_8.cpp * Source/JavaScriptCore/b3/B3EliminateCommonSubexpressions.cpp: * Source/JavaScriptCore/b3/testb3.h: * Source/JavaScriptCore/b3/testb3_1.cpp: (run): * Source/JavaScriptCore/b3/testb3_8.cpp: (testLoadImmutableDominated): (testLoadImmutableNonDominated): Canonical link: https://commits.webkit.org/300562@main
…f list https://bugs.webkit.org/show_bug.cgi?id=298465 rdar://159962421 Reviewed by Basuke Suzuki. The test navigate-replace-cross-document.html fails because the replace operation adds a new item to the UI Process b/f list instead of replacing the current one as it should. The issue is that once the new URL is loaded, we call HistoryController::updateForStandardLoad (which creates a new item and appends this to the UI Process b/f list) instead of HistoryController::updateForReloadOrReplace which will replace the current item. To fix this, we introduce a new FrameLoadType called NavigationAPIReplace. FrameLoader::loadFrameRequest will set this as the load type on a Navigation API replace operation. And on this load type, FrameLoader::transitionToCommitted will call HistoryController::updateForReloadOrReplace. * LayoutTests/imported/w3c/web-platform-tests/navigation-api/navigation-methods/navigate-replace-cross-document-expected.txt: * Source/WebCore/history/BackForwardCache.cpp: (WebCore::canCachePage): * Source/WebCore/loader/FrameLoader.cpp: (WebCore::isBackForwardLoadType): (WebCore::isReload): (WebCore::determineNavigationType): (WebCore::FrameLoader::loadFrameRequest): If the NavigationHistoryBehavior is Replace, this is a Navigation API Replace operation, set the loadType to NavigationAPIReplace. (WebCore::FrameLoader::transitionToCommitted): If the FrameLoadType is NavigationAPIReplace, call HistoryController::updateForReloadOrReplace. (WebCore::FrameLoader::subresourceCachePolicy const): (WebCore::FrameLoader::loadDifferentDocumentItem): * Source/WebCore/loader/FrameLoaderTypes.h: New FrameLoadType called NavigationAPIReplace. * Source/WebCore/loader/HistoryController.cpp: (WebCore::HistoryController::restoreDocumentState): * Source/WebCore/page/Page.cpp: (WebCore::Page::logNavigation): * Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in: * Source/WebKitLegacy/mac/WebView/WebFrame.mm: (toWebFrameLoadType): Canonical link: https://commits.webkit.org/300563@main
…ling https://bugs.webkit.org/show_bug.cgi?id=299560 rdar://161362257 Reviewed by Wenson Hsieh and Abrar Rahman Protyasha. The 4 subtests which test the events received after the child moves fail due to a missing `pointerenter` or `mouseenter` event for the child. This is because, before dispatching those events, we check if the target was an ancestor of the previous element. However, the logic for this erroneously included the previous element itself, resulting in the missing events. To resolve this, store only the ancestors of the element under the mouse in m_ancestorsOfLastElementUnderMouse, not the element itself. Tested by `imported/w3c/web-platform-tests/pointerevents/pointerevent_after_target_appended.html?mouse`. * LayoutTests/imported/w3c/web-platform-tests/pointerevents/pointerevent_after_target_appended_interleaved.tentative_mouse-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/pointerevents/pointerevent_after_target_appended_interleaved.tentative_pen-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/pointerevents/pointerevent_after_target_appended_mouse-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/pointerevents/pointerevent_after_target_appended_pen-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/pointerevents/pointerevent_lostpointercapture_for_disconnected_node-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/pointerevents/pointerevent_pointer_boundary_events_after_reappending_last_over_target-expected.txt: * Source/WebCore/page/EventHandler.cpp: (WebCore::EventHandler::updateMouseEventTargetNode): * Source/WebCore/page/EventHandler.h: Canonical link: https://commits.webkit.org/300564@main
https://bugs.webkit.org/show_bug.cgi?id=299593 * Source/WebCore/platform/graphics/skia/SkiaReplayCanvas.cpp: (WebCore::SkiaReplayCanvas::invokeDrawFunctionWithPaint): (WebCore::SkiaReplayCanvas::invokeDrawFunctionWithShader): Canonical link: https://commits.webkit.org/300565@main
https://bugs.webkit.org/show_bug.cgi?id=299368 Reviewed by Chris Dumez. Note: The remaining errors for _WKMockUserNotificationCenter.mm is a false positive due to the checker not recognizing _init* See llvm/llvm-project#160569 * Source/WebKit/SaferCPPExpectations/UnretainedCallArgsCheckerExpectations: Update expectations. * Source/WebKit/webpushd/MockPushServiceConnection.mm: (WebPushD::MockPushServiceConnection::subscribe): Use nil to turn off false positive warning. * Source/WebKit/webpushd/WebPushDaemon.h: Make m_userNotificationCenterClass a RetainPtr. * Source/WebKit/webpushd/WebPushDaemon.mm: (WebPushD::WebPushDaemon::handleIncomingPush): Ditto. (WebPushD::WebPushDaemon::subscribeToPushService): Ditto. (WebPushD::WebPushDaemon::showNotification): Ditto. Also wrap an arg in a RetainPtr. (WebPushD::WebPushDaemon::getNotifications): Make m_userNotificationCenterClass a RetainPtr. (WebPushD::WebPushDaemon::cancelNotification): Ditto. (WebPushD::WebPushDaemon::getPushPermissionState): Ditto. (WebPushD::WebPushDaemon::requestPushPermission): Ditto. (WebPushD::WebPushDaemon::setAppBadge): Ditto. (WebPushD::WebPushDaemon::getAppBadgeForTesting): Ditto. * Source/WebKit/webpushd/WebPushDaemonMain.mm: Use a RetainPtr for the result of NSSearchPathForDirectoriesInDomains. (WebKit::getWebPushDirectoryPathWithMigrationIfNecessary): * Source/WebKit/webpushd/_WKMockUserNotificationCenter.mm: (+[_WKMockUserNotificationCenter _internalInitWithBundleIdentifier:]): Use a retainPtr for a DISPATCH_QUEUE_SERIAL_WITH_AUTORELEASE_POOL arg, which calls dispatch_queue_attr_make_with_autorelease_frequency. Canonical link: https://commits.webkit.org/300566@main
…ms is not needed https://bugs.webkit.org/show_bug.cgi?id=299278 Reviewed by Fujii Hironori. In 299354@main we introduced a build option to always use ComplexTextController even for simple text code path. However, there are cases in which we can use WidthIterator instead, for example when optimize for speed rendering mode is used, because we know Font::ApplyTransforms can be skipped. This patch removes that build option, to make it possible to make the decision at runtime. Canonical link: https://commits.webkit.org/300567@main
…uest, reader and controller) rdar://161171657 https://bugs.webkit.org/show_bug.cgi?id=299371 Reviewed by Chris Dumez. We add a skeleton for ReadableByteStreamController. We add the implementation for classes ByteLengthQueuingStrategy, ReadableStreamBYOBReader and ReadableStreamBYOBRequest. We start integration of ReadableByteStreamController in ReadableStream and ReadableStreamDefaultReader. A follow-up will make ReadableByteStreamController functional. Covered by rebased tests. * LayoutTests/imported/w3c/web-platform-tests/streams/idlharness.any-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/idlharness.any.serviceworker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/idlharness.any.sharedworker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/idlharness.any.worker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/piping/abort.any-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/piping/abort.any.serviceworker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/piping/abort.any.sharedworker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/piping/abort.any.worker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-byte-streams/bad-buffers-and-views.any.sharedworker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-byte-streams/construct-byob-request.any-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-byte-streams/construct-byob-request.any.serviceworker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-byte-streams/construct-byob-request.any.sharedworker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-byte-streams/construct-byob-request.any.worker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-byte-streams/enqueue-with-detached-buffer.any-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-byte-streams/enqueue-with-detached-buffer.any.serviceworker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-byte-streams/enqueue-with-detached-buffer.any.sharedworker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-byte-streams/enqueue-with-detached-buffer.any.worker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-byte-streams/general.any.sharedworker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-byte-streams/non-transferable-buffers.any-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-byte-streams/non-transferable-buffers.any.serviceworker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-byte-streams/non-transferable-buffers.any.sharedworker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-byte-streams/non-transferable-buffers.any.worker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-byte-streams/patched-global.any-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-byte-streams/patched-global.any.serviceworker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-byte-streams/patched-global.any.sharedworker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-byte-streams/patched-global.any.worker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-byte-streams/read-min.any-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-byte-streams/read-min.any.serviceworker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-byte-streams/read-min.any.sharedworker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-byte-streams/read-min.any.worker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-byte-streams/respond-after-enqueue.any.sharedworker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-byte-streams/tee.any-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-byte-streams/tee.any.serviceworker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-byte-streams/tee.any.sharedworker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-byte-streams/tee.any.worker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-byte-streams/templated.any-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-byte-streams/templated.any.serviceworker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-byte-streams/templated.any.sharedworker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-byte-streams/templated.any.worker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-streams/owning-type-message-port.any-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-streams/owning-type-message-port.any.serviceworker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-streams/owning-type-message-port.any.sharedworker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-streams/owning-type-message-port.any.worker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-streams/owning-type-video-frame.any-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-streams/owning-type-video-frame.any.worker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-streams/owning-type.any-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-streams/owning-type.any.serviceworker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-streams/owning-type.any.sharedworker-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/streams/readable-streams/owning-type.any.worker-expected.txt: * LayoutTests/streams/readable-stream-byob-reader-expected.txt: * LayoutTests/streams/readable-stream-byob-reader-worker-expected.txt: * LayoutTests/streams/readable-stream-byob-request-expected.txt: * LayoutTests/streams/readable-stream-byob-request-worker-expected.txt: * Source/JavaScriptCore/runtime/ExceptionHelpers.h: * Source/WebCore/CMakeLists.txt: * Source/WebCore/DerivedSources-output.xcfilelist: * Source/WebCore/DerivedSources.make: * Source/WebCore/Modules/fetch/FetchBodyOwner.cpp: (WebCore::FetchBodyOwner::createReadableStream): * Source/WebCore/Modules/streams/ByteLengthQueuingStrategy.cpp: Copied from Source/WebCore/Modules/streams/UnderlyingSourcePullCallback.h. (WebCore::ByteLengthQueuingStrategy::create): (WebCore::ByteLengthQueuingStrategy::ByteLengthQueuingStrategy): (WebCore::ByteLengthQueuingStrategy::size): * Source/WebCore/Modules/streams/ByteLengthQueuingStrategy.h: Copied from Source/WebCore/Modules/streams/UnderlyingSourcePullCallback.h. (WebCore::ByteLengthQueuingStrategy::highWaterMark const): * Source/WebCore/Modules/streams/ByteLengthQueuingStrategy.idl: * Source/WebCore/Modules/streams/ReadableByteStreamController.cpp: Added. (WebCore::ReadableByteStreamController::ReadableByteStreamController): (WebCore::ReadableByteStreamController::ref): (WebCore::ReadableByteStreamController::deref): (WebCore::ReadableByteStreamController::stream): (WebCore::ReadableByteStreamController::byobRequestForBindings const): (WebCore::ReadableByteStreamController::desiredSize const): (WebCore::ReadableByteStreamController::closeForBindings): (WebCore::ReadableByteStreamController::enqueueForBindings): (WebCore::ReadableByteStreamController::errorForBindings): (WebCore::ReadableByteStreamController::start): (WebCore::ReadableByteStreamController::close): (WebCore::ReadableByteStreamController::enqueue): (WebCore::ReadableByteStreamController::error): (WebCore::ReadableByteStreamController::pullInto): (WebCore::ReadableByteStreamController::runCancelSteps): (WebCore::ReadableByteStreamController::runPullSteps): (WebCore::ReadableByteStreamController::runReleaseSteps): (WebCore::ReadableByteStreamController::respond): (WebCore::ReadableByteStreamController::respondWithNewView): * Source/WebCore/Modules/streams/ReadableByteStreamController.h: Added. * Source/WebCore/Modules/streams/ReadableByteStreamController.idl: * Source/WebCore/Modules/streams/ReadableStream.cpp: (WebCore::extractHighWaterMark): (WebCore::isReadableByteStream): (WebCore::ReadableStream::create): (WebCore::ReadableStream::createFromByteUnderlyingSource): (WebCore::ReadableStream::getReader): (WebCore::ReadableStream::tee): (WebCore::ReadableStream::setDefaultReader): (WebCore::ReadableStream::setByobReader): (WebCore::ReadableStream::byobReader): (WebCore::ReadableStream::setupReadableByteStreamControllerFromUnderlyingSource): (WebCore::JSReadableStream::cancel): (WebCore::JSReadableStream::pipeTo): (WebCore::JSReadableStream::pipeThrough): * Source/WebCore/Modules/streams/ReadableStream.h: (WebCore::ReadableStream::hasByteStreamController): (WebCore::ReadableStream::controller): (WebCore::ReadableStream::ReadableStream): * Source/WebCore/Modules/streams/ReadableStream.idl: * Source/WebCore/Modules/streams/ReadableStreamBYOBReader.cpp: Added. (WebCore::ReadableStreamBYOBReader::create): (WebCore::ReadableStreamBYOBReader::ReadableStreamBYOBReader): (WebCore::ReadableStreamBYOBReader::closedPromise): (WebCore::ReadableStreamBYOBReader::read): (WebCore::ReadableStreamBYOBReader::releaseLock): (WebCore::ReadableStreamBYOBReader::cancel): (WebCore::ReadableStreamBYOBReader::setupBYOBReader): (WebCore::ReadableStreamBYOBReader::initialize): (WebCore::ReadableStreamBYOBReader::genericRelease): (WebCore::ReadableStreamBYOBReader::errorReadIntoRequests): (WebCore::ReadableStreamBYOBReader::resolveClosedPromise): (WebCore::ReadableStreamBYOBReader::rejectClosedPromise): (WebCore::ReadableStreamBYOBReader::genericCancel): (WebCore::ReadableStreamBYOBReader::onClosedPromiseRejection): * Source/WebCore/Modules/streams/ReadableStreamBYOBReader.h: Added. (WebCore::ReadableStreamBYOBReader::takeFirstReadIntoRequest): (WebCore::ReadableStreamBYOBReader::readIntoRequestsSize const): (WebCore::ReadableStreamBYOBReader::addReadIntoRequest): * Source/WebCore/Modules/streams/ReadableStreamBYOBReader.idl: * Source/WebCore/Modules/streams/ReadableStreamBYOBRequest.cpp: Added. (WebCore::ReadableStreamBYOBRequest::create): (WebCore::ReadableStreamBYOBRequest::view const): (WebCore::ReadableStreamBYOBRequest::respond): (WebCore::ReadableStreamBYOBRequest::respondWithNewView): (WebCore::ReadableStreamBYOBRequest::setController): (WebCore::ReadableStreamBYOBRequest::setView): * Source/WebCore/Modules/streams/ReadableStreamBYOBRequest.h: Copied from Source/WebCore/Modules/streams/UnderlyingSourceStartCallback.h. * Source/WebCore/Modules/streams/ReadableStreamBYOBRequest.idl: * Source/WebCore/Modules/streams/ReadableStreamDefaultReader.cpp: (WebCore::ReadableStreamDefaultReader::read): (WebCore::ReadableStreamDefaultReader::genericRelease): (WebCore::JSReadableStreamDefaultReader::read): (WebCore::JSReadableStreamDefaultReader::closed const): (WebCore::JSReadableStreamDefaultReader::cancel): * Source/WebCore/Modules/streams/ReadableStreamInternals.js: (createInternalReadableStreamFromUnderlyingSource): (readableStreamError): * Source/WebCore/Modules/streams/UnderlyingSourcePullCallback.h: * Source/WebCore/Modules/streams/UnderlyingSourcePullCallback.idl: * Source/WebCore/Modules/streams/UnderlyingSourceStartCallback.h: * Source/WebCore/Modules/streams/UnderlyingSourceStartCallback.idl: * Source/WebCore/Sources.txt: * Source/WebCore/WebCore.xcodeproj/project.pbxproj: * Source/WebCore/bindings/js/JSDOMGlobalObject.cpp: (WebCore::JSC_DEFINE_HOST_FUNCTION): (WebCore::JSDOMGlobalObject::visitChildrenImpl): (WebCore::JSDOMGlobalObject::readableStreamByteStrategySize): * Source/WebCore/bindings/js/JSDOMGlobalObject.h: * Source/WebCore/bindings/js/JSDOMPromiseDeferred.h: (WebCore::callPromiseFunction): (WebCore::callPromisePairFunction): * Source/WebCore/bindings/js/WebCoreBuiltinNames.h: Canonical link: https://commits.webkit.org/300568@main
https://bugs.webkit.org/show_bug.cgi?id=299596 Reviewed by Adrian Perez de Castro. Make the usage of bmalloc conditional to support system malloc compilation. * TestWebKitAPI/glib/WPEPlatform/CMakeLists.txt: Canonical link: https://commits.webkit.org/300569@main
https://bugs.webkit.org/show_bug.cgi?id=299594 Reviewed by Fujii Hironori. Added mutex include in the file. * Source/WTF/wtf/glib/GResources.cpp: Canonical link: https://commits.webkit.org/300570@main
https://bugs.webkit.org/show_bug.cgi?id=299599 * Source/JavaScriptCore/SaferCPPExpectations/NoUnretainedMemberCheckerExpectations: * Source/WebCore/SaferCPPExpectations/NoUnretainedMemberCheckerExpectations: * Source/WebKit/SaferCPPExpectations/NoUncountedMemberCheckerExpectations: * Source/WebKit/SaferCPPExpectations/NoUnretainedMemberCheckerExpectations: * Source/WebKit/SaferCPPExpectations/UnretainedCallArgsCheckerExpectations: * Source/WebKitLegacy/SaferCPPExpectations/NoUnretainedMemberCheckerExpectations: Canonical link: https://commits.webkit.org/300571@main
https://bugs.webkit.org/show_bug.cgi?id=299582 Reviewed by Ryosuke Niwa. * Source/WebKit/Platform/mac/MenuUtilities.mm: (WebKit::menuItemForTelephoneNumber): * Source/WebKit/Platform/mac/StringUtilities.h: * Source/WebKit/Platform/mac/StringUtilities.mm: (WebKit::formattedPhoneNumberString): * Source/WebKit/SaferCPPExpectations/UnretainedCallArgsCheckerExpectations: Canonical link: https://commits.webkit.org/300572@main
https://bugs.webkit.org/show_bug.cgi?id=296689 Reviewed by Chris Dumez. When building an empty Box you can end up with an empty RefPtr. We should ensure it's valid before accessing it. Test: Tools/TestWebKitAPI/Tests/WTF/BoxPtr.cpp * Source/WTF/wtf/Box.h: (WTF::Box::isValid const): (WTF::Box::get const): (WTF::Box::operator* const): (WTF::Box::operator-> const): (WTF::Box::operator bool const): * Tools/TestWebKitAPI/Tests/WTF/BoxPtr.cpp: (TestWebKitAPI::BoxPtrClassTest::method): (TestWebKitAPI::boxPtrClassTestDeleter): (TestWebKitAPI::TEST(WTF_BoxPtr, NoCrash)): Canonical link: https://commits.webkit.org/300573@main
https://bugs.webkit.org/show_bug.cgi?id=299589 Reviewed by Fujii Hironori. Change the CMake build system to compile the bundled unifdef in C99 mode. This allows its usage of "constexpr" as a variable name, fixing the build. * Source/ThirdParty/unifdef/CMakeLists.txt: Canonical link: https://commits.webkit.org/300574@main
https://bugs.webkit.org/show_bug.cgi?id=299588 rdar://161390295 Reviewed by Youenn Fablet. This allows LazyUniqueRef to more closely mimic UniqueRef and std::unique_ptr semantics, which will return T& with their const accessor. We also add its forward declaration in wtf/Forward.h * Source/WTF/wtf/Forward.h: * Source/WTF/wtf/LazyUniqueRef.h: (WTF::LazyUniqueRef::get const): Canonical link: https://commits.webkit.org/300575@main
https://bugs.webkit.org/show_bug.cgi?id=299579 Reviewed by Ryosuke Niwa. * Source/WebCore/Modules/applepay/PaymentSummaryItems.h: * Source/WebCore/Modules/applepay/cocoa/PaymentSummaryItemsCocoa.mm: (WebCore::platformDisbursementSummaryItems): (WebCore::platformSummaryItems): * Source/WebKit/Platform/cocoa/PaymentAuthorizationPresenter.h: * Source/WebKit/Platform/cocoa/PaymentAuthorizationPresenter.mm: (WebKit::toPKContactField): (WebKit::toNSError): (WebKit::PaymentAuthorizationPresenter::completeMerchantValidation): (WebKit::PaymentAuthorizationPresenter::completePaymentMethodSelection): (WebKit::PaymentAuthorizationPresenter::completePaymentSession): (WebKit::PaymentAuthorizationPresenter::completeShippingContactSelection): (WebKit::PaymentAuthorizationPresenter::completeShippingMethodSelection): (WebKit::PaymentAuthorizationPresenter::completeCouponCodeChange): (WebKit::PaymentAuthorizationPresenter::protectedPlatformDelegate): * Source/WebKit/SaferCPPExpectations/UnretainedCallArgsCheckerExpectations: * Source/WebKit/Shared/ApplePay/cocoa/DisbursementRequestCocoa.mm: (WebKit::platformDisbursementRequest): * Source/WebKit/Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm: (WebKit::WebPaymentCoordinatorProxy::platformPaymentRequest): Canonical link: https://commits.webkit.org/300576@main
…action results https://bugs.webkit.org/show_bug.cgi?id=299736 rdar://161567763 Reviewed by Aditya Keerthi and Abrar Rahman Protyasha. Augment the text extraction filtering mechanism, such that it additionally snapshots long paragraphs of text and verifies that the rendered text in the DOM is similar to what's visually legible. Tests: TextExtractionTests.InteractionDebugDescription * Source/WebCore/PAL/pal/cocoa/VisionSoftLink.mm: * Source/WebCore/page/text-extraction/TextExtraction.cpp: (WebCore::TextExtraction::rangeForExtractedText): Add a helper method to map (visible text, optional node ID) to a `SimpleRange`. If unspecified, this just searches the entire body for the text. * Source/WebCore/page/text-extraction/TextExtraction.h: * Source/WebCore/page/text-extraction/TextExtractionTypes.h: * Source/WebKit/Platform/cocoa/ImageAnalysisUtilities.h: * Source/WebKit/Platform/cocoa/ImageAnalysisUtilities.mm: (WebKit::textRecognitionQueueSingleton): (WebKit::recognizeText): Add a helper method that takes a `CGImageRef`, and uses the Vision framework to scan the image for all visible text. Most of the heavy lifting is done on a background queue, and the results are dispatched back to the main runloop, where we invoke the completion handler. * Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in: * Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView _requestTextExtraction:completionHandler:]): (-[WKWebView _validateText:inNode:completionHandler:]): Implement the main internal helper method here. The results are cached until main frame navigation, such that repeated requests to validate the same strings don't incur any snapshotting or OCR cost. The optional node identifier here is optional, and we fall back to searching the entire document if it's `nil`. Otherwise, it can make searching for the visible text a bit more efficient, and accurate. (-[WKWebView _clearTextExtractionFilterCache]): Pull out common logic to reset caches related to text extraction filtering after process swap or mainframe navigation. * Source/WebKit/UIProcess/API/Cocoa/WKWebViewInternal.h: * Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm: (-[WKWebView _processWillSwapOrDidExit]): `-_clearTextExtractionFilterCache` when process swapping. * Source/WebKit/UIProcess/Cocoa/TextExtraction/WKTextExtractionUtilities.h: * Source/WebKit/UIProcess/Cocoa/TextExtraction/WKTextExtractionUtilities.mm: (WebKit::filterTextRecursive): (WebKit::filterText): Extend `filterText` to additionally OCR any long piece of text that has passed first-level validation in `TextExtractionFilter`; for any piece of text that's too dissimilar (with an arbitrary threshold of 0.5 edit distance) from its OCR results, we replace that text with its OCR text. This ensures that in cases where OCR is a tiny bit off (mistaking a `0` for an `O`, or `1` or an `l`) we just allow the original string through, but in cases where most of the text is missing or different, we instead prefer OCR results. This leads to no change in behavior for most non-hidden text. (WebKit::computeSimilarity): Add a helper method to compute edit distance similarity between the two given strings, or `std::nullopt` if the strings are too short (below the `minimumLength`) for a sensible comparison. * Source/WebKit/UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::takeSnapshotOfExtractedText): Add an IPC message to snapshot an extracted text range, given text and node ID. This currently only applies to main frame content, since text extraction only works with the main frame right now; when we extend this extraction to subframes, we'll want to instead move this to `WebFrame(Proxy)` and have `-_validateText:` above take a frame ID. * Source/WebKit/UIProcess/WebPageProxy.h: * Source/WebKit/UIProcess/ios/PageClientImplIOS.mm: (WebKit::PageClientImpl::processDidExit): (WebKit::PageClientImpl::processWillSwap): (WebKit::PageClientImpl::didCommitLoadForMainFrame): * Source/WebKit/UIProcess/mac/PageClientImplMac.mm: (WebKit::PageClientImpl::processWillSwap): (WebKit::PageClientImpl::didCommitLoadForMainFrame): Make these all call into `-_clearTextExtractionFilterCache`. * Source/WebKit/WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::takeSnapshotOfExtractedText): Use `rangeForExtractedText` above to map the text to a DOM range, and then use `TextIndicator` to produce a snapshot of the range and send it back to the UI process. * Source/WebKit/WebProcess/WebPage/WebPage.h: * Source/WebKit/WebProcess/WebPage/WebPage.messages.in: * Tools/TestWebKitAPI/Tests/WebKitCocoa/TextExtractionTests.mm: (TestWebKitAPI::TEST(TextExtractionTests, InteractionDebugDescription)): * Tools/TestWebKitAPI/Tests/WebKitCocoa/debug-text-extraction.html: Augment an existing API test, to confirm that long runs of hidden text don't show up in the debug text extraction output (in this case, white text on a white background). Canonical link: https://commits.webkit.org/300716@main
https://bugs.webkit.org/show_bug.cgi?id=299817 rdar://161590500 Reviewed by Abrar Rahman Protyasha. This enum was being defined in three places, which causes issues if they are not defined in a particular order. Fix by removing two of the three definitions, since they aren't even used anyways. * Source/WebKit/Shared/API/c/WKImmediateActionTypes.h: * Source/WebKit/WebKit2Prefix.h: Canonical link: https://commits.webkit.org/300717@main
https://bugs.webkit.org/show_bug.cgi?id=299718 rdar://161547921 Reviewed by Brandon Stewart. Dropbox.com fixed their website and send now the correct HTTP header value, sandbox, for content-security-policy. Previously they were sending content-security-policy: sandbox allow-forms allow-scripts which forced webkit to create a Quirk implemented by webkit.org/b/296749 We can remove the quirk. * Source/WebCore/loader/DocumentLoader.cpp: (WebCore::DocumentLoader::continueAfterContentPolicy): * Source/WebCore/page/Quirks.cpp: (WebCore::Quirks::shouldAllowDownloadsInSpiteOfCSP const): Deleted. * Source/WebCore/page/Quirks.h: Canonical link: https://commits.webkit.org/300718@main
https://bugs.webkit.org/show_bug.cgi?id=299824 rdar://161589218 Reviewed by Ben Nham. When making a new WebPageProxy with an opener, there is logic in ProvisionalPageProxy::didCommitLoadForFrame that adopts the message receiver and maintains the RemotePageProxy/WebPageProxy "ownership" of WebPages in processes. However, when navigating without an opener, we were just missing some cleanup. This adds that cleanup and test SPI to verify it is cleaned up properly. Tests: Tools/TestWebKitAPI/Tests/WebKitCocoa/SiteIsolation.mm * Source/WebKit/UIProcess/API/Cocoa/WKProcessPool.mm: (-[WKProcessPool _countWebPagesInAllProcessesForTesting:]): * Source/WebKit/UIProcess/API/Cocoa/WKProcessPoolPrivate.h: * Source/WebKit/UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::commitProvisionalPage): (WebKit::WebPageProxy::shouldClosePreviousPage): * Source/WebKit/UIProcess/WebPageProxy.h: * Source/WebKit/UIProcess/WebProcessPool.cpp: (WebKit::WebProcessPool::countWebPagesInAllProcessesForTesting): * Source/WebKit/UIProcess/WebProcessPool.h: * Source/WebKit/WebProcess/WebProcess.cpp: (WebKit::WebProcess::initializeWebProcess): (WebKit::WebProcess::focusedWebPage const): (WebKit::WebProcess::createWebPage): (WebKit::WebProcess::countWebPagesForTesting): (WebKit::WebProcess::ensureGPUProcessConnection): (WebKit::WebProcess::gpuProcessConnectionClosed): (WebKit::WebProcess::ensureModelProcessConnection): (WebKit::WebProcess::accessibilityRelayProcessSuspended): * Source/WebKit/WebProcess/WebProcess.h: * Source/WebKit/WebProcess/WebProcess.messages.in: * Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm: (WebKit::activePagesOrigins): * Tools/TestWebKitAPI/Tests/WebKitCocoa/SiteIsolation.mm: (TestWebKitAPI::countWebPages): (TestWebKitAPI::TEST(SiteIsolation, ProcessReuse)): Canonical link: https://commits.webkit.org/300719@main
https://bugs.webkit.org/show_bug.cgi?id=299822 rdar://147261775 Reviewed by Wenson Hsieh and Abrar Rahman Protyasha. When presenting a context menu after dismissing another one, the first menu's dismissal animation may complete while the second menu is being presented. This scenario is not accounted for in `WKSelectPicker`, which calls `-[WKContentView accessoryDone]` whenever a dismissal animation is completed. Consequently, the completion of the dismissal of the first menu can trigger the dismissal of the second menu. Fix by only calling `accessoryDone` after dismissal if the focused element is still the same. If the focused element changes for any other reason, the menu would already be dismissed. * LayoutTests/fast/forms/ios/select-change-focus-to-another-select-expected.txt: Added. * LayoutTests/fast/forms/ios/select-change-focus-to-another-select.html: Added. * Source/WebKit/UIProcess/ios/forms/WKFormSelectPicker.mm: (-[WKSelectPicker contextMenuInteraction:willEndForConfiguration:animator:]): Canonical link: https://commits.webkit.org/300720@main
…on-in-child.html is failing https://bugs.webkit.org/show_bug.cgi?id=299628 rdar://161203486 Reviewed by Basuke Suzuki. Suppose we have a mainframe and an iframe and this series of navigations happens: 1. iframe fragment navigates to "/#a" 2. main frame fragment navigates to "/#1" 3. main frame fragment navigates to "/#2" 4. main frame fragment navigates to "/#3" 5. iframe goes back 6. iframe fragment navigates to "/#b" After Step 5, the UI Process b/f list should be: A) mainframe - URL - ItemID A ** iframe - URL - ItemID A B) mainframe - URL - ItemID B ** iframe - URL/#a - ItemID B C) mainframe - URL/#1 - ItemID C ** iframe - URL/#a - ItemID C D) mainframe - URL/#2 - ItemID D ** iframe - URL/#a - ItemID D E) mainframe - URL/#3 - ItemID E ** iframe - URL/#a - ItemID E The mainframe's Navigation object's m_entries should be: A) mainframe - URL - ItemID A C) mainframe - URL/#1 - ItemID C D) mainframe - URL/#2 - ItemID D E) mainframe - URL/#3 - ItemID E <--- current index The iframe's Navigation object's m_entries should be: A) ** iframe - URL - ItemID A <--- current index E) ** iframe - URL/#a - ItemID E According to this layout test, after Step 6: The mainframe's Navigation object's m_entries should be: A) mainframe - URL - ItemID A <--- current index The iframe's Navigation object's m_entries should be: A) ** iframe - URL - ItemID A F) ** iframe - URL/#b - ItemID F <--- current index So when a subframe has a PUSH same-document navigation and disposes of any forward entries, any parent frame must do the same. This test was failing because the parent frame was not disposing of its forward entries. To fix this, we add a new function to recusively dispose of all forward entries in any parent frames when a subframe has a PUSH same-document navigation. We use the ItemID to determine what entry must stay and then dispose of any entries that come after that one. * LayoutTests/imported/w3c/web-platform-tests/navigation-api/per-entry-events/dispose-for-navigation-in-child-expected.txt: * Source/WebCore/page/LocalDOMWindowProperty.cpp: (WebCore::LocalDOMWindowProperty::protectedFrame const): * Source/WebCore/page/LocalDOMWindowProperty.h: * Source/WebCore/page/Navigation.cpp: (WebCore::Navigation::updateNavigationEntry): (WebCore::Navigation::disposeOfForwardEntriesInParents): Call recursivelyDisposeOfForwardEntriesInParents on the main frame, which will traverse down the frame tree, and for each frame until we reach the subframe that actually navigated, dispose of any forward entries. (WebCore::Navigation::recursivelyDisposeOfForwardEntriesInParents): (WebCore::Navigation::updateForNavigation): This is called for same-document navigations. If it's a PUSH navigation, call disposeOfForwardEntriesInParents. The ItemID that we keep in these parent frames is the current ItemID right before this PUSH operation happens. * Source/WebCore/page/Navigation.h: Canonical link: https://commits.webkit.org/300721@main
…ntent process. https://bugs.webkit.org/show_bug.cgi?id=299710 rdar://161534911 Reviewed by Youenn Fablet. We re-use the VP9TestingOverrides structure to be able to store if we the VP9 HW decoder is available. When the value of GPUProcessConnectionInfo::hasVP9HardwareDecoder is retrieved, we set it to VP9TestingOverrides. This allows to enable the SourceBufferParserWebM to work in the content process. * Source/WebCore/platform/graphics/cocoa/VP9UtilitiesCocoa.h: * Source/WebCore/platform/graphics/cocoa/VP9UtilitiesCocoa.mm: (WebCore::VP9TestingOverrides::setVP9HardwareDecoderEnabledOverride): (WebCore::vp9HardwareDecoderAvailable): * Source/WebKit/WebProcess/GPU/GPUProcessConnection.cpp: (WebKit::GPUProcessConnection::didInitialize): Canonical link: https://commits.webkit.org/300722@main
https://bugs.webkit.org/show_bug.cgi?id=299556 rdar://161361009 Reviewed by Ryosuke Niwa. The LargestContentfulPaint entry for an image includes `loadTime`[1], which indicates the time at which the image became available to paint, as specified by paint-timing [2]. This is not the resource load time, and there's some ambiguity about what it means for elements that are appended to the DOM after the image load is complete [3], but we'll track it as the time that `CachedImageClient::imageChanged()` is called, and if the image is already available for a new renderer, use the paint time. Bottleneck through `Document::didLoadImage()` which checks the setting. Have RenderBox, RenderInline, RenderSVGImage and LegacyRenderSVGImage call imageDidLoad. Move `findLayerUsedImage()` to StyleFillLayers since both RenderBox and RenderInline use it now. Track `loadTime` and match it with a subsequent image paint by having `LargestContentfulPaintData` store it in the per-element image->PendingImageData hash set. [1] https://w3c.github.io/largest-contentful-paint/#dom-largestcontentfulpaint-loadtime [2] https://w3c.github.io/paint-timing/#process-image-that-finished-loading [3] w3c/largest-contentful-paint#146 Tested by `-platform-tests/largest-contentful-paint` tests. * LayoutTests/TestExpectations: * LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/animated/observe-non-animated-image.tentative-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/contracted-image-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/cross-origin-image.sub-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/expanded-image-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/image-TAO.sub-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/image-inside-svg-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/image-not-fully-visible-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/image-removed-before-load-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/image-src-change-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/invisible-images-composited-1-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/invisible-images-composited-2-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/loadTime-after-appendChild-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/multiple-image-same-src-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/multiple-redirects-TAO-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/observe-after-untrusted-scroll-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/observe-css-generated-image-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/observe-image-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/observe-svg-background-image-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/observe-svg-data-uri-background-image-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/observe-svg-data-uri-image-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/observe-svg-image-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/placeholder-image-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/progressively-loaded-image-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/redirects-tao-star-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/repeated-image-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/resized-image-not-reconsidered-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/same-origin-redirects-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/toJSON-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/transparent-text-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/largest-contentful-paint/video-poster-expected.txt: Added. * Source/WebCore/dom/Document.cpp: (WebCore::Document::didLoadImage const): * Source/WebCore/dom/Document.h: * Source/WebCore/page/LargestContentfulPaintData.cpp: (WebCore::LargestContentfulPaintData::potentiallyAddLargestContentfulPaintEntry): (WebCore::LargestContentfulPaintData::takePendingEntry): (WebCore::LargestContentfulPaintData::didLoadImage): (WebCore::LargestContentfulPaintData::didPaintImage): * Source/WebCore/page/LargestContentfulPaintData.h: * Source/WebCore/rendering/BackgroundPainter.cpp: (WebCore::BackgroundPainter::paintFillLayerImpl const): Call currentFrameIsComplete() to only count fully renderable images for LCP. * Source/WebCore/rendering/RenderBox.cpp: (WebCore::RenderBox::imageChanged): (WebCore::findLayerUsedImage): Deleted. * Source/WebCore/rendering/RenderImage.cpp: (WebCore::RenderImage::imageChanged): (WebCore::RenderImage::paintReplaced): * Source/WebCore/rendering/RenderInline.cpp: (WebCore::RenderInline::imageChanged): * Source/WebCore/rendering/svg/RenderSVGImage.cpp: (WebCore::RenderSVGImage::imageChanged): * Source/WebCore/rendering/svg/legacy/LegacyRenderSVGImage.cpp: (WebCore::LegacyRenderSVGImage::imageChanged): * Source/WebCore/style/Styleable.h: (WebCore::Styleable::protectedElement const): Add to fix some Safer Cpp warnings. * Source/WebCore/style/values/backgrounds/StyleFillLayers.h: (WebCore::Style::FillLayers<Layer>::findLayerUsedImage const): Canonical link: https://commits.webkit.org/300723@main
…cess dies https://bugs.webkit.org/show_bug.cgi?id=299635 Reviewed by BJ Burg. Destroy WebFrameInspectorTargetProxy when its WebFrameProxy detaches from the page. Otherwise if we try to do it later the inspector controller may not be reachable, as m_page is already null. Tested by following the steps in the bug. * Source/WebKit/UIProcess/WebFrameProxy.cpp: (WebKit::WebFrameProxy::webProcessWillShutDown): Canonical link: https://commits.webkit.org/300724@main
https://bugs.webkit.org/show_bug.cgi?id=299815 rdar://161590228 Unreviewed -- test gardening. Two animation tests draw contrast() and invert() filters through CA since the filtered elements animate. But the expected pages were using the software filters to draw the filters. After 300173@main the expected pages are using CGStyle which draw the filters by CA also. So the tests and the expected pages match 100%. * LayoutTests/TestExpectations: Canonical link: https://commits.webkit.org/300725@main
https://bugs.webkit.org/show_bug.cgi?id=299833 rdar://161609027 Reviewed by Aditya Keerthi. This patch adds a suggestion for the swift format command that will fix errors identfied by check-webkit-style. * Tools/Scripts/webkitpy/style/checker.py: (StyleProcessor.process): Canonical link: https://commits.webkit.org/300726@main
https://bugs.webkit.org/show_bug.cgi?id=299835 rdar://161607588 Unreviewed, revert 300115@main as it seems to have regressed MotionMark Reverted change: Address safer CPP warnings in DestinationColorSpace.cpp https://bugs.webkit.org/show_bug.cgi?id=298923 300115@main (2869849) * Source/WebCore/SaferCPPExpectations/UnretainedCallArgsCheckerExpectations: * Source/WebCore/SaferCPPExpectations/UnretainedLocalVarsCheckerExpectations: * Source/WebCore/platform/graphics/DestinationColorSpace.cpp: (WebCore::operator==): (WebCore::DestinationColorSpace::asRGB const): (WebCore::DestinationColorSpace::asExtended const): (WebCore::DestinationColorSpace::supportsOutput const): (WebCore::DestinationColorSpace::usesExtendedRange const): (WebCore::DestinationColorSpace::usesITUR_2100TF const): (WebCore::operator<<): Canonical link: https://commits.webkit.org/300727@main
This reverts commit a1cb5e0.
sosukesuzuki
marked this pull request as ready for review
September 30, 2025 03:44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update WebKit with additional following commits:
Latin1Characterinstead ofLCharWebKit Update Summary (September 2025)
Overview
This document summarizes the major changes in WebKit/JavaScriptCore from the September 2025 update. The update includes approximately 254 JSC-related commits with significant improvements to performance, stability, and developer experience.
Critical Bug Fixes
Memory Safety
Promise and Async Improvements
Promise.anyin async stack traces (d9a997b)Performance Optimizations
JIT Compiler Improvements
WebAssembly Improvements
API and Language Features
Iterator Helpers
Iterator.prototype.slidingintoIterator.prototype.windows(1d49e82)Math Extensions
Math.sumPreciseimplementation (6022940)Error Handling
Infrastructure Changes
Character Type Refactoring
LChartype withLatin1Characterthroughout the codebase for better clarityBuild System
Testing Infrastructure
Bun-Specific Modifications
Preserved Customizations
BUN_JSC_ADDITIONSfor Bun-specific featuresConflicts Resolved
isAsyncFramefor async stack tracesBreaking Changes and Reverts
Reverted Features
Security Improvements
Platform Support
Notable Debugging Enhancements
Performance Metrics
Future Considerations
Migration Notes for Bun Team
LCharhave been replaced withLatin1Character