Closed
Bug 149102
Opened 23 years ago
Closed 23 years ago
Kill TypicalInput/OutputStream
Categories
(Core :: XPCOM, defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla1.1beta
People
(Reporter: alecf, Assigned: alecf)
Details
(Whiteboard: fix in hand)
Attachments
(2 files)
|
13.15 KB,
patch
|
dougt
:
review+
jag+mozilla
:
superreview+
|
Details | Diff | Splinter Review |
|
8.72 KB,
patch
|
dougt
:
review+
jag+mozilla
:
superreview+
|
Details | Diff | Splinter Review |
we have this old nsFileSpec-based input stream that you create with
NS_NewTypicalOutputFileStream - we could eliminate alot of dead code.
2 patches forthcoming - one to eliminate consumers, and one to remove it from xpcom.
| Assignee | ||
Comment 1•23 years ago
|
||
There is some other minor cleanup in this patch:
1) using the PRBool() operator in BoolRegistryEntry in nsWindowsHooks.cpp - for
some reason we were leaping through the void*() operator, and this fixes that,
making the code much easier to read.
2) using the directory service to find the temporary directory for plugin
streams, rather than having a platform-specific #ifdef
I'd love an r=dougt, sr=jaggernaut on this, but I'm also going to get an r=av
on the plugin stuff.
Adding plugins engineers for feedback on plugin code changes. Thank, Alec, for
letting me know.
Comment 3•23 years ago
|
||
Comment on attachment 86280 [details] [diff] [review]
fix consumers, other cleanup
alec, optionally instead of
nsCOMPtr<nsILocalFile> path = do_CreateInstance(NS_LOCAL_FILE_CONTRACTID, &rv);
You could call NS_NewLocalFile(). See nsILocalFile (soon to be moved to
nsXPCOM.h)
nit: You spaced all the other correctly. The paran and semicolon should be
spaced out.
+ prefs->mHandleHTTP = BoolRegistryEntry( "isHandlingHTTP");
+ prefs->mHandleHTTPS = BoolRegistryEntry( "isHandlingHTTPS" );
r=dougt
Attachment #86280 -
Flags: review+
Are we getting rid of nsFileSpec alltogether? Then we have more consumers in the
plugin code, I think.
Comment 5•23 years ago
|
||
That's a different bug.
| Assignee | ||
Comment 6•23 years ago
|
||
av/peterl/serge - so can I get an r= from one of you on the plugin part of this
patch? I just want to make sure I'm doing the right thing here.
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → mozilla1.1alpha
Comment on attachment 86280 [details] [diff] [review]
fix consumers, other cleanup
fine with me, r=av
Comment 8•23 years ago
|
||
Comment on attachment 86280 [details] [diff] [review]
fix consumers, other cleanup
sr=jag
Attachment #86280 -
Flags: superreview+
| Assignee | ||
Comment 9•23 years ago
|
||
mozilla 1.1alpha already passed, just moving out to 1.1beta
Target Milestone: mozilla1.1alpha → mozilla1.1beta
| Assignee | ||
Comment 10•23 years ago
|
||
ok, no need to export these functions any more - allows compiler/linker to
possibly optimize them away...
can I get another review here? this one is easy...dougt? jag?
| Assignee | ||
Comment 11•23 years ago
|
||
oh that also kills some nsOutputConsoleStream which is only used in FilesTest,
which is only used to test the outdated nsFileSpec - I've been slowly
dismantling FilesTest as I've hacked apart nsFileSpec, I don't think anyone even
runs it anymore. So anyway, I'm taking xpcom/tests/FileTest.cpp out of the build
as well.
Comment 12•23 years ago
|
||
Comment on attachment 87545 [details] [diff] [review]
stop exporting NS_NewTypical*
sr=jag
Attachment #87545 -
Flags: superreview+
Comment 13•23 years ago
|
||
Comment on attachment 87545 [details] [diff] [review]
stop exporting NS_NewTypical*
r=dougt. good stuff!
Attachment #87545 -
Flags: review+
| Assignee | ||
Updated•23 years ago
|
Whiteboard: fix in hand
| Assignee | ||
Comment 14•23 years ago
|
||
done and done.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•