diff options
author | HyunJune Kim <hyunjune.kim@samsung.com> | 2013-12-12 13:14:37 +0900 |
---|---|---|
committer | HyunJune Kim <hyunjune.kim@samsung.com> | 2013-12-12 13:14:37 +0900 |
commit | a7865495f6171058d686149e48090b0eb8ba1ec2 (patch) | |
tree | 6dd28738338a347da5cb7a3f1e6bea1fcae7840d /src/components/script/dom | |
parent | a5aabefa4c033f21a71386d10c18bcfd206dafc7 (diff) | |
download | servo-a7865495f6171058d686149e48090b0eb8ba1ec2.tar.gz servo-a7865495f6171058d686149e48090b0eb8ba1ec2.zip |
Fixed this issue (https://github.com/mozilla/rust/issues/10683)
Diffstat (limited to 'src/components/script/dom')
-rw-r--r-- | src/components/script/dom/htmliframeelement.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/script/dom/htmliframeelement.rs b/src/components/script/dom/htmliframeelement.rs index 73172cb0ad8..aecd41f9119 100644 --- a/src/components/script/dom/htmliframeelement.rs +++ b/src/components/script/dom/htmliframeelement.rs @@ -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, |