Skip to content

Upgrade WebKit Dec 24, 2025 - #120

Merged
sosukesuzuki merged 852 commits into
mainfrom
update-webkit-20251224
Dec 25, 2025
Merged

sosukesuzuki merged 852 commits into
mainfrom
update-webkit-20251224

Conversation

@sosukesuzuki

@sosukesuzuki sosukesuzuki commented Dec 25, 2025 •

Copy link
Copy Markdown
Member

WebKit Upgrade Dec 24, 2025 Sumarry

1. SortedArrayMap API Change

SortedArrayMap now requires std::array instead of C-style arrays for template deduction.

Solution: Replaced SortedArrayMap usage with simple if-else chains for enum parsing.

Affected Files:

  • src/bun.js/bindings/webcore/PerformanceUserTiming.cpp
  • src/bun.js/bindings/webcrypto/JSCryptoKey.cpp
  • src/bun.js/bindings/webcrypto/JSCryptoKeyUsage.cpp
  • src/bun.js/bindings/webcrypto/JSSubtleCrypto.cpp
  • src/codegen/bindgen.ts

2. Wasm::Memory::create Signature Change

The VM parameter was removed from Wasm::Memory::create and Wasm::Memory::createZeroSized.

Affected Files:

  • src/bun.js/bindings/webcore/SerializedScriptValue.cpp

3. TZone Allocation Macro Migration

The transition macros WTF_MAKE_TZONE_OR_ISO_ALLOCATED were removed. Use WTF_MAKE_TZONE_ALLOCATED instead.

Affected Files:

  • src/bun.js/bindings/webcore/URLPattern.h
  • src/bun.js/bindings/webcore/URLPattern.cpp

4. WTFMove to WTF::move

The WTFMove macro is deprecated. Use WTF::move instead.

csaavedra and others added 30 commits December 18, 2025 05:46
rdar://165597827
https://bugs.webkit.org/show_bug.cgi?id=303292

Reviewed by Pascoe.

Removes mediation check requirement per spec change:
w3c-fedid/digital-credentials#392

Include upstream WPT commit: web-platform-tests/wpt@1b72127

* LayoutTests/http/wpt/identity/formats/ISO18013/mobiledocument.https.html:
* LayoutTests/http/wpt/identity/identitycredentialscontainer-get-hidden.https.html:
* LayoutTests/imported/w3c/web-platform-tests/digital-credentials/get.tentative.https-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/digital-credentials/support/helper.js:
* LayoutTests/platform/ios-18/TestExpectations:
* LayoutTests/platform/ios/imported/w3c/web-platform-tests/digital-credentials/get.tentative.https-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/digital-credentials/get.tentative.https-expected.txt.
* LayoutTests/platform/mac-sequoia/TestExpectations:
* Source/WebCore/Modules/identity/DigitalCredential.cpp:
(WebCore::DigitalCredential::discoverFromExternalSource):

Canonical link: https://commits.webkit.org/304676@main
https://bugs.webkit.org/show_bug.cgi?id=304398

Unreviewed gardening commit.

