Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mallexxx committed Apr 10, 2024
1 parent 427034b commit 4ecd45b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DuckDuckGo/Tab/Model/Tab.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1063,8 +1063,8 @@ protocol NewWindowPolicyDecisionMaker {

let source = content.source
if url.isFileURL {
// WebKit won‘t load local page‘s external resouces even with `allowingReadAccessTo` is passed
// this could be fixed using a custom scheme handler loading local resources
// WebKit won‘t load local page‘s external resouces even with `allowingReadAccessTo` provided
// this could be fixed using a custom scheme handler loading local resources in future.
let readAccessScopeURL = url
return webView.navigator(distributedNavigationDelegate: navigationDelegate)
.loadFileURL(url, allowingReadAccessTo: readAccessScopeURL, withExpectedNavigationType: source.navigationType)
Expand Down

0 comments on commit 4ecd45b

Please sign in to comment.