aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmliframeelement.rs
diff options
context:
space:
mode:
authorJames Graham <james@hoppipolla.co.uk>2015-09-04 15:21:35 +0100
committerJames Graham <james@hoppipolla.co.uk>2015-09-04 15:55:29 +0100
commita208379f4604111e1770026d01cf1c0e50076c8b (patch)
tree3b0bd2d833b482f0f7d3a4399bcc656e9209800a /components/script/dom/htmliframeelement.rs
parentcc1eb3f741554b3f1711cd1938d1c16b6b7d2879 (diff)
downloadservo-a208379f4604111e1770026d01cf1c0e50076c8b.tar.gz
servo-a208379f4604111e1770026d01cf1c0e50076c8b.zip
Update prefs API to return an Option<bool>.
This allows for situations where there is no reasonable default to apply for the pref value e.g. when we are just listing values
Diffstat (limited to 'components/script/dom/htmliframeelement.rs')
-rw-r--r--components/script/dom/htmliframeelement.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmliframeelement.rs b/components/script/dom/htmliframeelement.rs
index d4cd6cae3ac..b925e1ffee4 100644
--- a/components/script/dom/htmliframeelement.rs
+++ b/components/script/dom/htmliframeelement.rs
@@ -42,7 +42,7 @@ use url::{Url, UrlParser};
use util::str::{self, LengthOrPercentageOrAuto};
pub fn mozbrowser_enabled() -> bool {
- prefs::get_pref("dom.mozbrowser.enabled", false)
+ prefs::get_pref("dom.mozbrowser.enabled").unwrap_or(false)
}
#[derive(HeapSizeOf)]