Tag

WKWebView

0 views collected around this technical thread.

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.

HookingVisionKitWKWebView
0 likes · 29 min read
Analyzing and Fixing iOS 16 WKWebView Crash via Reverse Engineering and Hooking
Baidu App Technology
Baidu App Technology
Mar 7, 2022 · Mobile Development

How WKWebView Parses HTML: Decoding, Tokenization, and DOM Tree Construction

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.

DOMHTML parsingWKWebView
0 likes · 37 min read
How WKWebView Parses HTML: Decoding, Tokenization, and DOM Tree Construction
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.

WKWebViewWebViewcaching
0 likes · 22 min read
Comprehensive Guide to WKWebView: Migration, Performance, Delegates, Caching, and Cookie Management
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.

CompilationMulti-ProcessSource Code
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 BridgeObjective-C
0 likes · 14 min read
Comprehensive Guide to Using WKWebView in iOS: Creation, Delegates, UserAgent, Cookies, and JS Interaction
Huajiao Technology
Huajiao Technology
Jan 7, 2020 · Mobile Development

Fixing iPhone X Bottom Safe Area Issue in WKWebView and Frontend CSS

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.

CSSSafe AreaWKWebView
0 likes · 4 min read
Fixing iPhone X Bottom Safe Area Issue in WKWebView and Frontend CSS
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.

JavaScriptNativeUIWebView
0 likes · 18 min read
Understanding WKWebView: Comparison with UIWebView, Usage, Issues, and Solutions
Hujiang Technology
Hujiang Technology
Apr 20, 2017 · Mobile Development

Enhancing UIWebView with KakiWebView: Plugins, JSBridge, and JavaScriptCore Integration

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.

JSBridgeJavaScriptCoreKakiWebView
0 likes · 7 min read
Enhancing UIWebView with KakiWebView: Plugins, JSBridge, and JavaScriptCore Integration