Bug 41875 - Allow webkit (and safari) to identify itself running as 32 bit or 64 bit
Summary: Allow webkit (and safari) to identify itself running as 32 bit or 64 bit
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Enhancement
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-08 11:09 PDT by Darth
Modified: 2022-09-12 15:33 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darth 2010-07-08 11:09:23 PDT
Webkit and safari running in 64 bit mode should have a different user agent string (or some other property) so that the running mode can easily be detected by javascript.
Maybe do something like IE does by adding an x64 in the user agent string.
Comment 1 Darth 2010-07-08 11:50:24 PDT
This is not identifying the underlying OS architecture, but rather the browsers own running mode if it is applicable to the platform, ie if the browser has a 32 bit version and 64 bit version and a user can choose which to use.
Comment 2 Sam Weinig 2010-07-08 11:53:33 PDT
Why would this be useful?
Comment 3 Darth 2010-07-08 12:03:27 PDT
(In reply to comment #2)
> Why would this be useful?

So that when bugs like
https://bugs.webkit.org/show_bug.cgi?id=40367
happen, we prevent users from using one specific mode.
Comment 4 Darth 2010-07-08 12:06:42 PDT
(In reply to comment #3)
> (In reply to comment #2)
> > Why would this be useful?
> 
> So that when bugs like
> https://bugs.webkit.org/show_bug.cgi?id=40367
> happen, we prevent users from using one specific mode.

Now I understand that this above bug was fixed, but Apple is taking it's own time to release official Safari patches. In the mean time it would have been nice to detect browser running mode and filter out the 32 bit safari and let people use 64 bit safari for apps that are experiencing the math bug.
Comment 5 Alexey Proskuryakov 2010-07-09 12:08:43 PDT
Why not just try the calculation once, and compare the result to expected one?
Comment 6 Darth 2010-07-09 12:37:01 PDT
(In reply to comment #5)
> Why not just try the calculation once, and compare the result to expected one?

Doing that already. 
But having a user agent suggesting the running mode makes life easier, just incase the kind of calculations needed change if future issues are different.
Thats why was requesting this as an enhancement.

Both IE and FF do this on windows (and linux) platform.
FF doesn't do it on the Mac because they decided to stick with what Safari does.
https://bugzilla.mozilla.org/show_bug.cgi?id=489586
Comment 7 Ahmad Saleem 2022-09-12 15:19:05 PDT
Is it something needed now that macOS is just 64-bit and we don't have Windows Release? Or it is something needed for GTK or other builds?

Appreciate if someone comment and tag / mark this bug accordingly. Thanks!
Comment 8 Brent Fulgham 2022-09-12 15:33:45 PDT
We do not want to leak details like CPU bit or other architecture details.