diff options
author | bors-servo <release+servo@mozilla.com> | 2013-12-13 15:40:13 -0800 |
---|---|---|
committer | bors-servo <release+servo@mozilla.com> | 2013-12-13 15:40:13 -0800 |
commit | c5d81f13c167ba46836b78359389e8d1a3f817d6 (patch) | |
tree | 18d84f9ef91a06076a7a6642457047ef06d5acd2 /src/components/script/dom/htmliframeelement.rs | |
parent | a9980b992c47e6fcac1f6c4510e36a49aa22fbbd (diff) | |
parent | cf537469b18224e2c6dda120d1db00009f8cd885 (diff) | |
download | servo-c5d81f13c167ba46836b78359389e8d1a3f817d6.tar.gz servo-c5d81f13c167ba46836b78359389e8d1a3f817d6.zip |
auto merge of #1388 : hyunjunekim/servo/cssissues, r=kmcallister
Fixed this issue ( https://github.com/mozilla/rust/issues/10683 )
Diffstat (limited to 'src/components/script/dom/htmliframeelement.rs')
-rw-r--r-- | src/components/script/dom/htmliframeelement.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/script/dom/htmliframeelement.rs b/src/components/script/dom/htmliframeelement.rs index 3f8ff80a5c7..d1579164f41 100644 --- a/src/components/script/dom/htmliframeelement.rs +++ b/src/components/script/dom/htmliframeelement.rs @@ -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, |