提交 c439cca3 编写于 作者: M Matt Bierner

Return access denied and log on webview resource load error

Fixes #47634
上级 8150982b
......@@ -432,7 +432,8 @@ function registerFileProtocol(
return;
}
}
callback({ error: 'Cannot load resource outside of protocol root' });
console.error('Webview: Cannot load resource outside of protocol root');
callback({ error: -10 /* ACCESS_DENIED: https://cs.chromium.org/chromium/src/net/base/net_error_list.h */ });
}, (error) => {
if (error) {
console.error('Failed to register protocol ' + protocol);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册