Sony PlayStation Portable Guideline

Guidelines for Creating Content for the PSP™ (PlayStation® Portable)

Internet Browser

Version 5.00

© 2008 Sony Computer Entertainment Inc.

All Rights Reserved.

SCE CONFIDENTIAL

[Copyright and Trademarks]

"UMD" and "PlayStation" are registered trademarks of Sony Computer Entertainment Inc. "PSP" is a trademark of Sony Computer Entertainment Inc.

"Memory Stick" is a trademark of Sony Corporation.

"XMB" is a trademark of Sony Corporation and Sony Computer Entertainment Inc. This document contains some copyright materials of ACCESS CO.,LTD.

PSP™ contains Internet browser software of ACCESS CO.,LTD. Copyright© 1996-2008 ACCESS CO.,LTD.

ACCESS and NetFront are trademarks or registered trademarks of ACCESS CO.,LTD. in Japan and other countries.

Java and JavaScript are trademarks or registered trademarks of Sun Microsystems,Inc. in the United States and other countries.

Flash, Macromedia and Macromedia Flash are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States and/or other countries.

VeriSign is a trademark or registered trademark of VeriSign,Inc. in the United States and other countries.

RSA is a trademark or registered trademark of RSA Security Inc. in the United States and other countries.

"Mozilla" is a registered trademark of the Mozilla Foundation.

All other trademarks are the properties of their respective owners.

[Terms and Conditions]

All rights (including, but not limited to, copyright) pertaining to all the materials and information that are made available from this Guideline are managed, owned, or used with permission by, SCEI. All materials in this Guideline are protected by copyright laws, and other applicable laws. Except for personal, non-commercial, internal use, you are prohibited from using (including, without limitation, copying, modifying, reproducing in whole or in part, uploading, transmitting, distributing, licensing, selling and publishing) any of the materials, without obtaining SCEI's prior written permission. The contents of this Guideline are not guaranteed to be valid for future versions of system software. SCEI OR ANY OF ITS AFFILIATES SHALL NOT BE LIABLE FOR ANY DAMAGES ARISING OUT OF ANY CHANGE OF THE SYSTEM SOFTWARE SPECIFICATIONS.

©SCEI

Guidelines for Creating Content for the PSP™ Internet Browser

- 2 -

SCE CONFIDENTIAL

Table of Contents

 

1 Introduction ...............................................................................................................

5

 

Related Documents..........................................................................................................

5

 

2 Basic Browser Functionality....................................................................................

6

 

HTTP................................................................................................................................

6

 

Cookies .............................................................................................................................

6

 

Cache................................................................................................................................

7

 

HTTP Authentication ......................................................................................................

7

 

Proxy Authentication.......................................................................................................

8

 

Schemes............................................................................................................................

8

 

HTML...............................................................................................................................

8

 

SSL/TLS ...........................................................................................................................

9

 

CSS.................................................................................................................................

10

 

DOM ...............................................................................................................................

10

 

JavaScript ......................................................................................................................

10

 

Screen Display ...............................................................................................................

10

 

Character Display..........................................................................................................

10

 

Image Display ................................................................................................................

13

 

Screen Displays..............................................................................................................

14

 

Plug-ins ..........................................................................................................................

15

 

3 Browser Application Functionality........................................................................

16

 

Addresses .......................................................................................................................

16

 

Titles...............................................................................................................................

16

 

Character Input .............................................................................................................

17

 

Bookmarks .....................................................................................................................

18

 

Tabs ................................................................................................................................

18

 

Downloads......................................................................................................................

19

 

Uploads ..........................................................................................................................

22

 

Automatic HTTP Authentication ..................................................................................

22

 

4 Client Identification Information............................................................................

24

 

Request Header .............................................................................................................

24

 

JavaScript ......................................................................................................................

27

 

5 Flash® Player Plug-in.............................................................................................

29

 

Version............................................................................................................................

29

 

 

©SCEI

Guidelines for Creating Content for the PSP™ Internet Browser

 

- 3 -

 

SCE CONFIDENTIAL

 

Supported Devices .........................................................................................................

29

Unsupported Functions.................................................................................................

29

Known problems and restrictions .................................................................................

30

6 PSP™ Plug-in ..........................................................................................................

32

Supported Functions .....................................................................................................

32

Plug-in Definition ..........................................................................................................

32

Writing a Return Value to the Application ...................................................................

32

Shutting Down the Internet Browser ...........................................................................

33

Sample............................................................................................................................

34

7 PSP™ Extended Plug-in.........................................................................................

36

Supported Functions .....................................................................................................

36

Plug-in Definition ..........................................................................................................

36

Getting Internet Browser Extended Header Information ...........................................

36

Getting the Maximum Content Heap Size Used..........................................................

37

Getting the Total Content Heap Size............................................................................

38

Sample............................................................................................................................

38

8 Appendix ..................................................................................................................

41

Detailed Specifications for HTML ................................................................................

41

Detailed Specifications for CSS.....................................................................................

43

Detailed Specifications for JavaScript..........................................................................

44

Detailed Specifications for DOM...................................................................................

44

Initial Values and Constraints......................................................................................

50

9 Document History ...................................................................................................

52

©SCEI

Guidelines for Creating Content for the PSP™ Internet Browser

- 4 -

SCE CONFIDENTIAL

1 Introduction

This document describes required client specifications and other information as well as guidelines to be followed when creating Web content for the PSP™ Internet browser.

It should be referenced when creating such content. However, the Internet browser client specifications may also be changed to an extent considered appropriate mainly for fixing bugs or improving quality.

The contents of this document are not guaranteed to be valid for future versions of system software. In this document, where differences exist depending on the version of system software, these are clearly indicated using notation such as "2.00" or "5.00".

Related Documents

For details about standards that the Internet browser conforms to or supports, refer to the following documents.

Protocol

[RFC2616] Hypertext Transfer Protocol – HTTP/1.1 PERSISTENT CLIENT STATE HTTP COOKIES http://wp.netscape.com/newsref/std/cookie_spec.html

Markup Language

HTML 4.01 Specification http://www.w3.org/TR/html401/

XHTML™ 1.1 –Module-Based XHTML http://www.w3.org/TR/xhtml11/

XHTML™ Basic http://www.w3.org/TR/xhtml-basic/

CSS

Cascading Style Sheets, level1 http://www.w3.org/TR/REC-CSS1

Cascading Style Sheets, level2 http://www.w3.org/TR/REC-CSS2/

JavaScript

Standard ECMA-262 http://www.ecma-international.org/publications/standards/Ecma-262.htm

©SCEI

Guidelines for Creating Content for the PSP™ Internet Browser

- 5 -

SCE CONFIDENTIAL

2 Basic Browser Functionality

The PSP™ Internet browser conforms to Internet standard protocols and supports standard markup languages such as HTML 4.01 and XHTML 1.1 as well as CSS, DOM, and JavaScript. This chapter describes this basic functionality.

HTTP

(1) Supported protocols

The Internet browser supports the following standard protocols.

HTTP/1.0

HTTP/1.1

(2)Supported methods

The Internet browser supports (uses) the following HTTP methods.

GET

POST

HEAD

(3)Supported functions

The Internet browser supports the following functions.

Redirect

Keep-Alive

Cookie

Cache

HTTP Authentication

Cookies

Cookies are not always saved. Cookie saving is controlled by a user setting and a specification of the application that called the Internet browser. Cookie saving may also be canceled by a user confirmation.

(1) Supported attributes

The Internet browser supports the following cookie attributes.

Expires

Path

Domain

Secure

©SCEI

Guidelines for Creating Content for the PSP™ Internet Browser

- 6 -

SCE CONFIDENTIAL

(2) Restrictions

The cookie function has the following restrictions.

Number of cookies saved

At most 20 cookies are saved per domain.

Cookie size

The maximum size of one cookie is 4K bytes.

Cache

(1) Cache size

The cache size is determined by a user setting and a specification of the application that called the Internet browser. The standard size is 512K bytes.

The cache may also be set or specified to be off.

(2) Restrictions

The cache function has the following restrictions.

Cache retention period

The cache is enabled only while the Internet browser is executing. When the Internet browser is terminated, the contents of the cache are erased.

The cache is also erased by a "delete cache" user operation. This operation can be performed even while the Internet browser is executing.

Disabling the cache

The use of a cache disable specification in a META tag in a page is not supported. To disable the cache, the following HTTP response header must be specified. Cache-Control: no-cache

HTTP Authentication

(1) Supported authentication methods

The Internet browser supports the following HTTP authentication methods.

Basic authentication

Digest authentication

(2)Input information retention

The user name and password that were entered for basic authentication or digest authentication are saved for each URL and automatically entered during the next authentication.

This input information, which is saved for the PSP™ console, is valid until the user

©SCEI

Guidelines for Creating Content for the PSP™ Internet Browser

