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

Commit

Permalink
Fix #2297: Disable Bookmarklet URLRequests
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon-T authored and kylehickinson committed Feb 1, 2020
1 parent 2f97700 commit 96c43da
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,8 @@ extension BrowserViewController: WKNavigationDelegate {
return
}

if url.isBookmarklet && navigationAction.isAllowed {
if url.isBookmarklet {
decisionHandler(.cancel)

if let code = url.bookmarkletCodeComponent {
webView.evaluateJavaScript(code)
}
return
}

Expand Down

0 comments on commit 96c43da

Please sign in to comment.