Skip to content

Commit 2480e2f

Browse files
committed
Remove use of WKProcessPool
> Creating and using multiple instances of WKProcessPool no longer has any effect
1 parent 75271fc commit 2480e2f

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

Modules/Sources/WordPressReader/Comments/Views/WebCommentContentRenderer.swift

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -36,26 +36,10 @@ public final class WebCommentContentRenderer: NSObject, CommentContentRenderer {
3636
private var lastReloadDate: Date?
3737
private var isReloadNeeded = false
3838

39-
/// A shared web view context with resources that can be reused across
40-
/// mutliple web view instances.
41-
@MainActor
42-
public final class Context {
43-
let processPool = WKProcessPool()
44-
45-
public init() {}
46-
}
47-
4839
// MARK: Methods
49-
50-
public required override convenience init() {
51-
self.init(context: .init())
52-
}
53-
54-
public init(context: Context) {
40+
public override init() {
5541
super.init()
5642

57-
webView.configuration.processPool = context.processPool
58-
5943
if #available(iOS 16.4, *) {
6044
webView.isInspectable = true
6145
}

WordPress/Classes/ViewRelated/Reader/Comments/ReaderCommentsHelper.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ import WordPressUI
66
@MainActor
77
@objc class ReaderCommentsHelper: NSObject {
88
private var contentHeights: [String: CGFloat] = [:]
9-
private let webViewContext = WebCommentContentRenderer.Context()
109

1110
func makeWebRenderer() -> WebCommentContentRenderer {
12-
let renderer = WebCommentContentRenderer(context: webViewContext)
11+
let renderer = WebCommentContentRenderer()
1312
renderer.tintColor = UIAppColor.primary
1413
return renderer
1514
}

0 commit comments

Comments
 (0)