Repository navigation
sync webkit to df351d09b73840cdb1b36cba19f7a87504347516 - #33
Merged
Merged
Conversation
…-platform-tests/video-rvfc/request-video-frame-callback-webrtc.https.html is a flaky failure https://bugs.webkit.org/show_bug.cgi?id=266356 rdar://119621367 Unreviewed test gardening. Adding test expectation * LayoutTests/platform/ios/TestExpectations: * LayoutTests/platform/mac/TestExpectations: Canonical link: https://commits.webkit.org/271992@main
https://bugs.webkit.org/show_bug.cgi?id=266303 rdar://problem/119568843 Reviewed by Simon Fraser. We should check if a priority candidate is part of an excluded subtree before selecting it as our anchor node. * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-anchoring/focused-element-in-excluded-subtree-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-anchoring/focused-element-in-excluded-subtree.html: Added. * Source/WebCore/page/scrolling/ScrollAnchoringController.cpp: (WebCore::ScrollAnchoringController::didFindPriorityCandidate): Canonical link: https://commits.webkit.org/271993@main
https://bugs.webkit.org/show_bug.cgi?id=266054 rdar://119354060 Reviewed by Alex Christensen. The resourceRequest in NavigationAction is the original request of the action, which is not necessarily the ongoing or final request of the action (for example, server redirection will change request of the navigation), so this patch updates the name for clarity. * Source/WebCore/loader/NavigationAction.cpp: (WebCore::NavigationAction::NavigationAction): * Source/WebCore/loader/NavigationAction.h: (WebCore::NavigationAction::isEmpty const): (WebCore::NavigationAction::url const): (WebCore::NavigationAction::originalRequest const): (WebCore::NavigationAction::resourceRequest const): Deleted. * Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.cpp: (WebKit::WebChromeClient::createWindow): * Source/WebKit/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction): * Source/WebKit/WebProcess/WebCoreSupport/WebRemoteFrameClient.cpp: (WebKit::WebRemoteFrameClient::changeLocation): Canonical link: https://commits.webkit.org/271994@main
…flex items at the end of layout. https://bugs.webkit.org/show_bug.cgi?id=264303 rdar://117181858 Reviewed by Alan Baradlay. In certain situations flex layout will invalidate the preferred widths bits of flex items towards the end of layout (in layoutAndPlaceChildren), with a call to updateBlockChildDirtyBitsBeforeLayout. This is incorrect since by the time we reach layoutAndPlaceChildren flex layout will not compute the preferred widths of these items again. This leaves the render tree in a bad state where we may compute the preferred widths of a flex item at some point during layout, dirty this bit later, and exit layout with this bit dirtied. In this state we may not be able to correctly invalidate the ancestor chain of a flex item in certain situations like in the added test case. When the image is loaded in the test case we will be unable to invalidate the preferred widths bits of its ancestor chain since the item had already been dirtied so we assume the rest of the chain has already been handled. Instead, we should be performing this type of invalidation in one of the following scenarios: 1.) The content of a flex item changes 2.) Certain style changes on the flex item that would impact the preferred widths computations of its items. One example of this is a flex item with an aspect ratio since the aspect ratio could impact its "content based minimum size," if the flexbox's cross size size changes in a specific way: https://drafts.csswg.org/css-flexbox-1/#content-based-minimum-size This patch focuses on correcting flex layout to more closely follow the principles in 2. updateFlexItemDirtyBitsBeforeLayout was added to replace the call to updateBlockChildDirtyBitsBeforeLayout so that we can continue to dirty flex items for layout without dirtying their preferred widths bits as well. Instead, in RenderFlexibleBox::styleDidChange we can call needsPreferredWidthsRecalculation on each flex item to determine if we should dirty the preferred widths bit of it. * LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/nested-flex-image-loading-invalidates-intrinsic-sizes-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/nested-flex-image-loading-invalidates-intrinsic-sizes.html: Added. * Source/WebCore/rendering/RenderFlexibleBox.cpp: (WebCore::updateFlexItemDirtyBitsBeforeLayout): (WebCore::RenderFlexibleBox::styleDidChange): (WebCore::RenderFlexibleBox::layoutAndPlaceChildren): Canonical link: https://commits.webkit.org/271995@main
…tPath> is incorrect https://bugs.webkit.org/show_bug.cgi?id=264184 Reviewed by Said Abou-Hallawa. Revision 264666@main broke <tspan textLength="..."> behavior on <textPath> elements. The logic added to fix the intra-character spacing, wasn't intended for text path layout, where each character by definition is placed in its own box. Fix the MDN regression by disabling the new code paths for text-on-path layout. Covered by new test in svg/text/textLength-tspan-in-textPath.html. Unfortunately it's hard to make a cross-platform reftest, given the nature of the kind of test, and the missing way to layout text along a path in HTML/CSS. * LayoutTests/platform/glib/svg/text/textLength-tspan-in-textPath-expected.txt: Added. * LayoutTests/platform/ios/svg/text/textLength-tspan-in-textPath-expected.txt: Added. * LayoutTests/platform/mac/svg/text/textLength-tspan-in-textPath-expected.png: Added. * LayoutTests/platform/mac/svg/text/textLength-tspan-in-textPath-expected.txt: Added. * LayoutTests/svg/text/textLength-tspan-in-textPath.html: Added. * Source/WebCore/rendering/svg/SVGTextLayoutEngine.cpp: (WebCore::SVGTextLayoutEngine::layoutTextOnLineOrPath): Canonical link: https://commits.webkit.org/271996@main
…s_value() in JSC::Wasm::isSubtypeIndex(TypeIndex, TypeIndex)" https://bugs.webkit.org/show_bug.cgi?id=258128 Reviewed by Justin Michaud. Adds test for fixed bug. * JSTests/wasm/gc/bug258128.js: Added. (module): Canonical link: https://commits.webkit.org/271997@main
https://bugs.webkit.org/show_bug.cgi?id=266350 rdar://119217913 Reviewed by Brent Fulgham. Call _RegisterApplication on Catalyst while holding a XPC sandbox extension. Calling this function without the sandbox extension will crash. * Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm: (WebKit::WebProcess::platformInitializeWebProcess): Canonical link: https://commits.webkit.org/271998@main
https://bugs.webkit.org/show_bug.cgi?id=265864 rdar://119184902 Unreviewed build fix. Remove unused source files to fix builds that don't strip symbols. * Source/ThirdParty/libwebrtc/libwebrtc.xcodeproj/project.pbxproj: - Let Xcode have its way with the project file by re-ordering files from 41AB330F2B1F8D7700CEC7AE to 41AB33172B1F8D7700CEC7AE. - Remove vp9_firstpass.{c,h} as this code is unused with CONFIG_REALTIME_ONLY=1. - Remove vpx_convolve8_neon_asm.{c,h} since they create duplicate symbols for vpx_convolve8_neon.{c,h}. - Remove vpx_convolve8_*_neon.asm files since we don't build assembly sources (using yasm) for Apple silicon architectures. Canonical link: https://commits.webkit.org/271999@main
https://bugs.webkit.org/show_bug.cgi?id=266315 rdar://119585201 Reviewed by Aakash Jain. Append a letter release family to every version name with a compliant SDK string. * Tools/Scripts/libraries/resultsdbpy/resultsdbpy/__init__.py: Bump version. * Tools/Scripts/libraries/resultsdbpy/setup.py: Ditto. * Tools/Scripts/libraries/resultsdbpy/resultsdbpy/view/static/js/configuration.js: (Configuration.releaseForSDK): Convert a SDK to the release family. (Configuration.prototype.toParams): Strip release family from the version_name. Canonical link: https://commits.webkit.org/272000@main
…obscuredSizeOverride in TestWebKitAPI.WKWebViewCloseAllMediaPresentations.ElementFullscreen result of constant crash https://bugs.webkit.org/show_bug.cgi?id=265068 rdar://118579209 Unreviewed test gardening. Disabling crashing API-Test. * Tools/TestWebKitAPI/Tests/WebKitCocoa/WKWebViewCloseAllMediaPresentations.mm: (DISABLED_ElementFullscreen): (loadPictureInPicture): Deleted. (TEST): Deleted. Canonical link: https://commits.webkit.org/272001@main
rdar://119629801 rdar://119629801 [ Build Failure ] revokeLaunchServicesSandboxExtension is an undeclared identifier Reverted change: Register application in the WebProcess on Catalyst https://bugs.webkit.org/show_bug.cgi?id=266350 rdar://119217913 https://commits.webkit.org/271998@main Canonical link: https://commits.webkit.org/272002@main
…dio-session-mode.html is a flaky crash https://bugs.webkit.org/show_bug.cgi?id=265954 rdar://119265443 Unreviewed test gardening. Updating test expectation * LayoutTests/platform/mac-wk2/TestExpectations: Canonical link: https://commits.webkit.org/272003@main
https://bugs.webkit.org/show_bug.cgi?id=266311 rdar://119582604 Reviewed by Justin Michaud. Let's not fallback to slow C++ JSBoundFunction code, which invokes function through interpreter again. We can just materialize JIT code from JSBoundFunction thunk and continue running from JS world instead of jumping to C++ and jumping back to JS. * Source/JavaScriptCore/jit/JITOperations.cpp: (JSC::materializeTargetCode): (JSC::JSC_DEFINE_JIT_OPERATION): * Source/JavaScriptCore/jit/JITOperations.h: * Source/JavaScriptCore/jit/ThunkGenerators.cpp: (JSC::boundFunctionCallGenerator): * Source/JavaScriptCore/runtime/VM.cpp: (JSC::thunkGeneratorForIntrinsic): Canonical link: https://commits.webkit.org/272004@main
https://bugs.webkit.org/show_bug.cgi?id=266355 rdar://119621360 Reviewed by Chris Dumez. Store the String to be parsed in a member variable instead of only storing pointers to the start and end of the String to avoid crashes like the one caused by caused by 270868@main. * Source/WebCore/html/track/VTTScanner.cpp: (WebCore::VTTScanner::VTTScanner): * Source/WebCore/html/track/VTTScanner.h: Canonical link: https://commits.webkit.org/272005@main
* Tools/TestWebKitAPI/Tests/WebKitCocoa/WKWebViewCloseAllMediaPresentations.mm: Canonical link: https://commits.webkit.org/272006@main
https://bugs.webkit.org/show_bug.cgi?id=266374 rdar://119632464 Broke the TestWebKitAPI build Unreviewed build fix. * Tools/TestWebKitAPI/Tests/WebKitCocoa/WKWebViewCloseAllMediaPresentations.mm: Canonical link: https://commits.webkit.org/272007@main
https://bugs.webkit.org/show_bug.cgi?id=266376 Introduced perf regression Reverted changeset: "Unreviewed, reverting 271900@main." https://bugs.webkit.org/show_bug.cgi?id=266340 https://commits.webkit.org/271984@main Canonical link: https://commits.webkit.org/272008@main
https://bugs.webkit.org/show_bug.cgi?id=265990 Reviewed by Žan Doberšek. Add an unique ID to cairo surfaces created in ImageBackingStoreCairo. This unique ID allows us to differentiate when the cairo surface that's backing an image has changed, so we are sure that we're not using an incorrect value cached inside some ImageBackingStore. * Source/WebCore/platform/graphics/cairo/CairoUtilities.cpp: (WebCore::attachSurfaceUniqueID): (WebCore::getSurfaceUniqueID): * Source/WebCore/platform/graphics/cairo/CairoUtilities.h: * Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp: (WebCore::CoordinatedGraphicsLayer::flushCompositingStateForThisLayerOnly): * Source/WebCore/platform/image-decoders/cairo/ImageBackingStoreCairo.cpp: (WebCore::ImageBackingStore::image const): Canonical link: https://commits.webkit.org/272009@main
…ain/contain-size-inline-block-003.html only fail on GTK. https://bugs.webkit.org/show_bug.cgi?id=266345 rdar://problem/119617786 Unreviewed, test gardening. * LayoutTests/TestExpectations: * LayoutTests/platform/gtk/TestExpectations: Canonical link: https://commits.webkit.org/272010@main
https://bugs.webkit.org/show_bug.cgi?id=266357 Reviewed by Antti Koivisto. Let's hold on to ruby base min/max width and make sure the associated annotation box's min/max values are taken into account. * Source/WebCore/rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths const): Canonical link: https://commits.webkit.org/272011@main
https://bugs.webkit.org/show_bug.cgi?id=266294 rdar://119563251 Reviewed by Justin Michaud. FOR_EACH_BYTECODE_HELPER_ID was mistakenly lumped in with FOR_EACH_LLINT_NATIVE_HELPER, which does not populate their entries in g_opcodeMapWide16 and g_opcodeMapWide32. This patch fixes that. This was causing CLoop runs to crash on nullptr derefs on these non-initialized entries. * Source/JavaScriptCore/llint/LLIntOpcode.h: * Source/JavaScriptCore/llint/LowLevelInterpreter.cpp: (JSC::CLoop::execute): Canonical link: https://commits.webkit.org/272012@main
…splay-sampling-profiler-output https://bugs.webkit.org/show_bug.cgi?id=266327 rdar://119597908 Reviewed by Justin Michaud. Add --top-bytecode-count and --top-function-count options to display-sampling-profiler-output to see more information easily. * Tools/Scripts/display-sampling-profiler-output: Canonical link: https://commits.webkit.org/272013@main
…ting AVSampleBufferAttachContentKey https://bugs.webkit.org/show_bug.cgi?id=266375 rdar://119345487 Reviewed by Jer Noble. On iOS a key may be usable for decryption even when its status isn't KeyStatus::Usable. Accounted for this by reusing the logic in CDMInstanceFairPlayStreamingAVFObjC::isAnyKeyUsable to determine if a key is usable. Also asserted that there is no usable key whenever CDMInstanceSessionFairPlayStreamingAVFObjC::contentKeyForSample returns nil. * Source/WebCore/platform/graphics/avfoundation/objc/CDMInstanceFairPlayStreamingAVFObjC.h: * Source/WebCore/platform/graphics/avfoundation/objc/CDMInstanceFairPlayStreamingAVFObjC.mm: (WebCore::isPotentiallyUsableKeyStatus): (WebCore::CDMInstanceFairPlayStreamingAVFObjC::isAnyKeyUsable const): (WebCore::CDMInstanceSessionFairPlayStreamingAVFObjC::isAnyKeyUsable const): (WebCore::CDMInstanceSessionFairPlayStreamingAVFObjC::contentKeyForSample): Canonical link: https://commits.webkit.org/272014@main
https://bugs.webkit.org/show_bug.cgi?id=266370 Reviewed by Ryosuke Niwa. Stop using CheckedPtr / CheckedRef in TreeScopeOrderedMap.h. Use WeakPtr / WeakRef instead to generate more actionable crashes. This tested as performance neutral on Speedometer 2 & 3. * Source/WebCore/dom/TreeScope.cpp: (WebCore::TreeScope::getAllElementsById const): (WebCore::TreeScope::labelElementsForId): * Source/WebCore/dom/TreeScope.h: * Source/WebCore/dom/TreeScopeOrderedMap.cpp: (WebCore::TreeScopeOrderedMap::add): (WebCore::TreeScopeOrderedMap::remove): (WebCore::TreeScopeOrderedMap::get const): (WebCore::TreeScopeOrderedMap::getAll const): (WebCore::TreeScopeOrderedMap::getElementsByLabelForAttribute const): (WebCore::TreeScopeOrderedMap::getAllElementsById const): * Source/WebCore/dom/TreeScopeOrderedMap.h: Canonical link: https://commits.webkit.org/272015@main
https://bugs.webkit.org/show_bug.cgi?id=265721 Reviewed by Justin Michaud. This patch fixes two related issues. The main issue is that there is a cache for type definition unrollings that didn't hold the values strongly, and since these values are not held by the Wasm instance they could get de-allocated. This could cause correctness issues or crashes. That bug was in practice hard to trigger (though it did trigger on some large compiled-to-wasm examples), because it was hidden by a second bug. The placeholders in recursive types (used to delay type expansion to cut off infinite expansion of recursive types) were also not held strongly by the TypeInformation store, so they could also get de-allocated when an instance gets collected. This bug makes memoization less effective but didn't affect correctness. This patch makes the placeholders held by the TypeInformation store itself, similar to how special type signatures are held by the store. They are also only allocated via a helper function now, which ensures the store holds the typedef. It also fixes the cache by using RefPtr for the value type. * JSTests/wasm/gc/typedef.js: * Source/JavaScriptCore/wasm/WasmParser.h: (JSC::Wasm::Parser<SuccessType>::parseValueType): * Source/JavaScriptCore/wasm/WasmSectionParser.cpp: (JSC::Wasm::SectionParser::parseSubtype): * Source/JavaScriptCore/wasm/WasmTypeDefinition.cpp: (JSC::Wasm::TypeInformation::getPlaceholderProjection): * Source/JavaScriptCore/wasm/WasmTypeDefinition.h: Canonical link: https://commits.webkit.org/272016@main
https://bugs.webkit.org/show_bug.cgi?id=266056 Reviewed by Justin Michaud. Use subtyping instead of type equality for annotated select arguments. * JSTests/wasm/gc/bug266056.js: Added. * Source/JavaScriptCore/wasm/WasmFunctionParser.h: (JSC::Wasm::FunctionParser<Context>::parseExpression): Canonical link: https://commits.webkit.org/272017@main
https://bugs.webkit.org/show_bug.cgi?id=266302 rdar://119568570 Reviewed by Tim Horton. Adopt `WKSE*`-prefixed objects, which are aliased to the new classes, protocols, or types and constants exposed from the ServiceExtensions framework (if available), or otherwise aliased to the `UIAsync*` SPI names. No change in behavior; see below for more details. * Source/WebCore/WebCore.xcodeproj/project.pbxproj: * Source/WebCore/platform/ios/WebEvent.mm: (webEventType): (isChangingKeyModifiers): (-[WebEvent initWithKeyEvent:]): (-[WebEvent originalKeyEvent]): (-[WebEvent initWithUIKeyEvent:]): Deleted. (-[WebEvent originalUIKeyEvent]): Deleted. * Source/WebCore/platform/ios/WebEventPrivate.h: * Source/WebCore/platform/ios/WebSEDefinitions.h: Copied from Source/WebKit/UIProcess/API/ios/WKSEDefinitions.h. * Source/WebKit/Platform/spi/ios/UIKitSPI.h: * Source/WebKit/Shared/DocumentEditingContext.h: * Source/WebKit/Shared/DocumentEditingContext.mm: (WebKit::setOptionalEditingContextProperties): (WebKit::DocumentEditingContext::toLegacyPlatformContext): (WebKit::DocumentEditingContext::toPlatformContext): * Source/WebKit/UIProcess/API/ios/WKSEDefinitions.h: * Source/WebKit/UIProcess/API/ios/WKWebViewPrivateForTestingIOS.h: * Source/WebKit/UIProcess/WebPageProxy.h: * Source/WebKit/UIProcess/ios/WKContentViewInteraction.h: * Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm: (-[WKContentView _updateRuntimeProtocolConformanceIfNeeded]): (-[WKContentView textInteractionGesture:shouldBeginAtPoint:]): (toGestureType): (toWKSEGestureType): (toSelectionTouch): (toWKSESelectionTouch): (toWKSESelectionFlags): (toSelectionFlags): (selectionChangedWithGesture): (selectionChangedWithTouch): (-[WKContentView changeSelectionWithGestureAt:withGesture:withState:]): (-[WKContentView changeSelectionWithGestureAt:withGesture:withState:withFlags:]): (-[WKContentView changeSelectionWithTouchAt:withSelectionTouch:baseIsStart:withFlags:]): (-[WKContentView changeSelectionWithTouchesFrom:to:withGesture:withState:]): (logTextInteraction): (-[WKContentView insertTextSuggestion:]): (shiftKeyState): (-[WKContentView _deferKeyEventToInputMethodEditing:]): (-[WKContentView _interpretKeyEvent:isCharEvent:]): (-[WKContentView dataListTextSuggestions]): (-[WKContentView setDataListTextSuggestions:]): (-[WKContentView updateTextSuggestionsForInputDelegate]): (-[WKContentView _provideSuggestionsToInputDelegate:]): (-[WKContentView _provideUITextSuggestionsToInputDelegate:]): (toWebRequest): (-[WKContentView requestDocumentContext:completionHandler:]): Make the completion handler here take an `NSObject`, representing either a `UIWKDocumentRequest` or the replacement class from ServiceExtensions. This allows us to maintain both binary and source compatibility in all the following cases: - Against iOS 17, which doesn't have async text input support at all, or against versions of iOS 17 that have `UIAsyncTextInput` but not the replacement APIs in ServiceExtensions. We fall back to `UIWKDocumentContext` here. - Building/running against versions of iOS 17 that have both `UIAsyncTextInput` and the requisite APIs in ServiceExtensions, but have `UIKit/async_text_input` disabled by default — here, we use the new ServiceExtensions API objects and flags (which, for the most part, maintain binary compatibility), with the exception of `WKSETextDocumentRequest`. In the completion handler, if async text input is disabled, we return a `UIWKDocumentRequest` to maintain binary compatibility. - Lastly, building/running against versions of iOS 17 that have both `UIAsyncTextInput` and the requisite APIs in ServiceExtensions, and enable `UIKit/async_text_input` by default. Here, we return the new `WKSETextDocumentRequest`. (-[WKContentView selectPositionAtPoint:withContextRequest:completionHandler:]): (-[WKContentView asyncSystemInputDelegate]): (-[WKContentView setAsyncSystemInputDelegate:]): (-[WKContentView handleAsyncKeyEvent:withCompletionHandler:]): (-[WKContentView replaceText:withText:options:withCompletionHandler:]): (-[WKContentView requestTextContextForAutocorrectionWithCompletionHandler:]): Refactor this code to use `WebKit::DocumentEditingContext` to create the document context, to avoid having to duplicate messy logic for initializing either of the two `WKSETextDocumentRequest` types, depending on the SDK version. Note: we don't need to consult the async text input feature flag here and return a legacy `UIWKDocumentRequest`, since this codepath is only ever invoked in the async text input codepath to begin with. (-[WKContentView adjustSelection:completionHandler:]): (-[WKContentView shiftKeyStateChangedFrom:to:]): (-[WKContentView selectionWillChange:]): (-[WKContentView selectionDidChange:]): (toUIWKGestureType): Deleted. (toUIWKSelectionTouch): Deleted. (toUIWKSelectionFlags): Deleted. * Source/WebKit/UIProcess/ios/WKExtendedTextInputTraits.h: * Source/WebKit/UIProcess/ios/WKTextInteractionWrapper.h: * Source/WebKit/UIProcess/ios/WKTextInteractionWrapper.mm: (-[WKTextInteractionWrapper initWithView:]): (-[WKTextInteractionWrapper selectionChangedWithGestureAt:withGesture:withState:withFlags:]): (-[WKTextInteractionWrapper selectionChangedWithTouchAt:withSelectionTouch:withFlags:]): (SOFT_LINK_CLASS_OPTIONAL): Deleted. * Source/WebKit/UIProcess/ios/WebDataListSuggestionsDropdownIOS.h: * Source/WebKit/UIProcess/ios/WebDataListSuggestionsDropdownIOS.mm: (+[WKDataListTextSuggestion textSuggestionWithInputText:]): * Source/WebKit/UIProcess/ios/WebPageProxyIOS.mm: (WebKit::WebPageProxy::requestDocumentEditingContext): Drive-by fixes: make both the completion handler and method itself take rvalue references, instead of passing by value. * Source/WebKit/WebProcess/WebPage/WebPage.h: * Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm: (WebKit::WebPage::requestDocumentEditingContext): Canonical link: https://commits.webkit.org/272018@main
https://bugs.webkit.org/show_bug.cgi?id=266388 rdar://119634195 Reviewed by Pascoe. In 270267@main I introduced a null dereference that introduced a possible crash. Covered by the test in the radar. * Source/WebCore/loader/FrameLoader.cpp: (WebCore::FrameLoader::updateFirstPartyForCookies): Canonical link: https://commits.webkit.org/272019@main
https://bugs.webkit.org/show_bug.cgi?id=266281 rdar://119555352 Reviewed by Aditya Keerthi. Make RenderThemeIOS build on ControlStyle::State rather than ControlStates::States. The ControlStates architecture is dated, does not account for shadow hosts, and should probably be disappeared entirely. This is an incremental step towards that goal. Then provide the switch's thumb painting code has access to the system outline color. And ensure that by default we don't draw an outline for a switch on iOS. Web developers can override this by using a non-auto outline-style value, but that will not draw the outline around the thumb. * Source/WebCore/rendering/RenderTheme.cpp: (WebCore::RenderTheme::extractControlStyleStatesForRendererInternal const): (WebCore::adjustRendererForAppearance): (WebCore::RenderTheme::extractControlStyleStatesForRenderer const): (WebCore::RenderTheme::extractControlStyleForRenderer const): * Source/WebCore/rendering/RenderTheme.h: * Source/WebCore/rendering/RenderThemeIOS.h: * Source/WebCore/rendering/RenderThemeIOS.mm: (WebCore::renderThemePaintSwitchThumb): (WebCore::renderThemePaintSwitchTrack): (WebCore::RenderThemeIOS::adjustSwitchStyle const): (WebCore::RenderThemeIOS::paintSwitchThumb): (WebCore::RenderThemeIOS::paintSwitchTrack): (WebCore::RenderThemeIOS::checkboxRadioBorderColor): (WebCore::RenderThemeIOS::checkboxRadioBackgroundColor): (WebCore::RenderThemeIOS::checkboxRadioBackgroundGradient): (WebCore::RenderThemeIOS::checkboxRadioIndicatorColor): (WebCore::RenderThemeIOS::paintCheckboxRadioInnerShadow): (WebCore::RenderThemeIOS::paintCheckbox): (WebCore::RenderThemeIOS::paintRadio): Canonical link: https://commits.webkit.org/272020@main
https://bugs.webkit.org/show_bug.cgi?id=266278 Reviewed by Carlos Garcia Campos. Changeset 271330@main makes use of function 'zwp_linux_dmabuf_v1_get_surface_feeback', which is only available since wayland-protocols v1.24. Also, update 'wayland' to 1.18 since it's the version available in the oldest system supported at this time, Ubuntu 20.04. Update JHBuild modules accordingly. * Source/cmake/OptionsGTK.cmake: * Source/cmake/OptionsWPE.cmake: * Tools/gtk/jhbuild.modules: * Tools/jhbuild/jhbuild-minimal.modules: * Tools/wpe/jhbuild.modules: Canonical link: https://commits.webkit.org/272021@main
https://bugs.webkit.org/show_bug.cgi?id=266280 Unreviewed test gardening. * LayoutTests/platform/glib/TestExpectations: Canonical link: https://commits.webkit.org/272213@main
https://bugs.webkit.org/show_bug.cgi?id=266544 Reviewed by Chris Dumez. Temporarily disable launching WebKit processes as extensions for newer OS versions due to sdk issue. * Source/WebKit/Configurations/BaseExtension.xcconfig: * Source/WebKit/Configurations/WebKit.xcconfig: Canonical link: https://commits.webkit.org/272214@main
https://bugs.webkit.org/show_bug.cgi?id=266570 Reviewed by Alan Baradlay. * Source/WebCore/rendering/RenderBlockFlow.cpp: (WebCore::hasSimpleStaticPositionForOutOfFlowChildren): There should be no reason not to. Table cell instrinsic padding is included in paddingBefore(). Canonical link: https://commits.webkit.org/272215@main
https://bugs.webkit.org/show_bug.cgi?id=266020 rdar://problem/119339780 Reviewed by Brent Fulgham. * Source/WebKit/Shared/AuxiliaryProcessExtensions/NetworkingProcessExtension.swift: (NetworkingProcessExtension.grant(_:name:)): Canonical link: https://commits.webkit.org/272216@main
https://bugs.webkit.org/show_bug.cgi?id=257229 rdar://110028213 Reviewed by Chris Dumez. web-platform-tests did not have adequate coverage for the shape attribute being missing due to a typo. Despite that, WebKit was alone in inferring the shape from the coords attribute. So remove that logic and firmly establish Shape::Rect as the default. (This also matches the HTML Standard.) Then, WebKit failed a test for not using the even-odd winding rule for hit testing. The HTML Standard requires that with this sentence: > The shape is a polygon whose vertices are given by the coordinates, > and whose interior is established using the even-odd rule. And then finally, we clean up the code by turning m_shape into an enum class and generally tidying up. * LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-area-element/area-processing-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-area-element/support/hit-test.js: (onload): * Source/WebCore/html/HTMLAreaElement.cpp: (WebCore::HTMLAreaElement::HTMLAreaElement): (WebCore::HTMLAreaElement::attributeChanged): (WebCore::HTMLAreaElement::mapMouseEvent): (WebCore::HTMLAreaElement::computePath const): (WebCore::HTMLAreaElement::computePathForFocusRing const): (WebCore::HTMLAreaElement::getRegion const): * Source/WebCore/html/HTMLAreaElement.h: Canonical link: https://commits.webkit.org/272217@main
https://bugs.webkit.org/show_bug.cgi?id=266539 Reviewed by Aditya Keerthi. At this point in its life ThemeMac is mainly responsible for determining the sizing of a couple of form controls as the GPU process has taken over most of the theming aspects. And to determine the sizing of these form controls no cells are needed so all that code can be removed. And then we also remove some code that eventually does not do anything, such as StyleAppearance::ColorWell which do to not having the correct bezel style (which is itself a concept that can be removed) never ends up being impacted by inflateControlPaintRect(). * Source/WebCore/platform/Theme.h: (WebCore::Theme::inflateControlPaintRect const): * Source/WebCore/platform/mac/ThemeMac.h: * Source/WebCore/platform/mac/ThemeMac.mm: (WebCore::radioSize): (WebCore::ThemeMac::inflateControlPaintRect const): (WebCore::setControlSize): Deleted. (WebCore::updateStates): Deleted. (WebCore::configureToggleButton): Deleted. (WebCore::createToggleButtonCell): Deleted. (WebCore::sharedRadioCell): Deleted. (WebCore::sharedCheckboxCell): Deleted. (WebCore::buttonCell): Deleted. (WebCore::setUpButtonCell): Deleted. (WebCore::button): Deleted. * Source/WebCore/rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::adjustRepaintRect): Canonical link: https://commits.webkit.org/272218@main
https://bugs.webkit.org/show_bug.cgi?id=265719 rdar://119432066 Reviewed by Tim Nguyen. Add the missing attribute. New tests are upstreamed here: web-platform-tests/wpt#43709 * LayoutTests/imported/w3c/web-platform-tests/html/semantics/selectors/case-sensitivity/values.window-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/html/semantics/selectors/case-sensitivity/values.window.html: Added. * LayoutTests/imported/w3c/web-platform-tests/html/semantics/selectors/case-sensitivity/values.window.js: Added. (forEach.attributeName.forEach): * LayoutTests/imported/w3c/web-platform-tests/html/semantics/selectors/case-sensitivity/w3c-import.log: Added. * Source/WebCore/html/HTMLDocument.cpp: (WebCore::HTMLDocument::isCaseSensitiveAttribute): Canonical link: https://commits.webkit.org/272219@main
https://bugs.webkit.org/show_bug.cgi?id=263277 rdar://8731258 Reviewed by David Kilzer. Add a test that confirms the Geolocation WatchID is unique per document. * LayoutTests/http/tests/security/isolate-geolocation-watch-id-per-document-expected.txt: Added. * LayoutTests/http/tests/security/isolate-geolocation-watch-id-per-document.html: Added. * LayoutTests/http/tests/security/resources/popup-watchid.html: Added. Originally-landed-as: 267815.490@safari-7617-branch (837e693). rdar://119595145 Canonical link: https://commits.webkit.org/272220@main
…ake the WebThreadLock rdar://116882220 Reviewed by Ryosuke Niwa. Use -[WebAccessibilityObjectWrapperIOS _prepareAccessibilityCall] to ensure the WebThreadLock is taken before running this function. * Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm: (-[WebAccessibilityObjectWrapper _accessibilitySetFocus:]): Originally-landed-as: 267815.307@safari-7617-branch (fdc5102). rdar://119595084 Canonical link: https://commits.webkit.org/272221@main
…on() https://bugs.webkit.org/show_bug.cgi?id=263254 rdar://117061886 Reviewed by Brent Fulgham. Fix bad capture by reference in an asynchronous callback in CDMInstanceSessionClearKey::loadSession(). * Source/WebCore/platform/encryptedmedia/clearkey/CDMClearKey.cpp: (WebCore::CDMInstanceSessionClearKey::loadSession): Originally-landed-as: 267815.314@safari-7617-branch (80d2fe0). rdar://119595029 Canonical link: https://commits.webkit.org/272222@main
https://bugs.webkit.org/show_bug.cgi?id=262224 rdar://115897433 Reviewed by Mark Lam. This patch fixes B3's range analysis. When using 64bit value, we should use INT64_MIN / INT64_MAX instead of INT_MIN / INT_MAX. We use std::numeric_limits to make it work. We also adjust `+ 1` check to avoid potential UB. * Source/JavaScriptCore/b3/B3ReduceStrength.cpp: * Source/JavaScriptCore/b3/testb3.h: * Source/JavaScriptCore/b3/testb3_1.cpp: (run): * Source/JavaScriptCore/b3/testb3_5.cpp: (testCheckAdd64Range): Originally-landed-as: 267815.118@safari-7617-branch (3e7f362). rdar://119594339 Canonical link: https://commits.webkit.org/272223@main
…LocalFrame lifetime https://bugs.webkit.org/show_bug.cgi?id=266105 rdar://116202445 Reviewed by Pascoe. Before this PR we were calling addRootFrame in an ad-hoc manner, and we weren't calling remoteRootFrame at all except confusingly in the LocalFrame constructor, which was quite incorrect. This caused memory leaks and crashes when site isolation was enabled. To fix this, I call addRootFrame in the LocalFrame constructor and removeRootFrame in the LocalFrame destructor. During the destructor call, we can't reliably check the parent frame because it may have also been destroyed, so I cache the value of whether the LocalFrame is a root frame using a const bool member function. I use the ChromeClient to tell the WebPage's DrawingArea about the creation and destruction of root frames. In order to successfully draw after this root frame lifetime management change, I needed the WebPage to already have a DrawingArea when the main frame is constructed, which required moving it up in the list of constructed members of the WebPage. When I did this, though, the calls to WebPage::corePage in the DrawingArea constructors returned null because the DrawingArea was being constructed before the WebCore::Page. To fix this, I just moved the settings update code from the DrawingArea constructors to the WebPage constructor after creating the WebCore::Page. Additionally, a few members needed to be initialized before the DrawingArea constructor might use them, so I moved them around, and the call to TiledCoreAnimationDrawingArea::setViewExposedRect needs the main frame to have been initialized, so I moved that to after the main frame was initialized. I need the Frame to be destroyed when it transitions between LocalFrame and RemoteFrame, and FocusController was keeping it alive sometimes, which caused crashes. I changed FocusController to have a WeakPtr instead of a RefPtr keeping the Frame alive. When the Frame is destroyed after having called Frame::takeWindowProxyFrom on it, it does some teardown on its WindowProxy. To make that teardown not happen on a WindowProxy that is still being used by another Frame, I added a call to frame.resetWindowProxy() but without the detachFromFrame() call. This is needed to keep the WindowProxy pointing to the right Frame and DOMWindow after the transition when the Frame lifetime is managed better. * Source/WebCore/loader/EmptyClients.h: * Source/WebCore/page/ChromeClient.h: * Source/WebCore/page/FrameTree.h: (WebCore::FrameTree::thisFrame const): * Source/WebCore/page/LocalFrame.cpp: (WebCore::isRootFrame): (WebCore::LocalFrame::LocalFrame): (WebCore::LocalFrame::~LocalFrame): (WebCore::LocalFrame::isRootFrame const): * Source/WebCore/page/LocalFrame.h: * Source/WebCore/page/Page.cpp: (WebCore::createMainFrame): (WebCore::Page::addRootFrame): (WebCore::Page::removeRootFrame): * Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.cpp: (WebKit::WebChromeClient::rootFrameAdded): (WebKit::WebChromeClient::rootFrameRemoved): * Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.h: * Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.cpp: (WebKit::DrawingAreaCoordinatedGraphics::DrawingAreaCoordinatedGraphics): * Source/WebKit/WebProcess/WebPage/DrawingArea.h: (WebKit::DrawingArea::removeRootFrame): (WebKit::DrawingArea::shouldForceCompositingMode const): * Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteLayerTreeDrawingArea.h: * Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteLayerTreeDrawingArea.mm: (WebKit::RemoteLayerTreeDrawingArea::RemoteLayerTreeDrawingArea): (WebKit::RemoteLayerTreeDrawingArea::removeRootFrame): * Source/WebKit/WebProcess/WebPage/WebFrame.cpp: (WebKit::WebFrame::transitionToLocal): * Source/WebKit/WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::WebPage): (WebKit::m_historyItemClient): (WebKit::addRootFramesToNewDrawingArea): (WebKit::WebPage::reinitializeWebPage): * Source/WebKit/WebProcess/WebPage/WebPage.h: * Source/WebKit/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm: (WebKit::TiledCoreAnimationDrawingArea::TiledCoreAnimationDrawingArea): * Source/WebKitLegacy/mac/WebCoreSupport/WebChromeClient.h: Canonical link: https://commits.webkit.org/272224@main
https://bugs.webkit.org/show_bug.cgi?id=244054 Reviewed by Jonathan Bedard. * Tools/CISupport/ews-app/ews/common/github.py: (GitHubEWS): Canonical link: https://commits.webkit.org/272225@main
https://bugs.webkit.org/show_bug.cgi?id=260039 Reviewed by Justin Michaud. Use subtyping for module linking in general. Also add and re-enable more tests about linking. Note: we don't add subtyping for exception tags for now, because the exception proposal is in flux. * JSTests/wasm/gc-spec-tests/type-subtyping.wast.js: * JSTests/wasm/gc/linking.js: Added. (testLinking): * Source/JavaScriptCore/wasm/js/WebAssemblyModuleRecord.cpp: (JSC::WebAssemblyModuleRecord::initializeImports): Canonical link: https://commits.webkit.org/272226@main
… set of out-of-flow boxes https://bugs.webkit.org/show_bug.cgi?id=266580 Reviewed by Antti Koivisto. Replace this visual tree dump with slightly more flexible, inline content. * LayoutTests/TestExpectations: * LayoutTests/fast/ruby/ruby-expansion-cjk-2-expected.html: * LayoutTests/fast/ruby/ruby-expansion-cjk-2.html: * LayoutTests/fast/ruby/ruby-expansion-cjk-3-expected.html: * LayoutTests/fast/ruby/ruby-expansion-cjk-3.html: * LayoutTests/fast/ruby/ruby-expansion-cjk-5-expected.html: * LayoutTests/fast/ruby/ruby-expansion-cjk-5.html: * LayoutTests/fast/ruby/ruby-expansion-cjk-expected.html: * LayoutTests/fast/ruby/ruby-expansion-cjk.html: * LayoutTests/fast/ruby/ruby-justification-expected.html: * LayoutTests/fast/ruby/ruby-justification.html: Canonical link: https://commits.webkit.org/272227@main
https://bugs.webkit.org/show_bug.cgi?id=266583 Reviewed by Don Olmstead. Build fix -- revert 263486@main and 263783@main for PlayStation. * Source/WebCore/platform/network/curl/CurlContext.cpp: (WebCore::CurlHandle::enableHttp): * Source/WebCore/platform/network/curl/CurlRequest.cpp: (WebCore::CurlRequest::didReceiveHeader): (WebCore::CurlRequest::didReceiveData): * Source/cmake/OptionsPlayStation.cmake: Canonical link: https://commits.webkit.org/272228@main
…er double tapping trackpad causes page to scroll down https://bugs.webkit.org/show_bug.cgi?id=266529 rdar://116419609 Reviewed by Tim Horton. The smart magnify gesture (two-finger double tap on the trackpad) results in some combination of scrolling and zooming. `RemoteLayerTreeDrawingAreaProxyMac::commitTransientZoom()` uses a CAAnimation to animate to the final state, but the completion handler of that animation put the transform directly onto the `layerForPageScale`. That's OK if the gesture results in a scale change; that transform will get replaced by one that comes from the web process. However, if a gesture just resulted in a scroll with no scale change, we never get a new transform from the web process, so we leave that transform on `layerForPageScale`. This transform has a translation baked in, so this causes a permanent scroll offset. So we have to stop shoving the transform onto this layer. This revealed an issue where there was a jump when the animation was removed. Fixing this just requires two things: 1. Delay removing the transient zoom animations until we know the web process has committed the new scale and scroll position (via a `callAfterNextPresentationUpdate()`). 2. Override any scroll position changes that come from the web process before this by adding a CAAnimation onto the scrolled contents layer which overrides the `position` property. If we don't do this, scroll position changes cause a flash of offset content. This requires tracking m_pageScrollingLayerID, but that information was already in the transaction for banner hookup. * LayoutTests/view-gestures/smart-magnify/double-tap-zoom-scroll-above-top-expected.html: Added. * LayoutTests/view-gestures/smart-magnify/double-tap-zoom-scroll-above-top.html: Added. * Source/WebKit/UIProcess/RemoteLayerTree/mac/RemoteLayerTreeDrawingAreaProxyMac.h: * Source/WebKit/UIProcess/RemoteLayerTree/mac/RemoteLayerTreeDrawingAreaProxyMac.mm: (WebKit::RemoteLayerTreeDrawingAreaProxyMac::didCommitLayerTree): (WebKit::fillFowardsAnimationWithKeyPath): (WebKit::transientZoomTransformOverrideAnimation): (WebKit::RemoteLayerTreeDrawingAreaProxyMac::applyTransientZoomToLayer): (WebKit::RemoteLayerTreeDrawingAreaProxyMac::removeTransientZoomFromLayer): (WebKit::RemoteLayerTreeDrawingAreaProxyMac::commitTransientZoom): (WebKit::RemoteLayerTreeDrawingAreaProxyMac::sendCommitTransientZoom): Canonical link: https://commits.webkit.org/272229@main
https://bugs.webkit.org/show_bug.cgi?id=266562 rdar://119793659 Reviewed by Pascoe. Add a test to make sure the feature `verifyWindowOpenUserGestureFromUIProcess` works correctly when a mouse event is used to open a window. The import in WKWebExtensionAPIDeclarativeNetRequest.mm is needed for unified sources. * Tools/TestWebKitAPI/SourcesCocoa.txt: * Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * Tools/TestWebKitAPI/Tests/WebKitCocoa/VerifyUserGestureFromUIProcess.mm: Added. (TestWebKitAPI::TEST): * Tools/TestWebKitAPI/Tests/WebKitCocoa/WKWebExtensionAPIDeclarativeNetRequest.mm: Canonical link: https://commits.webkit.org/272230@main
https://bugs.webkit.org/show_bug.cgi?id=264737 rdar://117805319 Reviewed by Brent Fulgham. Until now, when we are purging inactive font data, we would just clear the glyph page cache if we had to purge system fallback font. This means that we consider glyph page cache would only point to fonts from system fonts fallback. When we are handling unicode's in the Private-User-Area (PUA) block, we shouldn't fallback to system fonts searching for a font that can render it, per spec: https://www.w3.org/TR/css-fonts-4/#char-handling-issues Instead, we render the glyph 0 with the last resort font. However, this font is just added to the custom font cache, and its font pointer in the Glyph Page cache is not cleared during memory pressure. We should add this font to the system font fallback set, to make sure that the associated font pointer is removed from the glyph page cache during memory pressure. * LayoutTests/fonts/font-cache-memory-pressure-crash.html: Added. * Source/WebCore/platform/graphics/FontCascadeFonts.cpp: (WebCore::FontCascadeFonts::glyphDataForVariant): * LayoutTests/fonts/font-cache-memory-pressure-crash-expected.txt: Added. Originally-landed-as: a595ddd. rdar://119598929 Canonical link: https://commits.webkit.org/272231@main
https://bugs.webkit.org/show_bug.cgi?id=266585 Reviewed by Tim Nguyen. Link to spec was broken; fixed it. * Source/WebCore/rendering/RenderGrid.cpp: (WebCore::RenderGrid::placeSpecifiedMajorAxisItemsOnGrid): Canonical link: https://commits.webkit.org/272232@main
https://bugs.webkit.org/show_bug.cgi?id=266578 rdar://119816733 Reviewed by Aditya Keerthi. Prepare our API tests for async text input enablement on iOS, many of which currently call into legacy SPI methods that crash with the feature flag enabled. To avoid these release assertions, we refactor all tests which explicitly call into these codepaths, such that they'll invoke their `UIAsyncTextInput` counterparts when `UIKit/async_text_input` is enabled. See below for more details. * Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm: (-[WKContentView moveInDirection:byGranularity:]): (-[WKContentView extendInDirection:byGranularity:]): Also drive-by fix an actual bug that was caught by `SelectionTests.ModifyByParagraphBoundary`. Instead of just moving backward or forward by paragraph granularity in the `UIAsyncTextInput` method `-extendInDirection:byGranularity:`, we need to additionally move backwards or forwards by character before doing so in order to maintain parity with `-_moveToEndOfParagraph:withHistory:` and `_moveToStartOfParagraph:withHistory:`. * Source/WebKit/UIProcess/ios/WKSEDefinitions.h: Renamed from Source/WebKit/UIProcess/API/ios/WKSEDefinitions.h. Also move `WKSEDefinitions.h` to `UIProcess/ios` instead of `UIProcess/API/ios`, since the latter just holds iOS-specific files related to WebKit API objects (in this case, only `WKWebView`). Putting this in `UIProcess/ios` seems more appropriate, and also allows us to include it directly in WebKitTestRunner. * Source/WebKit/WebKit.xcodeproj/project.pbxproj: * Tools/TestRunnerShared/spi/UIKitSPIForTesting.h: * Tools/TestWebKitAPI/Tests/WebKitCocoa/DocumentEditingContext.mm: (-[TestWKWebView synchronouslyAdjustSelectionWithDelta:]): Deleted. * Tools/TestWebKitAPI/Tests/WebKitCocoa/ImageAnalysisTests.mm: (TestWebKitAPI::simulateEditContextMenuAppearance): * Tools/TestWebKitAPI/Tests/WebKitCocoa/WKContentViewEditingActions.mm: * Tools/TestWebKitAPI/Tests/WebKitCocoa/WKWebViewEditActions.mm: * Tools/TestWebKitAPI/Tests/WebKitCocoa/iOSMouseSupport.mm: (TestWebKitAPI::simulateEditContextMenuAppearance): * Tools/TestWebKitAPI/Tests/ios/AutocorrectionTestsIOS.mm: (-[TestWKWebView autocorrectionRectsForString:]): Deleted. (-[TestWKWebView synchronouslyRequestAutocorrectionContext]): Deleted. * Tools/TestWebKitAPI/Tests/ios/EnterKeyHintTests.mm: (-[TestWKWebView test:enterKeyHint:returnKeyType:]): * Tools/TestWebKitAPI/Tests/ios/KeyboardInputTestsIOS.mm: * Tools/TestWebKitAPI/Tests/ios/SelectionModifyByParagraphBoundary.mm: * Tools/TestWebKitAPI/Tests/ios/TextServicesTests.mm: * Tools/TestWebKitAPI/Tests/ios/WKScrollViewTests.mm: * Tools/TestWebKitAPI/cocoa/TestWKWebView.h: * Tools/TestWebKitAPI/cocoa/TestWKWebView.mm: Add a bunch of new category helpers on `WKWebView`, which replace many of the direct calls into `WKContentView` in our API tests when exercising various `UIWKInteractionViewProtocol` SPIs. These helper methods will call directly into these legacy SPIs when async text input is disabled, but will call into their new `UIAsyncTextInput` counterparts when async text input is enabled. (-[WKWebView defineSelection]): (-[WKWebView shareSelection]): (-[WKWebView hasAsyncTextInput]): (-[WKWebView selectionClipRect]): (-[WKWebView moveSelectionToStartOfParagraph]): (-[WKWebView extendSelectionToStartOfParagraph]): (-[WKWebView moveSelectionToEndOfParagraph]): (-[WKWebView extendSelectionToEndOfParagraph]): (-[WKWebView asyncTextInput]): (-[WKWebView extendedTextInputTraits]): (-[WKWebView autocorrectionRectsForString:]): (-[WKWebView autocorrectionContext]): (-[WKWebView effectiveTextInputTraits]): (-[WKWebView replaceText:withText:shouldUnderline:completion:]): (wrap): (unwrap): (-[WKWebView synchronouslyAdjustSelectionWithDelta:]): (-[WKWebView selectTextForContextMenuWithLocationInView:completion:]): (-[WKWebView handleKeyEvent:completion:]): * Tools/WebKitTestRunner/Configurations/Base.xcconfig: * Tools/WebKitTestRunner/ios/UIScriptControllerIOS.h: * Tools/WebKitTestRunner/ios/UIScriptControllerIOS.mm: (WTR::UIScriptControllerIOS::asyncTextInput const): Canonical link: https://commits.webkit.org/272233@main
https://bugs.webkit.org/show_bug.cgi?id=265432 <radar://118866310> Reviewed by Dan Glastonbury. https://webkit.org/demos/webgpu/ was pointing to old samples which do not function as they were built against outdated versions of the specification. Update index.html to direct to the publically maintained GitHub samples which function in ToT builds of WebKit. * Websites/webkit.org/demos/webgpu/index.html: * Websites/webkit.org/demos/webgpu/resources/animometer.png: Added. * Websites/webkit.org/demos/webgpu/resources/babylon-helmet.png: Removed. * Websites/webkit.org/demos/webgpu/resources/babylon-sphere.png: Removed. * Websites/webkit.org/demos/webgpu/resources/bitonic-sort.png: Added. * Websites/webkit.org/demos/webgpu/resources/compute-blur.png: * Websites/webkit.org/demos/webgpu/resources/compute-boids.png: * Websites/webkit.org/demos/webgpu/resources/hello-cube.png: * Websites/webkit.org/demos/webgpu/resources/hello-triangle.png: * Websites/webkit.org/demos/webgpu/resources/motionmark.jpeg: Removed. * Websites/webkit.org/demos/webgpu/resources/photon-mapping.png: Added. * Websites/webkit.org/demos/webgpu/resources/textured-cube.png: * Websites/webkit.org/demos/webgpu/resources/video-uploading.png: Added. * Websites/webkit.org/demos/webgpu/resources/webkit-logo.png: Removed. Canonical link: https://commits.webkit.org/272234@main
* LayoutTests/platform/wincairo/TestExpectations: Canonical link: https://commits.webkit.org/272235@main
pull Bot
referenced
this pull request
in coleleavitt/WebKit
Aug 3, 2026
… compile https://bugs.webkit.org/show_bug.cgi?id=320132 rdar://183070350 Reviewed by Marcus Plutowski. LayoutTests/imported/w3c/web-platform-tests/wasm/core/memory64/table64.wast.js test #10 and #33 are failing because modules with tables with initial sizes larger than Wasm::maxTableEntries fail to compile. To fix this, I removed the compile-time check that is causing the failure. Once the check is gone, the uint64_t initial is silently narrowed when constructing TableInformation, so a value could overflow a uint32_t and wrap to a small, valid-looking length. Instead of rejecting a large initial at parse time, clamp the value to maxTableEntries when narrowing it to the stored uint32_t. Out-of-range declarations therefore stay out of range and are still rejected by Table::tryCreate() at instantiation. * JSTests/wasm/stress/table64-initial-truncation.js: Added. (leb128): (moduleBytesWithTableInitial): * LayoutTests/imported/w3c/web-platform-tests/wasm/core/memory64/table64.wast.js-expected.txt: * Source/JavaScriptCore/wasm/WasmSectionParser.cpp: (JSC::Wasm::SectionParser::parseTableHelper): Canonical link: https://commits.webkit.org/317888@main
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.
No description provided.