* LayoutTests/fast/block/float/float-not-removed-from-next-sibling3-expected.txt: Renamed from LayoutTests/platform/glib/fast/block/float/float-not-removed-from-next-sibling3-expected.txt.
* LayoutTests/fast/block/float/float-not-removed-from-next-sibling4-expected.txt: Renamed from LayoutTests/platform/glib/fast/block/float/float-not-removed-from-next-sibling4-expected.txt.
* LayoutTests/platform/glib/editing/execCommand/print-expected.txt:
* LayoutTests/platform/glib/editing/execCommand/selectAll-expected.txt:
* LayoutTests/platform/glib/editing/inserting/insert-paragraph-04-expected.txt:
* LayoutTests/platform/glib/editing/selection/extend-by-sentence-001-expected.txt:
* LayoutTests/platform/glib/fast/block/float/float-not-removed-from-next-sibling3-expected.txt: Removed.
* LayoutTests/platform/glib/fast/block/float/float-not-removed-from-next-sibling4-expected.txt: Removed.
* LayoutTests/platform/glib/fast/body-propagation/background-color/004-declarative-expected.txt:
* LayoutTests/platform/glib/fast/body-propagation/background-color/004-expected.txt:
* LayoutTests/platform/glib/fast/body-propagation/background-color/004-xhtml-expected.txt:
* LayoutTests/platform/glib/fast/body-propagation/background-color/007-declarative-expected.txt:
* LayoutTests/platform/glib/fast/body-propagation/background-color/007-expected.txt:
* LayoutTests/platform/glib/fast/body-propagation/background-color/007-xhtml-expected.txt:
* LayoutTests/platform/glib/fast/body-propagation/background-image/004-declarative-expected.txt:
* LayoutTests/platform/glib/fast/body-propagation/background-image/004-expected.txt:
* LayoutTests/platform/glib/fast/body-propagation/background-image/004-xhtml-expected.txt:
* LayoutTests/platform/glib/fast/body-propagation/background-image/007-declarative-expected.txt:
* LayoutTests/platform/glib/fast/body-propagation/background-image/007-expected.txt:
* LayoutTests/platform/glib/fast/body-propagation/background-image/007-xhtml-expected.txt:
* LayoutTests/platform/glib/fast/body-propagation/overflow/007-declarative-expected.txt:
* LayoutTests/platform/glib/fast/body-propagation/overflow/007-expected.txt:
* LayoutTests/platform/glib/fast/body-propagation/overflow/007-xhtml-expected.txt:
* LayoutTests/platform/glib/fast/css-generated-content/005-expected.txt:
* LayoutTests/platform/glib/fast/css-generated-content/015-expected.txt:
* LayoutTests/platform/glib/fast/css-generated-content/after-duplicated-after-split-expected.txt:
* LayoutTests/platform/glib/fast/css-generated-content/beforeAfter-interdocument-expected.txt:
* LayoutTests/platform/glib/fast/css/bidi-override-in-anonymous-block-expected.txt:
* LayoutTests/platform/glib/fast/css/child-style-can-override-visited-style-expected.txt:
* LayoutTests/platform/glib/fast/css/focus-ring-continuations-expected.txt:
* LayoutTests/platform/glib/fast/css/font-face-synthetic-bold-italic-expected.txt:
* LayoutTests/platform/glib/fast/css/outline-auto-empty-rects-expected.txt:
* LayoutTests/platform/glib/fast/css/relative-positioned-block-nested-with-inline-parent-dynamic-expected.txt:
* LayoutTests/platform/glib/fast/css/relative-positioned-block-nested-with-inline-parent-dynamic-removed-expected.txt:
* LayoutTests/platform/glib/fast/css/relative-positioned-block-nested-with-inline-parent-expected.txt:
* LayoutTests/platform/glib/fast/css/relative-positioned-block-nested-with-inline-parent-multiple-descendant-blocks-dynamic-expected.txt:
* LayoutTests/platform/glib/fast/css/relative-positioned-block-with-inline-ancestor-and-parent-dynamic-expected.txt:
* LayoutTests/platform/glib/fast/css/relative-positioned-block-with-inline-ancestor-dynamic-expected.txt:
* LayoutTests/platform/glib/fast/css/relative-positioned-block-with-inline-ancestor-dynamic-removed-expected.txt:
* LayoutTests/platform/glib/fast/css/relative-positioned-block-with-inline-ancestor-expected.txt:
* LayoutTests/platform/glib/fast/css/relative-positioned-block-with-inline-parent-dynamic-expected.txt:
* LayoutTests/platform/glib/fast/css/relative-positioned-block-with-inline-parent-dynamic-removed-expected.txt:
* LayoutTests/platform/glib/fast/css/relative-positioned-block-with-inline-parent-keeps-style-expected.txt:
* LayoutTests/platform/glib/fast/dom/34176-expected.txt:
* LayoutTests/platform/glib/fast/dynamic/011-expected.txt:
* LayoutTests/platform/glib/fast/dynamic/insert-before-table-part-in-continuation-expected.txt:
* LayoutTests/platform/glib/fast/forms/007-expected.txt: Renamed from LayoutTests/platform/gtk/fast/forms/007-expected.txt.
* LayoutTests/platform/glib/fast/forms/button-inner-block-reuse-expected.txt:
* LayoutTests/platform/glib/fast/forms/form-hides-table-expected.txt:
* LayoutTests/platform/glib/fast/forms/formmove3-expected.txt:
* LayoutTests/platform/glib/fast/forms/preserveFormDuringResidualStyle-expected.txt:
* LayoutTests/platform/glib/fast/inline/continuation-outlines-expected.txt:
* LayoutTests/platform/glib/fast/inline/continuation-outlines-with-layers-2-expected.txt:
* LayoutTests/platform/glib/fast/inline/inline-continuation-borders-expected.txt:
* LayoutTests/platform/glib/fast/inline/outline-continuations-expected.txt:
* LayoutTests/platform/glib/fast/invalid/002-expected.txt:
* LayoutTests/platform/glib/fast/invalid/003-expected.txt:
* LayoutTests/platform/glib/fast/invalid/004-expected.txt:
* LayoutTests/platform/glib/fast/invalid/007-expected.txt:
* LayoutTests/platform/glib/fast/invalid/018-expected.txt:
* LayoutTests/platform/glib/fast/invalid/nestedh3s-expected.txt:
* LayoutTests/platform/glib/fast/layers/remove-layer-with-nested-stacking-expected.txt:
* LayoutTests/platform/glib/fast/lists/olstart-expected.txt:
* LayoutTests/platform/glib/fast/multicol/span/span-as-immediate-child-complex-splitting-expected.txt:
* LayoutTests/platform/glib/fast/multicol/span/span-as-immediate-child-generated-content-expected.txt:
* LayoutTests/platform/glib/fast/multicol/span/span-as-immediate-child-property-removal-expected.txt:
* LayoutTests/platform/glib/fast/multicol/span/span-as-immediate-columns-child-dynamic-expected.txt:
* LayoutTests/platform/glib/fast/multicol/span/span-as-immediate-columns-child-removal-expected.txt:
* LayoutTests/platform/glib/fast/parser/001-expected.txt:
* LayoutTests/platform/glib/fast/parser/title-error-test-expected.txt:
* LayoutTests/platform/glib/fast/repaint/transform-absolute-in-positioned-container-expected.txt:
* LayoutTests/platform/glib/fast/table/nobr-expected.txt:
* LayoutTests/platform/glib/fast/text/basic/001-expected.txt:
* LayoutTests/platform/glib/tables/mozilla/bugs/bug113235-1-expected.txt:
* LayoutTests/platform/glib/tables/mozilla/bugs/bug113235-3-expected.txt:
* LayoutTests/platform/glib/tables/mozilla/bugs/bug138725-expected.txt:
* LayoutTests/platform/glib/tables/mozilla/bugs/bug2050-expected.txt:
* LayoutTests/platform/glib/tables/mozilla/bugs/bug2469-expected.txt:
* LayoutTests/platform/glib/tables/mozilla/bugs/bug30273-expected.txt:
* LayoutTests/platform/glib/tables/mozilla/other/ms-expected.txt:
* LayoutTests/platform/glib/tables/mozilla_expected_failures/bugs/bug56024-expected.txt:
* LayoutTests/platform/glib/transforms/3d/general/perspective-non-layer-expected.txt:
* LayoutTests/platform/gtk/fast/forms/formmove3-expected.txt: Removed.
* LayoutTests/platform/gtk/tables/mozilla/bugs/bug138725-expected.txt: Removed.
* LayoutTests/platform/gtk/transforms/3d/general/perspective-non-layer-expected.txt: Removed.
* LayoutTests/platform/wpe/fast/forms/007-expected.txt: Removed.
* LayoutTests/platform/wpe/fast/forms/formmove3-expected.txt:
* LayoutTests/platform/wpe/tables/mozilla/bugs/bug138725-expected.txt:
* LayoutTests/platform/wpe/transforms/3d/general/perspective-non-layer-expected.txt:

Canonical link: https://commits.webkit.org/304677@main
https://bugs.webkit.org/show_bug.cgi?id=303170

Reviewed by Carlos Garcia Campos.

This change implements the non-composited page rendering for WPE.

With this change, it's possible to utilize a simplified frame rendering
that does not use compositor at all. It's useful especially on low-end
embedded devices where GPU is not powerful or not present at all.

The non-composited mode implemented in this change can be enabled using
a -AcceleratedCompositing preference.

Additionally, this change adds a layout ref-test that protects the new
implementation as well as existing, GTK's implementation from
regressions.

Canonical link: https://commits.webkit.org/304678@main
https://bugs.webkit.org/show_bug.cgi?id=304396
rdar://166776334

Reviewed by Alan Baradlay.

