~ubuntu-branches/ubuntu/precise/firefox/precise-proposed

« back to all changes in this revision

Viewing changes to uriloader/exthandler/unix/nsOSHelperAppService.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Ian Jackson
  • Date: 2005-12-02 20:16:18 UTC
  • Revision ID: james.westby@ubuntu.com-20051202201618-txu8o1sikp5e3by5
Tags: 1.4.99+1.5rc3.dfsg-1ubuntu4
* Applied mozilla-1.7.12-2.src.rpm's firefox-1.0-uriloader.patch
  which causes firefox to look first in the Gnome MIME handling registry
  (MIME handling is still very wrong).
* Disabled File / Import from main menu since it does not work at all
  (Ubuntu bugzilla 10339 still applies; patch brought forward).
* Displayed printer names no longer show `CUPS/' prefix.
  (Ubuntu bugzilla 11481 regressed; patch from Breezy enhanced).
* Print command fixed (again) to cope with spaces in printer names.
* Remove incorrect note about Pango from README.Debian.
* Re-fix-up localised startup URLs in en-US region.properties.
* Fix incorrect layout/sizing in Help / About box (a bit hacky).
* Re-forward-port patch to fix printer names with spaces.
* Remove all subdirectories '*.OBJ' during clean.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
#include "nsOSHelperAppService.h"
45
45
#ifdef MOZ_WIDGET_GTK2
46
46
#include "nsGNOMERegistry.h"
 
47
#include "nsMIMEInfoUnix.h"
47
48
#endif
48
49
#include "nsISupports.h"
49
50
#include "nsString.h"
1486
1487
  
1487
1488
  LOG(("Here we do a mimetype lookup for '%s'\n", aMIMEType.get()));
1488
1489
 
 
1490
#ifdef MOZ_WIDGET_GTK2
 
1491
  // Look in GNOME registry first since it is the preferred method in GNOME,
 
1492
  // should trump the mailcap entry
 
1493
  LOG(("Looking in GNOME registry\n"));
 
1494
  nsMIMEInfoBase *gnomeInfo = nsGNOMERegistry::GetFromType(aMIMEType.get()).get();
 
1495
  if (gnomeInfo) {
 
1496
    LOG(("Got MIMEInfo from GNOME registry\n"));
 
1497
    return gnomeInfo;
 
1498
  }
 
1499
#endif
 
1500
 
1489
1501
  // extract the major and minor types
1490
1502
  NS_ConvertASCIItoUTF16 mimeType(aMIMEType);
1491
1503
  nsAString::const_iterator start_iter, end_iter,