Closed Bug 99410 Opened 23 years ago Closed 23 years ago

further res protocol cleanup

Categories

(Core :: Networking, defect, P4)

defect

Tracking

()

RESOLVED FIXED
mozilla0.9.5

People

(Reporter: darin.moz, Assigned: darin.moz)

Details

(Whiteboard: fixed-on-trunk)

Attachments

(1 file, 2 obsolete files)

the res protocol handler was IMO poorly designed. it attempts to provide for the possibility of multiple resource resolutions (or substitutions) and as a result creates a very inefficient system. i believe that this design is completely overkill for a web browser. the res protocol handler should have only one substitution per key. if that fails, it should be the callers responsibility to try a different key. i should add that no one is currently using this "feature." asserting that a resolution succeeds is very costly. for example, the res protocol handler has to verify access to the resolved file before accepting the resolution. this has a very negative effect on startup performance. my patch for bug 97528 eliminates this check (b/c we only register one substitution per key anyways). and so, i believe that we should eliminate this "feature." the result will be a much simpler and faster res protocol handler.
Status: NEW → ASSIGNED
Priority: -- → P4
Target Milestone: --- → mozilla0.9.5
Attached patch v1.0 patch (obsolete) (deleted) — Splinter Review
this patch does a bunch of things: 1- cleans up nsIResProtocolHandler, removing extraneous unused API 2- cleans up nsResProtocolHandler 3- removed unused nsIResChannel (still need to remove references to nsIResChannel in the rest of mozilla) 4- cleans up res protocol handler entry in nsNetModule.cpp 5- other miscellaneous cleanup
in addition the mac project file will be modified to remove nsIResChannel.idl
Attachment #49713 - Attachment is obsolete: true
Comment on attachment 49834 [details] [diff] [review] v1.1 removed reference to nsIResChannel in nsChromeProtocolHandler Looks good. The nsIURI's that are in mSubstitutions does not be need to QI'ed since you are the only one putting anything in to that array. Just static_cast.
Attachment #49834 - Flags: review+
good point... i'll attach a new patch.
Attachment #49834 - Attachment is obsolete: true
Comment on attachment 49874 [details] [diff] [review] v1.1 revised per comments from dougt has r=dougt from previous comments
Attachment #49874 - Flags: review+
Comment on attachment 49874 [details] [diff] [review] v1.1 revised per comments from dougt sr=mscott
Attachment #49874 - Flags: superreview+
fixed-on-trunk
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Whiteboard: fixed-on-trunk
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: