Closed Bug 223997 Opened 21 years ago Closed 21 years ago

PluginHostImpl should use GetTypeFromURI not FromExtension

Categories

(Core Graveyard :: Plug-ins, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.6beta

People

(Reporter: Biesinger, Assigned: Biesinger)

References

()

Details

(Keywords: memory-footprint)

Attachments

(1 file)

3962 nsCOMPtr<nsIURL> url = do_QueryInterface(aURL); 3963 if(url) 3964 { 3965 darin 1.365 nsCAutoString extension; 3966 url->GetFileExtension(extension); 3967 av 1.176 3968 darin 1.365 if(!extension.IsEmpty()) 3969 av 1.176 { 3970 nsCOMPtr<nsIMIMEService> ms (do_GetService(NS_MIMESERVICE_CONTRACTID, &res)); 3971 if(NS_SUCCEEDED(res) && ms) 3972 { 3973 darin 1.365 res = ms->GetTypeFromExtension(extension.get(), getter_Copies(mt)); [...]
Status: NEW → ASSIGNED
OS: Linux → All
Hardware: PC → All
Target Milestone: --- → mozilla1.6beta
Attachment #134422 - Flags: review?(peterlubczynski-bugs)
Comment on attachment 134422 [details] [diff] [review] patch Just wondering, why is this change needed? I'm guessing just to eliminate duplicate code? Looks fine, r=peterl
Attachment #134422 - Flags: review?(peterlubczynski-bugs) → review+
yes, that's indeed the reason I did this. (the GetTypeFromURI impl also checks more stuff than just a qi to nsIURL)
Keywords: footprint
Attachment #134422 - Flags: superreview?(bz-vacation)
Comment on attachment 134422 [details] [diff] [review] patch sr=bzbarsky
Attachment #134422 - Flags: superreview?(bz-vacation) → superreview+
Checking in modules/plugin/base/src/nsPluginHostImpl.cpp; /cvsroot/mozilla/modules/plugin/base/src/nsPluginHostImpl.cpp,v <-- nsPluginHostImpl.cpp new revision: 1.490; previous revision: 1.489 done
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: