~ubuntu-branches/ubuntu/intrepid/xulrunner-1.9/intrepid

« back to all changes in this revision

Viewing changes to mozilla/extensions/inspector/resources/content/prefs/pref-inspector.js

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack, Fabien Tassin, Alexander Sack
  • Date: 2008-07-18 17:36:30 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20080718173630-13ky1jpruf7z22l2
Tags: 1.9.0.1+build1+nobinonly-0ubuntu1
* LP: #247494 - new upstream stability/security release (v1.9.0.1 build1)
  - see USN-626-1

[ Fabien Tassin <fta@sofaraway.org>]
* Add a build-system for xulrunner application inside the SDK.
  mozilla-devscripts is able to make use of this
  - add debian/create-build-system.sh
  - update debian/rules
* Rename the ld.so.conf.d file to xulrunner-1.9.conf as it seems
  extension matters
  - update debian/rules
  - update debian/xulrunner-1.9.postinst
* Get DEB_MOZ_VERSION and DEB_MOZ_VERSION from changelog and make more use
  of variables to make the merge with the 1.9.1 branch easier
  - update debian/rules
  - update debian/xulrunner-1.9.postinst
  - update debian/xulrunner-1.9.postrm
* Make EM_TRANSLATION_VERSION follow upstream version now that strings are
  hard frozen and bump EM_TRANSLATION_MAX_VERSION to 1.9.0.*
  - update debian/rules

[ Alexander Sack <asac@ubuntu.com> ]
* borrow lockPref patch from debian xulrunner (Debbugs: #469020)
  - add debian/patches/bzXXX_deb469020_lockPref_everywhere.patch
  - update debian/patches/series
* Debian compatibility patch that is supposed to make xulrunner also
  consider /usr/lib/mozilla/plugins/ in sid as of xulrunner 1.9~rc2-4
  - add debian/patches/bzXXX_sysplugin_support.patch
  - update debian/patches/series
* prepatch fix for bmo: #120380 - 'needsterminal flag in mailcap
  must be respected'
  - add debian/patches/bz120380_att326044.patch
  - update debian/patches/series
* add xre part missed by debian for sysplugin support
  - add debian/patches/bzXXX_sysplugin_support_xre_part.patch
  - update debian/patches/series
* drop patches applied upstream
  - delete debian/patches/bz428848_att319775_fix_venkman_chrome_access.patch
  - update debian/patches/series
* housekeeping for debian/patches directory; remove obsolete patches from
  debian/patches/ and drop commented patches from series
  - delete debian/patches/bz384304_fix_recursive_symlinks.patch
  - delete debian/patches/bzr423334_att310581_leak_initparser.patch
  - debian/patches/drop_bz418016.patch
  - update debian/patches/series
* (disabled in intrepid) fix "jemalloc not enabled in --with-xul-sdk= builds": we
  fix this by building libjemalloc as a static lib and linking xulrunner-bin and
  xulrunner-stub against it.
  - add debian/patches/jemalloc_in_xul.patch
  - add debian/patches/jemalloc_static.patch
  - update debian/patches/series
  - update debian/rules
  - update debian/xulrunner-1.9.postinst
* link nss/nspr include directories to xulrunner-1.9 sdk in order to
  allow upstream extensions to be built against ubuntu xulrunner.
  - add debian/xulrunner-1.9-dev.links
* add empty xulrunner-dev package to ease sync/merge tasks for ubuntu
  by providing the package name used by debian.
  - update debian/control
* fix makefile style variable eval in xulrunner-1.9 prerm script and use
  proper sh'ish style
  - update debian/xulrunner-1.9.prerm
* add code/debug-support to disable -Bsymbolic-functions linkage - but keep
  it commented by default
  - update debian/rules
* hold back upgrade until firefox 3.0.1 is available; for that, we add a
  Breaks: firefox-3.0 (<< 3.0.1) to xulrunner-1.9 binary package 
  - update debian/control
* fix LP: #247132 - The Prism Refractor Extension (v0.2) causes file
  downloads to kill firefox 3; we fix this by introducing a NULL check
  in our bz368428 "XUL FastLoad cache corruption" patch
  - update debian/patches/bz368428_attachment_308130.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
 
2
 * vim: ts=2 sw=2 sts=2
 
3
 * ***** BEGIN LICENSE BLOCK *****
 
4
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
 
5
 *
 
6
 * The contents of this file are subject to the Mozilla Public License Version
 
7
 * 1.1 (the "License"); you may not use this file except in compliance with
 
8
 * the License. You may obtain a copy of the License at
 
9
 * http://www.mozilla.org/MPL/
 
10
 *
 
11
 * Software distributed under the License is distributed on an "AS IS" basis,
 
12
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 
13
 * for the specific language governing rights and limitations under the
 
14
 * License.
 
15
 *
 
16
 * The Original Code is Mozilla.org Code.
 
17
 *
 
18
 * Contributor(s):
 
19
 *   Bruno Escherl <aqualon@aquachan.de>
 
20
 *
 
21
 * Alternatively, the contents of this file may be used under the terms of
 
22
 * either the GNU General Public License Version 2 or later (the "GPL"), or
 
23
 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 
24
 * in which case the provisions of the GPL or the LGPL are applicable instead
 
25
 * of those above. If you wish to allow use of your version of this file only
 
26
 * under the terms of either the GPL or the LGPL, and not to allow others to
 
27
 * use your version of this file under the terms of the MPL, indicate your
 
28
 * decision by deleting the provisions above and replace them with the notice
 
29
 * and other provisions required by the GPL or the LGPL. If you do not delete
 
30
 * the provisions above, a recipient may use your version of this file under
 
31
 * the terms of any one of the MPL, the GPL or the LGPL.
 
32
 *
 
33
 * ***** END LICENSE BLOCK ***** */
 
34
 
 
35
function Startup()
 
36
{
 
37
  SidebarPrefs_initialize();
 
38
  enableBlinkPrefs(document.getElementById("inspector.blink.on").value);
 
39
}
 
40
 
 
41
function enableBlinkPrefs(aTruth)
 
42
{
 
43
  /* 
 
44
   * define the pair of label and control used in the prefpane to allow
 
45
   * disabling of both elements, if a pref is locked.
 
46
   */
 
47
  let els = {
 
48
    lbElBorderColor: "cprElBorderColor",
 
49
    lbElBorderWidth: "txfElBorderWidth",
 
50
    lbElDuration: "txfElDuration",
 
51
    lbElSpeed: "txfElSpeed",
 
52
    "": "cbElInvert"
 
53
  };
 
54
 
 
55
  for (let [label, control] in Iterator(els)) {
 
56
    let controlElem = document.getElementById(control);
 
57
 
 
58
    // only remove disabled attribute, if pref isn't locked
 
59
    if (aTruth && !isPrefLocked(controlElem)) {
 
60
      controlElem.removeAttribute("disabled");
 
61
      if (label)
 
62
        document.getElementById(label).removeAttribute("disabled");
 
63
    } else {
 
64
      controlElem.setAttribute("disabled", true);
 
65
      if (label)
 
66
        document.getElementById(label).setAttribute("disabled", true);
 
67
    }
 
68
  }
 
69
}
 
70
 
 
71
function isPrefLocked(elem)
 
72
{
 
73
  if (!elem.hasAttribute("preference"))
 
74
    return false;
 
75
 
 
76
  return document.getElementById(elem.getAttribute("preference")).locked;
 
77
}