Skip to content

Commit bd1de8b

Browse files
authored
Remove bookmarklet support (#5618)
1 parent fd6c376 commit bd1de8b

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -355,13 +355,14 @@ extension BrowserViewController: WKNavigationDelegate {
355355
return
356356
}
357357

358-
if url.scheme == "javascript", navigationAction.request.isPrivileged {
359-
decisionHandler(.cancel)
360-
if let javaScriptString = url.absoluteString.replaceFirstOccurrence(of: "javascript:", with: "").removingPercentEncoding {
361-
webView.evaluateJavaScript(javaScriptString)
362-
}
363-
return
364-
}
358+
// Disabled due to https://bugzilla.mozilla.org/show_bug.cgi?id=1588928
359+
// if url.scheme == "javascript", navigationAction.request.isPrivileged {
360+
// decisionHandler(.cancel)
361+
// if let javaScriptString = url.absoluteString.replaceFirstOccurrence(of: "javascript:", with: "").removingPercentEncoding {
362+
// webView.evaluateJavaScript(javaScriptString)
363+
// }
364+
// return
365+
// }
365366

366367
// Second special case are a set of URLs that look like regular http links, but should be handed over to iOS
367368
// instead of being loaded in the webview. Note that there is no point in calling canOpenURL() here, because

0 commit comments

Comments
 (0)