File gnome-vfs-default.patch of Package MozillaFirefox (Revision ca85e0fdf670d4bdaef55f74730fc7bd)
Currently displaying revision ca85e0fdf670d4bdaef55f74730fc7bd, show latest
x
1
Index: uriloader/exthandler/unix/nsOSHelperAppService.cpp
2
===================================================================
3
RCS file: /cvsroot/mozilla/uriloader/exthandler/unix/nsOSHelperAppService.cpp,v
4
retrieving revision 1.58
5
diff -d -u -p -r1.58 nsOSHelperAppService.cpp
6
--- uriloader/exthandler/unix/nsOSHelperAppService.cpp 25 Oct 2004 07:46:01 -0000 1.58
7
+++ uriloader/exthandler/unix/nsOSHelperAppService.cpp 21 Jul 2005 03:07:40 -0000
8
9
10
LOG(("Here we do a mimetype lookup for '%s'\n", aMIMEType.get()));
11
12
+#ifdef MOZ_WIDGET_GTK2
13
+ // Look in GNOME registry first since it is the preferred method in GNOME,
14
+ // should trump the mailcap entry
15
+ LOG(("Looking in GNOME registry\n"));
16
+ nsMIMEInfoBase *gnomeInfo = nsGNOMERegistry::GetFromType(aMIMEType.get()).get();
17
+ if (gnomeInfo) {
18
+ LOG(("Got MIMEInfo from GNOME registry\n"));
19
+ return gnomeInfo;
20
+ }
21
+#endif
22
+
23
// extract the major and minor types
24
NS_ConvertASCIItoUTF16 mimeType(aMIMEType);
25
nsAString::const_iterator start_iter, end_iter,
26
27
mozillaFlags,
28
PR_TRUE);
29
30
-
31
- if (handler.IsEmpty() && extensions.IsEmpty() &&
32
- mailcap_description.IsEmpty() && mime_types_description.IsEmpty()) {
33
- // No useful data yet
34
-
35
-#ifdef MOZ_WIDGET_GTK2
36
- LOG(("Looking in GNOME registry\n"));
37
- nsMIMEInfoBase *gnomeInfo = nsGNOMERegistry::GetFromType(aMIMEType.get()).get();
38
- if (gnomeInfo) {
39
- LOG(("Got MIMEInfo from GNOME registry\n"));
40
- return gnomeInfo;
41
- }
42
-#endif
43
- }
44
-
45
if (handler.IsEmpty() && mailcap_description.IsEmpty()) {
46
DoLookUpHandlerAndDescription(majorType,
47
minorType,
48