File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Client/Frontend/Browser/BrowserViewController Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments