Known limits
What CEF, official CEF builds and CefSwift cannot do, and the workaround where there is one.
// Netflix-class streaming needs FairPlay: show it in WebKit beside Chromium.
// See Streaming and DRM.
let preset = CefRuntime.Configuration.chrome
print(preset.services.protectedMedia)
Known limits
- A request filter can rewrite a response’s body
(
.rewriteResponse(_:)) but not its status or headers: CEF hands an embedder the response’s headers read-only. - The app’s own requests through
CefProfile.data(for:),bytes(for:)anddownload(for:to:)do not reach a profile’s request filter. - A page in a window Chromium opens by itself gets its profile’s scripts and bridges from its second document on; see User scripts and style sheets.
- Chrome style (
chrome://pages, extensions, history, the password manager) exists only inCefWindow,CefChromeWindowand Chrome UI windows, a Chromium constraint on macOS.CefWebViewuses the Alloy style. - CEF 156 allows one Chrome-style browser view per window: a
CefWindowholds one page, and Chromium counts it as a popup window of one tab, sochrome.tabscannot group or move it. Tabs that are Chromium’s own exist only in the windows Chromium draws itself (CefChromeWindow,openChromeWindow); withCefWindow, build tabs from native window tabs (Tabs). - CEF restores no tabs or windows at startup, after a quit or a crash;
CefChromium’s
previousSessionlets the app do it (Restoring tabs and sessions). - Only Chrome-style pages record history. Pages shown in a
CefWebViewdo not appear inprofile.history. authenticationPromptapplies to the whole app: Chromium’s sign-in dialog and the delegate cannot be chosen per page. HTTP authentication requests without a page, such as a service worker’s, are refused.- Chromium’s own Memory Saver never discards a page in a
CefWindow, since each is the active tab of its own Chromium window; calldiscard()from your own policy instead. ACefWebViewpage loses its back/forward list when discarded, never reports.exempt,.pictureInPictureor.connectedToDevice, and Chromium tells tabs apart only by address and title, so Chrome-style tabs showing the same page under the same title cannot be discarded (.unknown) until one of them moves on. - A picture an app takes of its own window (
CGWindowListCreateImage) has no page Chromium draws itself (windowed views,CefWindow,CefChromeWindow): Chromium’s GPU process draws those pages into the window through the remote Core Animation API, and such a picture leaves out what another process draws. The screen has them; a picture fromscreencapture -lor ScreenCaptureKit does too (architecture). - DevTools opens in a window of its own; there is no docked DevTools.
Measured with CEF 156.0.28:
show_dev_toolsgiven a parent view (which makes the DevTools page Alloy style) logsAlloy style is not supported for this browser(browser_host_create.cc) and opens nothing, so DevTools cannot be embedded in an app’s view. - In offscreen pages, assistive apps can focus elements inside frames only by clicking text fields, and press them only while they are in view; elements of the main frame have no such limit. The scroll position of scrolling elements other than the document reaches the accessibility tree only when Chromium next resends them.
- Offscreen pages always use the Alloy style and cannot open native popup windows.
- CefChromium is bound to the pinned CEF.
CefAutocompleteis experimental, andCefBookmarks,CefHistoryandCefAutocompletedepend on Chromium-internal WebUI hosts, andCefBookmarkson the format of Chromium’sBookmarksfile. - CefChromium’s
chromiumSurfacePolicyand swipe navigation inCefWindowdepend on Chromium’s AppKit classes and the view class names its accessibility reports (architecture). If a CEF update renames them, surfaces show as Chromium draws them, where it puts them, with unknown ones reported as.other, andCefWindows swipe as Chrome does, with its arrow, whatever the options say. Commands that open surfaces (.find,.createQRCode, …) still reach custom presenters. SelfTest fails on such an update. - Passkeys answered by the app (
CefPasskeyControllerwith.app) are software keys the app keeps, not iCloud Keychain passkeys, and their attestation is “none”. CEF offers no way to hand a request’s options to AuthenticationServices and return its answer to the page, so iCloud Keychain passkeys are available only through Chromium’s own authenticator (no controller, and the entitlement). The app’s authenticator is a platform authenticator: a request that asks for a cross-platform one (authenticatorAttachment: "cross-platform") waits until its timeout. Calls from cross-site iframes, which run in a DevTools target of their own, also wait until their timeout without reaching the delegate. The controller uses the page’s DevToolsDebuggerandWebAuthndomains; do not use those domains yourself in such a page. - A registration the app answers is saved to the store after the page
receives its credential; the controller cannot withdraw it. A store that passes
checkAvailability()and then fails to save leaves the site with a credential the app cannot use;page(_:passkeyStoreDidFail:)gets the unsaved passkey. - Chromium’s profile passkey authenticator (Touch ID, without a controller) is not
available: CEF 158 compiles in Chromium’s keychain access group,
.org.chromium.Chromium.webauthn, with an empty team identifier, and macOS lets a signed app claim only groups its provisioning profile authorizes, which start with the team identifier. - The App Sandbox is not supported with official CEF builds, so CefSwift apps do not ship in the Mac App Store: Chromium registers a Mach service the App Sandbox refuses (bundling).
- Building without Xcode, with the Command Line Tools 27.2 and their
macOS 27 SDK,
@Statein the app’s own views does not compile: the SDK makes it a macro whose plugin only Xcode ships. CefSwift and its examples avoid it; an app builds against the tools’ macOS 26 SDK or names the property wrapper through an alias (bundling).@Entryand#Previewneed Xcode with every SDK. - Chromium plays Widevine only as an unverified software (L3) client and has no H.264, HEVC or AAC, so Netflix-class services do not play in it; WebKit plays them with FairPlay, beside Chromium in the Browser example (Playing streaming services).