* Source/WebCore/layout/floats/PlacedFloats.h:
* Source/WebCore/layout/formattingContexts/FormattingConstraints.h:
(WebCore::Layout::ConstraintsForInFlowContent::baseTypeFlags const):
(WebCore::Layout::ConstraintsForInFlowContent::ConstraintsForInFlowContent):
* Source/WebCore/layout/formattingContexts/block/BlockLayoutState.h:
* Source/WebCore/layout/formattingContexts/inline/InlineContentBreaker.cpp:
(WebCore::Layout::InlineContentBreaker::wordBreakBehavior const):
* Source/WebCore/layout/formattingContexts/inline/InlineContentBreaker.h:
* Source/WebCore/layout/formattingContexts/inline/InlineLevelBox.h:
(WebCore::Layout::InlineLevelBox::InlineLevelBox):
* Source/WebCore/layout/formattingContexts/inline/InlineLevelBoxInlines.h:
(WebCore::Layout::InlineLevelBox::InlineLevelBox):
* Source/WebCore/layout/formattingContexts/inline/InlineLineBox.h:
* Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayBox.h:
(WebCore::InlineDisplay::Box::Box):
* Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayContentBuilder.cpp:
(WebCore::Layout::isFirstLastBox):
* Source/WebCore/layout/formattingContexts/inline/invalidation/InlineDamage.h:
(WebCore::Layout::InlineDamage::reasons const):
* Source/WebCore/layout/integration/LayoutIntegrationBoxTreeUpdater.cpp:
(WebCore::LayoutIntegration::BoxTreeUpdater::createLayoutBox):
(WebCore::LayoutIntegration::updateContentCharacteristic):
(WebCore::LayoutIntegration::updateListMarkerAttributes):
(WebCore::LayoutIntegration::BoxTreeUpdater::updateContent):
* Source/WebCore/layout/integration/LayoutIntegrationCoverage.cpp:
(WebCore::LayoutIntegration::canUseForFlexLayoutWithReason):
(WebCore::LayoutIntegration::printReasons):
* Source/WebCore/layout/integration/grid/LayoutIntegrationGridCoverage.cpp:
(WebCore::LayoutIntegration::gridLayoutAvoidanceReason):
(WebCore::LayoutIntegration::printReasons):
* Source/WebCore/layout/layouttree/LayoutBox.cpp:
(WebCore::Layout::Box::Box):
* Source/WebCore/layout/layouttree/LayoutBox.h:
(WebCore::Layout::Box::baseTypeFlags const):
* Source/WebCore/layout/layouttree/LayoutElementBox.cpp:
(WebCore::Layout::ElementBox::ElementBox):
* Source/WebCore/layout/layouttree/LayoutElementBox.h:
(WebCore::Layout::ElementBox::ElementBox):
(WebCore::Layout::ElementBox::setListMarkerAttributes):
* Source/WebCore/layout/layouttree/LayoutInlineTextBox.cpp:
(WebCore::Layout::InlineTextBox::InlineTextBox):
* Source/WebCore/layout/layouttree/LayoutInlineTextBox.h:
(WebCore::Layout::InlineTextBox::setContentCharacteristic):
(WebCore::Layout::InlineTextBox::setContent):
* Source/WebCore/layout/layouttree/LayoutTreeBuilder.cpp:
(WebCore::Layout::TreeBuilder::createTextBox):

Canonical link: https://commits.webkit.org/304679@main
rdar://161667351
https://bugs.webkit.org/show_bug.cgi?id=304397

Reviewed by Jean-Yves Avenard.

We resync and update the x64 mac and arm64 linux vp9_rtcd.h to declare more routines.

Covered by existing tests.

Canonical link: https://commits.webkit.org/304680@main
https://bugs.webkit.org/show_bug.cgi?id=304404

Reviewed by Carlos Garcia Campos.

Commit e5654d7 added support for physical/logical size differences
in BitmapTexture for drawTexture(), but missed drawTextureFragment().

When textures have larger allocated sizes than their logical sizes
(e.g., due to GPU alignment requirements like 64x64 tiling), UV
coordinates must be adjusted to sample only the logical region. This
prevents rendering artifacts from bilinear filtering sampling texels
in the padding area.

Needs manual testing (non-linear textures + damage propagation).

* Source/WebCore/platform/graphics/texmap/TextureMapper.cpp:
(WebCore::TextureMapper::drawTextureFragment):

Canonical link: https://commits.webkit.org/304681@main
https://bugs.webkit.org/show_bug.cgi?id=304376
rdar://166751326

Reviewed by Brady Eidson.

In 293525@main we made prefetchDNS use nw_parameters_set_source_application_by_bundle_id_internal to
attribute the DNS request to the host application. It turns out that this is a pretty inefficient
API (it blocks on a sync XPC message for ~10 ms which then goes and enumerates all apps by bundle ID
on the system). Fix this by using nw_parameters_set_source_application instead, which doesn't seem
to suffer from the same issue.

* Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.h:
* Source/WTF/wtf/cocoa/RuntimeApplicationChecksCocoa.mm:
(WTF::setApplicationAuditToken):
(WTF::applicationAuditToken):
* Source/WebCore/Configurations/AllowedSPI.toml:
* Source/WebCore/platform/network/cf/DNSResolveQueueCFNet.cpp:
(WebCore::DNSResolveQueueCFNet::performDNSLookup):
* Source/WebKit/Shared/Cocoa/AuxiliaryProcessCocoa.mm:
(WebKit::AuxiliaryProcess::platformInitialize):

Canonical link: https://commits.webkit.org/304682@main
https://bugs.webkit.org/show_bug.cgi?id=304046
rdar://166073234

Reviewed by Andy Estes.

Hardcoded CSS left values and JavaScript absolute positioning (rightContainer.x)
overrode flexbox layout, preventing proper space distribution between button
containers. This caused buttons to overlap and appear squished instead of being
properly distributed by flexbox.

Changed CSS selectors from .left-cluster/.right-cluster to
.buttons-container.left/.buttons-container.right to match
structure. Removed JavaScript absolute positioning and hardcoded CSS
positioning that conflicted with flexbox layout. Added volume slider
container clearing to prevent JavaScript-set positions from overriding
CSS. This fixes button spacing and volume slider positioning issues
which made controls appear squished.

