diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-04-26 05:30:28 -0500 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-04-26 05:30:28 -0500 |
commit | 1389be37823fccf4108f4e79d0a3a793f0bbe93e (patch) | |
tree | 30b2dc45c0aad707848dab7bfc53a3c11e1bdfe8 /components/script/dom/htmliframeelement.rs | |
parent | aef48baeb4a67d003c8a88d91d01d3a33ac3620d (diff) | |
parent | 9185c3de7984fa46b71a62b2902a707c9d4134c3 (diff) | |
download | servo-1389be37823fccf4108f4e79d0a3a793f0bbe93e.tar.gz servo-1389be37823fccf4108f4e79d0a3a793f0bbe93e.zip |
Auto merge of #5847 - Ms2ger:slice, r=SimonSapin
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5847)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/htmliframeelement.rs')
-rw-r--r-- | components/script/dom/htmliframeelement.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmliframeelement.rs b/components/script/dom/htmliframeelement.rs index 08465fdf9aa..7327a6131f9 100644 --- a/components/script/dom/htmliframeelement.rs +++ b/components/script/dom/htmliframeelement.rs @@ -335,7 +335,7 @@ impl<'a> VirtualMethods for JSRef<'a, HTMLIFrameElement> { let mut modes = SandboxAllowance::AllowNothing as u8; if let Some(ref tokens) = attr.value().tokens() { for token in tokens.iter() { - modes |= match token.as_slice().to_ascii_lowercase().as_slice() { + modes |= match &*token.to_ascii_lowercase() { "allow-same-origin" => SandboxAllowance::AllowSameOrigin, "allow-forms" => SandboxAllowance::AllowForms, "allow-pointer-lock" => SandboxAllowance::AllowPointerLock, |