- 7 -

SCE CONFIDENTIAL

performs a "delete authentication information" operation or a "set up initialization" operation is performed.

(3) Automatic HTTP Authentication

The Internet browser provides a function that uses authentication information specified from the application to automatically perform HTTP authentication without making the user enter a user name and password.

For details, see the section entitled "Browser Application Functions."

Proxy Authentication

(1) Supported authentication methods

The Internet browser supports the following proxy authentication methods.

Basic authentication

Digest authentication

(2)Automatic proxy authentication

The Internet browser provides a function that uses authentication information specified by the user to automatically perform proxy authentication without having to display an input dialog for the user name and password.

(3)Supporting systems

3.00or later

Schemes

The Internet browser supports the following schemes.

http

https

Although the browsing of content on a Memory Stick™ using a file scheme is also functionally supported, that operation and its future support are not guaranteed.

HTML

The Internet browser supports the following standard markup language specifications.

HTML 4.01

XHTML 1.1

XHTML Basic

For support details, see "Appendix: Detailed Specifications for HTML."

©SCEI

Guidelines for Creating Content for the PSP™ Internet Browser

- 8 -

Sony PlayStation Portable Guideline

SCE CONFIDENTIAL

SSL/TLS

The Internet browser conforms to the following standard.

SSL v3.0

(1)Root certificates

The following root certificates are built into the PSP™ and used when the Internet browser makes an SSL connection.

Certificate

In System

Verisign Root CA

2.00 or later

Verisign Class 1 Public Primary CA

2.00 or later

Verisign Class 2 Public Primary CA

2.00 or later

Verisign Class 3 Public Primary CA

2.00 or later

Verisign Class 1 Public Primary CA G2

2.00 or later

Verisign Class 2 Public Primary CA G2

2.00 or later

Verisign Class 3 Public Primary CA G2

2.00 or later

Verisign Class 4 Public Primary CA G2

2.00 or later

Verisign Class 1 Public Primary CA G3

2.00 or later

Verisign Class 2 Public Primary CA G3

2.00 or later

Verisign Class 3 Public Primary CA G3

2.00 or later

Verisign Class 4 Public Primary CA G3

2.00 or later

Verisign RSA Secure Server CA

2.00 or later

Verisign Time Stamping Authority CA

2.00 or later

RSA Root CA

2.00 or later

RSA Security Root CA 1024 (Valicert Class 3 CA)

2.00 or later

RSA Security Root CA 2048 V3

2.00 or later

GeoTrust Root CA

2.00 or later

GeoTrust Global CA

2.00 or later

GeoTrust Equifax Secure CA

2.00 or later

GeoTrust Equifax Secure eBusiness CA-1

2.00 or later

EnTrust Root CA

2.00 or later

EnTrust.net Secure Server CA (CPS)

2.00 or later

Valicert Root CA

2.50 or later

Valicert Class 2 CA

2.50 or later

OmniRoot (CyberTrust CA)

2.50 or later

Omni Baltimore CyberTrust CA

2.50 or later

Omni GTE CyberTrust Global Root CA

2.50 or later

Omni GTE CyberTrust Root CA

2.50 or later

Omni Globalsign Root CA

2.50 or later

Thawte Root CA

2.70 or later

Thawte PremiumServer CA

2.70 or later

Thawte Server CA

2.70 or later

COMODO Root CA

5.00 or later

AddTrust External CA Root

5.00 or later

AAA Certificate Services

5.00 or later

UTN-USERFirst-Hardware

5.00 or later

©SCEI

Guidelines for Creating Content for the PSP™ Internet Browser

- 9 -

SCE CONFIDENTIAL

CSS

The Internet browser supports the following standards.

CSS1

Part of CSS2

For support details, see "Appendix: Detailed Specifications for CSS."

DOM

The Internet browser supports the following standards.

DOM level 1

Part of DOM level 2

For support details, see "Appendix: Detailed Specifications for DOM."

JavaScript

The Internet browser supports the following standard.

Part of JavaScript 1.5

For support details, see "Appendix: Detailed Specifications for JavaScript."

Screen Display

The Internet browser uses the entire PSP™ display screen to display pages. The screen size, which is 480x272, is not reduced or enlarged.

Although a page that exceeds the screen size can be scrolled by the user, no scroll bars are displayed.

The operation menu is displayed superimposed on the page.

Otherwise, the page display size cannot be dynamically changed by the user.

Character Display

(1) Font size

