mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Don’t prompt user for credentials for non-Navigate request (#35664)
Signed-off-by: Isaac Marovitz <isaacryu@icloud.com>
This commit is contained in:
parent
67275b0a73
commit
88c8db2f8b
2 changed files with 57 additions and 1 deletions
|
@ -115,6 +115,11 @@ impl HttpState {
|
|||
let webview_id = request.target_webview_id?;
|
||||
let for_proxy = response.status == StatusCode::PROXY_AUTHENTICATION_REQUIRED;
|
||||
|
||||
// If this is not actually a navigation request return None.
|
||||
if request.mode != RequestMode::Navigate {
|
||||
return None;
|
||||
}
|
||||
|
||||
let embedder_proxy = self.embedder_proxy.lock().unwrap();
|
||||
let (ipc_sender, ipc_receiver) = ipc::channel().unwrap();
|
||||
embedder_proxy.send(EmbedderMsg::RequestAuthentication(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue