~ubuntu-branches/debian/sid/conkeror/sid

« back to all changes in this revision

Viewing changes to modules/env.js

  • Committer: Package Import Robot
  • Author(s): Axel Beckert
  • Date: 2016-01-30 03:11:03 UTC
  • mfrom: (1.2.19)
  • Revision ID: package-import@ubuntu.com-20160130031103-xctby23g5gufndzy
Tags: 1.0~~pre-1+git160130-1
* New upstream snapshot:
  + Fixes let syntax with Firefox/Iceweasel 44. (Closes: #813039)
* Enable all hardening features for conkeror-spawn-helper.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 * get_os returns a string identifying the current OS.
12
12
 * possible values include 'Darwin', 'Linux' and 'WINNT'.
13
13
 */
14
 
let (xul_runtime = Cc['@mozilla.org/xre/app-info;1']
15
 
         .getService(Ci.nsIXULRuntime)) {
 
14
{
 
15
    let xul_runtime = Cc['@mozilla.org/xre/app-info;1']
 
16
        .getService(Ci.nsIXULRuntime);
16
17
    function get_os () {
17
18
        return xul_runtime.OS;
18
19
    }
37
38
 * getenv returns the value of a named environment variable or null if
38
39
 * the environment variable does not exist.
39
40
 */
40
 
let (env = Cc['@mozilla.org/process/environment;1']
41
 
         .getService(Ci.nsIEnvironment)) {
 
41
{
 
42
    let env = Cc['@mozilla.org/process/environment;1']
 
43
        .getService(Ci.nsIEnvironment);
42
44
    function getenv (variable) {
43
45
        if (env.exists(variable))
44
46
            return env.get(variable);
75
77
 * not be depended on for anything important.  It is mainly intended for
76
78
 * decoration of the window title and mode-line.
77
79
 */
78
 
let (profile_name = null) {
 
80
{
 
81
    let profile_name = null;
79
82
    function get_current_profile () {
80
83
        if (profile_name)
81
84
            return profile_name;