mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Fixed this issue (https://github.com/mozilla/rust/issues/10683)
This commit is contained in:
parent
a5aabefa4c
commit
a7865495f6
5 changed files with 49 additions and 30 deletions
|
@ -116,7 +116,8 @@ impl HTMLIFrameElement {
|
|||
if "sandbox" == name {
|
||||
let mut modes = AllowNothing as u8;
|
||||
for word in value.split_iter(' ') {
|
||||
modes |= match word.to_ascii_lower().as_slice() {
|
||||
let word_lower = word.to_ascii_lower();
|
||||
modes |= match word_lower.as_slice() {
|
||||
"allow-same-origin" => AllowSameOrigin,
|
||||
"allow-forms" => AllowForms,
|
||||
"allow-pointer-lock" => AllowPointerLock,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue