Open
Bug 530811
Opened 16 years ago
Updated 10 years ago
OS Sniffing doesn't support 32 bit browsers on x86_64 platform
Categories
(Bugzilla :: Creating/Changing Bugs, defect)
Bugzilla
Creating/Changing Bugs
Tracking
()
NEW
People
(Reporter: u88484, Unassigned)
References
Details
(Whiteboard: [bmo4.0-resolved])
Attachments
(1 file, 2 obsolete files)
|
1.75 KB,
patch
|
dkl
:
review+
LpSolit
:
review-
|
Details | Diff | Splinter Review |
The OS sniffing done by bugzilla when filing a new bug doesn't detect X86_64 bit hardware and X86 is automatically chosen.
So... are you running a 64bit browser or a 32bit browser? The os detection operates on useragents, please provide the useragents you have which are 64bit.
[NEEDINFO]
(In reply to comment #1)
> So... are you running a 64bit browser or a 32bit browser?
32 bit browser.
> The os detection operates on useragents, please provide the useragents
> you have which are 64bit.
Here is my useragent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.3a1pre) Gecko/20091125 Minefield/3.7a1pre
how would anyone or OS sniffing know if that was 32 or 64 bit?
Comment 3•16 years ago
|
||
(In reply to comment #2)
> how would anyone or OS sniffing know if that was 32 or 64 bit?
If you use IE, we can detect it from user-agent (ex. on WOW64, it has "WOW64" string. 64-bit version has "Win64" string.). But other browser such as Firefox and Chrome doesn't have any string for WOW64 and Win64.
Should we implement it to user-agent like IE? (It is already filed as bug 444770).
Depends on: 444770
kurtz/mkato: when I asked for useragents, I really was asking for useragents, not random speculation.
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MDDC)
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MDDC; Tablet PC 2.0)
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
http://msdn.microsoft.com/en-us/library/ms537503%28VS.85%29.aspx has microsoft's relatively unhelpful information on the subject :(
I'm still very skeptical about the benefit.
We generally @bmo use the field to indicate the version of the software that is running. I don't care if you have a 256bit cpu, if you're running a 32bit version of the software, you're probably going to be experiencing bugs based on that version, and 99% of the time the other stuff doesn't matter. otoh if you're running a 128bit version of our software, and are experiencing odd problems, it's probably because you're using mkato's next unstable hacked version, and that's interesting.
Comment 6•16 years ago
|
||
Comment on attachment 430897 [details] [diff] [review]
support for ia64/x86_64
r=LpSolit
Attachment #430897 -
Flags: review? → review+
Updated•16 years ago
|
Flags: approval3.6+
Flags: approval+
Target Milestone: --- → Bugzilla 3.6
Comment 7•16 years ago
|
||
Clearing approval per discussion with timeless on IRC. The patch needs to be updated.
Flags: approval3.6+
Flags: approval+
Comment 8•16 years ago
|
||
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3
Bug 444770 fixed this for me.
Mozilla/5.0 (Windows; U; Windows NT 6.1; WOW64; en-US; rv:1.9.3a5pre) Gecko/20100503 Minefield/3.7a5pre
Mark as a dupe?
Comment 10•16 years ago
|
||
Not a duplicate, but I will let timeless close the bug AS WFM if we no longer need it.
Comment 11•16 years ago
|
||
Still doesn't work correctly for me on Linux (see UA in comment 8).
Summary: OS Sniffing doesn't detect X86_64 hardware → OS Sniffing doesn't detect x86_64 platform
Comment 15•15 years ago
|
||
So, most of the 64bit stuff is already present.
what we're missing are two things:
1. a bit of fallback for itanium (not important for normal users)
2. a way for admins to handle the case of a 32bit browser running on a 64bit os
for bugzilla.mozilla.org, what we care about is the build of the browser, not the build of the os. So, we don't actually want 2 to be operative.
For people playing along at home:
1. if you're on linux, we should *already* (at least in upstream bugzilla, not quite certain about bmo) be mapping you to x86_64 if you're using a 64bit os. - if you aren't getting this behavior, please file a bug against me in this component with your useragent.
2. if you're on linux running a 32bit version of a browser on a 64bit kernel, the next patch may or may not change how things work depending on how an admin influences the variable at the top of the patch
3. if you're on windows and using a 32bit browser on a 64bit os, today you're treated as a 32bit creature, and depending on your admin that may or may not change after this patch.
Summary: OS Sniffing doesn't detect x86_64 platform → OS Sniffing doesn't support 32 bit browsers on x86_64 platform
Comment 16•15 years ago
|
||
(plus a minor bit for ia64)
dkl: i think this should more or less do what we want for bmo and for other browser vendors.
i don't have the energy to change the first hunk of this into a config bit and would hope that i can get a version of this landed and then have someone else convert that bit into a param or whatever.
Attachment #430897 -
Attachment is obsolete: true
Attachment #511005 -
Flags: review?(dkl)
Comment 17•15 years ago
|
||
Comment on attachment 511005 [details] [diff] [review]
handle 32bit browsers on x86_64
Couple comments:
1. [dkl@localhost trunk]$ perl -wcT -I. enter_bug.cgi
syntax error at enter_bug.cgi line 201, near ""PC")"
enter_bug.cgi had compilation errors.
2. Help me see what $favor_os_over_browser would ever be set to a non-zero value?
I see where you are checking in two places to see if it is true but I can't see where it would be ever set to true. I might be missing it.
Dave
Attachment #511005 -
Flags: review?(dkl) → review-
Updated•15 years ago
|
Target Milestone: Bugzilla 3.6 → Bugzilla 4.0
Comment 18•15 years ago
|
||
sorry about the typo.
as for the other bit, this code only adds the ability to handle the other case.
i'd like to be able to land this now.
once it's deployed, people who care can tweak the value or add code for a Param() to enable their install to take the other path.
Attachment #511005 -
Attachment is obsolete: true
Attachment #518013 -
Flags: review?(dkl)
Comment 19•15 years ago
|
||
Comment on attachment 518013 [details] [diff] [review]
handle 32bit browsers on x86_64
Aside from the unused variable, it looks fine to me for now. You can ask for approval for upstream but will probably be denied til favor_os_over_browser is actually used.
r=dkl
Attachment #518013 -
Flags: review?(dkl) → review+
Updated•15 years ago
|
Flags: approval?
Updated•15 years ago
|
Attachment #518013 -
Flags: review-
Comment 21•15 years ago
|
||
timeless, I would like to close this but your patch is still not yet approved. Can you submit a new one that addresses the issue with the unused variable so we can approve it and close this out?
Thanks
dkl
Comment 22•15 years ago
|
||
Note that this patch conflicts with bug 307688. It will depend on which one is committed first.
Comment 23•15 years ago
|
||
i'm happy to update this patch to fit in with the changes on bug 307688 if timeless doesn't have the time to do so.
Comment 24•14 years ago
|
||
(In reply to Byron Jones ‹:glob› from comment #23)
> i'm happy to update this patch to fit in with the changes on bug 307688 if
> timeless doesn't have the time to do so.
glob: just take it. timeless didn't contribute for a long time.
Updated•14 years ago
|
OS: Windows 7 → All
Hardware: x86_64 → All
Target Milestone: Bugzilla 4.0 → Bugzilla 4.2
Updated•14 years ago
|
Assignee: timeless → glob
Comment 25•13 years ago
|
||
Bugzilla 4.2 is now restricted to security fixes only.
Target Milestone: Bugzilla 4.2 → Bugzilla 4.4
Comment 26•11 years ago
|
||
Bugzilla 4.4 is now restricted to security fixes only.
Target Milestone: Bugzilla 4.4 → ---
You need to log in
before you can comment on or make changes to this bug.
Description
•