* LayoutTests/media/modern-media-controls/macos-inline-media-controls/macos-inline-media-controls-liquid-glass-positioning-expected.txt: Added.
* LayoutTests/media/modern-media-controls/macos-inline-media-controls/macos-inline-media-controls-liquid-glass-positioning.html: Added.
* Source/WebCore/Modules/modern-media-controls/controls/macos-inline-media-controls.js:
(MacOSInlineMediaControls.prototype.layout):
* Source/WebCore/rendering/cocoa/RenderThemeCocoa.mm:
(WebCore::macOSInlineMediaControlsStyleSheet):

Canonical link: https://commits.webkit.org/304683@main
…nctions

rdar://163013486
https://bugs.webkit.org/show_bug.cgi?id=301380

Reviewed by Yusuke Suzuki.

Currently, OSR and exception scratch buffer entries are sized dependent
on whether the function uses SIMD or not. When OMG inlines a function,
the caller and callee make independent choices about the size of
the scratch buffer entry for the catch entry points and throw/call
patchpoints. This is not correct when the catch site and throw/call site
disagree since the buffer will be misinterpreted.

Let's fix this and simplify things by just having a single size for
scratch buffer entries large enough to fit vectors. As a consequence,
also combine the SIMD and non-SIMD probe code that always saves/restores
vector-width FPRs.

Test: JSTests/wasm/stress/simd-inline-exceptions.js
* JSTests/wasm/stress/simd-inline-exceptions.js: Added.
(async testSIMDInlinedIntoNonSIMD):
(async testNonSIMDInlinedIntoSIMD):
* Source/JavaScriptCore/assembler/MacroAssembler.cpp:
(JSC::MacroAssembler::probeDebugSIMD): Deleted.
* Source/JavaScriptCore/assembler/MacroAssembler.h:
* Source/JavaScriptCore/assembler/MacroAssemblerARM64.cpp:
(JSC::MacroAssembler::probe):
* Source/JavaScriptCore/assembler/MacroAssemblerARMv7.cpp:
(JSC::MacroAssembler::probe):
* Source/JavaScriptCore/assembler/MacroAssemblerRISCV64.cpp:
(JSC::MacroAssembler::probe):
* Source/JavaScriptCore/assembler/MacroAssemblerX86_64.cpp:
(JSC::MacroAssembler::probe):
* Source/JavaScriptCore/assembler/ProbeContext.h:
(JSC::Probe::CPUState::fpr):
(JSC::Probe::CPUState::fpr const):
(JSC::Probe::Context::fpr):
(): Deleted.
* Source/JavaScriptCore/dfg/DFGOSRExit.cpp:
(JSC::DFG::OSRExit::compileExit):
* Source/JavaScriptCore/ftl/FTLOSRExitCompiler.cpp:
(JSC::FTL::compileStub):
* Source/JavaScriptCore/wasm/WasmBBQJIT.cpp:
(JSC::Wasm::BBQJITImpl::BBQJIT::addLoopOSREntrypoint):
(JSC::Wasm::BBQJITImpl::BBQJIT::makeStackMap):
(JSC::Wasm::BBQJITImpl::BBQJIT::emitLoopTierUpCheckAndOSREntryData):
* Source/JavaScriptCore/wasm/WasmBBQPlan.cpp:
(JSC::Wasm::BBQPlan::work):
* Source/JavaScriptCore/wasm/WasmCallee.h:
* Source/JavaScriptCore/wasm/WasmContext.cpp:
(JSC::Wasm::Context::scratchBufferForSize):
* Source/JavaScriptCore/wasm/WasmContext.h:
(JSC::Wasm::Context::scratchBufferSlotsPerValue): Deleted.
* Source/JavaScriptCore/wasm/WasmIPIntSlowPaths.cpp:
(JSC::IPInt::buildEntryBufferForLoopOSR):
(JSC::IPInt::WASM_IPINT_EXTERN_CPP_DECL):
* Source/JavaScriptCore/wasm/WasmIRGeneratorHelpers.h:
(JSC::Wasm::buildEntryBufferForCatch):
(JSC::Wasm::buildEntryBufferForCatchSIMD): Deleted.
(JSC::Wasm::buildEntryBufferForCatchNoSIMD): Deleted.
* Source/JavaScriptCore/wasm/WasmOMGIRGenerator.cpp:
(JSC::Wasm::OMGIRGenerator::OMGIRGenerator):
(JSC::Wasm::OMGIRGenerator::insertEntrySwitch):
(JSC::Wasm::OMGIRGenerator::addArguments):
(JSC::Wasm::OMGIRGenerator::loadFromScratchBuffer):
(JSC::Wasm::OMGIRGenerator::addLoop):
(JSC::Wasm::prepareForTailCallImpl):
* Source/JavaScriptCore/wasm/WasmOMGIRGenerator32_64.cpp:
(JSC::Wasm::OMGIRGenerator::OMGIRGenerator):
(JSC::Wasm::OMGIRGenerator::insertEntrySwitch):
(JSC::Wasm::OMGIRGenerator::addArguments):
(JSC::Wasm::prepareForTailCallImpl):
* Source/JavaScriptCore/wasm/WasmOperations.cpp:
(JSC::Wasm::loadValuesIntoBuffer):
(JSC::Wasm::doOSREntry):
(JSC::Wasm::JSC_DEFINE_NOEXCEPT_JIT_OPERATION):
* Source/JavaScriptCore/wasm/WasmOperations.h:

Originally-landed-as: 301765.112@safari-7623-branch (bd8fd32). rdar://166338130
Canonical link: https://commits.webkit.org/304684@main
https://bugs.webkit.org/show_bug.cgi?id=304408

Unreviewed gardening.

Also remove some redundant expectations.

* LayoutTests/css3/unicode-bidi-float-crash-expected.txt: Renamed from LayoutTests/platform/ios/css3/unicode-bidi-float-crash-expected.txt.
* LayoutTests/platform/glib/css2.1/t09-c5526c-display-00-e-expected.txt:
* LayoutTests/platform/glib/css2.1/t0905-c414-flt-wrap-01-d-g-expected.txt:
* LayoutTests/platform/glib/css3/flexbox/flexbox-baseline-expected.txt:
* LayoutTests/platform/glib/css3/unicode-bidi-float-crash-expected.txt: Removed.
* LayoutTests/platform/glib/fast/block/basic/001-expected.txt:
* LayoutTests/platform/glib/fast/block/positioning/rtl-static-positioning-expected.txt:
* LayoutTests/platform/glib/fast/block/positioning/table-cell-static-position-expected.txt:
* LayoutTests/platform/glib/fast/css/word-space-extra-expected.txt:
* LayoutTests/platform/glib/fast/encoding/utf-16-big-endian-expected.txt:
* LayoutTests/platform/glib/fast/encoding/utf-16-little-endian-expected.txt:
* LayoutTests/platform/glib/fast/forms/fieldset-align-expected.txt:
* LayoutTests/platform/glib/fast/inline/continuation-outlines-with-layers-expected.txt:
* LayoutTests/platform/glib/fast/text/international/text-combine-image-test-expected.txt:
* LayoutTests/platform/glib/tables/mozilla/bugs/bug113235-2-expected.txt:
* LayoutTests/platform/glib/tables/mozilla/bugs/bug2267-expected.txt:
* LayoutTests/platform/glib/tables/mozilla/bugs/bug26553-expected.txt:
* LayoutTests/platform/mac/css3/unicode-bidi-float-crash-expected.txt: Removed.
* LayoutTests/platform/wpe/fast/forms/fieldset-align-expected.txt:

