Open Bug 379342 (Win9xRemoval) Opened 19 years ago Updated 2 years ago

[meta] Remove WIN95/WIN98 (support) code everywhere

Categories

(Core :: General, task, P5)

x86
Windows ME
task

Tracking

()

People

(Reporter: aja+bugzilla, Unassigned)

References

(Depends on 1 open bug, )

Details

(Keywords: meta, Whiteboard: [First, create blocking bugs!])

Attachments

(4 files, 3 obsolete files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a5pre) Gecko/20070501 Minefield/3.0a5pre Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a5pre) Gecko/20070501 Minefield/3.0a5pre e.g. ifeq ($(OS_TARGET),WIN95) at line 472 of mozilla/config/config.mk in above URL. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Version: unspecified → Trunk
ifeq ($(OS_TARGET),WIN95) is also in /security/nss/Makefile /nsprpub/pr/src/md/windows/objs.mk
Also, we need to remove the MIDL -no-robust check from configure.in, since we don't support pre-Win2000 anymore.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Other → Windows 95
Product: Firefox → Core
QA Contact: general → general
hm? we always use WIN95 as OS_TARGET, no?
it should target windows 2000 plus only as far as i know also need to remove windows 98 specific code
Summary: remove win95 conditionals → remove win9x conditionals
(In reply to comment #4) > it should target windows 2000 plus only as far as i know also need to remove > windows 98 specific code > there is a lot more to remove : http://lxr.mozilla.org/mozilla1.8.0/search?string=win95 http://lxr.mozilla.org/mozilla1.8.0/search?string=win98 http://lxr.mozilla.org/mozilla1.8.0/search?string=NT4
Why are you search the 1.8.0 branch? Some of that code has already been removed on the trunk.
(In reply to comment #6) > Why are you search the 1.8.0 branch? Some of that code has already been removed > on the trunk. > Sorry,I have realized too late.
Flags: blocking1.9?
(In reply to comment #2) > Also, we need to remove the MIDL -no-robust check from configure.in, since we > don't support pre-Win2000 anymore. > No NT any more? Hmm.
(In reply to comment #8) > (In reply to comment #2) > > Also, we need to remove the MIDL -no-robust check from configure.in, since we > > don't support pre-Win2000 anymore. > > > > No NT any more? Hmm. > Nevermind. I missed that this is trunk only. By the time this is released, NT should no longer be an issue.
Minusing as this is not an sg:, crasher, or a dataloss issue that would block the release.
Flags: blocking1.9? → blocking1.9-
(In reply to comment #9) > > No NT any more? Hmm. > > > Nevermind. I missed that this is trunk only. By the time this is released, NT > should no longer be an issue. By the time this is released, Win2000 and maybe XP won't be an issue.
Keywords: meta
Summary: remove win9x conditionals → Remove WIN95/WIN98 (support) code everywhere
OS: Windows 95 → Windows ME
Win16 bug 438331 is "almost" completed: time to start here ;-)
Whiteboard: [good first bug] [First, create blocking bugs!]
Depends on: 211090
Alias: Win9xRemoval
Depends on: 542767
Depends on: 616066
This patches file nsHostResolver.cpp about bug 219376. Flagged with feedback as testing in other platforms is required due to the bug mentioned above. In the patch to that bug it was said that solved the bug for WinNT platform, but it was possible that the solution affected also other platforms. So, it is needed to test it in the other platforms supported in order to be sure that THIS patch doesn't regress THAT bug.
Attachment #545744 - Flags: feedback?
Setting feedback? or review? without the email address specified unfortunately doesn't actually notify anyone. In order to make sure this doesn't get missed, it needs to be set to a specific person. The best way to pick who to ask is to either look at the hg log and see what r=zzz entries are present (http://hg.mozilla.org/mozilla-central/filelog/tip/netwerk/dns/nsHostResolver.cpp) or else look at the modules page here: https://wiki.mozilla.org/Modules Hope that helps :-)
Attachment #546452 - Flags: superreview?
Attachment #546452 - Flags: review?(jmuizelaar)
Attachment #546452 - Flags: review?(bugmail)
Attachment #546452 - Flags: review?(benjamin)
Attachment #545744 - Flags: feedback? → review?(jones.chris.g)
Attachment #546452 - Flags: superreview?
(In reply to comment #14) > So, it > is needed to test it in the other platforms supported in order to be sure > that THIS patch doesn't regress THAT bug. Would it be possible/wanted to create an automated test for this?
Comment on attachment 545744 [details] [diff] [review] Patch for file nsHostResolver.cpp. See comment. Hi Javi, thanks for writing this patch. These cleanups are very useful. I'm not a good reviewer of this code, and the comment saying "platforms *like* Win9x" makes me a bit nervous. Kicking review to Christian.
Attachment #545744 - Flags: review?(jones.chris.g) → review?(cbiesinger)
(In reply to comment #18) > Comment on attachment 545744 [details] [diff] [review] [review] > Patch for file nsHostResolver.cpp. See comment. > > Hi Javi, thanks for writing this patch. These cleanups are very useful. > > I'm not a good reviewer of this code, and the comment saying "platforms > *like* Win9x" makes me a bit nervous. Kicking review to Christian. While researching for the way to create a testcase, I have fall into count that in this file I have gone too MUCH quickly in deleting lines. Although the building process was fine, I have not any other machine with a non-WinNT operating system, so I could not test it. On my Windows 7 worked fine. To avoid bugspam I had not changed status. So this is an answer to Serge and also to Chris. I am re-reviewing the code, but I think is too late. Sorry about this "bugfix without auto-review".
Comment on attachment 545744 [details] [diff] [review] Patch for file nsHostResolver.cpp. See comment. I would prefer not checking this in. We don't know that all platforms handle this correctly, and there's no harm in doing this additional check. If you have any indication that this additional check makes host resolution measurably slower, I'll reconsider.
Attachment #545744 - Flags: review?(cbiesinger) → review-
Comment on attachment 546452 [details] [diff] [review] Some Win9x code removals in files for db/mork, gfx and XPCom (I have no review authority on any of this code, maybe you meant :bienvenu for the mork stuff?)
Attachment #546452 - Flags: review?(bugmail)
Attachment #546805 - Flags: review?(benjamin)
Attachment #546452 - Flags: review?(dbienvenu)
Comment on attachment 546805 [details] [diff] [review] Patch for some files in /nsprpub I am not a NSPR peer.
Attachment #546805 - Flags: review?(benjamin) → review?(wtc)
But I also expect that NSPR may want to retain win9x compatibility: it is a separate project that keeps compatibility with more things.
Comment on attachment 546452 [details] [diff] [review] Some Win9x code removals in files for db/mork, gfx and XPCom r=me for the mork change.
Attachment #546452 - Flags: review?(dbienvenu) → review+
Comment on attachment 546452 [details] [diff] [review] Some Win9x code removals in files for db/mork, gfx and XPCom The cairo change is something I'd rather do upstream or not at all. It isn't worth diverging here for this fix.
Attachment #546452 - Flags: review?(jmuizelaar) → review-
Attachment #546452 - Flags: review?(benjamin)
Attachment #546452 - Attachment is obsolete: true
Attachment #547116 - Flags: checkin?(dbaron)
For atachment 547116 check-in petition, see Comment 25. Original patch had some minuses, so I have created a new one only with approved review. Next patches I will create will be more homogeneous.
Attachment #547116 - Flags: checkin?(dbaron) → checkin?(dbienvenu)
Comment on attachment 547116 [details] [diff] [review] Remove Win9x/ME code from comm-central Mork Mork no longer exists in mozilla-central, so this needs checking in on comm-central instead. A glance at http://mxr.mozilla.org/comm-central/source/db/mork/src/morkFile.cpp seems to show that this should still apply cleanly.
Attachment #547116 - Attachment description: Old patch has some minuses, so this is the review-approved part → Remove WinCE code from comm-central Mork [needs checkin]
Attachment #547116 - Flags: checkin?(dbienvenu) → checkin?
Keywords: checkin-needed
Whiteboard: [good first bug] [First, create blocking bugs!] → [checkin-needed for comm-central] [good first bug] [First, create blocking bugs!]
Oh and Ravi, if you could update the patch with author and commit message, it might get checked in sooner (by someone who has comm-central checked out, which I don't or I'd do it). See: http://blog.bonardo.net/2010/06/22/so-youre-about-to-use-checkin-needed
(In reply to Ed Morley [:edmorley] from comment #30) > Oh and Ravi, if you could update the patch with author and commit message, > it might get checked in sooner (by someone who has comm-central checked out, > which I don't or I'd do it). See: > http://blog.bonardo.net/2010/06/22/so-youre-about-to-use-checkin-needed This is fantastic! I have just deleted old patches on my system, so I'm unable to simply update the diff file. Also, I am cloning the comm-central repository right now, so then I will make the change to the file for the Mork, create a new patch and resend it again. Should it be reviewed again? Old patch was created by a simple "diff" Mercurial command. Now I'm using MQ, so new patches I am sending include author and commit message in the header.
Same as attachment 547116 [details] [diff] [review] but for comm-central repository and created with MQ.
Attachment #547116 - Attachment is obsolete: true
Attachment #555582 - Flags: checkin?
Attachment #547116 - Flags: checkin?
Assignee: nobody → leofigueres
I don't feel as the "assignee" for this bug. I tried to make some of the changes needed to solve it partially, but only one of them was right. I am still too far away to understand the full picture of this platform (XUL, XPCom, JSAPI, third-party graphic library...). In fact, I wasn't very confident about changing the code because it seems 'win95' is used to build the post-WinNT object files. Don't know if the standard procedure is to assign the bug to the first person that send a patch. If not, then could you unassign it from me? Also, some people doesn't even read bugs that are "assigned". Thank you. :-)
Assignee: leofigueres → nobody
Comment on attachment 555582 [details] [diff] [review] Remove Win9x/ME code from comm-central Mork [Checked in: Comment 34] I ended up cloning c-c so we can just get this landed/out of the way. Thanks for the patch Javi! :-) http://hg.mozilla.org/comm-central/rev/a11ec626d4ab
Attachment #555582 - Attachment description: Remove WinCE code from comm-central Mork [needs checkin] → Remove Win9x/ME code from comm-central Mork
Attachment #555582 - Flags: checkin? → checkin+
Keywords: checkin-needed
Whiteboard: [checkin-needed for comm-central] [good first bug] [First, create blocking bugs!] → [good first bug] [First, create blocking bugs!]
Attachment #546805 - Flags: review?(wtc)
Attachment #555582 - Attachment description: Remove Win9x/ME code from comm-central Mork → Remove Win9x/ME code from comm-central Mork [Checked in: Comment 34]
Attachment #547116 - Attachment description: Remove WinCE code from comm-central Mork [needs checkin] → Remove Win9x/ME code from comm-central Mork [needs checkin]
Attachment #547116 - Attachment description: Remove Win9x/ME code from comm-central Mork [needs checkin] → Remove Win9x/ME code from comm-central Mork
Explanation and notes: For file nsStackWalk********************** Althought in MSDN it is noted that both GetCurrentProcess and GetCurrentProcessId are available since Windows 2000 (maybe the doc team at MS has removed any reference to Win9x), I have removed the second one as it references to the operating system being un-supported. Note that that "processId" is a fake one, as stated at the same document in MSDN. For file nsAppFileLocationProvider********** Original file tested for a path to exist, as in some Win95 seems to be unexistent. Assuming that on all other operating system versions that path should exist (on other OS, as Unix or MacOS, this is not tested), the test and related code can be removed.
Attachment #574085 - Flags: review?(benjamin)
Comment on attachment 574085 [details] [diff] [review] Removing support fow Win9x in XPCom The function GetCurrentPIDorHandle should be removed entirely: this should cause a compile-time error because when the 'if' isn't taken there is no return statement. You should be able to simply inline GetCurrentProcess at the call sites.
Attachment #574085 - Flags: review?(benjamin) → review-
(In reply to Javi Rueda from comment #36) > Althought in MSDN it is noted that both GetCurrentProcess and > GetCurrentProcessId are available since Windows 2000 (maybe the doc team at > MS has removed any reference to Win9x), I have removed the second one as it > references to the operating system being un-supported. Fwiw, as a side-effect on Windows 2000 (DbgHelp.dll 5.0), GetCurrentProcess() "will" be called instead of GetCurrentProcessId() (currently): per MSDN, that should be fine (and even somewhat an improvement). http://msdn.microsoft.com/en-us/library/windows/desktop/ms681335(v=vs.85).aspx "SymGetModuleBase64 function Redistributable DbgHelp.dll 5.1 or later" http://msdn.microsoft.com/en-us/library/windows/desktop/ms683179(v=VS.85).aspx "GetCurrentProcess function Minimum supported client Windows 2000 Professional Minimum supported server Windows 2000 Server" http://msdn.microsoft.com/en-us/library/windows/desktop/ms683180(v=vs.85).aspx "GetCurrentProcessId function Minimum supported client Windows 2000 Professional Minimum supported server Windows 2000 Server" Ftr, history of that xpcom code is http://hg.mozilla.org/mozilla-central/rev/76e63cbe4d5e (bug 391793) and older code was in mozilla repository...
Attachment #574085 - Attachment is obsolete: true
Attachment #579069 - Flags: review?(benjamin)
Attachment #579069 - Flags: review?(benjamin) → review+
Keywords: checkin-needed
Comment on attachment 579069 [details] [diff] [review] Removing support for Win9x in XPCom [Checked in: Comment 41] Given the fragility of m-c right now, pushing everything to try first, even if seemingly trivial: https://tbpl.mozilla.org/?tree=Try&rev=73b8ab2861e1 Will push tomorrow presuming green :-)
Attachment #579069 - Flags: checkin+
(Leaving open since there seems to be cleanup left to do)
Keywords: checkin-needed
Attachment #579069 - Attachment description: Removing support for Win9x in XPCom → Removing support for Win9x in XPCom [Checked in: Comment 41]
Whiteboard: [good first bug] [First, create blocking bugs!] → [First, create blocking bugs!]
well, we have win98 boxes and so do poor people like school teachers. It would be nice to keep them on ff 2.x-3.x at least.
(In reply to Jim Michaels from comment #43) > well, we have win98 boxes and so do poor people like school teachers. It > would be nice to keep them on ff 2.x-3.x at least. Hi, Jim. This bug was about removing Win16/Win9x code for newer versions of Firefox. So Firefox prior to 4 wasn't affected. I said Firefox 4 but because I am not able to remember when patches for this bug were pushed to the repository. It could be even Firefox 6 or 7. I don't know.
Summary: Remove WIN95/WIN98 (support) code everywhere → [meta] Remove WIN95/WIN98 (support) code everywhere
URL: http://mxr.mozilla.org/mozilla-centra... → https://searchfox.org/mozilla-central...
Type: defect → task
Severity: normal → S3

FWIW, I can still see some WIN95 in our code.

Severity: S3 → --
Component: General → Widget: Win32

Almost all existing occurrences of "Win95", "Win 95", or "Windows 95" (and the same with "98") are in NSPR, NSS, or third-party libraries.

The only exceptions are a) a mention in xpcom/io/nsLocalFileWin.cpp that does indeed look like something needs to be done to it, and b) an irrelevant reference in comments in widget/windows/nsClipboard.cpp.

Severity: -- → S4
Component: Widget: Win32 → General
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: