Closed Bug 728726 Opened 8 years ago Closed 7 years ago

Switch start page's Nightly detection to using navigator.buildID

Categories

(SeaMonkey :: Website, defect)

defect
Not set

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: kairo, Assigned: InvisibleSmiley)

Details

Attachments

(3 files)

This might sound like a small thing, but since the UA string changed, we can't detect the build ID and therefore build date on the start page any more. We can use navigator.buildID, see bug 588909 comment #57 - as everything that doesn't support this is surely an old build, we can always display the warning for old Nightly or Aurora builds if (!navigator.buildID) and else use the date from this instead of one from the UA.
FTR, navigator.buildID is available since SM 1.1.
I've put the attached on the staging website (updated /start/index-test and /releases/).

Serge, can you check what you get with your Win2k now and whether it's OK?
Tony, can you check that it's back to normal with a nightly now?
Assignee: nobody → jh
Status: NEW → ASSIGNED
Attachment #632423 - Flags: feedback?(sgautherie.bz)
Attachment #632423 - Flags: feedback?(antoine.mechelynck)
Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/16.0 Firefox/16.0a1 SeaMonkey/2.13a1 ID:20120612003002

http://www.seamonkey-project.org/start/ and http://www.seamonkey-project.org/start/index-test both tell me "it appears to us that you are not using SeaMonkey yet."

Now I'll try the latest hourly.
Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/16.0 Firefox/16.0a1 SeaMonkey/2.13a1 ID:20120612101123

Same thing. Both here and in comment #3, no change after Ctrl+Shift+R either.
A "Congratulations" paragraph with a red dragon icon appears for a fraction of a second but is replaced by the "you aren't using yet" paragraph with green "Download" blob.

Jens: I'm not sure I've understood what you were asking. If you want a different test, please tell me what in more detail.
Attachment #632423 - Flags: feedback?(antoine.mechelynck) → feedback-
Attachment #632465 - Attachment description: snapshot of start/project-test as seen in latest build → snapshot of start/index-test as seen in latest build
Comment on attachment 632423 [details] [diff] [review]
fix nightly unsupported Windows detection

*Staging* website! Please consult your archives or write me a PM if you're unsure about the URL and credentials.
Attachment #632423 - Flags: feedback- → feedback?(antoine.mechelynck)
Comment on attachment 632423 [details] [diff] [review]
fix nightly unsupported Windows detection

“Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/16.0 Firefox/16.0a1 SeaMonkey/2.13a1” ID:20120612101123

As can be seen in the new snapshot, the start-test page on the staging site sees that I'm using SeaMonkey.
Attachment #632423 - Flags: feedback?(antoine.mechelynck) → feedback+
Attachment #632423 - Flags: feedback?(bugzilla)
Comment on attachment 632423 [details] [diff] [review]
fix nightly unsupported Windows detection

When using Windows 2000 and SeaMonkey 2.9.1 http://stage.seamonkey-project.org/start/ tells me:
"Warning! You're using an old stable version of SeaMonkey (2.9.1), while we offer a newer version which contains important security fixes.

We encourage you to download the newer version linked in the download box at the right to be safe from known vulnerabilities and be able to use the newest features in a stable SeaMonkey release."

http://stage.seamonkey-project.org/start/index-test says:
"Thanks for using SeaMonkey. Unfortunately, your platform is no longer supported by the latest stable version of our product so we cannot offer you an upgrade unless you upgrade your operating system."

And http://stage.seamonkey-project.org/releases/ says:
"Thanks for using SeaMonkey. Unfortunately, your platform is no longer supported by the latest stable version of our product so we cannot offer you an upgrade unless you upgrade your operating system"
Attachment #632423 - Flags: feedback?(bugzilla) → feedback+
Attachment #632423 - Flags: feedback?(sgautherie.bz)
Almost forgot the German version of the start file - thanks mcsmurf!

- build ID is now retrieved from navigator.buildID (fallback: UA-based detection)
- added unsupported OS detection (limited to Windows for now)

Checking in releases/index.en.html;
/www/seamonkeyproject-org/src/releases/index.en.html,v  <--  index.en.html
new revision: 1.235; previous revision: 1.234
done
Checking in download.jst;
/www/seamonkeyproject-org/src/download.jst,v  <--  download.jst
new revision: 1.22; previous revision: 1.21
done
Checking in start/index-test.en.html;
/www/seamonkeyproject-org/src/start/index-test.en.html,v  <--  index-test.en.html
new revision: 1.13; previous revision: 1.12
done
Checking in start/index.de.html;
/www/seamonkeyproject-org/src/start/index.de.html,v  <--  index.de.html
new revision: 1.21; previous revision: 1.20
done
Checking in start/index.en.html;
/www/seamonkeyproject-org/src/start/index.en.html,v  <--  index.en.html
new revision: 1.34; previous revision: 1.33
done
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
fixed de and test pages after faulty merge

Checking in index-test.en.html;
/www/seamonkeyproject-org/src/start/index-test.en.html,v  <--  index-test.en.html
new revision: 1.14; previous revision: 1.13
done
Checking in index.de.html;
/www/seamonkeyproject-org/src/start/index.de.html,v  <--  index.de.html
new revision: 1.22; previous revision: 1.21
done
follow-up: Fix IE (const -> var, addEventListener vs. attachEvent)

Checking in index-test.en.html;
/www/seamonkeyproject-org/src/start/index-test.en.html,v  <--  index-test.en.html
new revision: 1.15; previous revision: 1.14
done
Checking in index.de.html;
/www/seamonkeyproject-org/src/start/index.de.html,v  <--  index.de.html
new revision: 1.23; previous revision: 1.22
done
Checking in index.en.html;
/www/seamonkeyproject-org/src/start/index.en.html,v  <--  index.en.html
new revision: 1.35; previous revision: 1.34
done
fixed detection of "Windows NT" UA substring (failure resulted in "unsupported" warning)

Checking in src/download.jst;
/www/seamonkeyproject-org/src/download.jst,v  <--  download.jst
new revision: 1.23; previous revision: 1.22
done
Product: Websites → SeaMonkey
You need to log in before you can comment on or make changes to this bug.