mirror of
https://github.com/servo/servo.git
synced 2025-10-08 04:29:24 +01:00
auto merge of #1388 : hyunjunekim/servo/cssissues, r=kmcallister
Fixed this issue ( https://github.com/mozilla/rust/issues/10683 )
This commit is contained in:
commit
c5d81f13c1
5 changed files with 60 additions and 30 deletions
|
@ -98,7 +98,9 @@ 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() {
|
||||
// FIXME: Workaround for https://github.com/mozilla/rust/issues/10683
|
||||
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