Open Bug 327287 Opened 19 years ago Updated 2 years ago

gtk icon channel calls GetTypeFromExtension on empty string

Categories

(Core :: Graphics: ImageLib, defect)

x86
Linux
defect

Tracking

()

People

(Reporter: chpe, Unassigned)

Details

Attachments

(1 file)

The gtk icon channel calls GetTypeFromExtension on empty string, but the exthandler doesn't like that very much.

Testcase attached.

WARNING: unknown protocol in nsScriptSecurityManager::CheckLoadURI: file /opt/source/mozilla/trunk/mozilla/caps/src/nsScriptSecurityManager.cpp, line 1384
###!!! ASSERTION: Empty aExtension parameter!: '!aExtension.IsEmpty()', file /opt/source/mozilla/trunk/mozilla/uriloader/exthandler/nsExternalHelperAppService.cpp, line 2850

Trace:
#0  Break (
    aMsg=0xbfce9790 "\a###!!! ASSERTION: Empty aExtension parameter!: '!aExtension.IsEmpty()', file /opt/source/mozilla/trunk/mozilla/uriloader/exthandler/nsExternalHelperAppService.cpp, line 2850") at /opt/source/mozilla/trunk/mozilla/xpcom/base/nsDebugImpl.cpp:462
#1  0xb7e2e517 in NS_DebugBreak_P (aSeverity=1, aStr=0xb5647175 "Empty aExtension parameter!", aExpr=0xb564715f "!aExtension.IsEmpty()",
    aFile=0xb5646f3c "/opt/source/mozilla/trunk/mozilla/uriloader/exthandler/nsExternalHelperAppService.cpp", aLine=2850)
    at /opt/source/mozilla/trunk/mozilla/xpcom/base/nsDebugImpl.cpp:345
#2  0xb5617806 in nsExternalHelperAppService::GetTypeFromExtras (this=0x826b0d0, aExtension=@0xbfce9d70, aMIMEType=@0xbfce9e20)
    at /opt/source/mozilla/trunk/mozilla/uriloader/exthandler/nsExternalHelperAppService.cpp:2850
#3  0xb561bb50 in nsExternalHelperAppService::GetTypeFromExtension (this=0x826b0d0, aFileExt=@0xbfce9d70, aContentType=@0xbfce9e20)
    at /opt/source/mozilla/trunk/mozilla/uriloader/exthandler/nsExternalHelperAppService.cpp:2664
#4  0xb71959ef in nsIconChannel::InitWithGnome (this=0x8835450) at /opt/source/mozilla/trunk/mozilla/modules/libpr0n/decoders/icon/gtk/nsIconChannel.cpp:277
#5  0xb7195db6 in nsIconChannel::Init (this=0x8835450, aURI=0x88353e8)
    at /opt/source/mozilla/trunk/mozilla/modules/libpr0n/decoders/icon/gtk/nsIconChannel.cpp:338
#6  0xb7194547 in nsIconProtocolHandler::NewChannel (this=0x868d0f8, url=0x88353e8, result=0xbfcea2a8)
    at /opt/source/mozilla/trunk/mozilla/modules/libpr0n/decoders/icon/nsIconProtocolHandler.cpp:115
#7  0xb6aa50f4 in nsIOService::NewChannelFromURI (this=0x80f57d8, aURI=0x88353e8, result=0xbfcea2a8)
    at /opt/source/mozilla/trunk/mozilla/netwerk/base/src/nsIOService.cpp:494
[...]

The code is here: http://lxr.mozilla.org/seamonkey/source/modules/libpr0n/decoders/icon/gtk/nsIconChannel.cpp#272
Attached file testcase
Assignee: pavlov → nobody
QA Contact: imagelib
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: