Closed
Bug 223997
Opened 21 years ago
Closed 21 years ago
PluginHostImpl should use GetTypeFromURI not FromExtension
Categories
(Core Graveyard :: Plug-ins, defect)
Core Graveyard
Plug-ins
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.6beta
People
(Reporter: Biesinger, Assigned: Biesinger)
References
()
Details
(Keywords: memory-footprint)
Attachments
(1 file)
1.65 KB,
patch
|
peterlubczynski-bugs
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
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)); [...]
Assignee | ||
Comment 1•21 years ago
|
||
Assignee | ||
Updated•21 years ago
|
Status: NEW → ASSIGNED
OS: Linux → All
Hardware: PC → All
Target Milestone: --- → mozilla1.6beta
Assignee | ||
Updated•21 years ago
|
Attachment #134422 -
Flags: review?(peterlubczynski-bugs)
Comment 2•21 years ago
|
||
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+
Assignee | ||
Comment 3•21 years ago
|
||
yes, that's indeed the reason I did this. (the GetTypeFromURI impl also checks more stuff than just a qi to nsIURL)
Keywords: footprint
Assignee | ||
Updated•21 years ago
|
Attachment #134422 -
Flags: superreview?(bz-vacation)
Comment 4•21 years ago
|
||
Comment on attachment 134422 [details] [diff] [review] patch sr=bzbarsky
Attachment #134422 -
Flags: superreview?(bz-vacation) → superreview+
Assignee | ||
Comment 5•21 years ago
|
||
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
Updated•2 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•