mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
fix: does_settings_prohibit_mixed_security_contexts typo (#36135)
Signed-off-by: Arya Nair <aryaajitnair@gmail.com>
This commit is contained in:
parent
e199a67dac
commit
9ae1fe67a3
1 changed files with 2 additions and 2 deletions
|
@ -958,7 +958,7 @@ fn should_upgrade_request_to_potentially_trustworty(
|
||||||
|
|
||||||
// TODO : Needs to revisit
|
// TODO : Needs to revisit
|
||||||
/// <https://w3c.github.io/webappsec-mixed-content/#categorize-settings-object>
|
/// <https://w3c.github.io/webappsec-mixed-content/#categorize-settings-object>
|
||||||
fn does_settings_prohobit_mixed_security_contexts(url: &ServoUrl) -> bool {
|
fn does_settings_prohibit_mixed_security_contexts(url: &ServoUrl) -> bool {
|
||||||
if url.is_origin_trustworthy() {
|
if url.is_origin_trustworthy() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -981,7 +981,7 @@ fn should_upgrade_mixed_content_request(request: &Request) -> bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Step 1.3
|
// Step 1.3
|
||||||
if !does_settings_prohobit_mixed_security_contexts(&url) {
|
if !does_settings_prohibit_mixed_security_contexts(&url) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue