WebKit now provides an API for enabling Global Privacy Control (GPC) in apps that embed web content. Available as of iOS, iPadOS, visionOS, and macOS 27, the feature gives developers using WKWebView or SwiftUI's WebPage a supported way to apply a user's privacy preference to a navigation.
John Wilander announced the API on November 18, 2026. Its most important detail for implementation teams is scope: once enabled, GPC covers the main frame, subframes, and their subresources, rather than only the top-level page. Both a JavaScript-visible signal and an HTTP request header become active.
What the new API does
GPC is an emerging web standard for communicating a user's choice to opt out of sharing and cross-context targeted advertising. WebKit's announcement cites the specification as of November 10, 2026. It also points to the California Office of the Attorney General's description of the California Consumer Privacy Act, which identifies a right to opt out of the sale or sharing of personal information, including through GPC.
For Objective-C and Swift code using WKWebView, the new WKWebpagePreferences property is globalPrivacyControlEnabled. Set it to YES on the preferences object supplied to the navigation-policy delegate, then return those preferences with the allowed navigation. That navigation opts into GPC.
SwiftUI's WebPage API exposes the same capability as isGlobalPrivacyControlEnabled on WebPage.NavigationPreferences. WebKit's examples set either property from an app-maintained value representing the user's preference.
Enabling either preference activates two forms of the signal:
- navigator.globalPrivacyControl, which makes the preference available to JavaScript in the document.
- Sec-GPC: 1, which communicates the preference in requests.
Because the setting applies to the whole document tree produced by the navigation, developers do not need a separate WebKit setting for each frame or subresource within that tree.
Why this matters beyond the browser chrome
An embedded web view often sits inside an app's own interface, so a website's privacy controls may not be the only place where a user expects to manage tracking choices. The new API lets the surrounding app offer its own setting and pass that choice into web content. This creates a more direct connection between native preference screens and standards-based web signaling.
For businesses, however, installing the API is not the same as completing a privacy compliance program. WebKit's post explains how an app can emit GPC; it does not say that the property changes an app's server-side behavior, reconfigures advertising systems, or proves how every recipient responds. Product, engineering, and privacy teams still need to decide what the preference means for their services and verify that their systems act accordingly.
The per-navigation design also deserves attention. The preference should reflect the user's current choice whenever relevant navigation-policy code runs. A control that appears to save a choice while subsequent navigations use a different value would create a misleading experience.
How development teams should implement it
Start with a clear product decision about where GPC belongs in the app's privacy settings. Then connect that stored choice to the appropriate WebKit navigation preferences. Teams using WKWebView should update the delegate that decides navigation-action policy; teams using SwiftUI WebPage should update its navigation-preferences decision path.
- Use one authoritative preference value. Avoid letting the interface, native code, and web layer maintain conflicting versions of the user's choice.
- Apply it during navigation decisions. Return the modified preferences while allowing the navigation, following the pattern WebKit documents.
- Test both states. Confirm that enabling the setting activates the expected signals and that users can change their choice without stale behavior.
- Inspect the full content hierarchy. Test the main document, embedded frames, and subresource requests, since WebKit explicitly includes all of them in the enabled navigation.
- Check downstream handling. Verify that relevant web applications and infrastructure can observe the header and that JavaScript-dependent behavior responds appropriately to the navigator property.
Quality assurance should include network inspection as well as interface testing. A visible toggle alone cannot establish that Sec-GPC: 1 is present or that navigator.globalPrivacyControl is available. Tests should also cover fresh navigations after a preference change.
Coordinate app signaling with website behavior
Business owners should treat this release as an integration opportunity, not an automatic guarantee of outcomes on every site. App developers control whether WebKit sends the signal for their navigations, while website and service teams remain responsible for interpreting it within their own privacy processes. Where legal obligations apply, those teams should involve the appropriate privacy or legal specialists rather than relying solely on an engineering assumption.
User-facing wording should be equally careful. Describe the control as communicating a GPC preference, and avoid promising a particular response from third-party content unless that response has been established separately.
The practical takeaway is straightforward: WebKit now supplies the signaling mechanism for embedded web views on the listed operating systems. Apps need to wire the user's choice into each relevant navigation, and web teams need to test and handle the resulting signals. Doing both turns a new API property into a coherent privacy feature rather than a setting with no verified effect.
Sources
This article was written with AI assistance from the sources cited above and checked by automated quality rules.
Build With Teridox
Need a fast, secure website or digital product? Teridox, founded by Arya Intaran, designs and builds websites and web apps for businesses. Get in touch to discuss your project.
