Closed
Bug 632497
Opened 14 years ago
Closed 14 years ago
Use a content-type hint for asyncFetch in AutoCompleteCache
Categories
(Firefox for Android Graveyard :: General, defect)
Firefox for Android Graveyard
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mbrubeck, Assigned: mbrubeck)
References
Details
(Keywords: mobile, perf)
Attachments
(1 file)
945 bytes,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
Bug 632177 shows that GetMIMEInfoFromOS can be very expensive for Fennec. This
function is called by nsFileChannel::MakeFileInputStream, which is triggered by
NetUtil.asyncFetch when its source is a file URI.
With the patches from bug 632417 and bug 632490, Fennec is able to start up without calling GetMIMEInfoFromOS, but when you first tap on the urlbar, AutoCompleteCache triggers a call.
This patch avoids GetMIMEInfoFromOS call by setting a MIME-type
"hint" on the channel before calling asyncFetch. See bug 632417 for some related discussion.
Attachment #510699 -
Flags: review?(mark.finkle)
Updated•14 years ago
|
Attachment #510699 -
Flags: review?(mark.finkle) → review+
Assignee | ||
Comment 1•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•14 years ago
|
tracking-fennec: ? → ---
You need to log in
before you can comment on or make changes to this bug.
Description
•