# This file is the input for generating the list of preferences
# for pc_js.cpp and pc_js.h.
#
# For information on how to add or modify a preference, please
# refer to the module documentation.
#
# Preferences cannot depend directly on FEATUREs, they must depend
# on the macro they define.
#
Collection:  PrefsCollectionJS
Macro name:  PCJS
Description: JavaScript
Type:        normal

Preference:  ES_NSAppName
Depends on:  
Section:     Special
Key:         JavaScript AppName
Type:        string
Description: appName to return when identifying as Mozilla
Default:     "Netscape"

Preference:  ES_IEAppName
Depends on:  
Section:     Special
Key:         JavaScript IE AppName
Type:        string
Description: appName to return when identifying as MSIE
Default:     "Microsoft Internet Explorer"

Preference:  ES_OperaAppName
Depends on:  
Section:     Special
Key:         JavaScript Opera AppName
Type:        string
Description: appName to return when identifying as Opera
Default:     "Opera"

Preference:  ES_AppCodeName
Depends on:  
Section:     Special
Key:         JavaScript AppCodeName
Type:        string
Description: appCodeName to return
Default:     "Mozilla"

Preference:  EcmaScriptRemoteDebuggerIP
Depends on:  defined ECMASCRIPT_REMOTE_DEBUGGER && !defined PREFS_TOOLS_PROXY
Section:     Extensions
Key:         Remote Script Debugger IP
Type:        string
Description: OBSOLETE - replaced by API_PRF_TOOLS_PROXY - Host the remote script debugger connects to in active mode
Default:     "127.0.0.1"

Preference:  UserJSFiles
Depends on:  USER_JAVASCRIPT
Section:     User Prefs
Key:         User JavaScript File
Type:        string
Description: Name of user javascript files
Default:     ""

Preference:  OpShellProxyIP
Depends on:  defined SUPPORT_DEBUGGING_SHELL && !defined PREFS_TOOLS_PROXY
Section:     Extensions
Key:         OpShell Proxy IP
Type:        string
Description: OBSOLETE - replaced by API_PRF_TOOLS_PROXY - IP address of the OpShell proxy server
Default:     "127.0.0.1"

Preference:  IgnoreUnrequestedPopups
Depends on:  
Section:     User Prefs
Key:         Ignore Unrequested Popups
Type:        boolean
Description: Disallow unrequested window creation
Default:     DEFAULT_IGNOREUNREQUESTEDPOPUPS

Preference:  TargetDestination
Depends on:  
Section:     User Prefs
Key:         Target Destination
Type:        integer
Description: Open window in background, or ignore it
Default:     POPUP_WIN_NEW

Preference:  UserJSEnabled
Depends on:  USER_JAVASCRIPT
Section:     User Prefs
Key:         User JavaScript
Type:        boolean
Description: User Javascript is enabled
Default:     FALSE

Preference:  UserJSEnabledHTTPS
Depends on:  USER_JAVASCRIPT
Section:     User Prefs
Key:         User JavaScript on HTTPS
Type:        boolean
Description: User Javascript is enabled also on HTTPS pages
Default:     FALSE

Preference:  UserJSAlwaysLoad
Depends on:  USER_JAVASCRIPT
Section:     User Prefs
Key:         Always Load User JavaScript
Type:        boolean
Description: User Javascript is always loaded
Default:     FALSE

Preference:  BrowserJSSetting
Depends on:  DOM_BROWSERJS_SUPPORT
Section:     User Prefs
Key:         Browser JavaScript
Type:        integer
Description: When to load browser JavaScript (0=never, 1=download but don't load, 2=download when changed and use)
Default:     1

Preference:  BrowserJSTimeStamp
Depends on:  PREFS_HAVE_BROWSERJS_TIMESTAMP
Section:     User Prefs
Key:         Browser JavaScript Timestamp
Type:        integer
Description: Identifies the browser.js currently used, used when checking for updates
Default:     0

Preference:  BrowserJSServerTimeStamp
Depends on:  PREFS_HAVE_BROWSERJS_TIMESTAMP
Section:     User Prefs
Key:         Browser JavaScript Server Timestamp
Type:        integer
Description: Identifies the browser.js which currently available at the server. This value is different from BrowserJSTimeStamp if a browser.js update is available on the server, but the update was not yet downloaded and installed.
Default:     0

Preference:  ScriptSpoof
Depends on:  
Section:     User Prefs
Key:         Script Spoof
Type:        integer
Description: Special User Agent Id used only in scripts
Default:     UA_NotOverridden

Preference:  EcmaScriptEnabled
Depends on:  
Section:     Extensions
Key:         Scripting
Type:        boolean
Description: Enable scripts
Default:     TRUE

Preference:  EcmaScriptDebugger
Depends on:  defined ECMASCRIPT_DEBUGGER && !defined PREFS_SCRIPT_DEBUG
Section:     Extensions
Key:         Script Debugger
Type:        boolean
Description: OBSOLETE - replaced by API_PRF_TOOLS_SCRIPT_DEBUG - Enable the script debugger
Default:     FALSE

Preference:  EcmaScriptRemoteDebugger
Depends on:  defined ECMASCRIPT_DEBUGGER && defined ECMASCRIPT_REMOTE_DEBUGGER && !defined PREFS_TOOLS_PROXY
Section:     Extensions
Key:         Remote Script Debugger
Type:        integer
Description: OBSOLETE - replaced by API_PRF_TOOLS_PROXY - Enable the remote script debugger
Default:     REMOTE_SCRIPT_DEBUGGER_OFF

Preference:  EcmaScriptRemoteDebuggerPort
Depends on:  defined ECMASCRIPT_DEBUGGER && defined ECMASCRIPT_REMOTE_DEBUGGER && !defined PREFS_TOOLS_PROXY
Section:     Extensions
Key:         Remote Script Debugger Port
Type:        integer
Description: OBSOLETE - replaced by API_PRF_TOOLS_PROXY - TCP port number for the remote script debugger
Default:     9999

Preference:  DelayedScriptExecution
Depends on:  DELAYED_SCRIPT_EXECUTION
Section:     Extensions
Key:         Delayed Script Execution
Type:        boolean
Description: Enable delayed script execution
Default:     DEFAULT_DELAYED_SCRIPT_EXECUTION

Preference:  OpShellProxyPort
Depends on:  defined SUPPORT_DEBUGGING_SHELL && !defined PREFS_TOOLS_PROXY
Section:     Extensions
Key:         OpShell Proxy Port
Type:        integer
Description: OBSOLETE - replaced by API_PRF_TOOLS_PROXY - Port number of the OpShell proxy server
Default:     7000

Preference:  AllowGeolocation
Depends on:  GEOLOCATION_SUPPORT
Section:     User Prefs
Key:         Geolocation site state
Type:        integer
Description: Determines whether websites are allowed to retrieve the current geolocation
Default:     MAYBE

Preference:  AllowCamera
Depends on:  DOM_STREAM_API_SUPPORT
Section:     User Prefs
Key:         Camera access permission
Type:        integer
Description: Determines whether websites are allowed to access camera
Default:     MAYBE

Preference:  JIT
Depends on:  ECMASCRIPT_NATIVE_SUPPORT
Section:     Extensions
Key:         EcmaScriptJIT
Type:        boolean
Description: Enables machine code generation for ECMAScript
Default:     DEFAULT_ECMASCRIPT_JIT

Preference:  HardcoreGCMode
Depends on:  ES_HARDCORE_GC_MODE
Section:     Extensions
Key:         EcmaScriptHardcoreGCMode
Type:        boolean
Description: Enables hardcore GC mode
Default:     FALSE

Preference:  FPMode
Depends on:  ES_OVERRIDE_FPMODE
Section:     Extensions
Key:         EcmaScriptFPMode
Type:        string
Description: Controls which floating point instruction is used in JIT code
Default:     "sse2"

Preference:  MaxWorkersPerWindow
Depends on:  DOM_WEBWORKERS_SUPPORT
Section:     User Prefs
Key:         Max Web Workers Per Window
Type:        integer
Description: The maximum number of Web Worker instances to allow per scripting environment
Default:     DEFAULT_MAX_WEBWORKERS_PER_WINDOW

Preference:  MaxWorkersPerSession
Depends on:  DOM_WEBWORKERS_SUPPORT
Section:     User Prefs
Key:         Max Web Workers Per Session
Type:        integer
Description: The maximum number of Web Worker instances to allow per browser session
Default:     DEFAULT_MAX_WEBWORKERS_PER_SESSION

Preference:  ShaderValidation
Depends on:  CANVAS3D_SUPPORT
Section:     Extensions
Key:         Shader Validation
Type:        boolean
Description: Enables validation of WebGL shader source
Default:     DEFAULT_SHADER_VALIDATION

Preference:  EnableOrientation
Depends on:  DOM_DEVICE_ORIENTATION_EVENT_SUPPORT
Section:     Orientation
Key:         Enable Orientation and Motion sensors
Type:        boolean
Description: Enable or disable orientation and motion events
Default:     TRUE

Preference:  DisallowedWebHandlers
Depends on:  WEB_HANDLERS_SUPPORT
Section:     User Prefs
Key:         Disallowed Web Handlers
Type:        string
Description: Determines protocols/mime types web handlers are not allowed to be registered for
Default:     ""

Preference:  SpeculativeParser
Depends on:  SPECULATIVE_PARSER
Section:     Extensions
Key:         Speculative Parser
Type:        boolean
Description: Enable speculative HTML parser
Default:     TRUE

Preference:  ChromelessDOMFullscreen
Depends on:  DOM_FULLSCREEN_MODE
Section:     User Prefs
Key:         Chromeless DOM Fullscreen
Type:        boolean
Description: Allows the DOM Fullscreen API to hide the browser chrome. Else the broser chrome is kept but content is still resized to fit the whole viewport.
Default:     TRUE

Preference:  LetSiteAccessClipboard
Depends on:  defined DOCUMENT_EDIT_SUPPORT && defined USE_OP_CLIPBOARD
Section:     User Prefs
Key:         Let Site Access Clipboard
Type:        boolean
Description: Determines whether pages have access to the clipboard
Default:     FALSE

Preference:  JS_HWAAccess
Depends on:  VEGA_3DDEVICE
Section:     Special
Key:         JavaScript HWA DOM Object Access
Type:        string
Description: Secure server allowed access to the window.opera.hwa DOM object. Normally the Opera Bugwizard.
Default:     "bugs.opera.com"

.eof
