Closed
Bug 481311
Opened 16 years ago
Closed 16 years ago
nsIResProtocolHandler.idl shouldn't #include nsAString.h
Categories
(Core :: Networking, defect)
Core
Networking
Tracking
()
RESOLVED
FIXED
mozilla1.9.2a1
People
(Reporter: mook, Assigned: mook)
References
()
Details
Attachments
(1 file, 1 obsolete file)
837 bytes,
patch
|
benjamin
:
review+
benjamin
:
superreview+
|
Details | Diff | Splinter Review |
See summary; the use of nsAString.h makes it impossible to use from outside of libxul. Simply switching to nsStringGlue.h makes it usable.
(Yes, it's not frozen. It's also the only way to add something that doesn't refer to things chrome.manifest can handle - e.g. paths not known ahead of time.)
Attachment #365329 -
Flags: review?(benjamin)
Comment 1•16 years ago
|
||
does it have to include this at all?
Updated•16 years ago
|
Attachment #365329 -
Flags: review?(benjamin) → review-
Comment 2•16 years ago
|
||
Comment on attachment 365329 [details] [diff] [review]
use nsStringGlue.h
Just remove the include altogether, it's superfluous.
Note that this is not the only way to set a resource:// mapping. You can do so by creating a directory service key for "resource:mappingname"
Assignee | ||
Comment 3•16 years ago
|
||
Okay, this removes it; I was originally thinking something else might have relied on that #include for the string definitions. It looks like the only things that use this file from C++ are
/netwerk/protocol/res/src/nsResProtocolHandler.cpp
which has it from nsResProtocolHandler.h -> nsInterfaceHashtable.h -> nsHashKeys.h -> nsStringGlue.h
/netwerk/test/TestRes.cpp which isn't listed in its Makefile (and can't possibly work anyway, it wants nsIEventQueueService.h)
/chrome/src/nsChromeRegistry.cpp which manually #includes nsString.h
Thanks for the fast review, by the way :)
Assignee: nobody → mook
Attachment #365329 -
Attachment is obsolete: true
Attachment #365443 -
Flags: superreview?(benjamin)
Attachment #365443 -
Flags: review?(benjamin)
Updated•16 years ago
|
Attachment #365443 -
Flags: superreview?(benjamin)
Attachment #365443 -
Flags: superreview+
Attachment #365443 -
Flags: review?(benjamin)
Attachment #365443 -
Flags: review+
Assignee | ||
Updated•16 years ago
|
Comment 4•16 years ago
|
||
Status: NEW → RESOLVED
Closed: 16 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Summary: nsIResProtocolHandler.idl #includes nsAString.h instead of nsStringGlue.h → nsIResProtocolHandler.idl shouldn't #include nsAString.h
Target Milestone: --- → mozilla1.9.2a1
You need to log in
before you can comment on or make changes to this bug.
Description
•