Canonical link: https://commits.webkit.org/304685@main
https://bugs.webkit.org/show_bug.cgi?id=304409

Unreviewed gardening.

* LayoutTests/TestExpectations:
* LayoutTests/platform/glib/TestExpectations:
* LayoutTests/platform/mac/TestExpectations:
* LayoutTests/platform/wpe/TestExpectations:

Canonical link: https://commits.webkit.org/304686@main
https://bugs.webkit.org/show_bug.cgi?id=295538

Reviewed by Carlos Garcia Campos.

Fix PDF rendering regression caused by cross-thread transfer of accelerated
ImageBitmap. When a texture-backed image is transferred across threads, the
GPU texture may not be valid for the current Skia context.

The fix has two parts:

1. Flush GPU commands before cross-thread transfer by calling
   flushDrawingContext() in OffscreenCanvasRenderingContext2D::transferToImageBuffer().
   This is implemented via ImageBufferSkiaAcceleratedBackend::flushContext()
   which creates a GL fence and performs a server wait.

2. Rewrap textures at draw time in GraphicsContextSkia::drawNativeImage().
   When drawing a texture-backed image, check if it's valid for the current
   GrContext using isValid(). If not (because it was created in a different
   thread/context), use SkImages::BorrowTextureFrom() to create a new SkImage
   wrapper around the existing backend texture. Before rewrapping, create
   a GL fence and server wait to ensure pending GPU operations on the source
   image are complete.

This approach simplifies cross-thread transfer by removing the explicit
prepare/finalize pattern from ImageBitmap (prepareForCrossThreadTransfer,
finalizeCrossThreadTransfer, m_fence member), ImageBuffer
(sinkIntoImageBufferForCrossThreadTransfer,
sinkIntoImageBufferAfterCrossThreadTransfer), and SerializedScriptValue.

Also refactor the fence creation API: rename the implementation to
createAcceleratedRenderingFenceInternal, add public static
createAcceleratedRenderingFence() methods for both SkSurface* and
sk_sp<SkImage>, and remove the private createAcceleratedRenderingFenceIfNeeded
methods by inlining the null/texture-backed checks into callers.

Covered by existing tests.

* Source/WebCore/bindings/js/SerializedScriptValue.cpp:
(WebCore::CloneSerializer::dumpImageBitmap):
(WebCore::CloneDeserializer::readTransferredImageBitmap):
* Source/WebCore/html/ImageBitmap.cpp:
(WebCore::ImageBitmap::prepareForCrossThreadTransfer): Deleted.
(WebCore::ImageBitmap::finalizeCrossThreadTransfer): Deleted.
* Source/WebCore/html/ImageBitmap.h:
* Source/WebCore/html/canvas/OffscreenCanvasRenderingContext2D.cpp:
(WebCore::OffscreenCanvasRenderingContext2D::transferToImageBuffer):
* Source/WebCore/platform/graphics/ImageBuffer.cpp:
(WebCore::DefaultSerializedImageBuffer::DefaultSerializedImageBuffer):
(WebCore::ImageBuffer::sinkIntoImageBufferForCrossThreadTransfer): Deleted.
(WebCore::ImageBuffer::sinkIntoImageBufferAfterCrossThreadTransfer): Deleted.
* Source/WebCore/platform/graphics/ImageBuffer.h:
* Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp:
(WebCore::GraphicsContextSkia::drawNativeImage):
(WebCore::createAcceleratedRenderingFenceInternal):
(WebCore::GraphicsContextSkia::createAcceleratedRenderingFence):
(WebCore::GraphicsContextSkia::trackAcceleratedRenderingFenceIfNeeded):
(WebCore::createAcceleratedRenderingFence): Deleted.
(WebCore::GraphicsContextSkia::createAcceleratedRenderingFenceIfNeeded): Deleted.
* Source/WebCore/platform/graphics/skia/GraphicsContextSkia.h:
* Source/WebCore/platform/graphics/skia/ImageBufferSkiaAcceleratedBackend.cpp:
(WebCore::ImageBufferSkiaAcceleratedBackend::flushContext):
* Source/WebCore/platform/graphics/skia/ImageBufferSkiaAcceleratedBackend.h:

Canonical link: https://commits.webkit.org/304687@main
https://bugs.webkit.org/show_bug.cgi?id=304377
rdar://166752342

Reviewed by Chris Dumez.

Apply https://github.com/WebKit/WebKit/wiki/Safer-CPP-Guidelines.

No new tests needed.

* Source/WebCore/SaferCPPExpectations/UncheckedCallArgsCheckerExpectations:
* Source/WebCore/SaferCPPExpectations/UncountedCallArgsCheckerExpectations:
* Source/WebCore/page/DebugPageOverlays.cpp:
(WebCore::NonFastScrollableRegionOverlay::updateRegion):
(WebCore::InteractionRegionOverlay::updateRegion):
(WebCore::InteractionRegionOverlay::activeLayer const):
(WebCore::InteractionRegionOverlay::rectForSettingAtIndex const):
(WebCore::DebugPageOverlays::showRegionOverlay):
(WebCore::DebugPageOverlays::hideRegionOverlay):

Canonical link: https://commits.webkit.org/304688@main
https://bugs.webkit.org/show_bug.cgi?id=304413

Unreviewed gardening.

