mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
chromeos: Check both original and absolute paths for file: scheme
https://codereview.chromium.org/2786583002
This commit is contained in:
committed by
Cheng Zhao
parent
14c61a96af
commit
b69913975b
@@ -123,8 +123,10 @@ bool NetworkDelegate::OnCanSetCookie(const net::URLRequest& request,
|
||||
return true;
|
||||
}
|
||||
|
||||
bool NetworkDelegate::OnCanAccessFile(const net::URLRequest& request,
|
||||
const base::FilePath& path) const {
|
||||
bool NetworkDelegate::OnCanAccessFile(
|
||||
const net::URLRequest& request,
|
||||
const base::FilePath& original_path,
|
||||
const base::FilePath& absolute_path) const {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -58,7 +58,8 @@ class NetworkDelegate : public net::NetworkDelegate {
|
||||
const std::string& cookie_line,
|
||||
net::CookieOptions* options) override;
|
||||
bool OnCanAccessFile(const net::URLRequest& request,
|
||||
const base::FilePath& path) const override;
|
||||
const base::FilePath& original_path,
|
||||
const base::FilePath& absolute_path) const override;
|
||||
bool OnCanEnablePrivacyMode(
|
||||
const GURL& url,
|
||||
const GURL& first_party_for_cookies) const override;
|
||||
|
||||
Reference in New Issue
Block a user