Bug 243824 - WebKit::terminateWithReason() is declared in WebKit/Platform/spi, but defined in WebKit/Shared
Summary: WebKit::terminateWithReason() is declared in WebKit/Platform/spi, but defined...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Kimmo Kinnunen
URL:
Keywords: InRadar
Depends on:
Blocks: 243780
  Show dependency treegraph
 
Reported: 2022-08-11 07:08 PDT by Kimmo Kinnunen
Modified: 2022-08-16 01:22 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kimmo Kinnunen 2022-08-11 07:08:25 PDT
WebKit::terminateWithReason() is declared in WebKit/Platform/spi, but defined in WebKit/Shared

Problems:
 - IPC:: uses WebKit::terminateWithReason(), but terminateWithReason() is not implemented in WebKit/Platform
 - WebKit::terminateWithReason() is declared in a SPI header. Typically SPI headers only declare the SPI.
 - WebKit::terminateWithReason() is defined in a surprising file (ProcessLauncherCocoa.mm)

The layering violation of WebKit/Platform depending on WebKit/Shared implementation is making it hard to compile a version of IPC that does not depend on WebKit:: other that WebKit/Platform.
Comment 1 Radar WebKit Bug Importer 2022-08-11 07:09:51 PDT
<rdar://problem/98506618>
Comment 2 Kimmo Kinnunen 2022-08-11 07:29:15 PDT
Pull request: https://github.com/WebKit/WebKit/pull/3219
Comment 3 EWS 2022-08-16 01:22:30 PDT
Committed 253461@main (7e6b014c2242): <https://commits.webkit.org/253461@main>

Reviewed commits have been landed. Closing PR #3219 and removing active labels.