Tagged articles
14 articles
Page 1 of 1
DaTaobao Tech
DaTaobao Tech
Nov 6, 2023 · Mobile Development

Analyzing and Fixing iOS 16 WKWebView Crash via Reverse Engineering and Hooking

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.

AssemblyCrashAnalysisHooking
0 likes · 29 min read
Analyzing and Fixing iOS 16 WKWebView Crash via Reverse Engineering and Hooking
Baidu Geek Talk
Baidu Geek Talk
Nov 22, 2021 · Frontend Development

How to Debug WebKit Source Code: A Comprehensive Guide

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.

Multi‑process ArchitectureWKWebViewWebKit
0 likes · 11 min read
How to Debug WebKit Source Code: A Comprehensive Guide
Sohu Tech Products
Sohu Tech Products
Oct 20, 2021 · Mobile Development

Comprehensive Guide to WKWebView: Migration, Performance, Delegates, Caching, and Cookie Management

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.

CookieWKWebViewWebView
0 likes · 22 min read
Comprehensive Guide to WKWebView: Migration, Performance, Delegates, Caching, and Cookie Management
Alibaba Terminal Technology
Alibaba Terminal Technology
Sep 8, 2021 · Mobile Development

Mastering WKWebView: Common Pitfalls, Multi‑Process Model, and Practical Solutions

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
Mastering WKWebView: Common Pitfalls, Multi‑Process Model, and Practical Solutions
Baidu App Technology
Baidu App Technology
Jul 19, 2021 · Mobile Development

How WKWebView Manages Cookies: Storage Location & Sync Mechanics

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
How WKWebView Manages Cookies: Storage Location & Sync Mechanics
Baidu App Technology
Baidu App Technology
Jul 6, 2021 · Mobile Development

Unveiling WKWebView’s Loading Lifecycle: Deep Dive into WebKit Processes and Navigation Delegates

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
Unveiling WKWebView’s Loading Lifecycle: Deep Dive into WebKit Processes and Navigation Delegates
Baidu App Technology
Baidu App Technology
Jun 22, 2021 · Mobile Development

WebKit Source Code Tutorial: Download, Compile, Debug, and Analyze WKWebView on iOS

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.

CompilationWKWebViewWebKit
0 likes · 12 min read
WebKit Source Code Tutorial: Download, Compile, Debug, and Analyze WKWebView on iOS
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Jan 28, 2021 · Mobile Development

iOS WKWebView Request Interception via WKURLSchemeHandler and JavaScript Injection

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
iOS WKWebView Request Interception via WKURLSchemeHandler and JavaScript Injection
Sohu Tech Products
Sohu Tech Products
Jul 8, 2020 · Mobile Development

Comprehensive Guide to Using WKWebView in iOS: Creation, Delegates, UserAgent, Cookies, and JS Interaction

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 BridgeMobile Development
0 likes · 14 min read
Comprehensive Guide to Using WKWebView in iOS: Creation, Delegates, UserAgent, Cookies, and JS Interaction
Hujiang Technology
Hujiang Technology
Jul 20, 2017 · Mobile Development

Understanding WKWebView: Comparison with UIWebView, Usage, Issues, and Solutions

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.

CookieJavaScriptUIWebView
0 likes · 18 min read
Understanding WKWebView: Comparison with UIWebView, Usage, Issues, and Solutions