~ubuntu-branches/ubuntu/jaunty/venkman/jaunty

« back to all changes in this revision

Viewing changes to chrome/content/venkman/venkman-utils.js

  • Committer: Bazaar Package Importer
  • Author(s): Siegfried-Angel Gevatter Pujals
  • Date: 2008-08-09 14:40:31 UTC
  • mfrom: (1.1.4 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080809144031-zqulcf0yw37rkqk9
Tags: 0.9.87.4-2ubuntu1
* Merge with Debian unstable; remaining changes:
   - debian/control:
      + Change the Depends to the names of Mozilla's products in Ubuntu
        instead of Debian's names (iceweasel -> firefox, iceape -> seamonkey,
        icedove -> thunderbird).
      + Change the description so that it mentions the names of Mozilla's
        products in Ubuntu instead of Debian's names (LP: #184084).
      + Update Maintainer field following the DebianMaintainerField spec.
* debian/postrm:
   - Add a update-seamonkey-chrome call (like the update-iceape-chrome one).
* debian/links:
   - Change the names in the directories from those used in Ubuntu to those
     used in Debian.
   - Also create a symlink in /usr/lib/firefox-addons/extensions/.
* debian/control:
   - Add Homepage field.
   - Bump Standards Version to 3.8.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
215
215
    
216
216
}
217
217
 
 
218
function getService(contractID, iface)
 
219
{
 
220
    var rv;
 
221
    var cls = Components.classes[contractID];
 
222
 
 
223
    if (!cls)
 
224
        return null;
 
225
 
 
226
    switch (typeof iface)
 
227
    {
 
228
        case "undefined":
 
229
            rv = cls.getService();
 
230
            break;
 
231
 
 
232
        case "string":
 
233
            rv = cls.getService(Components.interfaces[iface]);
 
234
            break;
 
235
 
 
236
        case "object":
 
237
            rv = cls.getService(iface);
 
238
            break;
 
239
 
 
240
        default:
 
241
            rv = null;
 
242
            break;
 
243
    }
 
244
 
 
245
    return rv;
 
246
 
 
247
}
 
248
 
218
249
function safeHTML(str)
219
250
{
220
251
    function replaceChars(ch)