Closed
Bug 359808
Opened 18 years ago
Closed 9 years ago
Drop support for pre-Win2k platforms (Win 95/98/ME)
Categories
(Core :: XPCOM, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: jshin1987, Assigned: jshin1987)
References
Details
Attachments
(4 files)
(deleted),
patch
|
darin.moz
:
review+
darin.moz
:
superreview+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
darin.moz
:
review+
dougt
:
superreview+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
darin.moz
:
review+
darin.moz
:
superreview+
|
Details | Diff | Splinter Review |
Sequel to bug 330276.
Gecko 1.9 does not support Win 9x/ME any more so that we don't need to keep what's added only to support those platforms in xpcom/io and uriloader/base/windows.
Assignee | ||
Comment 1•18 years ago
|
||
not yet tested, but it should work. uploading it to put it in a safe place ;-)
Comment 2•18 years ago
|
||
*** Bug 333705 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 3•18 years ago
|
||
Comment on attachment 244893 [details] [diff] [review]
patch (not yet tested)
|#if defined (XP_WIN) && !defined (WINCE)| and the closing #endif should be
kept.
> NS_COM void StartupSpecialSystemDirectory()
> {
>-#if defined (XP_WIN) && !defined (WINCE)
>- /* On windows, the old method to get file locations is incredibly slow.
>- As of this writing, 3 calls to GetWindowsFolder accounts for 3% of mozilla
.....
>+ // SHGetKnownFolderPath is only available on Windows Vista
>+ // so that we need to use GetProcAddress to get the pointer.
> gShell32DLLInst = LoadLibrary("Shell32.dll");
> if(gShell32DLLInst)
.....
>-#endif
Assignee | ||
Comment 4•18 years ago
|
||
Comment on attachment 244893 [details] [diff] [review]
patch (not yet tested)
Asking for r/sr.
I've tested the patch and it works well.
Attachment #244893 -
Flags: superreview?(darin.moz)
Attachment #244893 -
Flags: review?(darin.moz)
Comment 5•18 years ago
|
||
Comment on attachment 244893 [details] [diff] [review]
patch (not yet tested)
nsWindowsRegKey could also receive similar treatment.
r+sr=darin
Attachment #244893 -
Flags: superreview?(darin.moz)
Attachment #244893 -
Flags: superreview+
Attachment #244893 -
Flags: review?(darin.moz)
Attachment #244893 -
Flags: review+
Assignee | ||
Comment 6•18 years ago
|
||
Thanks for r/sr. Landed on the trunk. I also cvs-removed nsWinAPIs.*.
Searching for 'OSVERSION' yields a few more places (inclduing nsWindowsRegKey*) that need a similar treatment.
Status: NEW → ASSIGNED
Comment 7•18 years ago
|
||
> // Per http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/resources/versioninformation/versioninformationreference/versioninformationfunctions/getfileversioninfosize.asp
> // if the "short" version of this file name is > 125 characters,
> // GetFileVersionInfoSize will not work (for Win9x compatibility)
> WCHAR shortPath[126];
> ::GetShortPathNameW(path, shortPath, sizeof(shortPath));
This looks a Win9x only limitation. Is it still required?
Assignee | ||
Comment 8•18 years ago
|
||
(In reply to comment #7)
> > // if the "short" version of this file name is > 125 characters,
> > // GetFileVersionInfoSize will not work (for Win9x compatibility)
> > WCHAR shortPath[126];
> > ::GetShortPathNameW(path, shortPath, sizeof(shortPath));
> This looks a Win9x only limitation. Is it still required?
Thanks for bringing it up. I'll get rid of it when I make a next patch. I also realized that |OpenFile|, |OpenDir| and other static functions I had added in bug 162361 can go away once we begin to build with NSPR for WINNT (rather Win95).
Assignee | ||
Comment 9•18 years ago
|
||
Some Win CE shunt went away with this patch. dougt should like them go :-)
xpfe part is not tested, yet because it's only built with seamonkey, I believe.
netwerk/base/src/nsAutodialWin.cpp netwerk/protocol/http/src/nsHttpHandler.cpp xpcom/ds/nsWindowsRegKey.cpp xpfe/components/winhooks/nsWindowsHooksUtil.cpp intl/locale/src/windows/nsCollationWin.cpp intl/locale/src/windows/nsCollationWin.h intl/locale/src/windows/nsDateTimeFormatWin.cpp intl/locale/src/windows/nsDateTimeFormatWin.h embedding/browser/activex/tests/RegMozCtl/RegTask.cpp modules/libutil/src/stopwatch.cpp
Attachment #246104 -
Flags: superreview?
Attachment #246104 -
Flags: review?(smontagu)
Assignee | ||
Comment 10•18 years ago
|
||
Comment on attachment 246104 [details] [diff] [review]
patch : 2nd round
sorry for bug spam. somehow, bugzilla doesn't prompt me to pick one when there are multiple matches for a partially typed email address.
Attachment #246104 -
Flags: superreview?(dougt)
Attachment #246104 -
Flags: superreview?
Attachment #246104 -
Flags: review?(darin.moz)
Assignee | ||
Comment 11•18 years ago
|
||
the same as attachment 246104 [details] [diff] [review], but this one is easier to read.
Comment 12•18 years ago
|
||
(In reply to comment #9)
> netwerk/base/src/nsAutodialWin.cpp netwerk/protocol/http/src/nsHttpHandler.cpp
> xpcom/ds/nsWindowsRegKey.cpp xpfe/components/winhooks/nsWindowsHooksUtil.cpp
> intl/locale/src/windows/nsCollationWin.cpp
> intl/locale/src/windows/nsCollationWin.h
> intl/locale/src/windows/nsDateTimeFormatWin.cpp
> intl/locale/src/windows/nsDateTimeFormatWin.h
> embedding/browser/activex/tests/RegMozCtl/RegTask.cpp
> modules/libutil/src/stopwatch.cpp
Did you forget to include nsLocalFileWin.cpp in your patch? :-)
Assignee | ||
Comment 13•18 years ago
|
||
Thanks, Masatoshi. I forgot to include nsLocalFileWin.cpp in the patch.
Attachment #246148 -
Flags: superreview?(darin.moz)
Attachment #246148 -
Flags: review?(darin.moz)
Updated•18 years ago
|
Attachment #246148 -
Flags: superreview?(darin.moz)
Attachment #246148 -
Flags: superreview+
Attachment #246148 -
Flags: review?(darin.moz)
Attachment #246148 -
Flags: review+
Updated•18 years ago
|
Attachment #246104 -
Flags: review?(darin.moz) → review+
Comment 14•18 years ago
|
||
Comment on attachment 246104 [details] [diff] [review]
patch : 2nd round
Maybe we should define UNICODE and then use the normalize API call (not the A or W function call, but rather let the header files do the right thing)?
Do we know if this is the first change to the source which will prevent the trunk running on 98? I am asking because we might want to ensure that his is communicated _again_ to everyone. Plus, we might want to also check that the installer does the right thing.
Looks good, and sorry I didn't review this later year. happy new year.
Attachment #246104 -
Flags: superreview?(dougt) → superreview+
Comment 15•18 years ago
|
||
(In reply to comment #14)
> Maybe we should define UNICODE and then use the normalize API call (not the A
> or W function call, but rather let the header files do the right thing)?
That's bug 239279. Of course, we don't have to care about MSLU or its equivalent anymore.
> Do we know if this is the first change to the source which will prevent the
> trunk running on 98? I am asking because we might want to ensure that his is
> communicated _again_ to everyone.
The trunk is already broken on Win9x by bug 330276. It's also relnoted.
http://www.mozilla.org/projects/firefox/3.0a1/releasenotes/
BTW, this relnote is slightly wrong since WinNT4 is no longer supported, either.
> Plus, we might want to also check that the
> installer does the right thing.
That's bug 330208.
Comment 16•18 years ago
|
||
Comment on attachment 246104 [details] [diff] [review]
patch : 2nd round
+++ intl/locale/src/windows/nsDateTimeFormatWin.cpp 20 Nov 2006 16:29:31 -0000
+ LPCWSTR wstr = NULL;
+ if (format)
+ wstr = NS_CONST_CAST(LPCWSTR, NS_ConvertASCIItoUTF16(format).get());
You can't do this... wstr will point to deleted memory after this line.
Comment 17•18 years ago
|
||
Jungshik: Should another bug maybe filed for removing the use of native methods through the tree when referring to Windows? By that I mean examples such as:
http://lxr.mozilla.org/mozilla/source/xpcom/threads/nsProcessCommon.cpp#99
...or should ones like this just be picked off as people come across them? :)
Comment 18•18 years ago
|
||
(In reply to comment #15)
> BTW, this relnote is slightly wrong since WinNT4 is no longer supported,
> either.
I brought up the issue of the release notes being misleading in regards to WinNT4 support in the talk page for the Alpha2 release notes as well. Hopefully it gets corrected at some point.
http://wiki.mozilla.org/Gecko_Talk:1.9a2/ReleaseNotes
Comment 19•17 years ago
|
||
Comment on attachment 246104 [details] [diff] [review]
patch : 2nd round
This was checked in already, right?
Attachment #246104 -
Flags: review?(smontagu)
Comment 20•9 years ago
|
||
We have already removed code for Win9x and Win2000 past years. mark as WFM
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•