diff options
author | Ascrod <32915892+Ascrod@users.noreply.github.com> | 2019-04-08 20:42:10 -0400 |
---|---|---|
committer | Ascrod <32915892+Ascrod@users.noreply.github.com> | 2019-04-13 11:37:45 -0400 |
commit | 1d0af8b59102331cba100529e1697f91faf0c86b (patch) | |
tree | 3fa887fe66e4939ff8a3fc0d48cff84e8e4b14c4 /dom/presentation | |
parent | c7796280a9b5600fb15a4c170ca3d3f4d4d9e535 (diff) | |
download | UXP-1d0af8b59102331cba100529e1697f91faf0c86b.tar UXP-1d0af8b59102331cba100529e1697f91faf0c86b.tar.gz UXP-1d0af8b59102331cba100529e1697f91faf0c86b.tar.lz UXP-1d0af8b59102331cba100529e1697f91faf0c86b.tar.xz UXP-1d0af8b59102331cba100529e1697f91faf0c86b.zip |
Issue #991 Part 5: DOM and layout
Diffstat (limited to 'dom/presentation')
-rw-r--r-- | dom/presentation/PresentationDataChannelSessionTransport.js | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/dom/presentation/PresentationDataChannelSessionTransport.js b/dom/presentation/PresentationDataChannelSessionTransport.js index 461e4f2cb..9af6213cb 100644 --- a/dom/presentation/PresentationDataChannelSessionTransport.js +++ b/dom/presentation/PresentationDataChannelSessionTransport.js @@ -109,13 +109,7 @@ PresentationTransportBuilder.prototype = { // TODO bug 1228235 we should have a way to let device providers customize // the time-out duration. - let timeout; - try { - timeout = Services.prefs.getIntPref("presentation.receiver.loading.timeout"); - } catch (e) { - // This happens if the pref doesn't exist, so we have a default value. - timeout = 10000; - } + let timeout = Services.prefs.getIntPref("presentation.receiver.loading.timeout", 10000); // The timer is to check if the negotiation finishes on time. this._timer = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer); |