* LayoutTests/accessibility/gtk/spans-paragraphs-and-divs-tree-expected.txt:
* LayoutTests/platform/glib/css2.1/20110323/block-non-replaced-width-001-expected.txt:
* LayoutTests/platform/glib/editing/selection/selection-3748164-fix-expected.txt:
* LayoutTests/platform/glib/editing/style/style-boundary-004-expected.txt:
* LayoutTests/platform/glib/fast/url/url-hostname-encoding-expected.txt: Removed.
* LayoutTests/platform/glib/http/tests/misc/acid3-expected.txt:
* LayoutTests/platform/gtk/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/json-module/invalid-content-type.any-expected.txt: Removed.
* LayoutTests/platform/gtk/imported/w3c/web-platform-tests/html/semantics/scripting-1/the-script-element/json-module/invalid-content-type.any.worker-expected.txt: Removed.
* LayoutTests/platform/wpe/TestExpectations:

Canonical link: https://commits.webkit.org/304689@main
https://bugs.webkit.org/show_bug.cgi?id=304417
rdar://166801024

Unreviewed

Companion bug to "Adopt Safer CPP in AccessibilitySpinButton.cpp", WebKit#55600

No new tests needed.

* Source/WebCore/SaferCPPExpectations/UncheckedCallArgsCheckerExpectations:
* Source/WebCore/SaferCPPExpectations/UncountedCallArgsCheckerExpectations:

Canonical link: https://commits.webkit.org/304690@main
…ector

https://bugs.webkit.org/show_bug.cgi?id=304297
rdar://166654991

Reviewed by BJ Burg.

JSContext, WKWebExtensionContext, and WKWebView all have API to turn on and off the inspector.
This adds a similar mechanism for WKContentWorld.

* Source/WebKit/Shared/API/APIObject.h:
* Source/WebKit/Shared/Cocoa/APIObject.mm:
(API::Object::newObject):
* Source/WebKit/Shared/ContentWorldData.serialization.in:
* Source/WebKit/Shared/ContentWorldShared.h:
* Source/WebKit/Sources.txt:
* Source/WebKit/UIProcess/API/APIContentWorld.cpp:
(API::ContentWorld::defaultOptions):
(API::ContentWorld::ContentWorld):
(API::ContentWorld::defaultClientWorldSingleton):
* Source/WebKit/UIProcess/API/APIContentWorld.h:
* Source/WebKit/UIProcess/API/APIContentWorldConfiguration.cpp: Added.
(API::ContentWorldConfiguration::create):
(API::ContentWorldConfiguration::copy const):
(API::ContentWorldConfiguration::name const):
(API::ContentWorldConfiguration::setName):
(API::ContentWorldConfiguration::allowAccessToClosedShadowRoots const):
(API::ContentWorldConfiguration::setAllowAccessToClosedShadowRoots):
(API::ContentWorldConfiguration::allowAutofill const):
(API::ContentWorldConfiguration::setAllowAutofill):
(API::ContentWorldConfiguration::allowElementUserInfo const):
(API::ContentWorldConfiguration::setAllowElementUserInfo):
(API::ContentWorldConfiguration::disableLegacyBuiltinOverrides const):
(API::ContentWorldConfiguration::setDisableLegacyBuiltinOverrides):
(API::ContentWorldConfiguration::allowJSHandleCreation const):
(API::ContentWorldConfiguration::setAllowJSHandleCreation):
(API::ContentWorldConfiguration::allowNodeSerialization const):
(API::ContentWorldConfiguration::setAllowNodeSerialization):
(API::ContentWorldConfiguration::isInspectable const):
(API::ContentWorldConfiguration::setInspectable):
* Source/WebKit/UIProcess/API/APIContentWorldConfiguration.h: Added.
* Source/WebKit/UIProcess/API/Cocoa/WKContentWorld.mm:
(+[WKContentWorld _worldWithConfiguration:]):
* Source/WebKit/UIProcess/API/Cocoa/WKContentWorldConfiguration.mm:
(-[_WKContentWorldConfiguration init]):
(-[_WKContentWorldConfiguration dealloc]):
(-[_WKContentWorldConfiguration _protectedWorldConfiguration]):
(-[_WKContentWorldConfiguration copyWithZone:]):
(-[_WKContentWorldConfiguration encodeWithCoder:]):
(-[_WKContentWorldConfiguration initWithCoder:]):
(-[_WKContentWorldConfiguration _apiObject]):
(-[_WKContentWorldConfiguration name]):
(-[_WKContentWorldConfiguration setName:]):
(-[_WKContentWorldConfiguration allowAccessToClosedShadowRoots]):
(-[_WKContentWorldConfiguration setAllowAccessToClosedShadowRoots:]):
(-[_WKContentWorldConfiguration allowAutofill]):
(-[_WKContentWorldConfiguration setAllowAutofill:]):
(-[_WKContentWorldConfiguration allowElementUserInfo]):
(-[_WKContentWorldConfiguration setAllowElementUserInfo:]):
(-[_WKContentWorldConfiguration disableLegacyBuiltinOverrides]):
(-[_WKContentWorldConfiguration setDisableLegacyBuiltinOverrides:]):
(-[_WKContentWorldConfiguration allowJSHandleCreation]):
(-[_WKContentWorldConfiguration setAllowJSHandleCreation:]):
(-[_WKContentWorldConfiguration allowNodeSerialization]):
(-[_WKContentWorldConfiguration setAllowNodeSerialization:]):
(-[_WKContentWorldConfiguration isInspectable]):
(-[_WKContentWorldConfiguration setInspectable:]):
* Source/WebKit/UIProcess/API/Cocoa/_WKContentWorldConfiguration.h:
* Source/WebKit/UIProcess/API/Cocoa/_WKContentWorldConfigurationInternal.h: Copied from Source/WebKit/Shared/ContentWorldShared.h.
* Source/WebKit/UIProcess/Cocoa/WebPasteboardProxyCocoa.mm:
* Source/WebKit/WebKit.xcodeproj/project.pbxproj:
* Source/WebKit/WebProcess/UserContent/WebUserContentController.cpp:
(WebKit::WebUserContentController::addContentWorldIfNecessary):

Canonical link: https://commits.webkit.org/304691@main
…t 2)

https://bugs.webkit.org/show_bug.cgi?id=304367
rdar://166743946

Reviewed by Aditya Keerthi.

This effectively re-lands 304592@main, but only a part of it (the verification and module map fixing part).

* Source/WTF/Scripts/modules-verifier/GenerateModuleVerifierInputsTask.py:
* Source/WTF/Scripts/modules-verifier/ModuleVerifierLanguage.py:
(LanguageStandard):
(LanguageStandard.c_standards):
* Source/WTF/Scripts/modules-verifier/library-modules-verifier.py:
* Source/bmalloc/Configurations/bmalloc.xcconfig:
* Source/bmalloc/Configurations/module.modulemap:

