Skip to content
This repository was archived by the owner on May 10, 2024. It is now read-only.

Commit 84a9da2

Browse files
authored
Fix #2297: Disable Bookmarklet URLRequests
1 parent 9d070c2 commit 84a9da2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Client/Frontend/Browser/BrowserViewController/BrowserViewController+WKNavigationDelegate.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,8 @@ extension BrowserViewController: WKNavigationDelegate {
126126
return
127127
}
128128

129-
if url.isBookmarklet && navigationAction.isAllowed {
129+
if url.isBookmarklet {
130130
decisionHandler(.cancel)
131-
132-
if let code = url.bookmarkletCodeComponent {
133-
webView.evaluateJavaScript(code)
134-
}
135131
return
136132
}
137133

0 commit comments

Comments
 (0)