aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-02-04 16:06:46 -0700
committerbors-servo <metajack+bors@gmail.com>2015-02-04 16:06:46 -0700
commit40c59724b2638fee3b9932eba1aa9f6ebd77b0cd (patch)
tree92075ce29fe9d1e589510a7efcb1ed43abe14055
parent0beb070d482323889556276b122624a2b14cd08b (diff)
parent81dbcf505ffef7b82f4dc823a876ce2410307920 (diff)
downloadservo-40c59724b2638fee3b9932eba1aa9f6ebd77b0cd.tar.gz
servo-40c59724b2638fee3b9932eba1aa9f6ebd77b0cd.zip
auto merge of #4838 : psdh/servo/local, r=jdm
#4601
-rw-r--r--components/script/dom/htmliframeelement.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/components/script/dom/htmliframeelement.rs b/components/script/dom/htmliframeelement.rs
index ec100884471..871413f1077 100644
--- a/components/script/dom/htmliframeelement.rs
+++ b/components/script/dom/htmliframeelement.rs
@@ -3,6 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use dom::attr::Attr;
+use dom::attr::AttrValue;
use dom::attr::AttrHelpers;
use dom::bindings::codegen::Bindings::HTMLIFrameElementBinding;
use dom::bindings::codegen::Bindings::HTMLIFrameElementBinding::HTMLIFrameElementMethods;
@@ -26,6 +27,7 @@ use servo_msg::constellation_msg::{PipelineId, SubpageId, ConstellationChan};
use servo_msg::constellation_msg::IFrameSandboxState::{IFrameSandboxed, IFrameUnsandboxed};
use servo_msg::constellation_msg::Msg as ConstellationMsg;
use util::str::DOMString;
+use string_cache::Atom;
use std::ascii::AsciiExt;
use std::cell::Cell;
@@ -237,6 +239,13 @@ impl<'a> VirtualMethods for JSRef<'a, HTMLIFrameElement> {
}
}
+ fn parse_plain_attribute(&self, name: &Atom, value: DOMString) -> AttrValue {
+ match name {
+ &atom!("sandbox") => AttrValue::from_serialized_tokenlist(value),
+ _ => self.super_type().unwrap().parse_plain_attribute(name, value),
+ }
+ }
+
fn before_remove_attr(&self, attr: JSRef<Attr>) {
match self.super_type() {
Some(ref s) => s.before_remove_attr(attr),