mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Move mozbrowser_enabled to util::prefs
This commit is contained in:
parent
34858fd0c9
commit
34dfc28e98
6 changed files with 18 additions and 18 deletions
|
@ -42,13 +42,9 @@ use std::cell::Cell;
|
|||
use string_cache::Atom;
|
||||
use style::context::ReflowGoal;
|
||||
use url::Url;
|
||||
use util::prefs;
|
||||
use util::prefs::mozbrowser_enabled;
|
||||
use util::str::LengthOrPercentageOrAuto;
|
||||
|
||||
pub fn mozbrowser_enabled() -> bool {
|
||||
prefs::get_pref("dom.mozbrowser.enabled").as_boolean().unwrap_or(false)
|
||||
}
|
||||
|
||||
#[derive(HeapSizeOf)]
|
||||
enum SandboxAllowance {
|
||||
AllowNothing = 0x00,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue