add uriloader patch from f7
This commit is contained in:
parent
79fdb9f806
commit
f7f3225d59
97
firefox-2.0.0.4-undo-uriloader.patch
Normal file
97
firefox-2.0.0.4-undo-uriloader.patch
Normal file
@ -0,0 +1,97 @@
|
||||
Index: mozilla/uriloader/exthandler/unix/nsOSHelperAppService.cpp
|
||||
===================================================================
|
||||
RCS file: /cvsroot/mozilla/uriloader/exthandler/unix/nsOSHelperAppService.cpp,v
|
||||
retrieving revision 1.58.20.1
|
||||
retrieving revision 1.58
|
||||
diff -d -u -p -r1.58.20.1 -r1.58
|
||||
--- mozilla/uriloader/exthandler/unix/nsOSHelperAppService.cpp 16 Apr 2007 18:54:53 -0000 1.58.20.1
|
||||
+++ mozilla/uriloader/exthandler/unix/nsOSHelperAppService.cpp 25 Oct 2004 07:46:01 -0000 1.58
|
||||
@@ -1506,8 +1506,13 @@ nsOSHelperAppService::GetFromType(const
|
||||
|
||||
nsDependentSubstring majorType(majorTypeStart, majorTypeEnd);
|
||||
nsDependentSubstring minorType(minorTypeStart, minorTypeEnd);
|
||||
+ nsAutoString extensions, mime_types_description;
|
||||
+ LookUpExtensionsAndDescription(majorType,
|
||||
+ minorType,
|
||||
+ extensions,
|
||||
+ mime_types_description);
|
||||
+
|
||||
|
||||
- // First check the user's private mailcap file
|
||||
nsAutoString mailcap_description, handler, mozillaFlags;
|
||||
DoLookUpHandlerAndDescription(majorType,
|
||||
minorType,
|
||||
@@ -1516,46 +1521,23 @@ nsOSHelperAppService::GetFromType(const
|
||||
mailcap_description,
|
||||
mozillaFlags,
|
||||
PR_TRUE);
|
||||
-
|
||||
- LOG(("Private Handler/Description results: handler='%s', description='%s'\n",
|
||||
- NS_LossyConvertUTF16toASCII(handler).get(),
|
||||
- NS_LossyConvertUTF16toASCII(mailcap_description).get()));
|
||||
|
||||
+
|
||||
+ if (handler.IsEmpty() && extensions.IsEmpty() &&
|
||||
+ mailcap_description.IsEmpty() && mime_types_description.IsEmpty()) {
|
||||
+ // No useful data yet
|
||||
+
|
||||
#ifdef MOZ_WIDGET_GTK2
|
||||
- nsMIMEInfoBase *gnomeInfo = nsnull;
|
||||
- if (handler.IsEmpty()) {
|
||||
- // No useful data yet. Check the GNOME registry. Unfortunately, newer
|
||||
- // GNOME versions no longer have type-to-extension mappings, so we might
|
||||
- // get back a MIMEInfo without any extensions set. In that case we'll have
|
||||
- // to look in our mime.types files for the extensions.
|
||||
LOG(("Looking in GNOME registry\n"));
|
||||
- gnomeInfo = nsGNOMERegistry::GetFromType(aMIMEType.get()).get();
|
||||
- if (gnomeInfo && gnomeInfo->HasExtensions()) {
|
||||
- LOG(("Got MIMEInfo from GNOME registry, and it has extensions set\n"));
|
||||
+ nsMIMEInfoBase *gnomeInfo = nsGNOMERegistry::GetFromType(aMIMEType.get()).get();
|
||||
+ if (gnomeInfo) {
|
||||
+ LOG(("Got MIMEInfo from GNOME registry\n"));
|
||||
return gnomeInfo;
|
||||
}
|
||||
- }
|
||||
#endif
|
||||
-
|
||||
- // Now look up our extensions
|
||||
- nsAutoString extensions, mime_types_description;
|
||||
- LookUpExtensionsAndDescription(majorType,
|
||||
- minorType,
|
||||
- extensions,
|
||||
- mime_types_description);
|
||||
-
|
||||
-#ifdef MOZ_WIDGET_GTK2
|
||||
- if (gnomeInfo) {
|
||||
- LOG(("Got MIMEInfo from GNOME registry without extensions; setting them "
|
||||
- "to %s\n", NS_LossyConvertUTF16toASCII(extensions).get()));
|
||||
-
|
||||
- NS_ASSERTION(!gnomeInfo->HasExtensions(), "How'd that happen?");
|
||||
- gnomeInfo->SetFileExtensions(NS_ConvertUTF16toUTF8(extensions));
|
||||
- return gnomeInfo;
|
||||
}
|
||||
-#endif
|
||||
|
||||
- if (handler.IsEmpty()) {
|
||||
+ if (handler.IsEmpty() && mailcap_description.IsEmpty()) {
|
||||
DoLookUpHandlerAndDescription(majorType,
|
||||
minorType,
|
||||
typeOptions,
|
||||
@@ -1565,7 +1547,7 @@ nsOSHelperAppService::GetFromType(const
|
||||
PR_FALSE);
|
||||
}
|
||||
|
||||
- if (handler.IsEmpty()) {
|
||||
+ if (handler.IsEmpty() && mailcap_description.IsEmpty()) {
|
||||
DoLookUpHandlerAndDescription(majorType,
|
||||
NS_LITERAL_STRING("*"),
|
||||
typeOptions,
|
||||
@@ -1575,7 +1557,7 @@ nsOSHelperAppService::GetFromType(const
|
||||
PR_TRUE);
|
||||
}
|
||||
|
||||
- if (handler.IsEmpty()) {
|
||||
+ if (handler.IsEmpty() && mailcap_description.IsEmpty()) {
|
||||
DoLookUpHandlerAndDescription(majorType,
|
||||
NS_LITERAL_STRING("*"),
|
||||
typeOptions,
|
@ -44,6 +44,7 @@ Patch25: thunderbird-1.1-software-update.patch
|
||||
|
||||
# local bugfixes
|
||||
Patch40: firefox-1.5-bullet-bill.patch
|
||||
Patch41: firefox-2.0.0.4-undo-uriloader.patch
|
||||
Patch42: firefox-1.1-uriloader.patch
|
||||
|
||||
# font system fixes
|
||||
@ -117,6 +118,7 @@ Mozilla Thunderbird is a standalone mail and newsgroup client.
|
||||
%patch24 -p1 -b .default-applications
|
||||
#%patch25 -p0 -b .software-update
|
||||
%patch40 -p1
|
||||
%patch41 -p1
|
||||
%patch42 -p0
|
||||
|
||||
# font system fixes
|
||||
|
Loading…
Reference in New Issue
Block a user