Canonical link: https://commits.webkit.org/304692@main
https://bugs.webkit.org/show_bug.cgi?id=303989
rdar://166293273

Reviewed by Richard Robinson.

We previously landed an ability for CoreIPC to call directly into Swift message
handlers, and we added a test message handler within the IPCTester
infrastructure. However, we landed no automated test to exercise this new code.
That's what this PR does.

This will only have any effect in builds where ENABLE_IPC_TESTING is true, which
as standard is ASAN or debug builds.

In all such builds, we'll now exercise a code path to call into C++ and receive
an asynchronous reply. If additionally ENABLE_IPC_TESTING_SWIFT is enabled,
we'll also call into a Swift message receiver.

As well as adding the new layout test (HTML) it also makes a tiny change to the
recently-added IPCTester logic, to ensure the C++ logic behaves slightly
differently to the Swift logic, as an extra layer of proof that the Swift
receiver was called. It also adds a missing call to removeMessageReceiver.

Test: ipc/swift-receiver.html
Canonical link: https://commits.webkit.org/304693@main
https://bugs.webkit.org/show_bug.cgi?id=304415
rdar://problem/166795977

Reviewed by Ross Kirsling and Darin Adler.

Windows builds with clang-cl fail to recognize [[no_unique_address]]
even when compiling with C++23. WebKit already has a NO_UNIQUE_ADDRESS
macro in Compiler.h that properly detects compiler support for this
attribute and falls back to empty definition when unavailable.

Replace direct use of [[no_unique_address]] with the NO_UNIQUE_ADDRESS
macro in RefCounted base classes to fix Windows builds while maintaining
the attribute on platforms that support it.

* Source/WTF/wtf/RefCounted.h:
* Source/WTF/wtf/ThreadSafeRefCounted.h:
* Source/WTF/wtf/ThreadSafeRefCountedWithSuppressingSaferCPPChecking.h:

Canonical link: https://commits.webkit.org/304697@main
https://bugs.webkit.org/show_bug.cgi?id=247661
rdar://102125455

Reviewed by BJ Burg.

Add an option to the DOM node context menu to copy the formatted version of the element's HTML text.

* Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js:
* Source/WebInspectorUI/UserInterface/Views/DOMTreeElement.js:
(WI.DOMTreeElement.prototype.populateDOMNodeContextMenu):

Canonical link: https://commits.webkit.org/304698@main
https://bugs.webkit.org/show_bug.cgi?id=304364
rdar://165526147

Reviewed by Tyler Wilcock and Chris Fleizach.

In 301528@main, date and datetime inputs started being treated as action elements. This
is fine for platforms where WebKit handles the creation and interaction of the date time
picker. But, on iOS, `showPicker` doesn't do anything. It instead relies on the peripheral
input system, which manages the presentation of the picker.

We should use the presence of segments to determine how we should handle the press, as exposed
through hasCustomFocusLogic on the date input. This will be different between the platforms,
as iOS doesn't have segments and doesn't manage it's own focus.

* Source/WebCore/accessibility/AccessibilityNodeObject.cpp:
(WebCore::isDateFieldWithStandardFocus):
(WebCore::nodeActionElement):
* Source/WebCore/html/HTMLInputElement.h:

Canonical link: https://commits.webkit.org/304700@main
https://bugs.webkit.org/show_bug.cgi?id=304437
rdar://166818743

Unreviewed, build fix.

Apparently even clang on Windows isn't configured to honor
no_unique_address. Skip this assert for now, and allow objects
to be bigger.

* Source/WTF/wtf/RefCountDebugger.cpp:

Canonical link: https://commits.webkit.org/304701@main
https://bugs.webkit.org/show_bug.cgi?id=304296
rdar://166587473

Reviewed by Aditya Keerthi.

A crash on safari was reported and the stack traces point to the
FindTextMatchCallbackAggregator. The aggregator holds a WeakPtr
to a WebPageProxy, which can be null at the aggregator's destruction
(which is when the page is used).

To fix this issue, I store the WebPageProxy in a RefPtr and check
for valid state before using the page.

* Source/WebKit/UIProcess/FindTextMatchesCallbackAggregator.cpp:
(WebKit::FindTextMatchCallbackAggregator::~FindTextMatchCallbackAggregator):

Canonical link: https://commits.webkit.org/304702@main
https://bugs.webkit.org/show_bug.cgi?id=304379
rdar://132956951

Reviewed by Cameron McCormack.

The legacy attachment used hard-coded inactive-window colors, which made
the title text hard to read, especially in dark mode.
Instead we now use standard system colors, which match surrounding text
and adapt to the current system appearance.

No new tests, it's only changing colors.

* Source/WebCore/rendering/AttachmentLayout.mm:
(WebCore::titleTextColorForAttachment):
* Source/WebCore/rendering/mac/RenderThemeMac.mm:
(WebCore::paintAttachmentTitleBackground):

Canonical link: https://commits.webkit.org/304703@main
Claudio Saavedra and others added 8 commits December 23, 2025 16:36
https://bugs.webkit.org/show_bug.cgi?id=304648

Unreviewed gardening.

Some of these tests are also passing on all platforms so update general
expectations in those cases.

* LayoutTests/TestExpectations:
* LayoutTests/platform/glib/TestExpectations:
* LayoutTests/platform/gtk/TestExpectations:
* LayoutTests/platform/wpe-legacy-api/TestExpectations:
* LayoutTests/platform/wpe/TestExpectations:

Canonical link: https://commits.webkit.org/304915@main
…oundary

https://bugs.webkit.org/show_bug.cgi?id=23963
rdar://97208795

Reviewed by Alan Baradlay.

This patch aligns WebKit with Gecko / Firefox and Blink / Chromium.

Merge: https://chromium.googlesource.com/chromium/src.git/+/eb26f063d73fce4d8a2cf64541667e0863cb6421

This patch makes foreignObject a block formatting context (BFC) which
prevents margin collapsing across the foreignObject boundary. This
function (createsNewFormattingContext) is limited to BFC context nowadays.

https://svgwg.org/svg2-draft/single-page.html#embedded-ForeignObjectElement