The Internet browser supports five font sizes. More sizes may be specified in the content, or the point size may be directly specified. The user can select one of three character sizes, either "large," "standard," or "small".

The Internet browser maps the size specification from the content to the five font sizes according to the following rules.

Point specification

©SCEI

Guidelines for Creating Content for the PSP™ Internet Browser

- 10 -

SCE CONFIDENTIAL

The point specification in the content is mapped by multiplying the points by 1 when the character size is "large," by 3/4 when the character size is "standard," and by 1/2 when the character size is "small."

Points

Font Size

16 pt or greater

Size 4 (maximum)

12 pt to 15 pt

Size 3

10 pt to 11 pt

Size 2

8 pt to 9 pt

Size 1

7 pt or less

Size 0 (minimum)

Size specification

The size specification is mapped as follows for each of the character sizes "large," "standard," and "small."

Size Specification

Font Size (Large)

Font Size (Standard)

Font Size (Small)

7

Size 4

Size 4

Size 3

xx-large

Size 4

Size 3

Size 2

6

Size 4

Size 3

Size 2

x-large

Size 3

Size 2

Size 0

5

Size 3

Size 2

Size 0

large

Size 3

Size 1

Size 0

4

Size 3

Size 1

Size 0

medium

Size 2

Size 1

Size 0

3

Size 2

Size 1

Size 0

small

Size 1

Size 0

Size 0

2

Size 1

Size 0

Size 0

x-small

Size 0

Size 0

Size 0

1

Size 0

Size 0

Size 0

xx-small

Size 0

Size 0

Size 0

(2) Font family

The Internet browser allows the display font to be changed by specifying the font family, but for Latin fonts only.

The following font families can be specified.

Font Families

Roman

Arial

Serif

Sans-Serif

(*)However, specifying the font family in a font tag is not permitted. The font family can only be specified using a style attribute in a span tag as shown below.

Example

<span style="font-family:Roman">Roman</span>

©SCEI

Guidelines for Creating Content for the PSP™ Internet Browser

- 11 -

SCE CONFIDENTIAL

(3) Font style

The Internet browser supports italic and bold font styles and font weight specifications, but only for Latin fonts.

The following font styles can be specified.

Font Styles

italic

bold

Examples

<b>bold</b> and <i>italic</i>

<span style="font-style:italic">italic</span>

(4) Supported character sets

The Internet browser determines and displays the character set based on a specification in a META tag in the HTML content.

The following character sets are supported for display.

US-ASCII

ASCII

ISO-8859-1

Western Europe

Windows-1252

Western Europe

ISO-8859-2 *

Central Europe

Windows-1250 *

Central Europe

ISO-8859-3 *

Southern Europe

ISO-8859-4 *

Baltic languages

Windows-1257 *

Baltic languages

ISO-8859-5

Cyrillic characters

Windows-1251

Cyrillic characters

KOI8-R *

Cyrillic characters

ISO-8859-7 *

Greek

Windows-1253 *

Greek

ISO-8859-9

Turkish

Windows-1254 *

Turkish

GB2312

Simplified Chinese

GBK

Simplified Chinese

GB18030

Simplified Chinese

Big5

Traditional Chinese

EUC-KR

Korean

ISO-2022-JP

Japanese

Shift_JIS

Japanese

EUC-JP

Japanese

UTF-8

Unicode

Note that for the character sets marked with an asterisk (*), some characters cannot be displayed properly because of the relationships with the character types of the PSP™ built-in fonts.

(5) Limitations

The following limitations apply to character display.

©SCEI

Guidelines for Creating Content for the PSP™ Internet Browser

- 12 -

SCE CONFIDENTIAL

Character set discrimination

The Internet browser displays characters in the character set that is specified in a META tag as follows.

<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1” />

If no character set is specified in a META tag, the operation is not guaranteed to be defined.

Whether

a specific character set is selected according to the console's display language setting, or

Unicode (UTF-8) is always selected

may change depending on the release.

Frame Handling

On a page that uses a frame or iframe, if the frame file does not contain a character set specification, then even if the base file contains a character set specification, there is no guarantee that it will be inherited.

Image Display

(1) Supported formats

The Internet browser supports the display of images in GIF, PNG, and JPEG formats. Support details for each format are as follows.

GIF

GIF87a, GIF89a

 

Interlaced, noninterlaced, transparent color, animation

PNG

Interlaced, noninterlaced, transparent color, semitransparent (α channel)

 

(*) Animation (MNG) is not supported

JPEG

