mozilla/bedrock — Issue #16: Port buildPlatformImage() function to Bedrock
Author: sgarrity
Created: 2012-03-01 19:22:31+00:00
State: open

There's a helper function on the old PHP site that helps output screenshots for the platform you're currently browsing from. We'll need to port this over to Bedrock.

The current PHP function, buildPlatformImage() takes a filename and a list of (pre-set) platforms (mac, linux, xp). It then outputs inline javascript to write the image for the platform you are currently running.

If the platform can't be determined or doesn't match our pre-set list, we fall-back to the default screenshot, which is for Windows. The function also outputs a