* Source/WebCore/rendering/RenderBlock.cpp:
(WebCore::RenderBlock::createsNewFormattingContext const):
* LayoutTests/platform/glib/svg/custom/dominant-baseline-hanging-expected.txt:
* LayoutTests/platform/ios/svg/custom/dominant-baseline-hanging-expected.txt:
* LayoutTests/platform/mac/svg/custom/dominant-baseline-hanging-expected.txt:
* LayoutTests/platform/win/svg/custom/dominant-baseline-hanging-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/svg/extensibility/foreignObject/containing-block-expected.txt: Progressions
* LayoutTests/imported/w3c/web-platform-tests/svg/extensibility/foreignObject/getboundingclientrect-expected.txt: Progressions

Canonical link: https://commits.webkit.org/304916@main
https://bugs.webkit.org/show_bug.cgi?id=304410

Reviewed by Yusuke Suzuki and Sosuke Suzuki.

According to the spec discussion, the current `WebAssembly.Exception` does not have `[[ErrorData]]` semantically.
So `Error.isError(WebAssembly.Exception)` should be `false`.

- WebAssembly/spec#1914
- https://webassembly.github.io/spec/js-api/#exceptions

Test: JSTests/wasm/stress/exception-thrown-out-of-wasm-integration-error-is-error.js
* JSTests/wasm/stress/exception-thrown-out-of-wasm-integration-error-is-error.js: Added.
(import.Builder.from.string_appeared_here.import.as.assert.from.string_appeared_here.catch):
* Source/JavaScriptCore/wasm/js/JSWebAssemblyException.cpp:
(JSC::JSWebAssemblyException::createStructure):

Canonical link: https://commits.webkit.org/304917@main
https://bugs.webkit.org/show_bug.cgi?id=304374
rdar://111200272

Reviewed by Cameron McCormack.

Instead of the default tinted transparent overlay (which modifies all
colors), attachments now handle the selected state by only modifying the
main brick background color, similar to how selected text only changes
its background-color.

When the renderer's selection state changes, CSS classes are added or
removed to control the eventual painting.

Bonus: The selection state also specifies if the selection ends at the
element or continues outside, so the border radius can be removed when
the selection continues outside of the element, otherwise gaps would be
visible at the corners.

This patch also adds a new type of reference tests, where the actual
attachment brick (with its shadow tree) is compared to a made-up pure
HTML DOM tree with the same styling, but where sub-elements can be
individually tweaked to match test expectations.

* LayoutTests/fast/attachment/cocoa/wide-attachment-ref-progress-075-expected.html: Added.
* LayoutTests/fast/attachment/cocoa/wide-attachment-ref-progress-075-selected-alone-expected.html: Added.
* LayoutTests/fast/attachment/cocoa/wide-attachment-ref-progress-075-selected-alone.html: Added.
* LayoutTests/fast/attachment/cocoa/wide-attachment-ref-progress-075-selected-extended-expected.html: Added.
* LayoutTests/fast/attachment/cocoa/wide-attachment-ref-progress-075-selected-extended-left-expected.html: Added.
* LayoutTests/fast/attachment/cocoa/wide-attachment-ref-progress-075-selected-extended-left.html: Added.
* LayoutTests/fast/attachment/cocoa/wide-attachment-ref-progress-075-selected-extended-right-expected.html: Added.
* LayoutTests/fast/attachment/cocoa/wide-attachment-ref-progress-075-selected-extended-right.html: Added.
* LayoutTests/fast/attachment/cocoa/wide-attachment-ref-progress-075-selected-extended.html: Added.
* LayoutTests/fast/attachment/cocoa/wide-attachment-ref-progress-075.html: Added.
* LayoutTests/fast/attachment/resources/attachment-test-utils.js:
(assertInAttachmentTest): Actually surface script assertion failures
(takeScreenshot):
(takeScreenshotWhenAttachmentsSettled):
(AugmentDivWithAttachmentTree.addChild):
(AugmentDivWithAttachmentTree):
(AugmentAttachmentClassElementsWithAttachmentTree):
* Source/WebCore/html/HTMLAttachmentElement.cpp:
(WebCore::HTMLAttachmentElement::shadowUserAgentStyleSheetText):
(WebCore::HTMLAttachmentElement::ensureWideLayoutShadowTree):
(WebCore::attachmentClassHasSelection):
(WebCore::attachmentClassSelectionContinuesLeft):
(WebCore::attachmentClassSelectionContinuesRight):
(WebCore::HTMLAttachmentElement::addSelectionClasses):
* Source/WebCore/html/HTMLAttachmentElement.h:
* Source/WebCore/html/shadow/attachmentElementShadow.css:
(div#attachment-container.attachment-has-selection):
(div#attachment-container.attachment-selection-continues-left):
(div#attachment-container.attachment-selection-continues-right):
(div#attachment-background):
* Source/WebCore/rendering/RenderAttachment.cpp:
(WebCore::RenderAttachment::setSelectionState):
* Source/WebCore/rendering/RenderAttachment.h:
* Source/WebCore/testing/Internals.cpp:
(WebCore::Internals::attachmentElementShadowUserAgentStyleSheet const):
* Source/WebCore/testing/Internals.h:
* Source/WebCore/testing/Internals.idl:
* Tools/WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
* Tools/WebKitTestRunner/InjectedBundle/TestRunner.h:
(WTR::TestRunner::isVision const):

Canonical link: https://commits.webkit.org/304918@main
https://bugs.webkit.org/show_bug.cgi?id=304630
rdar://167064090

Reviewed by Mark Lam.

Continue adding more missing header includes, this time focusing mostly on generated code.

* <a lot of headers>

Add missing include statements.

Canonical link: https://commits.webkit.org/304920@main
- Fixed include styles for JSCOnly build (use local includes instead of framework style)
- Fixed generator scripts (opcode_generator.rb, generator.py)
- Added lol/ directory to include paths
- Fixed JSPromiseAllContext -> JSPromiseCombinatorsContext include
- Fixed duplicate queueMicrotask definition in VM.cpp

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
These transition macros were removed from upstream WebKit.
Bun's webcore files have been updated to use WTF_MAKE_TZONE_ALLOCATED instead.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@sosukesuzuki sosukesuzuki changed the title Merge upstream WebKit changes Upgrade WebKit Dec 24, 2025 Dec 25, 2025
@sosukesuzuki

ghost commented Dec 25, 2025

Copy link
Copy Markdown
Member Author

/build-preview

@github-actions

ghost commented Dec 25, 2025

Copy link
Copy Markdown

🔄 Preview build started

Release tag: autobuild-preview-pr-120-d3d0142b
Workflow: View progress

@coderabbitai

ghost commented Dec 25, 2025 •

Copy link