Open
Bug 379342
(Win9xRemoval)
Opened 19 years ago
Updated 2 years ago
[meta] Remove WIN95/WIN98 (support) code everywhere
Categories
(Core :: General, task, P5)
Tracking
()
NEW
People
(Reporter: aja+bugzilla, Unassigned)
References
(Depends on 1 open bug,
URL
)
Details
(Keywords: meta, Whiteboard: [First, create blocking bugs!])
Attachments
(4 files, 3 obsolete files)
|
1.63 KB,
patch
|
Biesinger
:
review-
|
Details | Diff | Splinter Review |
|
6.74 KB,
patch
|
Details | Diff | Splinter Review | |
|
853 bytes,
patch
|
emorley
:
checkin+
|
Details | Diff | Splinter Review |
|
3.09 KB,
patch
|
benjamin
:
review+
emorley
:
checkin+
|
Details | Diff | Splinter Review |
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.
| Reporter | ||
Updated•19 years ago
|
Version: unspecified → Trunk
ifeq ($(OS_TARGET),WIN95) is also in
/security/nss/Makefile
/nsprpub/pr/src/md/windows/objs.mk
Comment 2•19 years ago
|
||
Also, we need to remove the MIDL -no-robust check from configure.in, since we don't support pre-Win2000 anymore.
Updated•19 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Other → Windows 95
Product: Firefox → Core
QA Contact: general → general
Comment 3•19 years ago
|
||
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
| Reporter | ||
Updated•19 years ago
|
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
Comment 6•19 years ago
|
||
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.
Updated•19 years ago
|
Flags: blocking1.9?
Comment 8•19 years ago
|
||
(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.
Comment 9•19 years ago
|
||
(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.
Comment 10•19 years ago
|
||
Minusing as this is not an sg:, crasher, or a dataloss issue that would block the release.
Flags: blocking1.9? → blocking1.9-
Comment 11•18 years ago
|
||
(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.
Comment 12•17 years ago
|
||
http://bonsai.mozilla.org/cvsview2.cgi?diff_mode=context&whitespace_mode=show&subdir=mozilla/config&command=DIFF_FRAMESET&file=config.mk&rev1=3.369&rev2=3.370&root=/cvsroot
I don't know why this was added as an URL:
it seems to be related to Linux, not Windows.
Keywords: meta
Summary: remove win9x conditionals → Remove WIN95/WIN98 (support) code everywhere
Updated•17 years ago
|
Blocks: WinMeRemoval
Updated•17 years ago
|
OS: Windows 95 → Windows ME
Comment 13•17 years ago
|
||
Win16 bug 438331 is "almost" completed: time to start here ;-)
Whiteboard: [good first bug] [First, create blocking bugs!]
Updated•16 years ago
|
Alias: Win9xRemoval
Comment 14•15 years ago
|
||
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?
Comment 15•15 years ago
|
||
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 :-)
Comment 16•15 years ago
|
||
Attachment #546452 -
Flags: superreview?
Attachment #546452 -
Flags: review?(jmuizelaar)
Attachment #546452 -
Flags: review?(bugmail)
Attachment #546452 -
Flags: review?(benjamin)
Updated•15 years ago
|
Attachment #545744 -
Flags: feedback? → review?(jones.chris.g)
Updated•15 years ago
|
Attachment #546452 -
Flags: superreview?
Comment 17•15 years ago
|
||
(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)
Comment 19•15 years ago
|
||
(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 20•15 years ago
|
||
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 21•15 years ago
|
||
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)
Comment 22•15 years ago
|
||
Attachment #546805 -
Flags: review?(benjamin)
Updated•15 years ago
|
Attachment #546452 -
Flags: review?(dbienvenu)
Comment 23•15 years ago
|
||
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)
Comment 24•15 years ago
|
||
But I also expect that NSPR may want to retain win9x compatibility: it is a separate project that keeps compatibility with more things.
Comment 25•15 years ago
|
||
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 26•15 years ago
|
||
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-
Updated•15 years ago
|
Attachment #546452 -
Flags: review?(benjamin)
Comment 27•15 years ago
|
||
Updated•15 years ago
|
Attachment #546452 -
Attachment is obsolete: true
Updated•15 years ago
|
Attachment #547116 -
Flags: checkin?(dbaron)
Comment 28•15 years ago
|
||
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 29•15 years ago
|
||
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?
Updated•15 years ago
|
Keywords: checkin-needed
Whiteboard: [good first bug] [First, create blocking bugs!] → [checkin-needed for comm-central] [good first bug] [First, create blocking bugs!]
Comment 30•15 years ago
|
||
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
Comment 31•15 years ago
|
||
(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.
Comment 32•15 years ago
|
||
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?
Updated•15 years ago
|
Assignee: nobody → leofigueres
Comment 33•15 years ago
|
||
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. :-)
Updated•15 years ago
|
Assignee: leofigueres → nobody
Comment 34•15 years ago
|
||
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+
Updated•15 years ago
|
Keywords: checkin-needed
Whiteboard: [checkin-needed for comm-central] [good first bug] [First, create blocking bugs!] → [good first bug] [First, create blocking bugs!]
Updated•15 years ago
|
Attachment #546805 -
Flags: review?(wtc)
Comment 35•15 years ago
|
||
Is it ok to remove support on XPCOM?
http://mxr.mozilla.org/mozilla-central/search?find=%2Fxpcom%2F&string=win9
Updated•15 years ago
|
Attachment #555582 -
Attachment description: Remove Win9x/ME code from comm-central Mork → Remove Win9x/ME code from comm-central Mork
[Checked in: Comment 34]
Updated•15 years ago
|
Attachment #547116 -
Attachment description: Remove WinCE code from comm-central Mork [needs checkin] → Remove Win9x/ME code from comm-central Mork [needs checkin]
Updated•15 years ago
|
Attachment #547116 -
Attachment description: Remove Win9x/ME code from comm-central Mork [needs checkin] → Remove Win9x/ME code from comm-central Mork
Comment 36•15 years ago
|
||
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 37•15 years ago
|
||
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-
Comment 38•15 years ago
|
||
(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...
Comment 39•14 years ago
|
||
Attachment #574085 -
Attachment is obsolete: true
Attachment #579069 -
Flags: review?(benjamin)
Updated•14 years ago
|
Attachment #579069 -
Flags: review?(benjamin) → review+
Updated•14 years ago
|
Keywords: checkin-needed
Comment 40•14 years ago
|
||
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 :-)
Comment 41•14 years ago
|
||
Comment on attachment 579069 [details] [diff] [review]
Removing support for Win9x in XPCom
[Checked in: Comment 41]
https://hg.mozilla.org/mozilla-central/rev/15a6c19a0d23
Attachment #579069 -
Flags: checkin+
Comment 42•14 years ago
|
||
(Leaving open since there seems to be cleanup left to do)
Keywords: checkin-needed
Updated•14 years ago
|
Attachment #579069 -
Attachment description: Removing support for Win9x in XPCom → Removing support for Win9x in XPCom
[Checked in: Comment 41]
Updated•14 years ago
|
Updated•12 years ago
|
Whiteboard: [good first bug] [First, create blocking bugs!] → [First, create blocking bugs!]
Comment 43•10 years ago
|
||
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.
Comment 44•10 years ago
|
||
(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.
Updated•4 years ago
|
Summary: Remove WIN95/WIN98 (support) code everywhere → [meta] Remove WIN95/WIN98 (support) code everywhere
Updated•4 years ago
|
URL: http://mxr.mozilla.org/mozilla-centra... → https://searchfox.org/mozilla-central...
Updated•4 years ago
|
Type: defect → task
Updated•4 years ago
|
Severity: normal → S3
Comment 45•2 years ago
|
||
FWIW, I can still see some WIN95 in our code.
Severity: S3 → --
Component: General → Widget: Win32
Comment 46•2 years ago
|
||
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.
Description
•