Tagged articles
WKWebView
14 articles · Page 1 of 1
By reverse‑engineering the iOS 16 WKWebView image‑analysis crash, the team identified a nil‑buffer bug in VisionKitCore’s CGImage creation, then mitigated it by runtime‑hooking VKCRemoveBackgroundResult’s createCGImage (returning NULL) and suppressing the image‑analysis gesture, reducing crashes from thousands to near zero.
CrashAnalysisHookingVisionKit
0 likes · 29 min read

WKWebView parses HTML by streaming bytes from the network process to the rendering process, decoding them into characters, tokenizing into HTML tokens, building a DOM tree through node creation and insertion, and finally laying out and painting the document using a doubly‑linked in‑memory structure.
DOMWKWebViewWebKit
0 likes · 37 min read

This article explains how WKWebView leverages various WebKit cache types—including disk, memory, and page caches—detailing their structures, sizing strategies, eviction policies, and the exact source‑code logic that governs HTTP caching, cleanup, and validation on iOS.
CacheDiskCacheHTTP
0 likes · 19 min read

This guide walks developers through downloading, compiling, and debugging WebKit’s complex source code—covering repository setup, Xcode and command‑line builds, creating debug projects, understanding the multi‑process architecture, and practical tips such as using TestWebKitAPI for effective analysis.
Frontend DevelopmentMulti‑process ArchitectureWKWebView
0 likes · 11 min read

This article explains why UIWebView was deprecated, how WKWebView improves performance and memory usage, details its multi‑process architecture, outlines page loading flow, delegate methods, container design, caching strategies, cookie handling across processes, and solutions for white‑screen crashes in iOS apps.
CachingCookieWKWebView
0 likes · 22 min read

This article dives deep into WKWebView on iOS/macOS, explaining its network architecture, cookie handling, multi‑process model, and the four major production issues—request proxy, cookie management, full‑screen adaptation, and WebContent crashes—while offering detailed, source‑level solutions and implementation tips.
Cookie ManagementHybrid DevelopmentRequest Proxy
0 likes · 21 min read

This article explores the fundamentals of HTTP cookies within WKWebView, detailing how cookies are stored in memory or disk, the roles of UIProcess, WebContent, and NetworkProcess, and provides code examples for front‑end JavaScript, back‑end headers, and iOS client APIs.
Cookie ManagementHTTP CookiesProcess Communication
0 likes · 11 min read

This article dissects the WKWebView loading pipeline on iOS, explaining the three WebKit processes, their communication, the step‑by‑step request flow, and the detailed behavior of each WKNavigationDelegate method, providing practical insights for performance tuning and debugging.
LoadingLifecycleMobileDevelopmentNavigationDelegate
0 likes · 12 min read

This tutorial walks iOS developers through downloading the WebKit source, configuring and compiling it, setting up a debugging project or using the MobileMiniBrowser demo, and analyzing WKWebView’s multi‑process architecture—including UI, WebContent, Network, and Storage processes—to troubleshoot and profile rendering behavior.
WKWebViewWebKitcompilation
0 likes · 12 min read

By combining WKURLSchemeHandler with injected JavaScript that captures request bodies, forwards them via WKScriptMessageHandler, and synchronizes cookies and redirects, this approach overcomes iOS WKWebView’s native limitations, offering a stable, per‑webview interception method superior to NSURLProtocol for offline‑package loading.
JavaScript InjectionWKURLSchemeHandlerWKWebView
0 likes · 18 min read

This article provides a detailed tutorial on WKWebView for iOS, covering its creation, configuration, delegate methods, custom UserAgent registration, cookie management, native‑H5 communication, JavaScript bridges, and NSURLRequest caching strategies, offering practical code examples and best‑practice tips.
Cookie ManagementJavaScript BridgeObjective-C++
0 likes · 14 min read

This article explains how to resolve the iPhone X bottom safe‑area blank space that appears when using height: 100% in WKWebView, providing both native iOS adjustments and a temporary front‑end CSS workaround with code examples.
CSSWKWebViewiOS
0 likes · 4 min read

This article introduces WKWebView, compares it with the legacy UIWebView in terms of performance and memory usage, explains usage patterns, delegate protocols, JavaScript‑Native interaction, common pitfalls such as cookie handling, process crashes, caching, and offers practical solutions and best‑practice recommendations for iOS developers.
CookieJavaScriptNative
0 likes · 18 min read

This article explores how to improve the legacy UIWebView on iOS by using the lightweight KakiWebView component, discussing motivations for WebView adoption, JS‑Native interaction via JSBridge and JavaScriptCore, code organization strategies, and a set of extensible plugins.
JSBridgeKakiWebViewUIWebView
0 likes · 7 min read