Baseline DCT, progressive DCT

(2) Conserve Memory setting

With PSP™ system software version 3.10 or later, the amount of heap memory used for displaying images can be reduced by setting "Conserve Memory" under "View Settings" to "On."

In this case, the Internet browser displays images in content according to the following conditions.

Common Images are decoded using 16-bit color.

If vertical x horizontal exceeds 130560 pixels, decoding is cut back so as not to exceed 130560 pixels.

PNG Semitransparency (α channel) is disabled.

©SCEI

Guidelines for Creating Content for the PSP™ Internet Browser

- 13 -

SCE CONFIDENTIAL

(3) Limitations

The following limitations apply to image display.

Image size

To display an image, heap memory is temporarily used in an amount equal to the number of pixels in the image multiplied by 4 bytes.

Since the remaining amount of heap memory varies according to the heap memory size that is assigned by the application that called the Internet browser, the cache size setting, and how other tabs are being used, in some cases it may not be possible to display the image.

When an image cannot be displayed, a mark is displayed in white space equivalent to the image size or the size specified by the img tag.

Non-display setting

The user can specify that images and animated images are not to be displayed. When an image is not displayed, a mark is displayed in white space equivalent to the image size or the size specified by the img tag.

When animated images only are not to be displayed, the first frame of the animation is displayed as a still image.

Conserve Memory

If an image cannot be decoded properly when the conserve memory setting is on, an

is displayed instead of the image, in a space with the same size as the image or with the size specified in the img tag.

Screen Displays

The Internet browser supports screen display mode switching. Note that an unintended layout of the content may end up getting displayed depending on the display mode setting.

The following display modes are available.

Standard

The original page size and layout are displayed as is.

Just fit mode

The original layout is preserved as is and displayed to match the width of the screen. The character size may become smaller compared to Standard mode. Also, wrapping may automatically be performed.

Smart fit mode

The original layout is reconfigured and displayed to match the width of the screen. The character size may become smaller compared to Standard mode. Also, wrapping

©SCEI

Guidelines for Creating Content for the PSP™ Internet Browser

- 14 -

SCE CONFIDENTIAL

may automatically be performed.

Plug-ins

The Internet browser supports plug-in functions.

(1) Supported plug-ins

The following plug-ins are supported.

Plug-in Name

MIME-Type

Supporting System

Flash® Player plug-in (*)

application/x-shockwave-flash

2.70 or later

PSP™ plug-in

application/x-psp-plugin

2.70 or later

PSP™ extended plug-in

application/x-psp-extplugin

2.80 or later

(*) Contains Macromedia® Flash® Player technology by Adobe. For details about each plug-in, see the corresponding section.

(2) Restrictions

The plug-in function has the following restrictions.

Startup Confirmation

A user confirmation dialog may be displayed when the plug-in is started up depending on the version of system software.

©SCEI

Guidelines for Creating Content for the PSP™ Internet Browser

- 15 -

SCE CONFIDENTIAL

3 Browser Application Functionality

The PSP™ Internet browser has many application functions besides the basic browsing functions of tabs, bookmarks, and file downloading.

This chapter explains aspects of these functions that are related to content creation.

Addresses

The Internet browser has no specific constraints on the length of addresses that are used for links and image references in content. However, when handling address strings in the console such as when editing addresses or registering bookmarks, a restriction applies in which a single address can be no more than 512 characters in length.

Since an address that exceeds 512 characters is automatically cut to one that is less than or equal to 512 characters, be particularly careful with pages that may have been bookmarked. The following functions are affected by this constraint.

Editing the address of the page that is currently being displayed

Registering a bookmark

Titles

The Internet browser has no specific constraints on the length of a content title. However, when handling title strings in the console such as when registering bookmarks, a restriction applies in which a single title can be no more than 512 characters in length.

Since a title that exceeds 512 characters is automatically cut to one that is less than or equal to 512 characters, be particularly careful with pages that may have been bookmarked.

The following function is affected by this constraint.

Registering a bookmark

Also, when a long title is displayed, it will be shortened or automatically scrolled. To avoid this, the maximum number of characters in a title should be approximately 20 for Japanese, Korean and Chinese and 30 for other languages.

The following functions are affected by this constraint.

Displaying the title bar (automatic scrolling)

Displaying the list of personal bookmarks (shortened)

Displaying the history list (shortened)

©SCEI

Guidelines for Creating Content for the PSP™ Internet Browser

- 16 -

Loading...
+ 36 hidden pages