Move mozbrowser_enabled to util::prefs

This commit is contained in:
Anthony Ramine 2016-05-24 00:10:01 +02:00
parent 34858fd0c9
commit 34dfc28e98
6 changed files with 18 additions and 18 deletions

View file

@ -356,7 +356,7 @@ impl Pipeline {
pub fn trigger_mozbrowser_event(&self,
subpage_id: SubpageId,
event: MozBrowserEvent) {
assert!(prefs::get_pref("dom.mozbrowser.enabled").as_boolean().unwrap_or(false));
assert!(prefs::mozbrowser_enabled());
let event = ConstellationControlMsg::MozBrowserEvent(self.id,
subpage_id,