make scripting_enabled depend on a browsing context

This commit is contained in:
bd339 2016-04-30 21:05:21 +02:00
parent fc1e4c8085
commit 0c92e19e84

View file

@ -1668,7 +1668,7 @@ impl Document {
deferred_scripts: DOMRefCell::new(vec![]),
asap_in_order_scripts_list: DOMRefCell::new(vec![]),
asap_scripts_set: DOMRefCell::new(vec![]),
scripting_enabled: Cell::new(true),
scripting_enabled: Cell::new(browsing_context.is_some()),
animation_frame_ident: Cell::new(0),
animation_frame_list: DOMRefCell::new(BTreeMap::new()),
loader: DOMRefCell::new(doc_loader),