Search completed in 1.01 seconds.
Configuring Build Options
the default
options are the most well-supported, so it is preferable to add as few
options as possible.
...build
options, including
options not usable from the command-line, may appear in "confvars.sh" files in the source tree.
... using a mozconfig configuration file the choice of which mozilla application to build and other configuration
options can be configured in a mozconfig file.
...And 31 more matches
JS::CompileOptions
this article covers features introduced in spidermonkey 17 compile
options classes.
... constructor js::readonlycompile
options(); // added in spidermonkey 31 js::owningcompile
options(jscontext *cx); // added in spidermonkey 31 js::compile
options(jscontext *cx, jsversion version = jsversion_unknown); name type description cx jscontext * pointer to a js context from which to derive runtime information.
... methods some methods of js::owningcompile
options and js::compile
options return the instance itself to allow method chain.
...And 29 more matches
Command line options
command line
options are used to specify various startup
options for mozilla applications.
... for example, if you have multiple profiles you can use command line configuration
options to bypass the profile manager and open a specific profile.
...this page describes the commonly used
options and how to use them.
...And 11 more matches
PublicKeyCredentialCreationOptions - Web APIs
the publickeycredentialcreation
options dictionary of the web authentication api holds
options passed to navigators.credentials.create() in order to create a publickeycredential.
... properties publickeycredentialcreation
options.rp an object describing the relying party which requested the credential creation.
... publickeycredentialcreation
options.user an object describing the user account for which the credential is generated.
...And 10 more matches
Intl.NumberFormat.prototype.resolvedOptions() - JavaScript
the intl.numberformat.prototype.resolved
options() method returns a new object with properties reflecting the locale and number formatting
options computed during initialization of this numberformat object.
... syntax numberformat.resolved
options() return value a new object with properties reflecting the locale and number formatting
options computed during the initialization of the given numberformat object.
... numberingsystem the value provided for this properties in the
options argument, if present, or the value requested using the unicode extension key "nu" or filled in as a default.
...And 10 more matches
Inline options - Archive of obsolete content
options file the xul allowed for the inline
options is limited to a few new tags.
... here is an example of an
options.xul file: <?xml version="1.0"?> <!doctype mydialog system "chrome://myaddon/locale/mydialog.dtd"> <vbox xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <setting type="bool" pref="extensions.myaddon.bool" title="boolean" desc="stored as a boolean preference" /> </vbox> note that it's limited to <setting> tags.
...ype="password"/> <!-- color example --> <setting pref="extensions.myaddon.color" type="color" title="color"/> <!-- file and directory examples --> <setting pref="extensions.myaddon.file" type="file" title="file"/> <setting pref="extensions.myaddon.directory" type="directory" title="directory"/> <!-- list example (this example would be stored as an integer) --> <setting pref="extensions.myaddon.
options1" type="menulist" title="
options 1"> <menulist> <menupopup> <menuitem value="500" label="small"/> <menuitem value="800" label="medium"/> <menuitem value="1200" label="large"/> </menupopup> </menulist> </setting> <!-- radio button example (this example would be stored as a boolean) --> <setting pref="extensions.myaddon.
options2" type="radio" title="
options 2"> <rad...
...And 9 more matches
X-Frame-Options - HTTP
the x-frame-
options http response header can be used to indicate whether or not a browser should be allowed to render a page in a <frame>, <iframe>, <embed> or <object>.
... the added security is provided only if the user accessing the document is using a browser that supports x-frame-
options.
... header type response header forbidden header name no syntax there are two possible directives for x-frame-
options: x-frame-
options: deny x-frame-
options: sameorigin directives if you specify deny, not only will attempts to load the page in a frame fail when loaded from other sites, attempts to do so will fail when loaded from the same site.
...And 7 more matches
HTMLSelectElement.selectedOptions - Web APIs
the read-only htmlselectelement property selected
options contains a list of the <option> elements contained within the <select> element that are currently selected.
... the list of selected
options is an htmlcollection object with one entry per currently selected option.
... syntax var selectedcollection = htmlselectelement.selected
options; value an htmlcollection which lists every currently selected htmloptionelement which is either a child of the htmlselectelement or of an htmloptgroupelement within the <select> element.
...And 6 more matches
PublicKeyCredentialRequestOptions - Web APIs
the publickeycredentialrequest
options dictionary of the web authentication api holds the
options passed to navigator.credentials.get() in order to fetch a given publickeycredential.
... properties publickeycredentialrequest
options.challenge a buffersource, emitted by the relying party's server and used as a cryptographic challenge.
... publickeycredentialrequest
options.timeout optional a numerical hint, in milliseconds, which indicates the time the caller is willing to wait for the retrieval operation to complete.
...And 6 more matches
ScrollToOptions - Web APIs
the scrollto
options dictionary of the cssom view spec contains properties specifying where an element should be scrolled to, and whether the scrolling should be smooth.
... a scrollto
options dictionary can be provided as a parameter for the following methods: window.scroll() window.scrollby() window.scrollto() element.scroll() element.scrollby() element.scrollto() properties scrollto
options.top specifies the number of pixels along the y axis to scroll the window or element.
... scrollto
options.left specifies the number of pixels along the x axis to scroll the window or element.
...And 5 more matches
JS_ToggleOptions
toggle specified
options on a jscontext.
... syntax uint32 js_toggle
options(jscontext *cx, uint32
options); name type description cx jscontext * a context on which to modify
options.
...
options uint32 the set of
options to toggle.
...And 4 more matches
Intl.DisplayNames.prototype.resolvedOptions() - JavaScript
the intl.displaynames.prototype.resolved
options() method returns a new object with properties reflecting the locale and style formatting
options computed during the construction of the current displaynames object.
... syntax displaynames.resolved
options() return value an object with properties reflecting the locale and formatting
options computed during the construction of the given displaynames object.
... description the object returned by resolved
options() has the following properties: locale the bcp 47 language tag for the locale actually used.
...And 4 more matches
Intl.PluralRules.prototype.resolvedOptions() - JavaScript
the intl.pluralrules.prototype.resolved
options() method returns a new object with properties reflecting the locale and plural formatting
options computed during initialization of this pluralrules object.
... syntax pluralrule.resolved
options() return value a new object with properties reflecting the locale and plural formatting
options computed during the initialization of the given pluralrules object.
... only one of the following two groups of properties is included: minimumintegerdigits minimumfractiondigits maximumfractiondigits the values provided for these properties in the
options argument or filled in as defaults.
...And 4 more matches
JS_SetOptions
enables and disables
options on a jscontext, replacing all previously set
options.
... syntax uint32 js_set
options(jscontext *cx, uint32
options); name type description cx jscontext * a context on which to set
options.
...
options uint32 the new set of
options.
...And 3 more matches
nsINavHistoryQueryOptions
toolkit/components/places/nsinavhistoryservice.idlscriptable represents the global
options for executing a query.
... 1.0 66 introduced gecko 1.9 inherits from: nsisupports last changed in gecko 13.0 (firefox 13.0 / thunderbird 13.0 / seamonkey 2.10) method overview nsinavhistoryquery
options clone(); attributes attribute type description apply
optionstocontainers boolean if true, the query
options are only applied to the containers.
... asyncenabled boolean when true, the root container node generated by these
options and all of its descendant containers are opened asynchronously if they support doing so.
...And 3 more matches
OPTIONS - HTTP
the http
options method requests permitted communication
options for a given url or server.
... request has body no successful response has body yes safe yes idempotent yes cacheable no allowed in html forms no syntax
options /index.html http/1.1
options * http/1.1 examples identifying allowed request methods to find out which request methods a server supports, one can use the curl command-line program to issue an
options request: curl -x
options https://example.org -i the response then contains an allow header that holds the allowed methods: http/1.1 204 no content allow:
options, get, head, post cache-control: max-age=604800 date: thu, 13 oct 2016 11:45:00 gmt server: eos (lax004/2813) preflighted requests...
... in cors in cors, a preflight request is sent with the
options method so that the server can respond if it is acceptable to send the request.
...And 3 more matches
Intl.DateTimeFormat.prototype.resolvedOptions() - JavaScript
the intl.datetimeformat.prototype.resolved
options() method returns a new object with properties reflecting the locale and date and time formatting
options computed during initialization of this datetimeformat object.
... syntax datetimeformat.resolved
options() return value a new object with properties reflecting the locale and date and time formatting
options computed during the initialization of the given datetimeformat object.
... timezone the value provided for this property in the
options argument; undefined (representing the runtime's default time zone) if none was provided.
...And 3 more matches
Intl.ListFormat.prototype.resolvedOptions() - JavaScript
the intl.listformat.prototype.resolved
options() method returns a new object with properties reflecting the locale and style formatting
options computed during the construction of the current listformat object.
... syntax listformat.resolved
options() return value an object with properties reflecting the locale and formatting
options computed during the construction of the given listformat object.
... description the object returned by resolved
options() has the following properties: locale the bcp 47 language tag for the locale actually used.
...And 3 more matches
JS_GetOptions
get the currently enabled jscontext
options.
... syntax uint32 js_get
options(jscontext *cx); name type description cx jscontext * the context from which to read
options.
... description js_get
options retrieves the option flags of a given js context cx.
...And 2 more matches
AudioNodeOptions - Web APIs
the audionode
options dictionary of the web audio api specifies
options that can be used when creating new audionode objects.
... audionode
options is inherited from by the option objects of the different types of audio node constructors.
... syntax var audionode
options = { "channelcount" : 2, "channelcountmode" : "max", "channelinterpretation" : "discrete" } properties channelcount optional represents an integer used to determine how many channels are used when up-mixing and down-mixing connections to any inputs to the node.
...And 2 more matches
AudioWorkletNodeOptions - Web APIs
the audioworkletnode
options dictionary of the web audio api is used to specify configuration
options when constructing a new audioworkletnode object for custom audio processing.
...during internal instantiation of the underlying audioworkletprocessor, the the structured clone algorithm is applied to the
options object and the result is passed into audioworkletprocessor's constructor.
... processor
options optional any additional data that can be used for custom initialization of the underlying audioworkletprocessor.
...And 2 more matches
HTMLOptionsCollection - Web APIs
the html
optionscollection interface represents a collection of <option> html elements (in document order) and offers methods and properties for selecting from the list as well as optionally altering its items.
... this object is returned only by the
options property of select.
...fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="71" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlcollection</text></a><polyline points="141,25 151,20 151,30 141,25" stroke="#d4dde4" fill="none"/><line x1="151" y1="25" x2="181" y2="25" stroke="#d4dde4"/><a xlink:href="/docs/web/api/html
optionscollection" target="_top"><rect x="181" y="1" width="210" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="286" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">html
optionscollection</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties ...
...And 2 more matches
PositionOptions - Web APIs
the position
options dictionary describes an object containing option properties to pass as a parameter of geolocation.getcurrentposition() and geolocation.watchposition().
... properties position
options.enablehighaccuracy secure context is a boolean that indicates the application would like to receive the best possible results.
... position
options.timeout secure context is a positive long value representing the maximum length of time (in milliseconds) the device is allowed to take in order to return a position.
...And 2 more matches
PublicKeyCredentialRequestOptions.allowCredentials - Web APIs
allowcredentials is an optional property of the publickeycredentialrequest
options dictionary which indicates the existing credentials acceptable for retrieval.
... note: publickeycredentialcreation
options.excludecredentials may be used during the creation of the credentials in order to avoid creating new credentials for an existing user with existing public key credential.
... syntax allowcredentials = publickeycredentialrequest
options.allowcredentials value an array whose elements are objects with the following properties: type a string describing type of public-key credential to be created.
...And 2 more matches
RTCAnswerOptions - Web APIs
the rtcanswer
options dictionary is used to provide optional settings when creating an sdp answer using rtcpeerconnection.createoffer() after receiving an offer from a remote peer.
... the createoffer() method's
options parameter is of this type.
... properties this dictionary inherits properties from the rtcofferanswer
options dictionary, on which it's based.
...And 2 more matches
RTCOfferAnswerOptions - Web APIs
the webrtc api's rtcofferanswer
options dictionary is used to specify
options that configure and control the process of creating webrtc offers or answers.
... it's used as the base type for the
options parameter when calling createoffer() or createanswer() on an rtcpeerconnection.
... each of createoffer() and createanswer() use rtcofferanswer
options as the base type for their
options parameter's dictionary.
...And 2 more matches
ScrollToOptions.behavior - Web APIs
the behavior property of the scrollto
options dictionary specifies whether the scrolling should animate smoothly, or happen instantly in a single jump.
... this is actually defined on the scroll
options dictionary, which is implemented by scrollto
options.
... examples in our scrollto
options example (see it live) we include a form that allows the user to enter three values — two numbers representing the left and top properties (i.e.
...And 2 more matches
Intl.Collator.prototype.resolvedOptions() - JavaScript
the intl.collator.prototype.resolved
options() method returns a new object with properties reflecting the locale and collation
options computed during initialization of this collator object.
... syntax collator.resolved
options() return value a new object with properties reflecting the locale and collation
options computed during the initialization of the given collator object.
... usage sensitivity ignorepunctuation the values provided for these properties in the
options argument or filled in as defaults.
...And 2 more matches
AudioContextOptions.sampleRate - Web APIs
the audiocontext
options dictionary (used when instantiating an audiocontext) may contain a property named samplerate, which indicates the sample rate to use for the new context.
... syntax audiocontext
options.samplerate = 44100; var samplerate = audiocontext
options.samplerate; value the desired sample rate for the audiocontext, specified in samples per second.
... if the samplerate property is not included in the
options, or the
options are not specified when creating the audio context, the new context's output device's preferred sample rate is used by default.
... specifications specification status comment web audio apithe definition of 'audiocontext
options.samplerate' in that specification.
HTMLSelectElement.options - Web APIs
the htmlselectelement.
options read-only property returns a html
optionscollection of the <option> elements contained by the <select> element.
... syntax var
options = select.
options; return value a html
optionscollection containing the <option> elements contained by the <select> element.
... example html <label for="test">label</label> <select id="test"> <option value="1">option 1</option> <option value="2">option 2</option> </select> javascript window.addeventlistener("domcontentloaded", function() { const select = document.getelementbyid("test"); for(var i = 0; i < select.
options.length; i++) { console.log(select.
options[i].label); // "option 1" and "option 2" } }); specifications specification status comment html living standardthe definition of '
options' in that specification.
... living standard no change html5the definition of '
options' in that specification.
MediaStreamTrackAudioSourceOptions.mediaStreamTrack - Web APIs
the mediastreamtrackaudiosource
options dictionary's mediastreamtrack property must contain a reference to the mediastreamtrack from which the mediastreamtrackaudiosourcenode being created using the mediastreamtrackaudiosourcenode() constructor.
... syntax mediastreamtrackaudiosource
options = { mediastreamtrack: audiosourcetrack; } mediastreamtrackaudiosource
options.mediastreamtrack = audiosourcetrack; value a mediastreamtrack from which the audio output of the new mediastreamtrackaudiosourcenode will be taken.
... let audioctx = new (window.audiocontext || window.webkitaudiocontext)(); if (navigator.mediadevices.getusermedia) { navigator.mediadevices.getusermedia ( { audio: true, video: false }).then(function(stream) { let
options = { mediastreamtrack: stream.getaudiotracks()[0]; } let source = new mediastreamtrackaudiosourcenode(audioctx,
options); source.connect(audioctx.destination); }).catch(function(err) { console.log('the following gum error occured: ' + err); }); } else { console.log('new getusermedia not supported on your browser!'); } specifications specificati...
...on status comment web audio apithe definition of 'mediastreamtrackaudiosource
options.mediastream' in that specification.
PublicKeyCredentialCreationOptions.extensions - Web APIs
extensions, an optional property of the publickeycredentialcreation
options dictionary, is an object providing the client extensions and their input values.
... note: an analogous option exists for the fetching operation (navigators.credentials.get()), see publickeycredentialrequest
options.extensions.
... syntax extensions = publickeycredentialcreation
options.extensions value an object with various keys and values.
...as of june 2020, only appid (used during creation with publickeycredentialrequest
options.extensions) is supported by chrome and edge.
PublicKeyCredentialRequestOptions.extensions - Web APIs
extensions, an optional property of the publickeycredentialrequest
options dictionary, is an object providing the client extensions and their input values.
... note: an analogous option exists for the creation operation (navigators.credentials.create()), see publickeycredentialcreation
options.extensions.
... syntax extensions = publickeycredentialrequest
options.extensions value an object with various keys and values.
... examples var
options = { extensions: { uvm: true, loc: false, txauthsimple: "could you please verify yourself?" }, challenge: new uint8array([/* bytes sent from the server */]) }; navigator.credentials.get({ "publickey":
options }) .then(function (credentialinfoassertion) { // send assertion response back to the server // to proceed with the control of the credential }).catch(function (...
PublicKeyCredentialRequestOptions.rpId - Web APIs
the rpid property, of the publickeycredentialrequest
options dictionary, is an optional property which indicates the relying party's identifier as a usvstring.
... note: an analogous option exists for the creation operation (navigators.credentials.create()), see the id property of publickeycredentialcreation
options.rp.
... syntax rpid = publickeycredentialrequest
options.rpid value a usvstring for the identifier of the relying party.
... examples var
options = { challenge: new uint8array([/* bytes sent from the server */]), rpid: "example.com" // will only work if the current domain // is something like foo.example.com }; navigator.credentials.get({ "publickey":
options }) .then(function (credentialinfoassertion) { // send assertion response back to the server // to proceed with the control of the credential }).catch(function (err) { console.error(err); }); specifications specification status comment web authentication: an api for accessing public key credentials level 1the definition of 'rpid' in that specification.
PublicKeyCredentialRequestOptions.timeout - Web APIs
the timeout property, of the publickeycredentialrequest
options dictionary, represents an hint, given in milliseconds, for the time the script is willing to wait for the completion of the retrieval operation.
... note: an analogous option exists for the creation operation (navigators.credentials.create()), see publickeycredentialcreation
options.timeout.
... syntax timeout = publickeycredentialrequest
options.timeout value a numerical hint, expressed in milliseconds, giving the time to wait for the creation operation to complete.
... examples var
options = { challenge: new uint8array([/* bytes sent from the server */]), timeout: 6000 // wait a minute for the fetching operation // and maybe fail if it takes longer }; navigator.credentials.get({ "publickey":
options }) .then(function (credentialinfoassertion) { // send assertion response back to the server // to proceed with the control of the credential }).catch(function (err) { console.error(err); }); specifications specification status comment web authentication: an api for accessing public key credentials level 1the definition of 'timeout' in that specification.
PublicKeyCredentialRequestOptions.userVerification - Web APIs
userverification is an optional property of the publickeycredentialrequest
options.
... note: an analogous option exists for the creation operation (navigators.credentials.create()), see the userverification property of publickeycredentialcreation
options.authenticatorselection.
... syntax userverification = publickeycredentialrequest
options.userverification value a string qualifying how the user verification should be part of the authentication process.
... examples var
options = { userverification: "preferred", challenge: new uint8array([/* bytes sent from the server */]), }; navigator.credentials.get({ "publickey":
options }) .then(function (credentialinfoassertion) { // send assertion response back to the server // to proceed with the control of the credential }).catch(function (err) { console.error(err); }); specifications specifica...
PushSubscription.options - Web APIs
the
options read-only property of the pushsubscription interface is an object containing containing the
options used to create the subscription.
... syntax var
options = pushsubscription.
options value an read-only
options object containing the following values: uservisibleonly: a boolean, indicating that the returned push subscription will only be used for messages whose effect is made visible to the user.
... specifications specification status comment push apithe definition of '
options' in that specification.
... desktopmobilechromeedgefirefoxinternet exploreroperasafariandroid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internet
optionschrome full support 42edge full support 16firefox full support 44notes full support 44notes notes extended support releases (esr) before firefox 78 esr do not support service workers and the push api.ie ...
ScrollToOptions.left - Web APIs
the left property of the scrollto
options dictionary specifies the number of pixels along the x axis to scroll the window or element.
... examples in our scrollto
options example (see it live) we include a form that allows the user to enter three values — two numbers representing the left and top properties (i.e.
... when the form is submitted, an event handler is run that puts the entered values into a scrollto
options dictionary, and then invokes the window.scrollto() method, passing the dictionary as a parameter: form.addeventlistener('submit', (e) => { e.preventdefault(); var scroll
options = { left: leftinput.value, top: topinput.value, behavior: scrollinput.checked ?
... 'smooth' : 'auto' } window.scrollto(scroll
options); }); specifications specification status comment css object model (cssom) view modulethe definition of 'left' in that specification.
ScrollToOptions.top - Web APIs
the top property of the scrollto
options dictionary specifies the number of pixels along the y axis to scroll the window or element.
... examples in our scrollto
options example (see it live) we include a form that allows the user to enter three values — two numbers representing the left and top properties (i.e.
... when the form is submitted, an event handler is run that puts the entered values into a scrollto
options dictionary, and then invokes the window.scrollto() method, passing the dictionary as a parameter: form.addeventlistener('submit', (e) => { e.preventdefault(); var scroll
options = { left: leftinput.value, top: topinput.value, behavior: scrollinput.checked ?
... 'smooth' : 'auto' } window.scrollto(scroll
options); }); specifications specification status comment css object model (cssom) view modulethe definition of 'top' in that specification.
X-Content-Type-Options - HTTP
the x-content-type-
options response http header is a marker used by the server to indicate that the mime types advertised in the content-type headers should not be changed and be followed.
... note: x-content-type-
options only apply request-blocking due to nosniff for request destinations of "script" and "style".
... header type response header forbidden header name no syntax x-content-type-
options: nosniff directives nosniff blocks a request if the request destination is of type: "style" and the mime type is not text/css, or "script" and the mime type is not a javascript mime type enables cross-origin read blocking (corb) protection for the mime-types: text/html text/plain text/json, application/json or any other type with a json extension: */*+json text/xml, application/xml or any other type with an xml extension: */*+xml (excluding image/svg+xml) specifications specification status comment ...
... fetchthe definition of 'x-content-type-
options definition' in that specification.
Intl.RelativeTimeFormat.prototype.resolvedOptions() - JavaScript
the intl.relativetimeformat.prototype.resolved
options() method returns a new object with properties reflecting the locale and relative time formatting
options computed during initialization of this relativetimeformat object.
... syntax relativetimeformat.resolved
options() return value a new object with properties reflecting the locale and number formatting
options computed during the initialization of the given relativetimeformat object.
... examples using the resolved
options method var de = new intl.relativetimeformat('de-de'); var used
options = de.resolved
options(); used
options.locale; // "de-de" used
options.style; // "long" used
options.numeric; // "always" used
options.numberingsystem; // "latn" specifications specification status comment ecmascript internationalization api (ecma-402)the definition of 'relative...
...timeformat.resolved
options()' in that specification.
AudioContextOptions.latencyHint - Web APIs
the audiocontext
options dictionary (used when instantiating an audiocontext) may contain a property named latencyhint, which indicates the preferred maximum latency in seconds for the audio context.
... syntax audiocontext
options.latencyhint = "interactive"; audiocontext
options.latencyhint = 0.2; var latencyhint = audiocontext
options.latencyhint; value the preferred maximum latency for the audiocontext.
... specifications specification status comment web audio apithe definition of 'audiocontext
options.latencyhint' in that specification.
FullscreenOptions.navigationUI - Web APIs
the fullscreen
options dictionary's navigationui property is used when calling requestfullscreen() to specify to what extent the user agent should include its standard user interface while the element is presented in full-screen mode.
... syntax let fullscreen
options = { navigationui: value }; value the value of the navigationui property must be one of the following strings.
... specifications specification status comment fullscreen apithe definition of 'fullscreen
options' in that specification.
KeyframeEffectOptions - Web APIs
the keyframeeffect
options dictionary, part of the web animations api, is used by element.animate(), keyframeeffectreadonly() and keyframeeffect() to describe timing properties for animation effects.
... specifications specification status comment web animations level 2the definition of 'keyframeeffect
options' in that specification.
... web animationsthe definition of 'keyframeeffect
options' in that specification.
MediaStreamAudioSourceOptions.mediaStream - Web APIs
the mediastreamaudiosource
options dictionary's mediastream property must specify the mediastream from which to retrieve audio data when instantiating a mediastreamaudiosourcenode using the mediastreamaudiosourcenode() constructor.
... syntax mediastreamaudiosource
options = { mediastream: audiosourcestream; } mediastreamaudiosource
options.mediastream = audiosourcestream; value a mediastream representing the stream from which to use a mediastreamtrack as the source of audio for the node.
... example specifications specification status comment web audio apithe definition of 'mediastreamaudiosource
options.mediastream' in that specification.
PublicKeyCredentialCreationOptions.timeout - Web APIs
the timeout property, of the publickeycredentialcreation
options dictionary, represents an hint, given in milliseconds, for the time the script is willing to wait for the completion of the creation operation.
... note: an analogous option exists for the fetching operation (navigators.credentials.get()), see publickeycredentialrequest
options.timeout.
... syntax timeout = publickeycredentialcreation
options.timeout value a numerical hint, expressed in milliseconds, giving the time to wait for the creation operation to complete.
PublicKeyCredentialRequestOptions.challenge - Web APIs
the challenge property of the publickeycredentialrequest
options dictionary is a buffersource used as a cryptographic challenge.
... syntax challenge = publickeycredentialrequest
options.challenge value a buffersource which is at least 16 bytes long.
... examples var
options = { challenge: new uint8array([/* bytes sent from the server */]) }; navigator.credentials.get({ "publickey":
options }) .then(function (credentialinfoassertion) { // send assertion response back to the server // to proceed with the control of the credential }).catch(function (err) { console.error(err); }); specifications specification status comment web authentication: an api for accessing public key credentials level 1the definition of 'challenge' in that specification.
RTCOfferOptions.iceRestart - Web APIs
the icerestart property of the rtcoffer
options dictionary is a boolean value which, when true, tells the rtcpeerconnection to start ice renegotiation.
... syntax var
options = { icerestart: trueorfalse }; value a boolean value indicating whether or not the rtcpeerconnection should generate new values for the connection's ice-ufrag and ice-pwd values, which will trigger ice renegotiation on the next message sent to the remote peer.
... specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcoffer
options.icerestart' in that specification.
RTCOfferOptions - Web APIs
the rtcoffer
options dictionary is used to provide optional settings when creating an rtcpeerconnection offer with the createoffer() method.
... properties this dictionary also inherits properties from the rtcofferanswer
options dictionary, on which it's based.
... specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcoffer
options' in that specification.
nsIDOMGeoPositionOptions
the nsidomgeoposition
options interface is used to specify
options for geolocation operations.
... dom/interfaces/geolocation/nsidomgeoposition
options.idlscriptable please add a summary to this article.
AudioContextOptions - Web APIs
the audiocontext
options dictionary is used to specify configuration
options when constructing a new audiocontext object to represent a graph of web audio nodes.
... let musiccontext = new audiocontext({ latencyhint: "playback", samplerate: 48000 }); specifications specification status comment web audio apithe definition of 'audiocontext
options' in that specification.
MediaStreamAudioSourceOptions - Web APIs
the mediastreamaudiosource
options dictionary provides configuration
options used when creating a mediastreamaudiosourcenode using its constructor.
... specifications specification status comment web audio apithe definition of 'mediastreamaudiosource
options' in that specification.
MediaStreamTrackAudioSourceOptions - Web APIs
the mediastreamtrackaudiosource
options dictionary is used when specifying
options to the mediastreamtrackaudiosourcenode() constructor.
... specifications specification status comment web audio apithe definition of 'mediastreamtrackaudiosource
options' in that specification.
PositionOptions.enableHighAccuracy - Web APIs
the position
options.enablehighaccuracy property is a boolean that indicates the application would like to receive the best possible results.
... syntax position
options.enablehighaccuracy = booleanvalue specifications specification status comment geolocation apithe definition of 'position
options.enablehighaccuracy' in that specification.
PositionOptions.maximumAge - Web APIs
the position
options.maximumage property is a positive long value indicating the maximum age in milliseconds of a possible cached position that is acceptable to return.
... syntax position
options.maximumage = timelength specifications specification status comment geolocation apithe definition of 'position
options.maximumage' in that specification.
PositionOptions.timeout - Web APIs
the position
options.timeout property is a positive long value representing the maximum length of time (in milliseconds) the device is allowed to take in order to return a position.
... syntax position
options.timeout = timelength specifications specification status comment geolocation apithe definition of 'position
options.timeout' in that specification.
PublicKeyCredentialCreationOptions.attestation - Web APIs
attestation is an optional property of the publickeycredentialcreation
options dictionary.
... syntax attestation = publickeycredentialcreation
options.attestation value a string which may be "none": the relying party is not interested in this attestation.
PublicKeyCredentialCreationOptions.authenticatorSelection - Web APIs
authenticatorselection, an optional property of the publickeycredentialcreation
options dictionary, is an object giving criteria to filter out the authenticators to be used for the creation operation.
... syntax authenticatorselection = publickeycredentialcreation
options.authenticatorselection value an object with the following properties: authenticatorattachmentoptional a string which is either "platform" or "cross-platform".
PublicKeyCredentialCreationOptions.challenge - Web APIs
the challenge property of the publickeycredentialcreation
options dictionary is a buffersource used as a cryptographic challenge.
... syntax challenge = publickeycredentialcreation
options.challenge value a buffersource which is at least 16 bytes long.
PublicKeyCredentialCreationOptions.excludeCredentials - Web APIs
excludecredentials, an optional property of the publickeycredentialcreation
options dictionary, is an array whose elements are descriptors for the public keys already existing for a given user.
... syntax excludecredentials = publickeycredentialcreation
options.excludecredentials value an array whose elements are objects with the following properties: type a string describing type of public-key credential to be created.
PublicKeyCredentialCreationOptions.pubKeyCredParams - Web APIs
the pubkeycredparams property of the publickeycredentialcreation
options dictionary is an array whose elements are objects describing the desired features of the credential to be created.
... syntax pubkeycredparams = publickeycredentialcreation
options.pubkeycredparams value an array whose elements are objects with the following properties: type a string describing type of public-key credential to be created.
PublicKeyCredentialCreationOptions.rp - Web APIs
the rp property of the publickeycredentialcreation
options dictionary is an object describing the relying party which requested the credential creation (via navigator.credentials.create()).
... syntax relyingpartyobj = publickeycredentialcreation
options.rp properties icon optional an url as a usvstring value which points to an image resource which can be the logo/icon of the relying party.
PublicKeyCredentialCreationOptions.user - Web APIs
the user property of the publickeycredentialcreation
options dictionary is an object describing the user account for which the credentials are generated (via navigator.credentials.create()).
... syntax useraccount = publickeycredentialcreation
options.user properties displayname a domstring which is human readable and intended for display.
RTCOfferAnswerOptions.voiceActivityDetection - Web APIs
the voiceactivitydetection property of the rtcofferanswer
options dictionary is used to specify whether or not to use automatic voice detection for the audio on an rtcpeerconnection.
... syntax var
options = { voiceactivitydetection: trueorfalse }; value a boolean value indicating whether or not the connection should use voice detection once running.
ReportingObserverOptions - Web APIs
the reportingobserver
options dictionary of the reporting api allows
options to be set in the constructor when creating a reportingobserver.
... examples let
options = { types: ['deprecation'], buffered: true } let observer = new reportingobserver(function(reports, observer) { reportbtn.onclick = () => displayreports(reports); },
options); specifications specification status comment reporting apithe definition of 'reportingobserver
options' in that specification.
javascript.options.showInConsole
the preference javascript.
options.showinconsole controls whether errors or warnings in chrome code are shown in the error console.
NSS Config Options
nss config
options format the specified ciphers will be allowed by policy, but an application may allow more by policy explicitly: config="allow=curve1:curve2:hash1:hash2:rsa-1024..." only the specified hashes and curves will be allowed: config="disallow=all allow=sha1:sha256:secp256r1:secp384r1" only the specified hashes and curves will be allowed, and rsa keys of 2048 or more will be accepted, and dh key exchange with 1024-bit primes or more: config="disallow=all allow=sha1:sha256:secp256r1:secp384r1:min-rsa=2048:min-dh=1024" a policy that enables the aes ciphersuites and the secp256/384 curves: config="allow=aes128-cbc:aes128-gcm::hmac-sha1:sha1:sha256:sha384:rsa:ecdhe-rsa:secp256r1:secp384r1" turn off md5 config="disallow=md5" turn off md5 and sha1 only for ssl config=...
FullscreenOptions - Web APIs
the fullscreen
options dictionary is used to provide configuration
options when calling requestfullscreen() on an element to place that element into full-screen mode.
Index - Web APIs
137 audiocontext
options api, audio, audiocontext, audiocontext
options, configuration, context, dictionary, interface,
options, reference, settings, web audio api, samplerate the audiocontext
options dictionary is used to specify configuration
options when constructing a new audiocontext object to represent a graph of web audio nodes.
... 138 audiocontext
options.latencyhint api, audio, audio context, audiocontext, audiocontext
options, context,
options, property, reference, web audio, web audio api, latency, latencyhint the audiocontext
options dictionary (used when instantiating an audiocontext) may contain a property named latencyhint, which indicates the preferred maximum latency in seconds for the audio context.
... 139 audiocontext
options.samplerate api, audio, audiocontext, audiocontext
options, dictionary, interface, media,
options, reference, sample rate, web audio, web audio api, samplerate the audiocontext
options dictionary (used when instantiating an audiocontext) may contain a property named samplerate, which indicates the sample rate to use for the new context.
...And 75 more matches
Index
because nss is a cross-platform library that builds on many different platforms and has many
options, it may be complex to build.
... 163 nss config
options no summary!
... synopsis cmsutil [
options] arguments description the cmsutil command-line uses the s/mime toolkit to perform basic operations, such as encryption and decryption, on cryptographic message syntax (cms) messages.
...And 45 more matches
OS.File for the main thread
append); valopen.write(txtencoded).then(valwrite => { console.log('valwrite:', valwrite); valopen.close().then(valclose => { console.log('valclose:', valclose); console.log('successfully appended'); }); }); }); global object os.file method overview promise<file> open(in string path, [optional] in object mode, [optional] in object
options); promise<object> openunique(in string path, [optional] in object
options); promise<void> copy(in string sourcepath, in string destpath, [optional] in object
options); promise<bool> exists(in string path); promise<string> getcurrentdirectory(); promise<void> makedir(in string path, [optional] in object
options); promise<void> move(in string so...
...urcepath, in string destpath); promise<uint8array> read(in string path, [optional] in object
options); promise<void> remove(in string path, [optional] in object
options); promise<void> removeemptydir(in string path, [optional] in object
options); promise<void> removedir(in string path, [optional] in object
options); promise<void> setcurrentdirectory(in string path); promise<void> setdates(in string path, in date|number accessdate, in date|number modificationdate); promise<void> setpermissions(in string path, in object
options ); promise<file.info> stat(in string path, [optional] in object
options); promise<void> unixsymlink(in string targetpath, in string createpath); promise<void> writeatomic(in string pat...
...h, in arrayview data, in object
options); methods os.file.open() use method os.file.open() to open a file.
...And 36 more matches
sslfnc.html
nss_init nss_initreadwrite nss_nodb_init ssl_
optionsetdefault ssl_optiongetdefault ssl_cipherprefsetdefault ssl_cipherprefgetdefault ssl_clearsessioncache ssl_configserversessionidcache ssl_configmpserversidcache ssl_inheritmpserversidcache nss_init sets up configuration files and performs other tasks required to run network security services.
... ssl_
optionsetdefault changes the default value of a specified ssl option for all subsequently opened sockets as long as the current application program is running.
... ssl_
optionsetdefault replaces the deprecated function ssl_enabledefault.
...And 27 more matches
cfx - Archive of obsolete content
cfx usage is: cfx [
options] command [command-specific
options] "
options" are global
options applicable to the tool itself or to all commands (for example --help).
... cfx supports the following global
options: -h, --help - show a help message and exit -v, --verbose - enable lots of output "command-specific
options" are documented alongside the commands.
...called with no
options it looks for a file called package.json in the current directory, loads the corresponding add-on, and runs it under the version of firefox it finds in the platform's default install path.
...And 24 more matches
jspage - Archive of obsolete content
.erase(a);}return this;},removeevents:function(c){var d;if($type(c)=="object"){for(d in c){this.removeevent(d,c[d]); }return this;}if(c){c=events.removeon(c);}for(d in this.$events){if(c&&c!=d){continue;}var b=this.$events[d];for(var a=b.length;a--;a){this.removeevent(d,b[a]); }}return this;}});events.removeon=function(a){return a.replace(/^on([a-z])/,function(b,c){return c.tolowercase();});};var
options=new class({set
options:function(){this.
options=$merge.run([this.
options].extend(arguments)); if(!this.addevent){return this;}for(var a in this.
options){if($type(this.
options[a])!="function"||!(/^on[a-z]/).test(a)){continue;}this.addevent(a,this.
options[a]); delete this.
options[a];}return this;}});var element=new native({name:"element",legacy:window.element,initialize:function(a,b){var c=element.co...
...{return j(this,"nextsibling","firstchild",l,true,m);},getwindow:function(){return this.ownerdocument.window;},getdocument:function(){return this.ownerdocument; },getelementbyid:function(o,n){var m=this.ownerdocument.getelementbyid(o);if(!m){return null;}for(var l=m.parentnode;l!=this;l=l.parentnode){if(!l){return null; }}return document.id(m,n);},getselected:function(){return new elements($a(this.
options).filter(function(l){return l.selected;}));},getcomputedstyle:function(m){if(this.currentstyle){return this.currentstyle[m.camelcase()]; }var l=this.getdocument().defaultview.getcomputedstyle(this,null);return(l)?l.getpropertyvalue([m.hyphenate()]):null;},toquerystring:function(){var l=[]; this.getelements("input, select, textarea",true).each(function(m){if(!m.name||m.disabled||m.type=="submit"||m...
...; }):((m.type=="radio"||m.type=="checkbox")&&!m.checked)?null:m.value;$splat(n).each(function(o){if(typeof o!="undefined"){l.push(m.name+"="+encodeuricomponent(o)); }});});return l.join("&");},clone:function(o,l){o=o!==false;var r=this.clonenode(o);var n=function(v,u){if(!l){v.removeattribute("id");}if(browser.engine.trident){v.clearattributes(); v.mergeattributes(u);v.removeattribute("uid");if(v.
options){var w=v.
options,s=u.
options;for(var t=w.length;t--;){w[t].selected=s[t].selected;}}}var x=i[u.tagname.tolowercase()]; if(x&&u[x]){v[x]=u[x];}};if(o){var p=r.getelementsbytagname("*"),q=this.getelementsbytagname("*");for(var m=p.length;m--;){n(p[m],q[m]);}}n(r,this);return document.id(r); },destroy:function(){element.empty(this);element.dispose(this);g(this,true);return null;},empty:function(){$a...
...And 18 more matches
How to build custom form controls - Learn web development
finally, let's define how the control's
options will behave: when the control is opened, the selected option is highlighted when the mouse is over an option, the option is highlighted and the previously highlighted option is returned to its normal state for the purposes of our example, we'll stop with that; however, if you're a careful reader, you'll notice that some behaviors are missing.
...on the other hand, if you consider that the active state and the open state overlap a bit, the value may change but the option will definitely not be highlighted accordingly, once again because we did not define any keyboard interactions over
options when the control is in its opened state (we have only defined what should happen when the control is opened, but nothing after that).
...--> <div class="select" tabindex="0"> <!-- this container will be used to display the current value of the control --> <span class="value">cherry</span> <!-- this container will contain all the
options available for our control.
...And 15 more matches
Shell global objects
options([option ...]) get or toggle javascript
options.
... evaluate(code[,
options]) evaluate code as though it were the contents of a file.
...
options is an optional object that may have these properties: isrunonce use the isrunonce compiler option (default: false) noscriptrval use the no-script-rval compiler option (default: false) filename filename for error messages and debug info linenumber starting line number for error messages and debug info columnnumber starting column number for error messages and debug info global global in which to execute the code newcontext if true, create and use a new cx (default: false) catchtermination if true, catch termination (failure without an exception value, as for slow scripts or out-of-memory) and return 'terminated' element if present with value v, convert v to an object o and mark the source as being attached to the dom element o.
...And 15 more matches
Querying Places
executing a query places queries have several basic parts: the query object: nsinavhistoryquery, holds the search parameters the query
options: nsinavhistoryquery
options, allows configuration of the search result the history service: nsinavhistoryservice, executes the query the first first step is to create the query and
options, and fill them with the parameters you want.
... use nsinavhistoryservice.getnewquery() and nsinavhistoryservice.getnewquery
options() to retrieve empty objects.
... the defaults for these objects will result in a query that returns all of your browser history in a flat list: chromeutils.definemodulegetter(this, "placesutils", "resource://gre/modules/placesutils.jsm"); // no query
options set will get all history, sorted in database order, // which is nsinavhistoryquery
options.sort_by_none.
...And 14 more matches
EventTarget.addEventListener() - Web APIs
syntax target.addeventlistener(type, listener [,
options]); target.addeventlistener(type, listener [, usecapture]); target.addeventlistener(type, listener [, usecapture, wantsuntrusted ]); // gecko/mozilla only parameters type a case-sensitive string representing the event type to listen for.
...
options optional an
options object specifies characteristics about the event listener.
... the available
options are: capture a boolean indicating that events of this type will be dispatched to the registered listener before being dispatched to any eventtarget beneath it in the dom tree.
...And 14 more matches
ARIA: listbox role - Accessibility
associated aria roles, states, and properties associated roles option one or more nested
options are required.
... all selected
options have aria-selected set to true.
... all
options that are not selected have aria-selected set to false.
...And 14 more matches
nsINavHistoryService
void markpageasfollowedlink(in nsiuri auri); void markpageastyped(in nsiuri auri); boolean canadduri(in nsiuri auri); long long addvisit(in nsiuri auri, in prtime atime, in nsiuri areferringuri, in long atransitiontype, in boolean aisredirect, in long long asessionid); obsolete since gecko 22.0 nsinavhistoryquery getnewquery(); nsinavhistoryquery
options getnewquery
options(); nsinavhistoryresult executequery(in nsinavhistoryquery aquery, in nsinavhistoryquery
options options); nsinavhistoryresult executequeries([array,size_is(aquerycount)] in nsinavhistoryquery aqueries, in unsigned long aquerycount, in nsinavhistoryquery
options options); void querystringtoqueries(in autf8string aquerystring, [array, size_is(aresultcount...
...)] out nsinavhistoryquery aqueries, out unsigned long aresultcount, out nsinavhistoryquery
options options); autf8string queriestoquerystring([array, size_is(aquerycount)] in nsinavhistoryquery aqueries, in unsigned long aquerycount, in nsinavhistoryquery
options options); void addobserver(in nsinavhistoryobserver observer, in boolean ownsweak); void removeobserver(in nsinavhistoryobserver observer); void runinbatchmode(in nsinavhistorybatchcallback acallback, in nsisupports aclosure); void importhistory(in nsifile file); astring getcharsetforuri(in nsiuri auri); astring setcharsetforuri(in nsiuri auri, in astring acharset); attributes attribute type description hashistoryentries boolean true if the...
... getnewquery
options() this method returns a new
options object that you can pass to executequery/ies methods after setting the desired
options.
...And 13 more matches
passwords - Archive of obsolete content
e code like this: http/1.0 401 authorization required server: apache/1.3.27 www-authenticate: basic realm="exampleco login" the corresponding values for the credential (excluding username and password) should be: url: "http://www.example.com" realm: "exampleco login" oncomplete and onerror this api is explicitly asynchronous, so all its functions take two callback functions as additional
options: oncomplete and onerror.
...because the other functions don't return a value in case of success their oncomplete
options are optional.
... globals functions search(
options) this function is used to retrieve a credential, or a list of credentials, stored in the password manager.
...And 12 more matches
/loader - Archive of obsolete content
instantiation the loader module provides a loader() function that may be used to instantiate new loader instances: let loader = loader(
options); configuration loader() may be provided with a set of configuration
options: paths: describes where the loader should find the modules it is asked to load.
...this is provided by a mandatory
options.paths hash that represents the mapping between module id prefixes and locations.
... all together all of these
options can be combined to configure the loader for a specific use case.
...And 12 more matches
places/bookmarks - Archive of obsolete content
console.log(saves[0].title); // "ran" console.log(saves[2].group.title); // "guitars" }); searching for bookmarks bookmarks can be queried with the search() function, which accepts a query object or an array of query objects, as well as a query
options object.
...the second query's properties // are and'd together, so results that are in the platform's unsorted // bookmarks folder, and are also tagged with 'mozilla', get returned // as well in this query }); globals constructors bookmark(
options) creates an unsaved bookmark instance.
... parameters
options : object required
options: name type title string the title for the bookmark.
...And 12 more matches
Creating XULRunner Apps with the Mozilla Build System - Archive of obsolete content
here's a sample .mozconfig for building xulrunner and mccoy: #
options for client.mk.
... mk_add_
options moz_build_projects="xulrunner mccoy" mk_add_
options moz_objdir=@topsrcdir@/../mccoybase # global
options ac_add_
options --enable-debug ac_add_
options --disable-optimize # xulrunner
options ac_add_app_
options xulrunner --enable-application=xulrunner # mccoy
options ac_add_app_
options mccoy --enable-application=mccoy ac_add_app_
options mccoy --with-libxul-sdk=../xulrunner/dist the first section tells mozilla what to build and where to put the resulting object files.
...the second section contains general
options for your build.
...And 11 more matches
panel - Archive of obsolete content
you can specify one or more content scripts to load into a panel using the contentscript or contentscriptfile
options to the panel() constructor.
...an html file in your data directory, you can style it by embedding css directly in the html file or by referencing a css file stored under data: <!doctype html> <html> <head> <link href="panel-style.css" type="text/css" rel="stylesheet"> </head> <body> my panel content </body> </html> from firefox 31 onwards, you can style panel content using the contentstyle or contentstylefile
options.
... you can use these
options even if the panel content is not packaged along with the add-on: var mypanel = require("sdk/panel").panel({ contenturl: "https://en.wikipedia.org/w/index.php?title=jetpack&useformat=mobile", contentstyle: "body { border: 3px solid blue; }" }); mypanel.show(); var self = require("sdk/self"); var mypanel = require("sdk/panel").panel({ contenturl: "https://en.wikipedia.org/w/index.php?title=jetpack&useformat=mobile", contentstylefile: self.data.url("panel-style.css") }); mypanel.show(); private browsing if your add-on has not opted into private browsing, and it calls panel.show() when the currently active window is a private window, then the panel will not be shown.
...And 10 more matches
DMD
desktop firefox (linux) build build firefox with these
options: ac_add_
options --enable-dmd if building via try server, modify browser/config/mozconfigs/linux64/common-opt or a similar file before pushing.
... desktop firefox (mac) build build with these
options: ac_add_
options --enable-dmd if building via try server, modify browser/config/mozconfigs/macosx64/common-opt or a similar file before pushing.
... desktop firefox (windows) build build with these
options: ac_add_
options --enable-dmd if building via try server, modify browser/config/mozconfigs/win32/common-opt.
...And 10 more matches
imgIEncoder
1.0 66 introduced gecko 1.8 inherits from: nsiasyncinputstream last changed in gecko 1.9 (firefox 3) method overview void addimageframe( [array, size_is(length), const] in pruint8 data, in unsigned long length, in pruint32 width, in pruint32 height, in pruint32 stride, in pruint32 frameformat, in astring frame
options); void encodeclipboardimage(in nsiclipboardimage aclipboardimage, out nsifile aimagefile); obsolete since gecko 1.9 void endimageencode(); void initfromdata([array, size_is(length), const] in pruint8 data, in unsigned long length, in pruint32 width, in pruint32 height, in pruint32 stride, in pruint32 inputformat, in astring output
options); void startimageencode(in pruint32 width, in pr...
...uint32 height, in pruint32 inputformat, in astring output
options); constants possible values for input format (note that not all image formats support saving alpha channels): constant value description input_format_rgb 0 input is rgb each pixel is represented by three bytes: r, g, and b (in that order, regardless of host endianness) input_format_rgba 1 input is rgb each pixel is represented by four bytes: r, g, and b (in that order, regardless of host endianness).
...ed (for example 50% transparent red is 0xff000080) input_format_hostargb 2 input is host-endian argb: on big-endian machines each pixel is therefore argb, and for little-endian machiens (intel) each pixel is bgra (this is used by canvas to match it's internal representation) pre-multiplied alpha is used (that is, 50% transparent red is 0x80800000, not 0x80ff0000) possible values for output
options.
...And 10 more matches
NSS tools : certutil
name certutil — manage keys and certificate in both nss databases and other nss tokens synopsis certutil [
options] [[arguments]] description the certificate database tool, certutil, is a command-line utility that can create and modify certificate and key databases.
...
options and arguments running certutil always requires one and only one command option to specify the type of certificate operation.
...the command option -h will list all the command
options available and their relevant arguments.
...And 9 more matches
Using the Screen Capture API - Web APIs
starting screen capture: async/await style async function startcapture(displaymedia
options) { let capturestream = null; try { capturestream = await navigator.mediadevices.getdisplaymedia(displaymedia
options); } catch(err) { console.error("error: " + err); } return capturestream; } you can write this code either using an asynchronous function and the await operator, as shown above, or using the promise directly, as seen below.
... starting screen capture: promise style function startcapture(displaymedia
options) { let capturestream = null; return navigator.mediadevices.getdisplaymedia(displaymedia
options) .catch(err => { console.error("error:" + err); return null; }); } either way, the user agent responds by presenting a user interface that prompts the user to choose the screen area to share.
... see
options and constraints, below, for more on both how to specify the type of surface you want as well as other ways to adjust the resulting stream.
...And 9 more matches
Mobile accessibility - Learn web development
the former provides global
options relating to the device as a whole, and the latter provides
options relating just to the current app/screen you are in.
... swipe left and right to cycle between the different
options.
... for details on all the
options available under the global and local context menus, see use global and local context menus.
...And 8 more matches
<select>: The HTML Select element - HTML: Hypertext Markup Language
the html <select> element represents a control that provides a menu of
options: the source for this interactive example is stored in a github repository.
... the <select> element has some unique attributes you can use to control it, such as multiple to specify whether multiple
options can be selected, and size to specify how many
options should be shown at once.
... you can further nest <option> elements inside <optgroup> elements to create separate groups of
options inside the dropdown.
...And 8 more matches
Command line crash course - Learn web development
the next images show the command prompts available in windows — there’s a good range of
options from the "cmd" program to "powershell" — which can be run from the start menu by typing the program name.
... introducing command
options most terminal commands have
options — these are modifiers that you add onto the end of a command, which make it behave in a slightly different way.
... below is a screenshot with a “vanilla” macos terminal at the top, and a customised terminal with some extra icons and colors to keep it looking lively — both showing the results of running ls -l: note: to find out exactly what
options each command has available, you can look at its man page.
...And 7 more matches
certutil
synopsis certutil [
options] arguments description the certificate database tool, certutil, is a command-line utility that can create and modify certificate and key database files.
...
options and arguments running certutil always requires one (and only one) option to specify the type of certificate operation.
...
options options specify an action and are uppercase.
...And 7 more matches
nsIDOMMozNetworkStatsManager
follows, for example: if ("moznetworkstats" in navigator) { /* networkstats is available */ } else { alert("i'm sorry, but networkstats services are not supported."); } method overview nsidomdomrequest getsamples(in nsisupports network, in jsval start, in jsval end, [optional] in jsval
options /* networkstatsget
options */); nsidomdomrequest addalarm(in nsisupports network, in long threshold, [optional] in jsval
options /* networkstatsalarm
options */); nsidomdomrequest getallalarms([optional] in nsisupports network); nsidomdomrequest removealarms([optional] in long alarmid); nsidomdomrequest ...
... nsidomdomrequest getsamples(in nsisupports network, in jsval start, in jsval end, [optional] in jsval
options /* networkstatsget
options */); parameters network the origin of the data.
...
options optional filtering
options.
...And 7 more matches
Bluetooth.requestDevice() - Web APIs
the bluetooth.requestdevice() method of the bluetooth interface returns a promise to a bluetoothdevice object with the specified
options.
... syntax bluetooth.requestdevice([
options]) .then(function(bluetoothdevice) { ...
... parameters
options optional an object that sets
options for the device request.
...And 7 more matches
NSS tools : crlutil
synopsis crlutil [
options] [[arguments]] status this documentation is still work in progress.
... to run the certificate revocation list management tool, type the command crlutil option [arguments] where
options and arguments are combinations of the
options and arguments listed in the following section.
...to see a usage string, issue the command without
options, or with the -h option.
...And 6 more matches
NSS tools : crlutil
synopsis crlutil [
options] arguments description the certificate revocation list (crl) management tool, crlutil, is a command-line utility that can list, generate, modify, or delete crls within the nss security database file(s) and list, create, modify or delete certificates entries in a particular crl.
... to run the certificate revocation list management tool, type the command crlutil option [arguments] where
options and arguments are combinations of the
options and arguments listed in the following section.
...to see a usage string, issue the command without
options, or with the -h option.
...And 6 more matches
nsIDOMWindowUtils
endmousescrollevent(in astring atype, in float ax, in float ay, in long abutton, in long ascrollflags, in long adelta, in long amodifiers); obsolete since gecko 17.0 void sendwheelevent(in float ax, in float ay, in double adeltax, in double adeltay, in double adeltaz, in unsigned long adeltamode, in long amodifiers, in long alineorpagedeltax, in long alineorpagedeltay, in unsigned long a
options); void sendnativekeyevent(in long anativekeyboardlayout, in long anativekeycode, in long amodifierflags, in astring acharacters, in astring aunmodifiedcharacters); void sendnativemouseevent(in long ascreenx, in long ascreeny, in long anativemessage, in long amodifierflags, in nsidomelement aelement); nsiquerycontenteventresult sendquerycontentevent(in unsigned long a...
...location_mobile if this is specified to the aadditionalflags.obsolete since gecko 38.0 key_flag_location_joystick 0x0200 location attrubute of the sending key event by sendkeyevent() returns keyboardevent.dom_key_location_joystick if this is specified to the aadditionalflags.obsolete since gecko 38.0 wheel_event_caused_by_no_line_or_page_delta_device 0x0001 used for a
options of sendwheelevent().
... wheel_event_caused_by_pixel_only_device 0x0001 used for a
options of sendwheelevent().
...And 6 more matches
Using the CSS Painting API - Web APIs
the second parameter is the class that does all the magic, defining the context
options and what to paint to the two-dimensional canvas that will be our image.
...if set to false, all colours used on the canvas will be fully opaque */ static get context
options() { return { alpha: true }; } /* ctx is the 2d drawing context a subset of the html5 canvas api.
... */ paint(ctx) { ctx.fillstyle = 'hsla(55, 90%, 60%, 1.0)'; ctx.fillrect(0, 15, 200, 20); /* order: x, y, w, h */ } }); in this class example we have defined a single context option with the context
options() function: we returned a simple object stating alpha transparency is allowed.
...And 6 more matches
CredentialsContainer.get() - Web APIs
this method first collects all credentials in the credentialscontainer that meet the necessary criteria (defined in the
options argument).
...depending on the
options, it may display a dialog to the user and ask the user to make the selection.
... this method collects credentials by calling the "collectfromcredentialstore" method for each credential type allowed by the
options argument.
...And 6 more matches
Web APIs
abortsignal absoluteorientationsensor abstractrange abstractworker accelerometer addresserrors aescbcparams aesctrparams aesgcmparams aeskeygenparams ambientlightsensor analysernode animation animationeffect animationevent animationplaybackevent animationtimeline arraybufferview attr audiobuffer audiobuffersourcenode audioconfiguration audiocontext audiocontextlatencycategory audiocontext
options audiodestinationnode audiolistener audionode audionode
options audioparam audioparamdescriptor audioparammap audioprocessingevent audioscheduledsourcenode audiotrack audiotracklist audioworklet audioworkletglobalscope audioworkletnode audioworkletnode
options audioworkletprocessor authenticatorassertionresponse authenticatorattestationresponse authenticatorresponse b baseaudiocontext basicca...
...atedcredential fetchevent file fileentrysync fileerror fileexception filelist filereader filereadersync filerequest filesystem filesystemdirectoryentry filesystemdirectoryreader filesystementry filesystementrysync filesystemfileentry filesystemflags filesystemsync focusevent fontface fontfaceset fontfacesetloadevent formdata formdataentryvalue formdataevent fullscreen
options g gainnode gamepad gamepadbutton gamepadevent gamepadhapticactuator geolocation geolocationcoordinates geolocationposition geolocationpositionerror geometryutils gestureevent globaleventhandlers gyroscope h htmlanchorelement htmlareaelement htmlaudioelement htmlbrelement htmlbaseelement htmlbasefontelement htmlbodyelement htmlbuttonelement htmlcanvaselement htmlcollection htmlcontentele...
...mlhyperlinkelementutils htmliframeelement htmlimageelement htmlinputelement htmlisindexelement htmlkeygenelement htmllielement htmllabelelement htmllegendelement htmllinkelement htmlmapelement htmlmarqueeelement htmlmediaelement htmlmenuelement htmlmenuitemelement htmlmetaelement htmlmeterelement htmlmodelement htmlolistelement htmlobjectelement htmloptgroupelement htmloptionelement html
optionscollection htmlorforeignelement htmloutputelement htmlparagraphelement htmlparamelement htmlpictureelement htmlpreelement htmlprogresselement htmlquoteelement htmlscriptelement htmlselectelement htmlshadowelement htmlslotelement htmlsourceelement htmlspanelement htmlstyleelement htmltablecaptionelement htmltablecellelement htmltablecolelement htmltableelement htmltablerowelement htmltablesecti...
...And 6 more matches
page-mod - Archive of obsolete content
the pagemod constructor takes a number of other
options to control its behavior: contentstyle lists stylesheets to attach, supplied as strings.
... contentscript
options defines read-only values accessible to content scripts.
... these
options are documented in detail below.
...And 5 more matches
window/utils - Archive of obsolete content
parameters window : nsidomwindow returns nsiloadcontext open(uri,
options) this function is used to open top level (application) windows.
... it takes the uri of the window document as its first argument and an optional hash of
options as its second argument.
...
options : object
options for the function, with the following properties: name type parent nsidomwindow parent for the new window.
...And 5 more matches
Install Manifests - Archive of obsolete content
optionstype the type of user-interface used for displaying the
options.
... accepted values are: 1 opens
optionsurl in a dialog box 2
options are displayed inside the add-on manager 3 opens
optionsurl in a new tab (if the application supports that), or a dialog box
optionstype defaults to 1 if there is an
optionsurl included in install.rdf or 2 if there is no
optionsurl and the file
options.xul exists in the root of the add-on.
... <em:
optionstype>2</em:
optionstype>
options can be opened in a new tab since firefox 7.0a1.
...And 5 more matches
Adding preferences to an extension - Archive of obsolete content
however, we do need to add one new line to the install.rdf file: <em:
optionsurl>chrome://stockwatcher2/content/
options.xul</em:
optionsurl> this line establishes the url of the xul file that describes the
options dialog.
... window.addeventlistener("load", function(e) { stockwatcher.startup(); }, false); window.addeventlistener("unload", function(e) { stockwatcher.shutdown(); }, false); design the preference dialog now that we've written all the code, we need to build the xul file for the
options dialog.
... <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <prefwindow id="stockwatcher2-prefs" title="stockwatcher 2
options" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <prefpane id="sw2-stock-pane" label="stock settings"> <preferences> <preference id="pref_symbol" name="extensions.stockwatcher2.symbol" type="string"/> </preferences> <hbox align="center"> <label control="symbol" value="stock to watch: "/> <textbox preference="pref_symbol" id="symbol" maxlength="4"/> </hbox> </prefpane> </prefwindow> the <preferences> block establishes all the settings we implement as well as their types.
...And 5 more matches
Autodial for Windows NT - Archive of obsolete content
a brief history of autodial on windows in the consumer versions of windows, (windows 95, windows 98, windows me) autodial for all applications is controlled from the control panel, in the internet
options applet, under the tab connections.
...technically, this control panel applet (internet
options) is part of internet explorer.
...for these oss, the autodial
options found in the internet
options control panel applet only apply to microsoft applications, including internet explorer and outlook.
...And 5 more matches
Tabboxes - Archive of obsolete content
the user can click each tab to see a different set of
options.
... it is useful in cases when you have more
options than will fit in one screen.
...we'll create an
options tab (and select it by default) that will contain some
options for searching.
...And 5 more matches
Enc Dec MAC Using Key Wrap CertReq PKCS10 CSR
esponding private key \n\n", progname, "-d -b <headerfilename> -e <encryptfilename> -o <opfilename>"); fprintf(stderr, "%s %s\n --sign using private key \n\n", progname, "-s -b <headerfilename> -i <infilename> "); fprintf(stderr, "%s %s\n --verify using public key \n\n", progname, "-v -b <headerfilename> -i <ipfilename> "); fprintf(stderr, "
options:\n\n"); fprintf(stderr, "%-30s - db directory path\n\n", "-d <dbdirpath>"); fprintf(stderr, "%-30s - db password [optional]\n\n", "-p <dbpwd>"); fprintf(stderr, "%-30s - db password file [optional]\n\n", "-f <dbpwdfile>"); fprintf(stderr, "%-30s - noise file name [optional]\n\n", "-z <noisefilename>"); fprintf(stderr...
...ificate signing request \n\n", "-r <csr>"); fprintf(stderr, "%-30s - generate a self-signed cert [optional]\n\n", "-x"); fprintf(stderr, "%-30s - to enable ascii [optional]\n\n", "-a"); fprintf(stderr, "%-30s - to save certificate to header file as sig verification [optional]\n\n", "-v"); exit(-1); } /* * validate the
options used for generate csr command */ static void validategeneratecsrcommand(const char *progname, const char *dbdir, certname *subject, const char *subjectstr, const char *certreqfilename) { prbool validationfailed = pr_false; if (!subject) { pr_fprintf(pr_stderr, ...
...me) { pr_fprintf(pr_stderr, "%s -g -d %s -s %s -r: certificate request file name not found\n", progname, dbdir, subjectstr); validationfailed = pr_true; } if (validationfailed) { fprintf(stderr, "\nusage: %s %s \n\n", progname, "-g -d <dbdirpath> -s <subject> -r <csr> \n"); exit(-1); } } /* * validate the
options used for add cert to db command */ static void validateaddcerttodbcommand(const char *progname, const char *dbdir, const char *nicknamestr, const char *truststr, const char *certfilename, const char *certreqfilename, const char...
...And 5 more matches
sample2
lename> "); fprintf(stderr, "%s %s\n --decrypt using corresponding private key \n\n", progname, "-d -b <headerfilename> -e <encryptfilename> -o <opfilename>"); fprintf(stderr, "%s %s\n --sign using private key \n\n", progname, "-s -b <headerfilename> -i <infilename> "); fprintf(stderr, "%s %s\n --verify using public key \n\n", progname, "-v -b <headerfilename> -i <ipfilename> "); fprintf(stderr, "
options:\n\n"); fprintf(stderr, "%-30s - db directory path\n\n", "-d <dbdirpath>"); fprintf(stderr, "%-30s - db password [optional]\n\n", "-p <dbpwd>"); fprintf(stderr, "%-30s - db password file [optional]\n\n", "-f <dbpwdfile>"); fprintf(stderr, "%-30s - noise file name [optional]\n\n", "-z <noisefilename>"); fprintf(stderr, "%-30s - input file name\n\n", "-i <ipfilename>"); fprintf(stderr, "%-30s - hea...
...cate issuer nickname\n\n", "-u <issuernickname>"); fprintf(stderr, "%-30s - certificate signing request \n\n", "-r <csr>"); fprintf(stderr, "%-30s - generate a self-signed cert [optional]\n\n", "-x"); fprintf(stderr, "%-30s - to enable ascii [optional]\n\n", "-a"); fprintf(stderr, "%-30s - to save certificate to header file as sig verification [optional]\n\n", "-v"); exit(-1); } /* * validate the
options used for generate csr command */ static void validategeneratecsrcommand(const char *progname, const char *dbdir, certname *subject, const char *subjectstr, const char *certreqfilename) { prbool validationfailed = pr_false; if (!subject) { pr_fprintf(pr_stderr, "%s -g -d %s -s: improperly formatted name: \"%s\"\n", progname, dbdir, subjectstr); validationfailed = pr_true; } if (!certreqfilename) {...
... pr_fprintf(pr_stderr, "%s -g -d %s -s %s -r: certificate request file name not found\n", progname, dbdir, subjectstr); validationfailed = pr_true; } if (validationfailed) { fprintf(stderr, "\nusage: %s %s \n\n", progname, "-g -d <dbdirpath> -s <subject> -r <csr> \n"); exit(-1); } } /* * validate the
options used for add cert to db command */ static void validateaddcerttodbcommand(const char *progname, const char *dbdir, const char *nicknamestr, const char *truststr, const char *certfilename, const char *certreqfilename, const char *issuernamestr, const char *serialnumberstr, prbool selfsign) { prbool validationfailed = pr_false; if (!nicknamestr) { pr_fprintf(pr_stderr, "%s -a -d %s -n : nick name is missing\n", progname, dbdir); validationfailed = pr_true; } if (!truststr) { pr_fprintf(pr_stder...
...And 5 more matches
NSS Tools certutil
syntax to run the certificate database tool, type the command certutil option [arguments ] where
options and arguments are combinations of the
options and arguments listed in the following section.
...to see a usage string, issue the command without
options, or with the -h option.
...
options and arguments
options specify an action and are uppercase.
...And 5 more matches
NSS Tools crlutil
syntax to run the certificate revocation list management tool, type the command crlutil option [arguments] where
options and arguments are combinations of the
options and arguments listed in the following section.
...to see a usage string, issue the command without
options, or with the -h option.
...
options and arguments
options specify an action and are uppercase.
...And 5 more matches
NSS Tools pk12util
synopsis pk12util -i p12file [-h tokenname] [-v] [common-
options] or pk12util -o p12file -n certname [-c keycipher] [-c certcipher] [-m | --key_len keylen] [-n | --cert_key_len certkeylen] [common-
options] or pk12util -l p12file [-h tokenname] [-r] [common-
options] where [common-
options] = [-d dir] [-p dbprefix] [-k slotpasswordfile | -k slotpassword] [-w p12filepasswordfile | -w p12filepassword] syntax to run the pkcs #12 tool, type ther command p...
...k12util option [arguments] where option and arguments are combinations of the
options and arguments listed in the following section.
... three of the
options, -i, -o, and -l, should be considered commands of the pk12util invocation.
...And 5 more matches
AudioWorkletProcessor() - Web APIs
var processor = new audioworkletprocessor(
options); parameters
options an object that is passed as
options parameter to audioworkletnode constructor and passed through the structured clone algorithm.
... the object is based on audioworkletnode
options dictionary.
... processor
options optional any additional data that can be used for custom initialization of the underlying audioworkletprocessor.
...And 5 more matches
HTMLSelectElement - Web APIs
htmlselectelement.
optionsread only an html
optionscollection representing the set of <option> (htmloptionelement) elements contained by this element.
... htmlselectelement.selected
optionsread only an htmlcollection representing the set of <option> elements that are selected.
... htmlselectelement.item() gets an item from the
options collection for this <select> element.
...And 5 more matches
HTML attribute: multiple - HTML: Hypertext Markup Language
the multiple attribute on the <select> element represents a control for selecting zero or more
options from the list of
options.
... otherwise, the <select> element represents a control for selecting a single <option> from the list of
options.
... some browsers support the appearance of the list of
options from the associated <datalist> for subsequent email addresses when multiple is present.
...And 5 more matches
Cross-Origin Resource Sharing (CORS) - HTTP
additionally, for http request methods that can cause side-effects on server data (in particular, http methods other than get, or post with certain mime types), the specification mandates that browsers "preflight" the request, soliciting supported methods from the server with the http
options request method, and then, upon "approval" from the server, sending the actual request.
... preflighted requests unlike “simple requests” (discussed above), "preflighted" requests first send an http request by the
options method to the resource on the other domain, to determine if the actual request is safe to send.
... note: as described below, the actual post request does not include the access-control-request-* headers; they are needed only for the
options request.
...And 5 more matches
Array.prototype.toLocaleString() - JavaScript
syntax arr.tolocalestring([locales[,
options]]); parameters locales optional a string with a bcp 47 language tag, or an array of such strings.
...
options optional an object with configuration properties, for numbers see number.prototype.tolocalestring(), and for dates see date.prototype.tolocalestring().
... polyfill // https://tc39.github.io/ecma402/#sup-array.prototype.tolocalestring if (!array.prototype.tolocalestring) { object.defineproperty(array.prototype, 'tolocalestring', { value: function(locales,
options) { // 1.
...And 5 more matches
Date.prototype.toLocaleDateString() - JavaScript
the new locales and
options arguments let applications specify the language whose formatting conventions should be used and allow to customize the behavior of the function.
... in older implementations, which ignore the locales and
options arguments, the locale used and the form of the string returned are entirely implementation dependent.
... syntax dateobj.tolocaledatestring([locales [,
options]]) parameters the locales and
options arguments customize the behavior of the function and let applications specify the language whose formatting conventions should be used.
...And 5 more matches
Date.prototype.toLocaleString() - JavaScript
the new locales and
options arguments let applications specify the language whose formatting conventions should be used and customize the behavior of the function.
... in older implementations, which ignore the locales and
options arguments, the locale used and the form of the string returned are entirely implementation-dependent.
... syntax dateobj.tolocalestring([locales[,
options]]) parameters the locales and
options arguments customize the behavior of the function and let applications specify the language whose formatting conventions should be used.
...And 5 more matches
Date.prototype.toLocaleTimeString() - JavaScript
the new locales and
options arguments let applications specify the language whose formatting conventions should be used and customize the behavior of the function.
... in older implementations, which ignore the locales and
options arguments, the locale used and the form of the string returned are entirely implementation dependent.
... syntax dateobj.tolocaletimestring([locales[,
options]]) parameters the locales and
options arguments customize the behavior of the function and let applications specify the language whose formatting conventions should be used.
...And 5 more matches
Intl.DateTimeFormat - JavaScript
instance methods intl.datetimeformat.prototype.format() getter function that formats a date according to the locale and formatting
options of this datetimeformat object.
... intl.datetimeformat.prototype.resolved
options() returns a new object with properties reflecting the locale and formatting
options computed during initialization of the object.
... intl.datetimeformat.prototype.formatrange() this method receives two dates and formats the date range in the most concise way based on the locale and
options provided when instantiating datetimeformat.
...And 5 more matches
String.prototype.localeCompare() - JavaScript
the new locales and
options arguments let applications specify the language whose sort order should be used and customize the behavior of the function.
... in older implementations, which ignore the locales and
options arguments, the locale and sort order used are entirely implementation-dependent.
... syntax referencestr.localecompare(comparestring[, locales[,
options]]) parameters comparestring the string against which the referencestr is compared.
...And 5 more matches
context-menu - Archive of obsolete content
declarative contexts you can specify some simple, declarative contexts when you create a menu item by setting the context property of the
options object passed to its constructor, like this: var cm = require("sdk/context-menu"); cm.item({ label: "my menu item", context: cm.urlcontext("*.mozilla.org") }); constructor description pagecontext() the page context.
...ll never show up", contentscript: 'self.on("context", function(){self.postmessage(); return false;})', onmessage: function(){ var cmitems = getmostrecentbrowserwindow().document.queryselectorall(".addon-context-menu-item[value^='"+ uuidstr +"']"); for(var i=0; i < cmitems.length; i++) cmitems[i].tooltiptext = cmitems[i].value.substring(36); } }); globals constructors item(
options) creates a labeled menu item that can perform an action when clicked.
... parameters
options : object required
options: name type label string the item's label.
...And 4 more matches
tabs - Archive of obsolete content
globals functions open(
options) opens a new tab.
... } }); parameters
options : object required
options: name type url string string url to be opened in the new tab.
... optional
options: name type isprivate boolean boolean which will determine whether the new tab should be private or not.
...And 4 more matches
widget - Archive of obsolete content
you can specify one or more content scripts to load into the widget using the contentscript or contentscriptfile
options to the widget() constructor.
...ommunication!", content: "<foo>bar</foo>", contentscriptwhen: "ready", contentscript: 'self.on("message", function(message) {' + ' alert("got message: " + message);' + '});' + 'self.postmessage("ready");', onmessage: function(message) { if (message == "ready") widget.postmessage("me too"); } }); globals constructors widget(
options) creates a new widget.
... parameters
options : object required
options: name type label string a string description of the widget used for accessibility, title bars, and error reporting.
...And 4 more matches
jpm - Archive of obsolete content
jpm usage is: jpm [command] [
options] jpm supports the following global
options: -h, --help - show a help message and exit -v, --version - print the jpm version number --addon-dir - directory for your source code, defaulting to the current directory installation jpm is distributed with the node package manager npm.
...assuming you don't want an old version of firefox, your
options are firefox developer edition, firefox nightly, unbranded beta, or unbranded release.
... then jpm creates a skeleton add-on, as a starting point for your add-on development, with the following file structure: my-addon index.js package.json test test-index.js jpm run this command runs a new instance of firefox with the add-on installed: jpm run jpm run accepts the following
options: -b --binary binary use the version of firefox specified in binary.
...And 4 more matches
Handling common accessibility problems - Learn web development
you can then press enter/return to follow a focused link or press a button (we've included some javascript to make the buttons alert a message), or start typing to enter text in a text input (other form elements have different controls, for example the <select> element can have its
options displayed and cycled between using the up and down arrow keys).
... note that different browsers may have different keyboard control
options available.
...you have a few
options here: create custom controls using <button> elements (which we can tab to by default!) and javascript to wire up their functionality.
...And 4 more matches
source-editor.jsm
method overview initialization and destruction void destroy(); void init(element aelement, object aconfig, function acallback); search operations number find(string astring, [optional] object
options); number findnext(boolean awrap); number findprevious(boolean awrap); event management void addeventlistener(string aeventtype, function acallback); void removeeventlistener(string aeventtype, function acallback); undo stack operations boolean canredo(); boolean canundo(); void endcompoundchange(); boolean ...
... configuration defaults constants these constants represent the default values for each of the available configuration
options.
... number find( [optional] string astring [optional] object a
options ); parameters astring optional the string for which to search.
...And 4 more matches
NSS Tools modutil
syntax to run the security module database tool, type the command modutil option [arguments] where option and arguments are combinations of the
options and arguments listed in the following section.
...to see a usage string, issue the command without
options.
...
options and arguments
options specify an action.
...And 4 more matches
Introduction to the JavaScript shell
ed binary, try <path to your firefox's run-mozilla.sh>/run-mozilla.sh ./js -- that worked for me] if you'd like to run the javascript code in the file foo.js, you can use this command: js foo.js to run foo.js then drop into the interactive shell, do this: js -f foo.js -i reference note: because the javascript shell is used as a test environment for the javascript engine, the available
options and built-in functions can change over time.
... command line
options there are a number of command line
options you can specify to control the shell.
... environment
options there are some environment variables that can be set to alter js shell behavior.
...And 4 more matches
Running Automated JavaScript Tests
for a smoke test or if you are not changing language-level functionality, you may wish to use jstests.py path_to_js_shell --exclude=test262 other
options allow you to show the test command lines being run, command output and return codes, run tests named in a given file, exclude tests named in a given file, hide the progress bar, change the timeout, run skipped tests, print output in tinderbox format, run a test in the debugger, or run tests in valgrind.
... run with the -h option to see all the
options.
...basic usage is the same: jit_test.py path_to_js_shell developers will usually want to run like this to skip the slow tests and cover the most important
options: jit_test.py --no-slow path_to_js_shell you can select specific tests to run in the same way as the jstests shell harness.
...And 4 more matches
Migrating from Firebug - Firefox Developer Tools
filter log messages firebug offers two ways to filter log messages, via the
options menu and via the filter buttons within the toolbar.
...in the devtools this option is called enable persistent logs and is available within the toolbox
options panel.
... copy & paste css firebug's style side panel as well as the devtools' rules side panel provide
options within their context menus to copy the css rule or the style declarations.
...And 4 more matches
AddressErrors - Web APIs
please check for any errors."; const invalidcountryerror = "at this time, we only ship to the united states, canada, great britain, japan, china, and germany."; let shippingaddress = ev.target.shippingaddress; let shippingaddresserrors = {}; let updatedetails = {}; if (!validcountries.includes(shippingaddress.country)) { ev.target.shipping
options = []; shippingaddresserrors.country = invalidcountryerror; updatedetails = { error: genericaddresserror, shippingaddresserrors, ...defaultpaymentdetails }; } ev.updatewith(updatedetails); } see handling address changes for a description of how this code works.
...tedmethods: "basic-card", data: { supportednetworks: ["visa", "mastercard", "amex", "discover"], supportedtypes: ["credit", "debit"] } } ]; let defaultpaymentdetails = { total: {label: 'donation', amount: {currency: 'usd', value: '65.00'}}, displayitems: [ { label: 'original donation amount', amount: {currency: 'usd', value: '65.00'} } ], shipping
options: [ { id: 'standard', label: 'standard shipping', amount: {currency: 'usd', value: '0.00'}, selected: true } ] }; supportedhandlers describes the supported payment handlers and the details for those.
...a description of the total amount being requested (including a label and the currency used), a list of the line items (in this case only one, "original donation amount"), and a list of shipping
options available; in this case only one.
...And 4 more matches
MutationObserver.observe() - Web APIs
the mutationobserver method observe() configures the mutationobserver callback to begin receiving notifications of changes to the dom that match the given
options.
... syntax mutationobserver.observe(target,
options) parameters target a dom node (which may be an element) within the dom tree to watch for changes, or to be the root of a subtree of nodes to be watched.
...
options a mutationobserverinit object providing
options that describe which dom mutations should be reported to mutationobserver’s callback.
...And 4 more matches
Notification - Web APIs
notification.actions read only the actions array of the notification as specified in the constructor's
options parameter.
... notification.body read only the body string of the notification as specified in the constructor's
options parameter.
... notification.dir read only the text direction of the notification as specified in the constructor's
options parameter.
...And 4 more matches
RTCPeerConnection.createDataChannel() - Web APIs
syntax datachannel = rtcpeerconnection.createdatachannel(label[,
options]); parameters label a human-readable name for the channel.
...
options optional an rtcdatachannelinit dictionary providing configuration
options for the data channel rtcdatachannelinit dictionary the rtcdatachannelinit dictionary provides the following fields, any of which may be included in the object passed as the
options parameter in order to configure the data channel to suit your needs: ordered optional indicates whether or not messages sent on the rtcdatachannel are required to arrive at their destination in the same order in which they were sent (true), or if they're allowed to arrive out-of-order (false).
... the
options which can be configured using the rtcdatachannelinit dictionary represent the script-settable subset of the properties on the rtcdatachannel interface.
...And 4 more matches
Intl.Collator() constructor - JavaScript
syntax new intl.collator([locales[,
options]]) parameters locales optional.
...the "standard" and "search" values are ignored; they are replaced by the
options property usage (see below).
...this option can be set through an
options property or through a unicode extension key; if both are provided, the
options property takes precedence.
...And 4 more matches
Number.prototype.toLocaleString() - JavaScript
syntax numobj.tolocalestring([locales [,
options]]) parameters the locales and
options arguments customize the behavior of the function and let applications specify the language whose formatting conventions should be used.
... in implementations, which ignore the locales and
options arguments, the locale used and the form of the string returned are entirely implementation dependent.
... examples using tolocalestring in basic use without specifying a locale, a formatted string in the default locale and with default
options is returned.
...And 4 more matches
page-worker - Archive of obsolete content
you can specify one or more content scripts to load into the page using the contentscript or contentscriptfile
options to the page() constructor.
... globals constructors page(
options) creates an uninitialized page worker instance.
... parameters
options : object optional
options: name type contenturl string the url of the content to load in the panel.
...And 3 more matches
simple-prefs - Archive of obsolete content
the
options are specified by a mandatory "
options" attribute, that is an array of objects with mandatory attributes "label" and "value" the values of the "value" attributes must be supplied as strings.
... the values of the "label" attributes prefixed with "{name}_
options.", where {name} is the name of the preference, are used as localization keys.
... { "name": "typeofbreath", "type": "menulist", "title": "type of breath", "value": 0, "
options": [ { "value": "0", "label": "fire" }, { "value": "1", "label": "cold" }, { "value": "2", "label": "disintegration" } ] } radio displayed as radio buttons.
...And 3 more matches
content/symbiont - Archive of obsolete content
var { symbiont } = require('sdk/content/content'); var thing = symbiont.resolve({ constructor: '_init' }).compose({ constructor: function thing(
options) { // `getmyframe` returns the host application frame in which // the page is loaded.
... this._frame = getmyframe(); this._init(
options) } }); see the panel module for a real-world example of usage of this module.
... globals constructors symbiont(
options) creates a content symbiont.
...And 3 more matches
dev/panel - Archive of obsolete content
you can use the class utility function: const { panel } = require("dev/panel"); const { class } = require("sdk/core/heritage"); const mypanel = class({ extends: panel, label: "my panel", tooltip: "my new devtool", icon: "./my-devtool.png", url: "./my-devtool.html", setup: function(
options) { // my setup goes here }, dispose: function() { // my teardown goes here }, onready: function() { // i can send messages to // the panel document here } }); alternatively, you can use the extend function: const { extend } = require("sdk/core/heritage"); function mypanel() {}; mypanel.prototype = extend(panel.prototype, { label: "my panel", tooltip: "...", ..
...it's passed an
options object containing a single property debuggee.
...onst { panel } = require("dev/panel"); const { tool } = require("dev/toolbox"); const { class } = require("sdk/core/heritage"); // define the panel constructor const mypanel = class({ extends: panel, label: "my panel", tooltip: "my new devtool's panel", icon: "./my-icon.png", url: "./my-panel.html", // when the panel is created, // take a reference to the debuggee setup: function(
options) { this.debuggee =
options.debuggee; }, dispose: function() { this.debuggee = null; }, onready: function() { // in this function you can communicate // with the panel document } }); // export the constructor exports.mypanel = mypanel; // create a new tool, initialized // with the new constructor const mytool = new tool({ panels: { mypanel: mypanel } }); panel docume...
...And 3 more matches
places/history - Archive of obsolete content
// we'd compose the query with the following
options let lastweek = date.now - (1000*60*60*24*7); search( // first query looks for all entries before last week with 'ruby' [{ query: "ruby", to: lastweek }, // second query searches all entries after last week with 'javascript' { query: "javascript", from: lastweek }], // we want to order chronologically by visit date { sort: "date" } ).on("end", function (results) { // results is an a...
...rray of objects containing visit data, // sorted by visit date, with all entries from more than a week ago // that contain 'ruby', *in addition to* entries from this last week // that contain 'javascript' }); globals functions search(queries,
options) queries can be performed on history entries by passing in one or more query
options.
...for additional queries within the query, passing more query
options in will or the total results.
...And 3 more matches
Index - Archive of obsolete content
245 inline
options add-ons, extensions, xul no summary!
... 532 slidebar to implement a new slidebar within your jetpack code, use the method jetpack.slidebar.append(
options) 533 users no summary!
...this method has a number of
options to specify text or binary writing, the character set, and whether to append to an existing file or create a new one.
...And 3 more matches
Game distribution - Game development
publishing the game there are three main
options when it comes to publishing a game: self-hosting publishers stores remember that the name of your game should be unique enough to be quickly promoted later on, but also catchy enough, so people don't forget it.
...consider various
options, experiment and conclude.
...such exposure may just provide promotion for your game, or if you have adverts shown beside your game (or other money making
options) it may also provide monetization.
...And 3 more matches
Other form controls - Learn web development
drop-down controls drop-down controls are a simple way to let users select from many different
options without taking up much space in the user interface.
...name="groups"> <optgroup label="fruits"> <option>banana</option> <option selected>cherry</option> <option>lemon</option> </optgroup> <optgroup label="vegetables"> <option>carrot</option> <option>eggplant</option> <option>potato</option> </optgroup> </select> on the <optgroup> element, the value of the label attribute is displayed before the values of the nested
options.
... the browser usually sets them visually apart from the
options (i.e.
...And 3 more matches
Debugging on Windows
it would open visual studio with firefox's run
options configured.
... command line parameters and environment variables vc++ 6.0: to change or set the command line
options, go to project > settings..., debug tab and select general from the drop down list.
... "program arguments:" should show the
options.
...And 3 more matches
Simple Instantbird build
if that's not exactly what you want, there are many build configuration
options to choose from, although it's strongly recommended that you only use
options that you fully understand.
... the normal way to specify build
options is to place them in a file called '.mozconfig' at the root of your mozilla source tree, i.e.
...for example, to create a debug build instead of a release build, that file would contain: ac_add_
options --enable-debug for more on configuration
options, see the page configuring build
options.
...And 3 more matches
Simple Sunbird build
# get the source hg clone http://hg.mozilla.org/comm-central/ cd comm-central python client.py checkout # setup a basic .mozconfig file echo 'ac_add_
options --enable-application=calendar' > .mozconfig # let's build sunbird...
... echo 'mk_add_
options moz_objdir=@topsrcdir@/objdir-sb-release' >> .mozconfig # ...in this directory...
...echo 'mk_add_
options moz_make_flags="-j4"' >> .mozconfig # ...quickly.
...And 3 more matches
Simple Thunderbird build
build configuration to build thunderbird, you need to add a file named mozconfig to the root directory of the mozilla-central checkout that contains the following line: ac_add_
options --enable-application=comm/mail you can create a file with this line by doing this in the source/ directory: echo 'ac_add_
options --enable-application=comm/mail' > mozconfig if you omit this line, the build system will build firefox instead.
... other build configuration
options can be added to this file, although it's strongly recommended that you only use
options that you fully understand.
... for example, to create a debug build instead of a release build, that file would also contain the line: ac_add_
options --enable-debug each of these ac_add_
options entries needs to be on its own line.
...And 3 more matches
Eclipse CDT
since the compiler
options used to build the source change relatively infrequently, the "build" step above doesn't need to be rerun all that often.
... to get a list of autocomplete
options in an editor tab, start typing the name of an identifier and then type ctrl-space.
... headers are only parsed once for performance reasons, eclipse only processes header files that have include guards once, using the compiler
options for the first source file it encounters that includes that header (eclipse bug 380511).
...And 3 more matches
Eclipse CDT Manual Setup
eclipse provides a tool that can collect the
options that are passed to the compiler for each file that's compiled during an actual build.
...first, eclipse needs build console output for a complete build, so that it can find compiler
options for as many source files as possible.
... conversely, note this very carefully: if you configure eclipse to invoke a build process that is parallelized, silenced, or that fails to identify the directory that the compiler is being run from, then it will mess up the compiler
options that eclipse associates with your files, and that in turn will significantly degrade the quality of the code assistance that eclipse will provide after it next re-indexes the code.
...And 3 more matches
Obsolete Build Caveats and Tips
gecko 1.9.2 through 11: if you would like to use this sdk, add ac_add_
options --with-windows-version=600 to your .mozconfig.
... gecko 1.9.2 through 11: if you're building with this sdk, you will need to add ac_add_
options --with-windows-version=502 to your .mozconfig.
... for mozilla-1.9.1 and mozilla-1.9.0, you need to add ac_add_
options --disable-vista-sdk-requirements to your .mozconfig instead.
...And 3 more matches
NetUtil.jsm
nsiasyncstreamcopier asynccopy(nsiinputstream asource, nsioutputstream asink, [optional] acallback) void asyncfetch(asource, acallback) nsichannel newchannel(awhattoload, [optional] aorigincharset, [optional] nsiuri abaseuri) nsiuri newuri(atarget, [optional] aorigincharset, [optional] nsiuri abaseuri) string readinputstreamtostring(ainputstream, acount, a
options) attributes attribute type description ioservice nsiioservice returns a reference to nsiioservice.
... string readinputstreamtostring( ainputstream, acount, a
options ); parameters ainputstream the input stream from which to read the data.
... a
options specifies additional
options to control the reading process.
...And 3 more matches
PopupNotifications.jsm
method overview void locationchange(); notification getnotification(id, browser); void remove(notification); notification show(browser, id, message, anchorid, mainaction, secondaryactions,
options); properties attribute type description ispanelopen boolean returns true if the notification panel is currently visible, false if it is not.
... notification show( browser, id, message, anchorid, mainaction, secondaryactions,
options ); parameters browser the xul <xul:browser> element with which the notification is associated.
...
options a javascript object containing optional properties for the notification.
...And 3 more matches
NSS Tools ssltap
syntax to run the ssl debugging tool, type this command in a command shell: ssltap [-vhfsxl] [-p port] hostname:port
options the command does not require any
options other than hostname:port, but you normally use them to control the connection interception and output.
... the
options for the command are the following: -v print a version string for the tool.
...although you can run the tool at its most basic by issuing the ssltap command with no
options other than hostname:port, the information you get in this way is not very useful.
...And 3 more matches
Rhino shell
invoking the shell java org.mozilla.javascript.tools.shell.main [
options] script-filename-or-url [script-arguments] where
options are: -e script-source executes script-source as a javascript script.
...starting with rhino 1.7 this
options is no longer available.
... runcommand(commandname, [arg, ...] [
options]) execute the specified command with the given argument and
options as a separate process and return the exit status of the process.
...And 3 more matches
Working with windows in chrome code
one case in which you might want to use nsiwindowmediator is in an extension's
options window.
... suppose you're developing a browser extension that consists of a browser.xul overlay and an
options window.
... suppose the overlay contains a button to open the extension's
options window which needs to read some data from the browser window.
...And 3 more matches
ByteLengthQueuingStrategy - Web APIs
full support 59edge full support 16firefox full support 57disabled full support 57disabled disabled from version 57: this feature is behind the dom.streams.enabled preference (needs to be set to true) and the javascript.
options.streams preference (needs to be set to true).
...l support 59chrome android full support 59firefox android full support 57disabled full support 57disabled disabled from version 57: this feature is behind the dom.streams.enabled preference (needs to be set to true) and the javascript.
options.streams preference (needs to be set to true).
... full support 59edge full support 16firefox full support 57disabled full support 57disabled disabled from version 57: this feature is behind the dom.streams.enabled preference (needs to be set to true) and the javascript.
options.streams preference (needs to be set to true).
...And 3 more matches
CountQueuingStrategy - Web APIs
full support 59edge full support 16firefox full support 57disabled full support 57disabled disabled from version 57: this feature is behind the dom.streams.enabled preference (needs to be set to true) and the javascript.
options.streams preference (needs to be set to true).
...l support 59chrome android full support 59firefox android full support 57disabled full support 57disabled disabled from version 57: this feature is behind the dom.streams.enabled preference (needs to be set to true) and the javascript.
options.streams preference (needs to be set to true).
... full support 59edge full support 16firefox full support 57disabled full support 57disabled disabled from version 57: this feature is behind the dom.streams.enabled preference (needs to be set to true) and the javascript.
options.streams preference (needs to be set to true).
...And 3 more matches
CredentialsContainer.create() - Web APIs
the create() method of the credentialscontainer interface returns a promise that resolves with a new credential instance based on the provided
options, or null if no credential object can be created.
... syntax var promise = credentialscontainer.create([
options]) parameters
options an object of type credentialcreation
options that contains
options for the requested new credentials object.
... it must include one of the
options "password", "federated", or "publickey".
...And 3 more matches
DirectoryEntrySync - Web APIs
var direntry = fs.root.getdirectory('superseekrit', {create: true}); method overview directoryreadersync createreader () raises (fileexception); fileentrysync getfile (in domstring path, in optional flags
options) raises (fileexception); directoryentrysync getdirectory (in domstring path, in optional flags
options) raises (fileexception); void removerecursively () raises (fileexception); methods createreader() creates a new directoryreadersync to read entries from this directory.
...[ todo: explain why ] getfile() depending on how you've set the
options parameter, the method either creates a file or looks up an existing file.
... void getfile ( in domstring path, in optional flags
options ) raises (fileexception); parameter path either an absolute path or a relative path from the directory to the file to be looked up or created.
...And 3 more matches
Element.animate() - Web APIs
syntax var animation = element.animate(keyframes,
options); parameters keyframes either an array of keyframe objects, or a keyframe object whose property are arrays of values to iterate over.
...
options either an integer representing the animation's duration (in milliseconds), or an object containing one or more timing properties: id optional a property unique to animate(): a domstring with which to reference the animation.
... you can also include a composite operation or iteration composite operation in your
options list: composite optional determines how values are combined between this animation and other, separate animations that do not specify their own specific composite operation.
...And 3 more matches
EventTarget.removeEventListener() - Web APIs
the event listener to be removed is identified using a combination of the event type, the event listener function itself, and various optional
options that may affect the matching process; see matching event listeners for removal syntax target.removeeventlistener(type, listener[,
options]); target.removeeventlistener(type, listener[, usecapture]); parameters type a string which specifies the type of event for which to remove an event listener.
...
options optional an
options object that specifies characteristics about the event listener.
... the available
options are: capture: a boolean which indicates that events of this type will be dispatched to the registered listener before being dispatched to any eventtarget beneath it in the dom tree.
...And 3 more matches
Intersection Observer API - Web APIs
creating an intersection observer create the intersection observer by calling its constructor and passing it a callback function to be run whenever a threshold is crossed in one direction or the other: let
options = { root: document.queryselector('#scrollarea'), rootmargin: '0px', threshold: 1.0 } let observer = new intersectionobserver(callback,
options); a threshold of 1.0 means that when 100% of the target is visible within the element specified by the root option, the callback is invoked.
... intersection observer
options the
options object passed into the intersectionobserver() constructor let you control the circumstances under which the observer's callback is invoked.
...5, 255, 255, 0.7); border: 1px solid rgba(0, 0, 0, 0.7); width: 3em; height: 18px; padding: 2px; text-align: center; } .topleft { left: 2px; top: 2px; } .topright { right: 2px; top: 2px; } .bottomleft { bottom: 2px; left: 2px; } .bottomright { bottom: 2px; right: 2px; } let observers = []; startup = () => { let wrapper = document.queryselector(".wrapper"); //
options for the observers let observer
options = { root: null, rootmargin: "0px", threshold: [] }; // an array of threshold sets for each of the boxes.
...And 3 more matches
Notification.Notification() - Web APIs
syntax var mynotification = new notification(title,
options); parameters title defines a title for the notification, which is shown at the top of the notification window.
...
options optional an
options object containing any custom settings that you want to apply to the notification.
... the possible
options are: dir: the direction in which to display the notification.
...And 3 more matches
HTTP Index - HTTP
this header is necessary as the preflight request is always an
options and doesn't use the same method as the actual request.
... 198 x-content-type-
options http, http header, reference, response header the x-content-type-
options response http header is a marker used by the server to indicate that the mime types advertised in the content-type headers should not be changed and be followed.
... 203 x-frame-
options gecko, haproxy, http, response header, security, nginx the x-frame-
options http response header can be used to indicate whether or not a browser should be allowed to render a page in a <frame>, <iframe>, <embed> or <object>.
...And 3 more matches
HTTP Messages - HTTP
their start-line contain three elements: an http method, a verb (like get, put or post) or a noun (like head or
options), that describes the action to be performed.
...this is the most common form, known as the origin form, and is used with get, post, head, and
options methods.
... post / http/1.1 get /background.png http/1.0 head /test.html?query=alibaba http/1.1
options /anypage.html http/1.0 a complete url, known as the absolute form, is mostly used with get when connected to a proxy.
...And 3 more matches
Web video codec guide - Web media technologies
in addition to general codec
options, the encoder could be configured to reduce the frame rate, to clean up noise, and/or to reduce the overall resolution of the video during encoding.
...lity setting the higher the quality configuration, the more like the original media the encoded video will look in general, higher quality settings will result in larger encoded video files; the degree to which this is true varies depending on the codec bit rate quality generally improves with higher bit rates higher bit rates inherently lead to larger output files the
options available when encoding video, and the values to be assigned to those
options, will vary not only from one codec to another but depending on the encoding software you use.
... the documentation included with your encoding software will help you to understand the specific impact of these
options on the encoded video.
...And 3 more matches
request - Archive of obsolete content
globals constructors request(
options) this constructor creates a request object that can be used to make network requests.
... the constructor takes a single parameter
options which is used to set several properties on the resulting request.
... parameters
options : object optional
options: name type url string,url this is the url to which the request will be made.
...And 2 more matches
Extension Etiquette - Archive of obsolete content
sub-menus should be used for single extensions needing multiple menu items, and a tools menu item should not be created for
options and preferences (for
options and preferences, see the add-on manager).
...
options firefox users like
options.
... lots of
options.
...And 2 more matches
Chapter 5: Let's build a Firefox extension - Archive of obsolete content
true javascript.
options.showinconsole (present in firefox 3.5+) outputs javascript errors to the error console.
... true javascript.
options.strict (present in firefox 3.5+) enforces strict error output from javascript true table 1: preferences to set for developing extensions to make these changes, start your development profile, type about:config into firefox’s location bar and open the preferences window; find the preferences listed in table 1 and double-click on them to set them accordingly.
... phase 3: creating a preference panel you don’t need to use ini files, registries, or anything like that to give users
options they can set through a preference panel.
...And 2 more matches
The Essentials of an Extension - Archive of obsolete content
there are some additional
options that can be included in the entries of a chrome.manifest file.
... there are two similar code blocks, because in modern versions of firefox, particularly on windows, a single firefox menu button is presented, with simplified menu
options, rather than an extensive menu bar.
...check menu bar under the
options menu of the menu button to toggle display of the classic menu on windows and some linux distributions.
...And 2 more matches
Building Mozilla XForms - Archive of obsolete content
for xforms, you will need to add the following line: ac_add_
options --enable-extensions="default,xforms" # if you're using a mozilla source before 2010-11-06 (e.g.
... an old firefox 3.6 release) use this instead (see bug 601570 for details): ac_add_
options --enable-extensions="default,xforms,schema-validation" a complete .mozconfig file for a release build might look like that: .
... $topsrcdir/browser/config/mozconfig mk_add_
options moz_co_project=browser mk_add_
options moz_objdir=@topsrcdir@/obj-@config_guess@ #mk_add_
options autoconf=autoconf2.13 # possibly needed #mk_add_
options moz_make_flags=-jn # (optional) replace n with the number of parallel build processes (e.g.
...And 2 more matches
How do you upload your files to a web server? - Learn web development
in this article we'll discuss how to do that, using various available
options such as sftp clients, rsync and github.
... note: of course there are lots of other
options.
...a basic command looks like so: rsync [-
options] source user@x.x.x.x:destination -
options is a dash followed by a one or more letters, for example -v for verbose error messages, and -b to make backups.
...And 2 more matches
From object to iframe — other embedding technologies - Learn web development
below the video, you'll find a share button — select this to display the sharing
options.
...in firefox, you'll get told load denied by x-frame-
options: /docs/glossary does not permit framing.
... if absolutely required, you can add permissions back one by one (inside the sandbox="" attribute value) — see the sandbox reference entry for all the available
options.
...And 2 more matches
Third-party APIs - Learn web development
for example: let map = l.mapquest.map('map', { center: [53.480759, -2.242631], layers: l.mapquest.tilelayer('map'), zoom: 12 }); here we are creating a variable to store the map information in, then creating a new map using the mapquest.map() method, which takes as its parameters the id of a <div> element you want to display the map in ('map'), and an
options object containing the details of the particular map we want to display.
...the tilelayer reference page shows the different available
options, plus a lot more information.
...you can adjust the position by specifying an
options object as a parameter for the control containing a position property, the value of which is a string specifying a position for the control.
...And 2 more matches
Old Thunderbird build
build configuration to build thunderbird, you need to add a file named mozconfig to the root directory of the comm-central checkout that contains the following line: ac_add_
options --enable-application=mail you can create a file with this line by doing this: cd comm-central echo 'ac_add_
options --enable-application=mail' > mozconfig if you omit this line, the build system will build firefox instead.
... other build configuration
options can be added to this file, although it's strongly recommended that you only use
options that you fully understand.
... for example, to create a debug build instead of a release build, that file would contain: ac_add_
options --enable-debug for more on configuration
options, see the page configuring build
options.
...And 2 more matches
Simple SeaMonkey build
source # for aurora, use https://hg.mozilla.org/releases/comm-aurora/ and comm-aurora instead # for beta, use https://hg.mozilla.org/releases/comm-beta/ and comm-beta instead # for release, use https://hg.mozilla.org/releases/comm-release/ and comm-release instead hg clone https://hg.mozilla.org/comm-central/ cd comm-central python client.py checkout # set up a basic .mozconfig file echo 'ac_add_
options --enable-application=suite' > .mozconfig # let's build seamonkey...
... echo 'mk_add_
options moz_objdir=/path/to/comm-central/obj-sm-release' >> .mozconfig # specify amount of parallel building.
...echo 'mk_add_
options moz_make_flags="-j4"' >> .mozconfig # ...quickly.
...And 2 more matches
Displaying Places information using views
getservice(ci.nsinavhistoryservice); var query = histserv.getnewquery(); query.searchterms = "mozilla"; query.onlybookmarked = true; var opts = histserv.getnewquery
options(); opts.querytype = opts.query_type_bookmarks; var uri = histserv.queriestoquerystring([query], 1, opts); var tree = document.getelementbyid("mytree"); tree.place = uri; these two examples use the built-in tree view, but the point is to demonstrate the use of the place attribute and property.
... void load( array queries, nsinavhistoryquery
options options ); parameters queries an array of nsinavhistoryquery objects.
...
options an nsinavhistoryquery
options object.
...And 2 more matches
NSPR build instructions
you may override the compilers (the cc environment variable) or specify
options.
... build the libraries build the test programs for example, # check out the source tree from mercurial hg clone https://hg.mozilla.org/projects/nspr # create a build directory mkdir target.debug cd target.debug # run the configure script ../nspr/configure [optional configure
options] # build the libraries gmake # build the test programs cd pr/tests gmake on mac os x, use make, which is gnu make.
... configure
options although nspr uses autoconf, its configure script has two default values that are different from most open source projects.
...And 2 more matches
NSS tools : cmsutil
synopsis cmsutil [
options] arguments description the cmsutil command-line uses the s/mime toolkit to perform basic operations, such as encryption and decryption, on cryptographic message syntax (cms) messages.
... to run cmsutil, type the command cmsutil option [arguments] where option and arguments are combinations of the
options and arguments listed in the following section.
...to see a usage string, issue the command without
options.
...And 2 more matches
sslintro.html
ssl_
optionsetdefault.
...retrieves the socket
options currently set for a specified socket.
...sets the socket
options for a specified socket., including making it blocking or nonblocking.
...And 2 more matches
NSS tools : cmsutil
synopsis cmsutil [
options] arguments description the cmsutil command-line uses the s/mime toolkit to perform basic operations, such as encryption and decryption, on cryptographic message syntax (cms) messages.
... to run cmsutil, type the command cmsutil option [arguments] where option and arguments are combinations of the
options and arguments listed in the following section.
...to see a usage string, issue the command without
options.
...And 2 more matches
NSS tools : signtool
options -b basename specifies the base filename for the .rsa and .sf files in the meta-inf directory to conform with the jar format.
...if the -c# option is not used with either the -j or the -z option, the default compression value used by both the -j and -z
options is 6.
... -f commandfile specifies a text file containing netscape signing tool
options and arguments in keyword=value format.
...And 2 more matches
SpiderMonkey Build Documentation
for a list of other available build
options, type (assuming the current working directory is one of the above-created build directories): /bin/sh ../configure.in --help generating a compilation database some tools (like ides, static analyzers and refactoring tools) consume a file called compile_commands.json which contains a description of all the pieces required to build a piece of software so that tools don't have to also understand ...
... to generate a compile_commands.json with the spidermonkey configure script, enable the compiledb backend, like this: /bin/sh ../configure.in <
options> --enable-build-backends=compiledb,recursivemake (recursivemake is there as you'd likely also want to be able to build!) windows builds since version 28, threadsafe builds are the default, and should work out of the box on all posix platforms.
... if --enable-nspr-build does not work, explicitly tell configure where to find nspr using the --with-nspr-cflags and --with-nspr-libs configure
options.
...And 2 more matches
Index
34 js::compile
options jsapi reference, reference, référence(2), spidermonkey some methods of js::owningcompile
options and js::compile
options return the instance itself to allow method chain.
... 319 js_get
options jsapi reference, obsolete, spidermonkey js_get
options retrieves the option flags of a given js context cx.
... 467 js_set
options jsapi reference, obsolete, spidermonkey js_set
options sets the option flags of a given js context cx.
...And 2 more matches
Retrieving part of the bookmarks tree
get the query and
options objects all querying is done through the history service.
... first, you need to get an empty query and
options objects from the history service: var historyservice = components.classes["@mozilla.org/browser/nav-history-service;1"] .getservice(components.interfaces.nsinavhistoryservice); var
options = historyservice.getnewquery
options(); var query = historyservice.getnewquery(); find the folder you want to get known folder ids are retrieved from the bookmarks service.
...configure the query to get a hierarchical bookmarks result, pass the folder id to setfolders in your query object: query.setfolders([toolbarfolder], 1); run the query the executequery and executequeries functions will return an nsinavhistoryresult object containing the results of your query: var result = historyservice.executequery(query,
options); get the results when you are querying for exactly one folder grouped by folder with no fancy query parameters such as keywords or date ranges (as in this example), the root of the result will be an nsinavhistorycontainerresultnode corresponding to your folder.
...And 2 more matches
Components.utils.Sandbox
creating a sandbox to create a new sandbox, call components.utils.sandbox: var sandbox = components.utils.sandbox(principal[,
options]); using new components.utils.sandbox(...) to create a sandbox has the same effect as calling sandbox(...) without new.
...
options the constructor accepts an optional parameter.
... textdecoder url urlsearchparams atob btoa blob file crypto rtcidentityprovider fetch (added in firefox 41) caches filereader for example: var sandboxscript = 'var encoded = btoa("hello");' + 'var decoded = atob(encoded);'; var
options = { "wantglobalproperties": ["atob", "btoa"] } var sandbox = components.utils.sandbox("https://example.org/",
options); components.utils.evalinsandbox(sandboxscript, sandbox); console.log(sandbox.encoded); // "sgvsbg8=" console.log(sandbox.decoded); // "hello" wantxhrconstructor this option was removed in gecko version 26.
...And 2 more matches
nsIDOMGeoGeolocation
@mozilla.org/geolocation;1"] .getservice(components.interfaces.nsisupports); method overview void clearwatch(in unsigned short watchid); void getcurrentposition(in nsidomgeopositioncallback successcallback, [optional] in nsidomgeopositionerrorcallback errorcallback, [optional] in nsidomgeoposition
options options); unsigned short watchposition(in nsidomgeopositioncallback successcallback, [optional] in nsidomgeopositionerrorcallback errorcallback, [optional] in nsidomgeoposition
options options); attributes attribute type description lastposition nsidomgeoposition the most recently retriev...
...void getcurrentposition( in nsidomgeopositioncallback successcallback, [optional] in nsidomgeopositionerrorcallback errorcallback, [optional] in nsidomgeoposition
options options ); parameters successcallback an nsidomgeopositioncallback to be called when the current position is available.
...
options an nsidomgeoposition
options object specifying
options; this parameter is optional.
...And 2 more matches
AudioWorkletNode() - Web APIs
syntax var node = new audioworkletnode(context, name); var node = new audioworkletnode(context, name,
options); parameters context the baseaudiocontext instance this node will be associated with.
...
options optional an object based on the audioworkletnode
options dictionary, which contains zero or more optional properties to configure the new node.
... processor
options optional any additional data that can be used for custom initialization of the underlying audioworkletprocessor.
...And 2 more matches
Clients.matchAll() - Web APIs
include the
options parameter to return all service worker clients whose origin is the same as the associated service worker's origin.
... if
options are not included, the method returns only the service worker clients controlled by the service worker.
... syntax self.clients.matchall(
options).then(function(clients) { // do something with your clients list }); parameters
options optional an
options object allowing you to set
options for the matching operation.
...And 2 more matches
FileSystemDirectoryEntry.getDirectory() - Web APIs
syntax filesystemdirectoryentry.getdirectory([path][,
options][, successcallback][, errorcallback]); parameters path optional a usvstring representing an absolute path or a path relative to the directory on which the method is called, describing which directory entry to return.
...
options optional an object based on the filesystemflags dictionary, which allows you to specify whether or not to create the entry if it's missing and if it's an error if the file already exists.
... these
options are currently not useful in web contexts.
...And 2 more matches
FileSystemDirectoryEntry.getFile() - Web APIs
syntax filesystemdirectoryentry.getfile([path][,
options][, successcallback][, errorcallback]); parameters path optional a usvstring specifying the path, relative to the directory on which the method is called, describing which file's entry to return.
...
options optional an object based on the filesystemflags dictionary, which allows you to specify whether or not to create the entry if it's missing and if it's an error if the file already exists.
... these
options are currently not useful in web contexts.
...And 2 more matches
MutationObserverInit.subtree - Web APIs
subtree can be used in concert with the other
options to extend monitoring of attributes, text content, and child lists to the entire subtree rooted at the target node.
... syntax var
options = { subtree: true | false } value a boolean value.
...changing this value to true causes the entire subtree rooted at the specified target node to be monitored for the changes indicated by the other
options.
...And 2 more matches
PaymentResponse - Web APIs
this option is only present when the requestpayeremail option is set to true in the
options parameter of the paymentrequest() constructor.
...this option is only present when the requestpayername option is set to true in the
options parameter of the paymentrequest() constructor.
...this option is only present when the requestpayerphone option is set to true in the
options parameter of the paymentrequest() constructor.
...And 2 more matches
Web Authentication API - Web APIs
the full set of required fields, optional fields, and their meanings for creating a registration request can be found in the publickeycredentialcreation
options dictionary.
...again, the description of authentication below is a broad overview rather than getting into all the
options and features of the web authentication api.
... the specific
options for authenticating can be found in the publickeycredentialrequest
options dictionary, and the resulting data can be found in the publickeycredential interface (where publickeycredential.response is the authenticatorassertionresponse interface) .
...And 2 more matches
<input type="tel"> - HTML: Hypertext Markup Language
additional attributes in addition to the attributes that operate on all <input> elements regardless of their type, telephone number inputs support the following attributes: attribute description list the id of the <datalist> element that contains the optional pre-defined autocomplete
options maxlength the maximum length, in utf-16 characters, to accept as a valid input minlength the minimum length that is considered valid for the field's contents pattern a regular expression the entered value must match to pass constraint validation placeholder an example value to display inside the field when it has no value readonly a bool...
...any values in the list that are not compatible with the type are not included in the suggested
options.
... providing default
options as always, you can provide a default value for an tel input box by setting its value attribute: <input id="telno" name="telno" type="tel" value="333-4444-4444"> offering suggested values taking it a step farther, you can provide a list of default phone number values from which the user can select.
...And 2 more matches
Digital audio concepts - Web media technologies
all you need to do is consider the
options and your use case, then choose the appropriate codec for your needs.
... lossless encoder parameters lossless encoders have a lot less room to manipulate the audio to improve the compression rate, given the need to be able to reproduce the original audio, which limits the number of
options available to configure these encoders.
... the
options tend to revolve around choosing the method by which the encoder performs the encoding and how much time and processor power it's allowed to consume in order to do so.
...And 2 more matches
frame/utils - Archive of obsolete content
usage module exports create function that takes the nsidomdocument of a privileged document and creates a browser element in its documentelement: let { open } = require('sdk/window/utils'); let { create } = require('sdk/frame/utils'); let window = open('data:text/html,foo'); let frame = create(window.document); optionally create can be passed set of
options to configure created frame even further.
... execution of scripts may easily be enabled: let { open } = require('sdk/window/utils'); let { create } = require('sdk/frame/utils'); let window = open('data:text/html,top'); let frame = create(window.document, { uri: 'data:text/html,<script>console.log("running");</script>', allowjavascript: true }); } globals functions create(document,
options) creates a xul browser element in a privileged document.
... parameters document : nsidomdocument
options : object optional
options: name type type string string that defines access type of the document loaded into it.
... remote boolean if true separate process will be used for this frame, and all the following
options are ignored.
platform/xpcom - Archive of obsolete content
you can override this behavior using the register and unregister
options to the factory or service constructor: var xpcom = require('sdk/platform/xpcom'); var factory = xpcom.factory({ contract: contractid, component: helloworld, register: false, unregister: false, }); if you disable automatic registration in this way, you can use the register() function to register factories and services: xpcom.register(factory); you can use the corresponding unregister(...
...) function to unregister them, whether or not you have disabled automatic unregistration: xpcom.unregister(factory); you can find out whether a factory or service has been registered by using the isregistered() function: if (xpcom.isregistered(factory)) xpcom.unregister(factory); globals constructors factory(
options) parameters
options : object required
options: name type component constructor constructor for the component this factory creates.
... optional
options: name type contract string a contract id.
...to override this behavior, you can pass register and/or unregister
options, set to false.
stylesheet/style - Archive of obsolete content
globals constructors style(
options) the style constructor creates an object that represents style modifications via stylesheet file(s) or/and css rules.
... parameters
options : object required
options: name type uri string,array a string, or an array of strings, that represents local uri to stylesheet.
...those rules are applied after the rules in the stylesheet specified with uri
options, if provided.
... optional
options: name type type string the type of the sheet.
Creating Event Targets - Archive of obsolete content
markuri(aitemid).spec); }, onitemvisited: function(aitemid, avisitid, time) { emit(target, "visited", bookmarkservice.getbookmarkuri(aitemid).spec); }, queryinterface: xpcomutils.generateqi([ci.nsinavbookmarkobserver]) }; bookmarkservice.addobserver(bookmarkobserver, false); } var bookmarkmanager = class({ extends: eventtarget, initialize: function initialize(
options) { eventtarget.prototype.initialize.call(this,
options); merge(this,
options); createobserver(this); } }); exports.bookmarkmanager = bookmarkmanager; the code to interact with the places api is the same here.
...in its initialize() function, we: call the base class initializer use merge() to copy any supplied
options into the newly created object call createobserver(), passing in the newly created object as the event target createobserver() is the same as in the previous example, except that in emit() we pass the newly created bookmarkmanager as the event target to use this event target we can create it and call the on(), once(), and removelistener() functions that it has inherited: var bookmarks ...
...gadded(uri) { console.log("added: " + uri); } function logvisited(uri) { console.log("visited: " + uri); } exports.main = function() { bookmarkmanager.on("added", logadded); bookmarkmanager.on("visited", logvisited); }; exports.onunload = function() { bookmarkmanager.removelistener("added", logadded); bookmarkmanager.removelistener("visited", logvisited); } implementing "onevent"
options finally, most event targets accept
options of the form "onevent", where "event" is the capitalized form of the event type.
... for example, you can listen to the panel object's show event either by calling: mypanel.on("show", listenerfunction); or by passing the onshow option to panel's constructor: var mypanel = require("sdk/panel").panel({ onshow: listenerfunction, contenturl: "https://en.wikipedia.org/w/index.php" }); if your class inherits from eventtarget,
options like this are automatically handled for you.
Chapter 3: Introduction to XUL—How to build a more intuitive UI - Archive of obsolete content
you can explicitly set or change this layout using the orient attribute, with
options for horizontal and vertical.
...for example, firefox uses the windowtype navigator:browser for its browser window and browser:preferences for its
options dialog.
... root elements for dialog windows dialog use the dialog element when creating
options dialogs, confirmation dialogs, etc.
...you set exclusive
options by inserting multiple radio elements into the content of one radiogroup element; the currently selected radio element will have selected="true" set.
Handling Preferences - Archive of obsolete content
to open the preferences window in firefox, select the following from the main menu: on windows, tools >
options on mac, firefox > preferences on linux, edit > preferences note: keep in mind the usage of the terms "preferences" and "
options" in different platforms.
...right-clicking on the list reveals several
options that allow you to modify preference values and add new ones.
...in order to have this button enabled in your extension you need to add the following line to install.rdf: <em:
optionsurl>chrome://xulschoolhello/content/preferenceswindow.xul</em:
optionsurl> if you want to open this window from a different place in the ui, such as a menu item or a button in a toolbar, you need to take into account that the opening behavior of a preferences window is different depending on the operating system.
... in most cases, your preferences window will have a few
options that can be displayed all at once.
Setting up an extension development environment - Archive of obsolete content
accessing thunderbird development preferences to change preference settings in thunderbird, open the "preferences" (unix) or "
options" (windows) interface.
...maxversion needs to be set in install.rdf javascript.
options.showinconsole = true.
... javascript.
options.strict = true.
...with this, javascript.
options.showinconsole is also set to true by default.
MCD, Mission Control Desktop, AKA AutoConfig - Archive of obsolete content
bird-3.0.autoldap/configure 2009-06-29 14:41:11.547435040 +0200 @@ -12855,7 +12855,7 @@ moz_feeds=1 moz_jsdebugger=1 moz_jsloader=1 -moz_ldap_xpcom= +moz_ldap_xpcom=1 moz_mail_news= moz_mork=1 moz_morkreader= and set --enable-extensions=pref in mozconfig file, in fedora source rpm it is: [root@b008-02 sources]# grep enable-extensions /root/rpmbuild/sources/thunderbird-mozconfig ac_add_
options --enable-extensions=pref it seems worse this time , as even after applying those compilation
options mentioned above, i now get the following error message while stating thunderbird with autoconfig (autoconf.js having pref('general.config.filename','thunderbird.cfg'); ) and thunderbird.cfg calling getldap* functions to retrieve cn and mail address of the current user.
... on my fedora core 3 system, i took the thunderbird source package thunderbird-1.0.2-1.3.3.src.rpm installed it (rpm -i) then modified /usr/src/redhat/sources/thunderbird-mozconfig by adding: ac_add_
options --enable-extensions=pref compile and install: $ rpmbuild -ba /usr/src/redhat/specs/thunderbird.spec $ rpm -uvh /usr/src/redhat/rpms/i386/thunderbird-1.0.2-1.3.3.i386.rpm after instillation, autoconfig is finally back here: $ rpm -ql thunderbird | grep autoconfig /usr/lib/thunderbird-1.0.2/chrome/locale/autoconfig /usr/lib/thunderbird-1.0.2/components/autoconfig.xpt /usr/lib/thunderbird-1.0.
... build thunderbird prepare compile
options [root@b008-02 commsrc]# cp ./mozilla/browser/config/mozconfig .mozconfig [root@b008-02 commsrc]# cat .mozconfig mk_add_
options autoconf=autoconf-2.13 ac_add_
options --enable-application=mail ac_add_
options --prefix="/usr/local/thunderbirddebug" ac_add_
options --libdir="/usr/local/thunderbirddebuglibs" ac_add_
options --enable-extensions=pref ac_add_
options --enable-static ac_add_
options --disable...
...-shared ac_add_
options --disable-crashreporter the option --disable-crashreporter is necessary if you get compile error at this stage of the build gmake[7]: entering directory `/usr/local/moz2/commsrc/mozilla/toolkit/crashreporter/google-breakpad/src/common/linux' dump_symbols.cc build then start building [root@b008-02 commsrc]# time make -f client.mk build rm -f ../../mozilla/dist/bin/testcookie if test -f ../../mozilla/dist/bin/testtarray; then cp ../../mozilla/dist/bin/testtarray ../../mozilla/dist/bin/testcookie; fi; gmake[5]: quittant le répertoire « /usr/local/moz/commsrc/mail/app » gmake[4]: quittant le répertoire « /usr/local/moz/commsrc/mail » gmake[3]: quittant le répertoire « /usr/local/moz/commsrc » gmake[2]: quittant le répertoire « /usr/local...
Using microformats - Archive of obsolete content
var nummicroformats = microformats.count(name, rootelement,
options); parameters name the name of the microformat to count.
...
options optional.
... var microformatsarray = microformats.get(name, rootelement,
options, targetarray); parameters name the name of the microformat to find.
...
options optional.
Index - Game development
7 publishing games games, html5, javascript, monetization, promotion, distribution, publishing this series of articles looks at the
options you have when you want to publish and distribute your game, and earn something out of it while you wait for it to become famous.
...there are many
options available and there's no single good answer as to which is the best.
...you have a whole lot of
options to chose from with most of them being free, so it's only about your enthusiasm and available time.
...to see the difference, toggle javascript.
options.parallel_parsing in about:config.
Client-Server Overview - Learn web development
trace,
options, connect, patch: these verbs are for less common/advanced tasks, so we won't cover them here.
... http/1.1 200 ok server: apache x-backend-server: developer1.webapp.scl3.mozilla.com vary: accept,cookie, accept-encoding content-type: text/html; charset=utf-8 date: wed, 07 sep 2016 00:11:31 gmt keep-alive: timeout=5, max=999 connection: keep-alive x-frame-
options: deny allow: get x-cache-info: caching content-length: 41823 <!doctype html> <html lang="en-us" dir="ltr" class="redesign no-js" data-ffo-opensanslight=false data-ffo-opensans=false > <head prefix="og: http://ogp.me/ns#"> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <script>(function(d) { d.classname = d.classname.replace(/\bno-js/, ''); })(document.docum...
...the x-frame-
options: deny line tells the browser not to allow this page to be embedded in an <iframe> in another site).
... http/1.1 302 found server: apache x-backend-server: developer3.webapp.scl3.mozilla.com vary: cookie vary: accept-encoding content-type: text/html; charset=utf-8 date: wed, 07 sep 2016 00:38:13 gmt location: https://developer.mozilla.org/profiles/hamishwillee keep-alive: timeout=5, max=1000 connection: keep-alive x-frame-
options: deny x-cache-info: not cacheable; request wasn't a get or head content-length: 0 note: the http responses and requests shown in these examples were captured using the fiddler application, but you can get similar information using web sniffers (e.g.
Deployment and next steps - Learn web development
if you are not interested at all in typescript, you can skip to the next chapter, where we will look at different
options for deploying our svelte applications, further resources, and more.
...all you need is a web server capable of serving static files, which means you have plenty of
options to choose from.
...after creating a new repo gitlab will greet you with a message explaining different
options to upload your existing files.
... in this article we've learned about a couple of zero-fuss
options to deploy our app in production and seen how to setup a basic pipeline to deploy our app to gitlab on every commit.
Getting started with Vue - Learn web development
these
options let you configure things like typescript, linting, vue-router, testing, and more.
... finally, you are asked if you want to save this as a preset for future
options.
... note: we've not gone over all of the
options here, but you can find more information on the cli in the vue docs.
... note: depending on the
options you select when creating a new project, there might be other directories present (for example, if you choose a router, you will also have a views directory).
Strategies for carrying out testing - Learn web development
you should also be encouraged to look at the different
options on the left hand side, and see what kinds of data you can find out.
... the following are also good
options, if you can get them: a linux pc available, in case you need to test bugs specific to linux versions of browsers.
... we will cover each of the other
options below.
...you'll: provide a name for the new virtual machine choose which operating system and version you are installing on it set how much ram should be allocated (we'd recommend something like 2048mb, or 2gb) create a virtual hard disk (choose the default
options across the three dialog boxes containing create a virtual hard disk now, vdi (virtual disk image), and dynamically allocated).
Theme concepts
these theme
options can be implemented as static themes (although the theme images themselves may be animated) or as dynamic themes created in a browser extension.
...additionally, firefox color can be used to preview customizations to the browser's theme with
options to share and export a theme.
...full detais of the alignment and tiling
options can be found in the "theme" key description.
...full details of the alignment
options can be found in the "theme" key description.
Profiling with Xperf
firefox generates lots of events, so you may want to play with the buffersize/minbuffers/maxbuffers
options as well to ensure that you don't get dropped events.
...this can be done by running 'msconfig' and going to advance
options from the "boot" tab.
... building firefox to get good data from a firefox build, it is important to build with the following
options in your mozconfig: export cflags="-oy-" export cxxflags="-oy-" this disables frame-pointer optimization which lets xperf do a much better job unwinding the stack.
...ac_add_
options --enable-debug-symbols this gives us symbols.
PKCS11 FAQ
what are "generic crypto svcs" (the first item listed when you click the view/edit button for the nss internal pkcs #11 module under security devices under
options/security in firefox)?
...if your token can do ckm_rsa_pkcs, and is writable, nss displays it as one of the
options to do key generation with.
...first open the tools/
options/advanced/security window in mozilla and click security devices.
...normally this dialog does not have any
options and just provides information; however, if you have more than one token that can be used in this key generation process (for example, your smartcard and the nss internal pkcs#11 module), you will see a selection of "cards and databases" that can be used to generate your new key info.
NSS tools : modutil
synopsis modutil [
options] [[arguments]] status this documentation is still work in progress.
...
options running modutil always requires one (and only one) option to specify the type of module operation.
...
options -add modulename add the named pkcs #11 module to the database.
... -slot slotname specify a particular slot to be enabled or disabled with the -enable or -disable
options.
NSS Tools cmsutil
syntax to run cmsutil, type the command cmsutil option [arguments] where option and arguments are combinations of the
options and arguments listed in the following section.
...to see a usage string, issue the command without
options.
...
options and arguments
options specify an action.
...the
options and arguments for the cmsutil command are defined as follows:
options -ddecode a message.
NSS tools : modutil
synopsis modutil [
options] arguments description the security module database tool, modutil, is a command-line utility for managing pkcs #11 module information both within secmod.db files and within hardware tokens.
...
options running modutil always requires one (and only one) option to specify the type of module operation.
...
options -add modulename add the named pkcs #11 module to the database.
... -slot slotname specify a particular slot to be enabled or disabled with the -enable or -disable
options.
How to embed the JavaScript engine
global_class, nullptr, js::fireonnewglobalhook)); if (!global) return 1; js::rootedvalue rval(cx); { // scope for jsautocompartment jsautocompartment ac(cx, global); js_initstandardclasses(cx, global); const char *script = "'hello'+'world, it is '+new date()"; const char *filename = "noname"; int lineno = 1; js::compile
options opts(cx); opts.setfileandline(filename, lineno); bool ok = js::evaluate(cx, global, opts, script, strlen(script), &rval); if (!ok) return 1; } jsstring *str = rval.tostring(); printf("%s\n", js_encodestring(cx, str)); } js_destroycontext(cx); js_destroyruntime(rt); js_shutdown(); return 0; } spidermonkey 45 // following ...
...global_class, nullptr, js::fireonnewglobalhook)); if (!global) return 1; js::rootedvalue rval(cx); { // scope for jsautocompartment jsautocompartment ac(cx, global); js_initstandardclasses(cx, global); const char *script = "'hello'+'world, it is '+new date()"; const char *filename = "noname"; int lineno = 1; js::compile
options opts(cx); opts.setfileandline(filename, lineno); bool ok = js::evaluate(cx, opts, script, strlen(script), &rval); if (!ok) return 1; } jsstring *str = rval.tostring(); printf("%s\n", js_encodestring(cx, str)); } js_destroycontext(cx); js_destroyruntime(rt); js_shutdown(); return 0; } spidermonkey 52 #include "jsapi.h" #i...
... jsautorequest ar(cx); // in practice, you would want to exit this any // time you're spinning the event loop js::compartment
options options; js::rootedobject global(cx, js_newglobalobject(cx, &global_class, nullptr, js::fireonnewglobalhook,
options)); if (!global) return 1; js::rootedvalue rval(cx); { // scope for jsautocompartment jsautocompartment ac(cx, global); js_initstandardclasses(cx, global); const char *script = "'hello'+'world, it is '+new date()"; ...
... const char *filename = "noname"; int lineno = 1; js::compile
options opts(cx); opts.setfileandline(filename, lineno); bool ok = js::evaluate(cx, opts, script, strlen(script), &rval); if (!ok) return 1; } jsstring *str = rval.tostring(); printf("%s\n", js_encodestring(cx, str)); } js_destroycontext(cx); js_shutdown(); return 0; } build and run the hello world example build command line depends on the os and the tools.
JS::Compile
syntax // added in spidermonkey 45 bool js::compile(jscontext *cx, const js::readonlycompile
options &
options, js::sourcebufferholder &srcbuf, js::mutablehandlescript script); bool js::compile(jscontext *cx, const js::readonlycompile
options &
options, const char *bytes, size_t length, js::mutablehandlescript script); bool js::compile(jscontext *cx, const js::readonlycompile
options &
options, const char16_t *chars, size_t length, js::mutablehandlescript script); bool js::compile(jscontext *cx, const js::readonlycompile
options &
options, file *file, js::mutablehandlescript script); bool js::compile(jsc...
...ontext *cx, const js::readonlycompile
options &
options, const char *filename, js::mutablehandlescript script); // obsolete since jsapi 39 bool js::compile(jscontext *cx, js::handleobject obj, const js::readonlycompile
options &
options, js::sourcebufferholder &srcbuf, js::mutablehandlescript script); bool js::compile(jscontext *cx, js::handleobject obj, const js::readonlycompile
options &
options, const char *bytes, size_t length, js::mutablehandlescript script); bool js::compile(jscontext *cx, js::handleobject obj, const js::readonlycompile
options &
options, const char16_t *chars, size_t length, js::mutablehandlescript script); bool js::compile(jscontext *cx, js::handleobject obj, const js:...
...:readonlycompile
options &
options, file *file, js::mutablehandlescript script); bool js::compile(jscontext *cx, js::handleobject obj, const js::readonlycompile
options &
options, const char *filename, js::mutablehandlescript script); name type description cx jscontext * pointer to a js context from which to derive runtime information.
...obsolete since jsapi 39
options js::readonlycompile
options & compile
options.
JS::Evaluate
syntax // added in spidermonkey 45 bool js::evaluate(jscontext *cx, const js::readonlycompile
options &
options, js::sourcebufferholder &srcbuf, js::mutablehandlevalue rval); bool js::evaluate(jscontext *cx, const js::readonlycompile
options &
options, const char16_t *chars, size_t length, js::mutablehandlevalue rval); bool js::evaluate(jscontext *cx, const js::readonlycompile
options &
options, const char *bytes, size_t length, js::mutablehandlevalue rval); bool js::evaluate(jscontext *cx, const js::readonlycompile
options &
options, const char *filename, js::mutablehandlevalue rval); boo...
...l js::evaluate(jscontext *cx, js::autoobjectvector &scopechain, const readonlycompile
options &
options, const char16_t *chars, size_t length, js::mutablehandlevalue rval); // added in spidermonkey 17 bool js::evaluate(jscontext *cx, js::autoobjectvector &scopechain, const js::readonlycompile
options &
options, js::sourcebufferholder &srcbuf, js::mutablehandlevalue rval); // obsolete since jsapi 39 bool js::evaluate(jscontext *cx, js::handleobject obj, const js::readonlycompile
options &
options, js::sourcebufferholder &srcbuf, js::mutablehandlevalue rval); bool js::evaluate(jscontext *cx, js::handleobject obj, const js::readonlycompile
options &
options, const char16_t *chars, size_t length, js::...
...mutablehandlevalue rval); bool js::evaluate(jscontext *cx, js::handleobject obj, const js::readonlycompile
options &
options, const char *bytes, size_t length, js::mutablehandlevalue rval); bool js::evaluate(jscontext *cx, js::handleobject obj, const js::readonlycompile
options &
options, const char *filename, js::mutablehandlevalue rval); name type description cx jscontext * the context in which to run the script.
...
options js::readonlycompile
options & compile
options.
Places Developer Guide
var history = cc["@mozilla.org/browser/nav-history-service;1"] .getservice(ci.nsinavhistoryservice); var query = history.getnewquery(); query.setfolders([myfolderid], 1); var result = history.executequery(query, history.getnewquery
options()); // the root property of a query result is an object representing the folder you specified above.
...ice;1"] .getservice(ci.nsinavhistoryservice); var query = history.getnewquery(); // specify folders to be searched var folders = [bookmarks.toolbarfolder, bookmarks.bookmarksmenufolder, bookmarks.unfiledbookmarksfolder]; query.setfolders(folders, folders.length); // specify terms to search for, matches against title, url and tags query.searchterms = "firefox"; var
options = history.getnewquery
options();
options.querytype =
options.query_type_bookmarks; var result = history.executequery(query,
options); // the root property of a query result is an object representing the folder you specified above.
...var historyservice = components.classes["@mozilla.org/browser/nav-history-service;1"] .getservice(components.interfaces.nsinavhistoryservice); var query = historyservice.getnewquery(); var
options = historyservice.getnewquery
options();
options.sortingmode =
options.sort_by_visitcount_descending;
options.maxresults = 10; // execute the query var result = historyservice.executequery(query,
options); // iterate over the results result.root.containeropen = true; var count = result.root.childcount; for (var i = 0; i < count; i++) { var node = result.root.getchild(i); // do something with ...
...var history = cc["@mozilla.org/browser/nav-history-service;1"] .getservice(ci.nsinavhistoryservice); var query = history.getnewquery(); // specify terms to search for, matches against title and url query.searchterms = "firefox"; var result = history.executequery(query, history.getnewquery
options()); // the root property of a query result is an object representing the folder you specified above.
mozIJSSubScriptLoader
method overview jsval loadsubscript(in string url, in object targetobj optional, in string charset optional); jsval loadsubscriptwith
options(in string url, in object
options); methods loadsubscript() synchronously loads and executes the script from the specified url.
... loadsubscriptwith
options() same as loadsubscript(), except that parameters after url are expressed as an object, and a new ignorecache option is available.
... jsval loadsubscriptwith
options( in string url, in object
options ); parameters url the url pointing to the script to load.
...
options an object that may include any of these parameters: property type description target object the object to use as the scope object for the script being executed.
nsIDynamicContainer
method overview void oncontainermoved(in long long aitemid, in long long anewparent, in long anewindex); void oncontainernodeclosed(in nsinavhistorycontainerresultnode acontainer); void oncontainernodeopening(in nsinavhistorycontainerresultnode acontainer, in nsinavhistoryquery
options a
options); void oncontainerremoving(in long long aitemid); methods oncontainermoved() this method is called when the given container has just been moved, in case the service needs to do any bookkeeping.
...void oncontainernodeopening( in nsinavhistorycontainerresultnode acontainer, in nsinavhistoryquery
options a
options ); parameters acontainer the container node for the container being opened.
... a
options the
options used to generate this query.
... see also places nsinavhistorycontainerresultnode nsinavhistoryquery
options nsinavbookmarksservice.createdynamiccontainer() ...
Debugger.Frame - Firefox Developer Tools
eval(code, [
options]) evaluatecode in the execution context of this frame, and return a completion value describing how it completed.code is a string.
... if given,
options should be an object whose properties specify details of how the evaluation should occur.
... evalwithbindings(code,bindings, [
options]) like eval, but evaluatecode in the environment of this frame, extended with bindings from the objectbindings.
... the
options argument is as for debugger.frame.prototype.eval, described above.
Debugger.Object - Firefox Developer Tools
executeinglobal(code, [
options]) if the referent is a global object, evaluatecode in that global environment, and return a completion value describing how it completed.code is a string.
... the
options argument is as for debugger.frame.prototype.eval.
... executeinglobalwithbindings(code,bindings, [
options]) like executeinglobal, but evaluatecode using the referent as the variable object, but with a lexical environment extended with bindings from the objectbindings.
...(in the terms used by the ecmascript specification, the variableenvironment of the execution context forcode is the referent, and thebindings appear in a new declarative environment, which is the eval code’s lexicalenvironment.) the
options argument is as for debugger.frame.prototype.eval.
Debugger.Object - Firefox Developer Tools
evalinglobal(code, [
options]) if the referent is a global object, evaluatecode in that global environment, and return a completion value describing how it completed.code is a string.
...(in the terms used by the ecmascript specification, the variableenvironment of the execution context for the eval code is the referent.) the
options argument is as for debugger.frame.prototype.eval.
... evalinglobalwithbindings(code,bindings, [
options]) like evalinglobal, but evaluatecode using the referent as the variable object, but with a lexical environment extended with bindings from the objectbindings.
...(in the terms used by the ecmascript specification, the variableenvironment of the execution context for non-strict eval code is the referent, and thebindings appear in a new declarative environment, which is the eval code's lexicalenvironment.) the
options argument is as for debugger.frame.prototype.eval.
Edit Shape Paths in CSS - Firefox Developer Tools
this guide walks you through all of the available
options.
... editing basic shapes the
options given to you by the tool will differ depending on the type of basic shape that you are editing.
...
options can be accessed by activating the shape path editor with a regular click on the icon, and you can use the context menu (ctrl/cmd + click) to access additional functionality.
...this is the most complex of the basic shape values, therefore the tool gives you more
options when editing these: clicking on the shapes icon will activate the shapes path editor and give you the option to move any of the points of your polygon shape.
Cache - Web APIs
methods cache.match(request,
options) returns a promise that resolves to the response associated with the first matching request in the cache object.
... cache.matchall(request,
options) returns a promise that resolves to an array of all matching requests in the cache object.
... cache.delete(request,
options) finds the cache entry whose key is the request, returning a promise that resolves to true if a matching cache entry is found and deleted.
... cache.keys(request,
options) returns a promise that resolves to an array of cache keys.
Element.scroll() - Web APIs
syntax element.scroll(x-coord, y-coord) element.scroll(
options) parameters calling with coordinates x-coord the pixel along the horizontal axis of the element that you want displayed in the upper left.
... calling with
options options a scrollto
options dictionary.
... examples // put the 1000th vertical pixel at the top of the element element.scroll(0, 1000); using
options: element.scroll({ top: 100, left: 100, behavior: 'smooth' }); specification specification status comment css object model (cssom) view modulethe definition of 'element.scroll()' in that specification.
... 45chrome android full support 45firefox android full support 36opera android full support 32safari ios no support nosamsung internet android full support 5.0scrollto
options parameterchrome full support 45edge full support 79firefox full support yesie no support noopera full support 32safari no support ...
Element.scrollIntoView() - Web APIs
the element interface's scrollintoview() method scrolls the element's parent container such that the element on which scrollintoview() is called is visible to the user syntax element.scrollintoview(); element.scrollintoview(aligntotop); // boolean parameter element.scrollintoview(scrollintoview
options); // object parameter parameters aligntotop optional is a boolean value: if true, the top of the element will be aligned to the top of the visible area of the scrollable ancestor.
... corresponds to scrollintoview
options: {block: "start", inline: "nearest"}.
...corresponds to scrollintoview
options: {block: "end", inline: "nearest"}.
... scrollintoview
options optional is an object with the following properties: behavior optional defines the transition animation.
Element.scrollTo() - Web APIs
syntax element.scrollto(x-coord, y-coord) element.scrollto(
options) parameters x-coord is the pixel along the horizontal axis of the element that you want displayed in the upper left.
... - or -
options is a scrollto
options dictionary.
... examples element.scrollto(0, 1000); using
options: element.scrollto({ top: 100, left: 100, behavior: 'smooth' }); specifications specification status comment css object model (cssom) view modulethe definition of 'element.scrollto()' in that specification.
... 45chrome android full support 45firefox android full support 36opera android full support 32safari ios no support nosamsung internet android full support 5.0scrollto
options parameterchrome full support 45edge full support 79firefox full support yesie no support noopera full support 32safari no support ...
Geolocation.getCurrentPosition() - Web APIs
syntax navigator.geolocation.getcurrentposition(success[, error[, [
options]]) parameters success a callback function that takes a geolocationposition object as its sole input parameter.
...
options optional an optional position
options object.
...
options includes: maximumage: integer (milliseconds) | infinity - maximum cached position age.
... enablehighaccuracy: false | true examples var
options = { enablehighaccuracy: true, timeout: 5000, maximumage: 0 }; function success(pos) { var crd = pos.coords; console.log('your current position is:'); console.log(`latitude : ${crd.latitude}`); console.log(`longitude: ${crd.longitude}`); console.log(`more or less ${crd.accuracy} meters.`); } function error(err) { console.warn(`error(${err.code}): ${err.message}`); } navigator.geolocation.getcurrentposition(success, error,
options); specifications specification status comment geolocation api recommendation initial specification.
IntersectionObserver.IntersectionObserver() - Web APIs
syntax var observer = new intersectionobserver(callback[,
options]); parameters callback a function which is called when the percentage of the target element is visible crosses a threshold.
...
options optional an optional object which customizes the observer.
... if
options isn't specified, the observer uses the document's viewport as the root, with no margin, and a 0% threshold (meaning that even a one-pixel change is enough to trigger a callback).
... you can provide any combination of the following
options: root an element or document object which is an ancestor of the intended target, whose bounding rectangle will be considered the viewport.
Timing element visibility with the Intersection Observer API - Web APIs
setting up to set things up, we run the startup() function below when the page loads: window.addeventlistener("load", startup, false); function startup() { contentbox = document.queryselector("main"); document.addeventlistener("visibilitychange", handlevisibilitychange, false); let observer
options = { root: null, rootmargin: "0px", threshold: [0.0, 0.75] }; adobserver = new intersectionobserver(intersectioncallback, observer
options); buildcontents(); refreshintervalid = window.setinterval(handlerefreshinterval, 1000); } first, a reference to the content wrapping <main> element is obtained, so we can insert our content into it.
... next we set up the
options for the intersectionobserver which will monitor target elements (ads, in our case) for intersection changes relative to the document.
... the
options are configured to watch for intersections with the document's viewport (by setting root to null).
... the observer, adobserver, is created by calling intersectionobserver's constructor, passing in the callback function, intersectioncallback, and our
options.
MediaDevices.getDisplayMedia() - Web APIs
the specified constraints can't be used to limit the
options available to the user.
... example in the example below, a startcapture() method is created which initiates screen capture given a set of
options specified by the displaymedia
options parameter.
... the
options are specified in the form of a mediastreamconstraints object which specifies the preferred stream configuration and the display surface from which video is to be captured.
... async function startcapture(displaymedia
options) { let capturestream = null; try { capturestream = await navigator.mediadevices.getdisplaymedia(displaymedia
options); } catch(err) { console.error("error: " + err); } return capturestream; } this uses await to asynchronously wait for getdisplaymedia() to resolve with a mediastream which contains the display contents as requested by the specified
options.
MediaStreamTrackAudioSourceNode() - Web APIs
the web audio api's mediastreamtrackaudiosourcenode() constructor creates and returns a new mediastreamtrackaudiosourcenode object whose audio is taken from the mediastreamtrack specified in the given
options object.
... syntax audiotracknode = new mediastreamtrackaudiosourcenode(context,
options); parameters context an audiocontext representing the audio context you want the node to be associated with.
...
options a mediastreamtrackaudiosource
options object defining the properties you want the mediastreamtrackaudiosourcenode to have: mediastreamtrack the mediastreamtrack from which to take audio data for this node's output.
... let audioctx = new (window.audiocontext || window.webkitaudiocontext)(); if (navigator.mediadevices.getusermedia) { navigator.mediadevices.getusermedia ( { audio: true, video: false }).then(function(stream) { let
options = { mediastreamtrack: stream.getaudiotracks()[0]; } let source = new mediastreamtrackaudiosourcenode(audioctx,
options); source.connect(audioctx.destination); }).catch(function(err) { console.log('the following gum error occured: ' + err); }); } else { console.log('new getusermedia not supported on your browser!'); } specifications specificati...
MutationObserver.MutationObserver() - Web APIs
syntax const observer = new mutationobserver(callback) parameters callback a function which will be called on each dom change that qualifies given the observed node or subtree and
options.
... const targetnode = document.queryselector("#someelement"); const observer
options = { childlist: true, attributes: true, // omit (or set to false) to observe only changes to the parent node subtree: true } const observer = new mutationobserver(callback); observer.observe(targetnode, observer
options); the desired subtree is located by finding an element with the id someelement.
... a set of
options for the observer is also established in the observer
options record.
...we begin observing the dom nodes of interest by calling observe(), specifying the target node and the
options object.
MutationObserverInit.attributeFilter - Web APIs
if the attributes permission is true but no attributefilter is included in the
options object, all attributes' values are watched for changes.
... syntax var
options = { attributefilter: [ "list", "of", "attribute", "names" ] } value an array of domstring objects, each specifying the name of one attribute whose value is to be monitored for changes.
... if this property exists on the
options object when the mutationobserver() constructor is used to create a new mutationobserver, attribute monitoring is enabled regardless of whether or not the attributes property is true.
... when observe() is called, the specified
options include both attributefilter and subtree, so that we monitor the attribute values for all of the nodes contained within the subtree rooted at the node with the id "userlist".
ParentNode.replaceChildren() - Web APIs
> it would make sense to use some simple css to lay out the two select lists in a line alongside one another, with the control buttons in between them: main { display: flex; } div { margin-right: 20px; } label, button { display: block; } .buttons { display: flex; flex-flow: column; justify-content: center; } select { width: 200px; } what we want to do is transfer any selected
options in the "no" list over to the "yes" list when the "yes" button is pressed, and transfer any selected
options in the "yes" list over to the "no" list when the "no" button is pressed.
... to do this, we give each of the buttons a click event handler, which collects together the selected
options you want to transfer in one constant, and the existing
options in the list you are transferring to in another constant.
... it then calls replacechildren() on the list to transfer the
options to, using the spread operator to pass in all the
options contained in both constants.
... const noselect = document.getelementbyid('no'); const yesselect = document.getelementbyid('yes'); const nobtn = document.getelementbyid('to-no'); const yesbtn = document.getelementbyid('to-yes'); yesbtn.addeventlistener('click', () => { const selectedtransfer
options = document.queryselectorall('#no option:checked'); const existingyes
options = document.queryselectorall('#yes option'); yesselect.replacechildren(...selectedtransfer
options, ...existingyes
options); }); nobtn.addeventlistener('click', () => { const selectedtransfer
options = document.queryselectorall('#yes option:checked'); const existingno
options = document.queryselectorall('#no option'); noselect.replacechildren(...selectedtransfer
options, ...existingno
options); }); the end result looks like this: specification ...
PaymentRequest.PaymentRequest() - Web APIs
syntax var paymentrequest = new paymentrequest(methoddata, details, [
options]); parameters methoddata contains an array of identifiers for the payment methods the merchant web site accepts and any associated payment method specific data.
... shipping
options the shipping
options the user may choose from.
...
options optional lets you set
options that control the behavior of the user agent.
...[{ supportedmethods: 'basic-card', data: { supportednetworks: ['visa', 'mastercard', 'amex', 'jcb', 'diners', 'discover', 'mir', 'unionpay'] } }]; var details = { total: {label: 'donation', amount: {currency: 'usd', value: '65.00'}}, displayitems: [ { label: 'original donation amount', amount: {currency: 'usd', value: '65.00'} } ], shipping
options: [ { id: 'standard', label: 'standard shipping', amount: {currency: 'usd', value: '0.00'}, selected: true } ] }; var
options = {requestshipping: true}; try { var request = new paymentrequest(supportedinstruments, details,
options); // add event listeners here.
PaymentRequest.show() - Web APIs
those look like this: async/await syntax using await to wait for a promise to be resolved makes it possible to write the code to handle payments particularly cleanly: async function processpayment() { try { const payrequest = new paymentrequest(methoddata, details,
options); payrequest.onshippingaddresschange = ev => ev.updatewith(checkaddress(payrequest)); payrequest.onshippingoptionchange = ev => ev.updatewith(checkshipping(payrequest)); const repsonse = await payrequest.show(); await validateresponse(response); } catch(err) { /* handle the error; aborterror usually means a user cancellation */ } } in this code, the methods checkaddres...
... then/catch syntax you can also use the older promise-based approach to work with payments, using the then() and catch() functions on the promise returned by show(): function processspayment() { const payrequest = new paymentrequest(methoddata, details,
options); payrequest.onshippingaddresschange = ev => ev.updatewith(checkaddress(payrequest)); payrequest.onshippingoptionchange = ev => ev.updatewith(checkshipping(payrequest)); payrequest.show() .then(response => validateresponse(response)) .catch(err => handleerror(err)); } this is functionally equivalent to the processpayment() method using the await syntax.
... const payment = new paymentrequest(methods, details,
options); try { const response = await payment.show(); // process response here, including sending payment instrument // (e.g., credit card) information to the server.
... const initialdetails = { total: { label: "total", amount: { value: "0", currency: "aud" }, }, }; const request = new paymentrequest(methods, initialdetails,
options); // check if the the user supports the `methods` if (!await request.canmakepayment()) { return; // no, so use a web form instead.
PushManager.subscribe() - Web APIs
syntax pushmanager.subscribe(
options).then(function(pushsubscription) { ...
... } ); parameters
options optional an object containing optional configuration parameters.
...} navigator.serviceworker.register('serviceworker.js'); // use serviceworker.ready to ensure that you can subscribe for push navigator.serviceworker.ready.then( function(serviceworkerregistration) { var
options = { uservisibleonly: true, applicationserverkey: applicationserverkey }; serviceworkerregistration.pushmanager.subscribe(
options).then( function(pushsubscription) { console.log(pushsubscription.endpoint); // the push subscription details needed by the application // server are now available, and can be sent to it using, // for example, an ...
... console.log(error); } ); }); responding to user gestures subscribe() calls should be done in response to a user gesture, such as clicking a button, for example: btn.addeventlistener('click', function() { serviceworkerregistration.pushmanager.subscribe(
options) .then(function(pushsubscription) { // handle subscription }); }) this is not only best practice — you should not be spamming users with notifications they didn't agree to — but going forward browsers will explicitly disallow notifications not triggered in response to a user gesture.
RTCPeerConnection.createOffer() - Web APIs
the sdp offer includes information about any mediastreamtracks already attached to the webrtc session, codec, and
options supported by the browser, and any candidates already gathered by the ice agent, for the purpose of being sent over the signaling channel to a potential peer to request a connection or to update the configuration of an existing connection.
... syntax apromise = mypeerconnection.createoffer([
options]); mypeerconnection.createoffer(successcallback, failurecallback, [
options]) parameters
options optional an rtcoffer
options dictionary providing
options requested for the offer.
... rtcoffer
options dictionary the rtcoffer
options dictionary is used to customize the offer created by this method.
...
options optional an optional rtcoffer
options dictionary providing
options requested for the offer.
ReportingObserver() - Web APIs
syntax new reportingobserver(callback[,
options]); parameters callback a callback function that runs when the observer starts to collect reports (i.e.
...
options optional an reportingobserver
options object allowing you to set the
options for creating the object.
... the available
options are: types: an array of strings representing the types of report to be collected by this observer.
... examples let
options = { types: ['deprecation'], buffered: true } let observer = new reportingobserver(function(reports, observer) { reportbtn.onclick = () => displayreports(reports); },
options); specifications specification status comment reporting apithe definition of 'reportingobserver()' in that specification.
ServiceWorkerRegistration.getNotifications() - Web APIs
syntax serviceworkerregistration.getnotifications(
options) .then(function(notificationslist) { ...
... }); parameters
options optional an object containing
options to filter the notifications returned.
... the available
options are: tag: a domstring representing a notification tag.
... example navigator.serviceworker.register('sw.js'); var
options = { tag : 'user_alerts' }; navigator.serviceworker.ready.then(function(registration) { registration.getnotifications(
options).then(function(notifications) { // do something with your notifications }) }); specifications specification status comment notifications apithe definition of 'serviceworkerregistration.getnotifications()' in that specification.
Using the Web Speech API - Web APIs
t = document.queryselector('.txt'); var voiceselect = document.queryselector('select'); var pitch = document.queryselector('#pitch'); var pitchvalue = document.queryselector('.pitch-value'); var rate = document.queryselector('#rate'); var ratevalue = document.queryselector('.rate-value'); var voices = []; populating the select element to populate the <select> element with the different voice
options the device has available, we've written a populatevoicelist() function.
...peechsynthesisvoice.name), the language of the voice (grabbed from speechsynthesisvoice.lang), and -- default if the voice is the default voice for the synthesis engine (checked by seeing if speechsynthesisvoice.default returns true.) we also create data- attributes for each option, containing the name and language of the associated voice, so we can grab them easily later on, and then append the
options as children of the select.
...we use the htmlselectelement selected
options property to return the currently selected <option> element.
... inputform.onsubmit = function(event) { event.preventdefault(); var utterthis = new speechsynthesisutterance(inputtxt.value); var selectedoption = voiceselect.selected
options[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } utterthis.pitch = pitch.value; utterthis.rate = rate.value; synth.speak(utterthis); in the final part of the handler, we include an speechsynthesisutterance.onpause handler to demonstrate how speechsynthesisevent can be put to good u...
Window.scroll() - Web APIs
syntax window.scroll(x-coord, y-coord) window.scroll(
options) parameters x-coord is the pixel along the horizontal axis of the document that you want displayed in the upper left.
... - or -
options is a scrollto
options dictionary.
... examples <!-- put the 100th vertical pixel at the top of the window --> <button onclick="scroll(0, 100);">click to scroll down 100 pixels</button> using
options: window.scroll({ top: 100, left: 100, behavior: 'smooth' }); notes window.scrollto() is effectively the same as this method.
... 1chrome android full support 18firefox android full support 4opera android full support 10.1safari ios full support 1samsung internet android full support 1.0scrollto
options parameterchrome full support 45edge full support 79firefox full support yesie no support noopera full support 32safari no support ...
Window.scrollBy() - Web APIs
syntax window.scrollby(x-coord, y-coord); window.scrollby(
options) parameters x-coord is the horizontal pixel value that you want to scroll by.
... - or -
options is a scrollto
options dictionary.
... examples to scroll down one page: window.scrollby(0, window.innerheight); to scroll up: window.scrollby(0, -window.innerheight); using
options: window.scrollby({ top: 100, left: 100, behavior: 'smooth' }); notes window.scrollby() scrolls by a particular amount, whereas window.scroll() scrolls to an absolute position in the document.
... 1chrome android full support 18firefox android full support 4opera android full support 10.1safari ios full support 1samsung internet android full support 1.0scrollto
options parameterchrome full support 45edge full support 79firefox full support yesie no support noopera full support 32safari no support ...
<input type="checkbox"> - HTML: Hypertext Markup Language
the most common is when a checkbox is available that "owns" a number of sub-
options (which are also checkboxes).
... if all of the sub-
options are checked, the owning checkbox is also checked, and if they're all unchecked, the owning checkbox is unchecked.
... if any one or more of the sub-
options have a different state than the others, the owning checkbox is in the indeterminate state.
... examples the following example is an extended version of the "multiple checkboxes" example we saw above — it has more standard
options, plus an "other" checkbox that when checked causes a text field to appear to enter a value for the "other" option.
<input type="email"> - HTML: Hypertext Markup Language
additional attributes in addition to the attributes that operate on all <input> elements regardless of their type, email inputs support the following attributes: attribute description list the id of the <datalist> element that contains the optional pre-defined autocomplete
options maxlength the maximum number of characters the input should accept minlength the minimum number of characters long the input can be and still be considered valid multiple whether or not to allow multiple, comma-separated, e-mail addresses to be entered pattern a regular expression the input's contents must match in order to be valid placeho...
...any values in the list that are not compatible with the type are not included in the suggested
options.
... <input type="email" size="32" minlength="3" maxlength="64"> providing default
options as always, you can provide a default value for an email input box by setting its value attribute: <input type="email" value="default@example.com"> offering suggested values taking it a step farther, you can provide a list of default
options from which the user can select by specifying the list attribute.
... this doesn't limit the user to those
options, but does allow them to select commonly-used e-mail addresses more quickly.
<input type="number"> - HTML: Hypertext Markup Language
he input by including a number inside the value attribute, like so: <input id="number" type="number" value="42"> additional attributes in addition to the attributes commonly supported by all <input> types, inputs of type number support these attributes: attribute description list the id of the <datalist> element that contains the optional pre-defined autocomplete
options max the maximum value to accept for this input min the minimum value to accept for this input placeholder an example value to display inside the field when it's empty readonly a boolean attribute indicating whether the value is read-only step a stepping interval to use when using up and down arrows to adjust the value, as well as for val...
...any values in the list that are not compatible with the type are not included in the suggested
options.
... note: when the data entered by the user doesn't adhere to the stepping configuration, the user agent may round to the nearest valid value, preferring numbers in the positive direction when there are two equally close
options.
...an id and to shorten our placeholder since the field will be too narrow for the text we have been using so far: <input type="number" placeholder="x10" step="10" min="0" max="100" id="number"> then we add some css to narrow the width of the element with the id selector #number: #number { width: 3em; } the result looks like this: offering suggested values you can provide a list of default
options from which the user can select by specifying the list attribute, which contains as its value the id of a <datalist>, which in turn contains one <option> element per suggested value.
<input type="range"> - HTML: Hypertext Markup Language
additional attributes in addition to the attributes shared by all <input> elements, range inputs offer the following attributes: attribute description list the id of the <datalist> element that contains optional pre-defined
options max the maximum permitted value min the minimum permitted value step the stepping interval, used both for user interface and validation purposes list the values of the list attribute is the id of a <datalist> element located in the same document.
...any values in the list that are not compatible with the type are not included in the suggested
options.
... see the range control with hash marks below for an example of how the
options on a range are denoted in supported browsers max the greatest value in the range of permitted values.
... note: when the data entered by the user doesn't adhere to the stepping configuration, the user agent may round to the nearest valid value, preferring numbers in the positive direction when there are two equally close
options.
<input type="text"> - HTML: Hypertext Markup Language
additional attributes in addition to the attributes that operate on all <input> elements regardless of their type, text inputs support the following attributes: attribute description list the id of the <datalist> element that contains the optional pre-defined autocomplete
options maxlength the maximum number of characters the input should accept minlength the minimum number of characters long the input can be and still be considered valid pattern a regular expression the input's contents must match in order to be valid placeholder an exemplar value to display in the input field whenever it is empty readonly a boo...
...any values in the list that are not compatible with the type are not included in the suggested
options.
...you should use them anywhere you want the user to enter a single-line value and there isn't a more specific input type available for collecting that value (for example, if it's a date, url, email, or search term, you've got better
options available).
...abel> <input type="text" id="uname" name="name" placeholder="lower case, all one word" size="30"> </div> <div> <button>submit</button> </div> </form> validation <input> elements of type text have no automatic validation applied to them (since a basic text input needs to be capable of accepting any arbitrary string), but there are some client-side validation
options available, which we'll discuss below.
<input type="url"> - HTML: Hypertext Markup Language
additional attributes in addition to the attributes that operate on all <input> elements regardless of their type, url inputs support the following attributes: attribute description list the id of the <datalist> element that contains the optional pre-defined autocomplete
options maxlength the maximum number of characters the input should accept minlength the minimum number of characters long the input can be and still be considered valid pattern a regular expression the input's contents must match in order to be valid placeholder an exemplar value to display in the input field whenever it is empty readonly a boo...
...any values in the list that are not compatible with the type are not included in the suggested
options.
... providing default
options as always, you can provide a default value for a url input box by setting its value attribute: <input id="myurl" name="myurl" type="url" value="http://www.example.com"> offering suggested values taking it a step farther, you can provide a list of default
options from which the user can select by specifying the list attribute.
... this doesn't limit the user to those
options, but does allow them to select commonly-used urls more quickly.
HTML documentation index - HTML: Hypertext Markup Language
86 <datalist>: the html data list element element, html, html forms, html5, reference, web the html <datalist> element contains a set of <option> elements that represent the permissible or recommended
options available to choose from within other controls.
... 132 <input type="radio"> choosing
options, element, form
options, html, html input types, html forms, html input, input, input types,
options, radio buttons, radio groups, reference, form, radio, radio button <input> elements of type radio are generally used in radio groups—collections of radio buttons describing a set of related
options.
... 170 <optgroup> element, forms, html, html forms, reference, web the html <optgroup> element creates a grouping of
options within a <select> element.
... 189 <select>: the html select element element, forms, html, html forms, reference, web the html <select> element represents a control that provides a menu of
options 190 <shadow>: the obsolete shadow root element deprecated, element, html, html web components, reference, shadow root, web components, shadow, shadow dom the html <shadow> element—an obsolete part of the web components technology suite—was intended to be used as a shadow dom insertion point.
BigInt.prototype.toLocaleString() - JavaScript
syntax bigintobj.tolocalestring([locales [,
options]]) parameters the locales and
options arguments customize the behavior of the function and let applications specify the language whose formatting conventions should be used.
... in implementations that ignore the locales and
options arguments, the locale used and the form of the string returned are entirely implementation-dependent.
... examples using tolocalestring in basic use without specifying a locale, a formatted string in the default locale and with default
options is returned.
...chinese decimal console.log(bigint.tolocalestring('zh-hans-cn-u-nu-hanidec')); // → 一二三,四五六,七八九,一二三,四五六,七八九 // when requesting a language that may not be supported, such as // balinese, include a fallback language, in this case indonesian console.log(bigint.tolocalestring(['ban', 'id'])); // → 123.456.789.123.456.789 using
options the results provided by tolocalestring can be customized using the
options argument: var bigint = 123456789123456789n; // request a currency format console.log(bigint.tolocalestring('de-de', { style: 'currency', currency: 'eur' })); // → 123.456.789.123.456.789,00 € // the japanese yen doesn't use a minor unit console.log(bigint.tolocalestring('ja-jp', { style: 'currency', currency: 'jpy'...
Intl.DateTimeFormat() constructor - JavaScript
syntax new intl.datetimeformat([locales[,
options]]) parameters locales optional a string with a bcp 47 language tag, or an array of such strings.
...
options optional an object with some or all of the following properties: datestyle the date formatting style to use when calling format().
...this option overrides the hc language tag, if both are present, and the hour12 option takes precedence in case both
options have been specified.
... examples using datetimeformat in basic use without specifying a locale, datetimeformat uses the default locale and default
options.
Intl.DateTimeFormat.prototype.format() - JavaScript
the intl.datetimeformat.prototype.format() method formats a date according to the locale and formatting
options of this intl.datetimeformat object.
... description the format getter formats a date into a string according to the locale and formatting
options of this intl.datetimeformat object.
... examples using format use the format getter function for formatting a single date, here for serbia: var
options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }; var datetimeformat = new intl.datetimeformat('sr-rs',
options); console.log(datetimeformat.format(new date())); // → "недеља, 7.
... var a = [new date(2012, 08), new date(2012, 11), new date(2012, 03)]; var
options = { year: 'numeric', month: 'long' }; var datetimeformat = new intl.datetimeformat('pt-br',
options); var formatted = a.map(datetimeformat.format); console.log(formatted.join('; ')); // → "setembro de 2012; dezembro de 2012; abril de 2012" avoid comparing formatted date values to static values most of the time, the formatting returned by format() is consistent.
Intl.NumberFormat - JavaScript
instance methods intl.numberformat.prototype.format() getter function that formats a number according to the locale and formatting
options of this numberformat object.
... intl.numberformat.prototype.resolved
options() returns a new object with properties reflecting the locale and collation
options computed during initialization of the object.
... examples basic usage in basic use without specifying a locale, a formatted string in the default locale and with default
options is returned.
...chinese decimal console.log(new intl.numberformat('zh-hans-cn-u-nu-hanidec').format(number)); // → 一二三,四五六.七八九 // when requesting a language that may not be supported, such as // balinese, include a fallback language, in this case indonesian console.log(new intl.numberformat(['ban', 'id']).format(number)); // → 123.456,789 using
options the results can be customized using the
options argument: var number = 123456.789; // request a currency format console.log(new intl.numberformat('de-de', { style: 'currency', currency: 'eur' }).format(number)); // → 123.456,79 € // the japanese yen doesn't use a minor unit console.log(new intl.numberformat('ja-jp', { style: 'currency', currency: 'jpy' }).format(number)); // → ¥123,45...
Intl.PluralRules() constructor - JavaScript
syntax new intl.pluralrules([locales[,
options]]) parameters locales optional.
...
options optional.
... examples basic usage in basic use without specifying a locale, a formatted string in the default locale and with default
options is returned.
... var pr = new intl.pluralrules(); pr.select(0); // → 'other' if in us english locale pr.select(1); // → 'one' if in us english locale pr.select(2); // → 'other' if in us english locale using
options the results can be customized using the
options argument, which has one property called type which you can set to ordinal.
Intl - JavaScript
locale identification and negotiation the internationalization constructors as well as several language sensitive methods of other constructors (listed under see also) use a common pattern for identifying locales and determining the one they will actually use: they all accept locales and
options arguments, and negotiate the requested locale(s) against the locales they support using an algorithm specified in the
options.localematcher property.
...the matcher can be selected using a property of the
options argument (see below).
...
options argument the
options argument must be an object with properties that vary between constructors and functions.
... if the
options argument is not provided or is undefined, default values are used for all properties.
Web audio codec guide - Web media technologies
but when developing web apps that use audio as a component of the app, such as games, you will need more control over the encoding process and more
options surrounding the format used while encoding the audio.
... a few popular
options: ffmpeg arguably the best-known and most widely regarded open source codec packages available, ffmpeg supports the majority of the most popular audio formats and provides command-line tools and libraries for encoding, decoding, and performing format conversions of both audio and video.
... handbrake a highly popular open source front-end to ffmpeg which adds a graphical user interface that makes it much easier to control the wide variety of
options ffmpeg offers while encoding audio and/or video.
... lame a high quality open source mp3 encoder with support for cbr, abr, and vbr encoding as well as a variety of other
options.
Compiling a New C/C++ Module to WebAssembly - WebAssembly
there are a number of
options available when compiling with emscripten, but the main two scenarios we'll cover are: compiling to wasm and creating html to run our code in, plus all the javascript "glue" code needed to run the wasm in the web environment.
...le c example, and save it in a file called hello.c in a new directory on your local drive: #include <stdio.h> int main(int argc, char ** argv) { printf("hello world\n"); } now, using the terminal window you used to enter the emscripten compiler environment, navigate to the same directory as your hello.c file, and run the following command: emcc hello.c -s wasm=1 -o hello.html the
options we’ve passed in with the command are as follows: -s wasm=1 — specifies that we want wasm output.
...it is enabled by default in firefox 52+ and chrome 57+/latest opera (you can also run wasm code in firefox 47+ by enabling the javascript.
options.wasm flag in about:config, or chrome (51+) and opera (38+) by going to chrome://flags and enabling the experimental webassembly flag.) note: if you try to open generated html file (hello.html) directly from your local hard drive (e.g.
... now navigate into your new directory (again, in your emscripten compiler environment terminal window), and run the following command: emcc -o hello2.html hello2.c -o3 -s wasm=1 --shell-file html_template/shell_minimal.html the
options we've passed are slightly different this time: we've specified -o hello2.html, meaning that the compiler will still output the javascript glue code and .html.
self - Archive of obsolete content
self provides: access to the
options object access to the port object access to a mostly deprecated messaging api for an overview of content scripts, see the main article.
... self properties
options content-scripting apis such as tab.attach(), page-mod, and page-worker let you pass read-only data to the content script as a json object via the contentscript
options option.
... if you do this, the data is available to the content script in the
options property of self: // main.js const tabs = require("sdk/tabs"); tabs.open({ url: "./page.html", onready: function(tab) { tab.attach({ contentscriptfile: "./content-script.js", contentscript
options: { a: "blah" } }); } }); // content-script.js alert(self.
options.a); port you can use port to receive messages from, and send messages to, the main add-on code.
Modules - Archive of obsolete content
in the final section, we will take a look at some of the
options passed by the sdk to the loader constructor to create the cuddlefish loader.
...it takes a single argument, which is a named
options object.
...like any other custom loader, cuddlefish is created using the loader constructor: let's take a look at some of the
options used by cuddlefish to customize its behavior.
windows - Archive of obsolete content
globals functions open(
options) open a new window.
... parameters
options : object required
options: name type url string string url to be opened in the new window.
... optional
options: name type onopen function a callback function that is called when the window has opened.
content/loader - Archive of obsolete content
loader adds code to initialize and validate a set of properties for managing content scripts: contenturl contentscript contentscriptfile contentscriptwhen contentscript
options allow when certain of these properties are set, the loader emits a propertychange event, enabling its users to take the appropriate action.
... example: the following code creates a wrapper on a hidden frame that reloads a web page in the frame every time the contenturl property is changed: var hiddenframes = require("sdk/frame/hidden-frame"); var { loader } = require("sdk/content/content"); var pageloader = loader.compose({ constructor: function pageloader(
options) {
options =
options || {}; if (
options.contenturl) this.contenturl =
options.contenturl; this.on('propertychange', this._onchange = this._onchange.bind(this)); let self = this; hiddenframes.add(hiddenframes.hiddenframe({ onready: function onready() { let frame = self._frame = this.element; self._emit('propertychange', { contenturl: self.contenturl ...
...ts immediately after the document element for the page is inserted into the dom, but before the dom content itself has been loaded "ready": load content scripts once dom content has been loaded, corresponding to the domcontentloaded event "end": load content scripts once all the content (dom, js, css, images) for the page has been loaded, at the time the window.onload event fires contentscript
options read-only value exposed to content scripts under self.
options property.
content/worker - Archive of obsolete content
globals constructors worker(
options) creates a content worker.
... parameters
options : object required
options: name type window object the content window to create javascript sandbox for communication with.
... optional
options: name type contentscriptfile string,array the local file urls of content scripts to load.
event/target - Archive of obsolete content
const { eventtarget } = require("sdk/event/target"); let target = eventtarget(); for a convenience though optional
options arguments may be used, in which case all the function properties with keys like: onmessage, onmyevent...
...all other properties of
options will be ignored.
...it goes through properties of a given
options and registers listeners for the ones that look like event listeners.
ui/button/action - Archive of obsolete content
globals constructors actionbutton(
options) creates an action button.
... parameters
options : object required
options: name type id string the button's id.
...however, the icons in the toolbar will not quite fill the space available, so you can instead supply four icons: icon: { "18": "./addon18.png", // toolbar icon non hidpi "32": "./addon32.png", // menu panel icon non hidpi "36": "./addon36.png", // toolbar icon hidpi "64": "./addon64.png" // menu panel icon hidpi } optional
options: name type disabled boolean determines whether the button is disabled.
ui/button/toggle - Archive of obsolete content
globals constructors togglebutton(
options) creates a toggle button.
... parameters
options : object required
options: name type id string the button's id.
...however, the icons in the toolbar will not quite fill the space available, so you can instead supply four icons: icon: { "18": "./addon18.png", // toolbar icon non hidpi "32": "./addon32.png", // menu panel icon non hidpi "36": "./addon36.png", // toolbar icon hidpi "64": "./addon64.png" // menu panel icon hidpi } optional
options: name type disabled boolean determines whether the button is disabled.
ui/frame - Archive of obsolete content
ow.parent.postmessage({ "type" : "ping", "reason" : "they clicked me" }, "*"); }, true); // main.js var { frame } = require("sdk/ui/frame"); var frame = new frame({ url: "./frame.html" }); frame.on("message", pong); function pong(e) { if (e.data.type == "ping") { console.log(e.data.reason); e.source.postmessage("pong", event.origin); } } globals constructors frame(
options) creates an frame.
... once created, the frame needs to be added to a toolbar for it to be visible: var { frame } = require("sdk/ui/frame"); var { toolbar } = require("sdk/ui/toolbar"); var frame = new frame({ url: "./frame.html" }); var toolbar = toolbar({ name: "my-toolbar", title: "my toolbar", items: [frame] }); parameters
options : object required
options: name type url url, string a url pointing to the html file specifying the frame's content.
... as a relative path: a string in the form "./relativepath", where "relativepath" is a relative path to the file beginning in your add-on's "data" directory var { frame } = require("sdk/ui/frame"); var self = require("sdk/self"); var frame1 = new frame({ url: require("sdk/self").data.url("content1.html") }); var frame2 = new frame({ url: "./content2.html" }); optional
options: name type name string the frame's name.
ui/sidebar - Archive of obsolete content
you should see console output like: console.log: add-on: sidebar script got the message console.log: add-on: add-on script got the reply globals constructors sidebar(
options) creates a sidebar.
... sidebar = require("sdk/ui/sidebar").sidebar({ id: 'my-sidebar', title: 'my sidebar', url: require("sdk/self").data.url("sidebar.html"), onattach: function (worker) { console.log("attaching"); }, onshow: function () { console.log("showing"); }, onhide: function () { console.log("hiding"); }, ondetach: function () { console.log("detaching"); } }); parameters
options : object required
options: name type title string a title for the sidebar.
... optional
options: name type id string the id of the sidebar.
ui/toolbar - Archive of obsolete content
globals constructors toolbar(
options) creates a toolbar.
...olbar } = require("sdk/ui/toolbar"); var { frame } = require("sdk/ui/frame"); var frame = new frame({ url: "./frame.html" }); var toolbar = toolbar({ title: "my toolbar", items: [frame], hidden: true, onshow: showing, onhide: hiding }); function showing(e) { console.log("showing"); console.log(e); } function hiding(e) { console.log("hiding"); console.log(e); } parameters
options : object required
options: name type title string the toolbar's title.
... optional
options: name type items array adding buttons to toolbars is only supported from firefox 30 onwards.
jpm-mobile - Archive of obsolete content
jpm usage is: jpm-mobile [command] [
options] jpm supports the following global
options: -h, --help - show a help message and exit -v, --version - print the jpm version number installation jpm-mobile is distributed using the node package manager npm, so to get jpm-mobile you need to have npm installed, if you haven't already.
... jpm-mobile run this command runs a new instance of firefox with the add-on installed: jpm-mobile run jpm-mobile run accepts the following
options: --adb /path/to/adb provides the path to adb.
... jpm-mobile test accepts the following
options: --adb /path/to/adb provides the path to adb.
Bootstrapped extensions - Archive of obsolete content
here is an example showing how to use a localized html page as an
options page: github :: l10n-html-
options.
... mark finkle provides some simple example code for restartless add-ons in mobile firefox, adding resources (like the
options window) to bootstrapped extensions and using default preferences without a default/preferences/prefs.js file.
... documentation for inline
options in firefox 7 and later.
Adding menus and submenus - Archive of obsolete content
you should avoid having deep menus or too many
options, since they are confusing for most users.
... <menuitem label="&xulschoolhello.greet.long.label;" oncommand="xulschoolchrome.greetingdialog.greetinglong(event);" /> <menuseparator /> <menuitem label="&xulschoolhello.greet.custom.label;" oncommand="xulschoolchrome.greetingdialog.greetingcustom(event);" /> </menupopup> </menu> </menubar> </toolbox> this code displays a simple menu with
options for 3 different types of greetings, a menuseparator, and finally an option to show a custom greeting.
... menu types checkbox menu items you can make a menuitem "checkable" to allow the user to enable/disable
options using the menu.
Promises - Archive of obsolete content
for use cases which are not easily served by other
options, or for legacy code which cannot easily be upgraded to non-relational models, the sqlite.jsm module provides a clean, promise-based interface to sqlite databases.
...hen(store => { console.log(store.data); store.data.baz = "quux"; store.save(); }) the following changes will remove the dependency on aom wrappers: let addon = yield new promise(accept => addonmanager.getaddonbyid(addon_id, accept)); let dir = yield new promise(accept => addon.getdatadirectory(accept)); xmlhttprequest function request(url,
options) { return new promise((resolve, reject) => { let xhr = new xmlhttprequest; xhr.onload = event => resolve(event.target); xhr.onerror = reject; let defaultmethod =
options.data ?
... "post" : "get"; if (
options.mimetype) xhr.overridemimetype(params.
options); xhr.open(
options.method || defaultmethod, url); if (
options.responsetype) xhr.responsetype =
options.responsetype; for (let header of object.keys(
options.headers || {})) xhr.setrequestheader(header,
options.headers[header]); let data =
options.data; if (data && object.getprototypeof(data).constructor.name == "object") {
options.data = new formdata; for (let key of object.keys(data))
options.data.append(key, data[key]); } xhr.send(
options.data); }); } example usage: task.spawn(function* () { let request = yield request("http://example.com/", { method: "put", ...
Localizing an extension - Archive of obsolete content
the preference dialog, whose xul file is
options.xul, has a corresponding
options.dtd file that looks like this: <!entity
options_window_title "stockwatcher 2 preferences"> <!entity
options_symbol.label "stock to watch: "> the "
options_window_title" entity maps to the string "stockwatcher 2 preferences", which is used as the title of the preference window.
...to
options.xul, we add this line: <!doctype window system "chrome://stockwatcher2/locale/
options.dtd"> we add a similar line to the stockwatcher.xul file: <!doctype overlay system "chrome://stockwatcher2/locale/stockwatcher2.dtd"> in larger applications you might need to use entities from several locale files in a single xul file.
...for example, to add a spanish localization, you would add: locale stockwatcher2 es-es chrome/locale/es-es/ then just create a subdirectory chrome/locale/es-es and add the needed dtd files; in this case,
options.dtd and stockwatcher2.dtd.
Static Analysis for Windows Code under Linux - Archive of obsolete content
you can obtain mozilla 2 code by: hg clone http://hg.mozilla.org/mozilla-central/ and compose a .mozconfig file for cross-compiling mozilla with static analysis hooked: #specify the cross compile cross_compile=1 ac_add_
options --enable-application=browser ac_add_
options --host=i686-linux ac_add_
options --target=i686-mingw32 ac_add_
options --enable-default-toolkit=cairo-windows mk_add_
options moz_objdir=@topsrcdir@/../mozilla-mingw # mozilla trunk uses many vista only features on windows, so we should disable some components to make it buildable with mingw32.
... ac_add_
options --enable-debug ac_add_
options --disable-optimize ac_add_
options --disable-tests ac_add_
options --disable-embedding-tests ac_add_
options --disable-installer ac_add_
options --disable-accessibility ac_add_
options --disable-vista-sdk-requirements ac_add_
options --disable-updater #change this to where your libidl-config file locate.
... host_libidl_config=/usr/bin/libidl-config #config your moztools position glib_prefix=$home/moztools libidl_prefix=$home/moztools #disable xpcom stdcall calling convention because of gcc 4.3.0 bug cppflags="-dmoz_disable_xpcom_stdcall" #specify the cxx and static analysis #point cxx to the cross compile g++ with plugin support cxx=$home/mingw-install/bin/i686-mingw32-g++ ac_add_
options --with-static-checking=$home/dehydra/dehydra-gcc/gcc_dehydra.so then, you can start building your mozilla.
Table Layout Regression Tests - Archive of obsolete content
prerequisites in order to run these tests, you will need to have: make sure that your build is a debug build (in short you need ac_add_
options --enable-debug in your .mozconfig file).
...for example ac_add_
options --enable-extensions=all.
... a mozilla tree with the test files at %moz_src%/layout/html/tests, disable_tests should not be defined (so ac_add_
options --enable-tests), patience and time.
Tamarin build documentation - Archive of obsolete content
running the shell without any arguments will list the available
options.
...its
options are '104u', '105' or '106' (note: no '.') if you don't pass the --mac-sdk switch you will get no sdk in your build.
... $ cd tamarin-central $ echo 'print("hello, world")' > hello.as $ java -jar ./utils/asc.jar -import ./core/builtin.abc hello.as hello.abc, 86 bytes written use the avmplus standalone executable (avmshell) built previously to run the application: $ avmshell hello.abc hello, world use the -help
options of asc.jar and avmshell for more details.
Using Breakpoints in Venkman - Archive of obsolete content
this advanced feature and other
options you can see for the associated script are available from the future breakpoint properties dialog, which you can access by right-clicking a breakpoint and selecting properties.
... once you've created a script that will be executed when the associated breakpoint is hit, you can select a number of different
options from the future breakpoint properties dialog that determine how venkman will deal with the output of the associated script.
... the following
options are available: continue regardless of result causes venkman to continue normal execution after running the breakpoint script.
Localization - Archive of obsolete content
accesskey="&pastecmd.accesskey;" key="paste_cmd" disabled="true"/> </menupopup> </menu> </menubar> <toolbar id="findfiles-toolbar"> <toolbarbutton id="opensearch" label="&opencmdtoolbar.label;"/> <toolbarbutton id="savesearch" label="&savecmdtoolbar.label;"/> </toolbar> </toolbox> <tabbox> <tabs> <tab label="&searchtab;" selected="true"/> <tab label="&
optionstab;"/> </tabs> <tabpanels> <tabpanel id="searchpanel" orient="vertical" context="editpopup"> <description> &finddescription; </description> <spacer class="titlespace"/> <groupbox orient="horizontal"> <caption label="&findcriteria;"/> <menulist id="searchtype"> <menupopup> <menuitem label="&type.name;"/> <menuitem label="&type.size;"...
...<menulist id="find-text" flex="1" editable="true" datasources="file:///mozilla/recents.rdf" ref="http://www.xulplanet.com/rdf/recent/all"> <template> <menupopup> <menuitem label="rdf:http://www.xulplanet.com/rdf/recent#label" uri="rdf:*"/> </menupopup> </template> </menulist> </groupbox> </tabpanel> <tabpanel id="
optionspanel" orient="vertical"> <checkbox id="casecheck" label="&casesensitive;"/> <checkbox id="wordscheck" label="&matchfilename;"/> </tabpanel> </tabpanels> </tabbox> <tree id="results" style="display: none;" flex="1"> <treecols> <treecol id="name" label="&results.filename;" flex="1"/> <treecol id="location" label="&results.location;" flex="2"/> <treecol id="size...
...entity cutcmd.label "cut"> <!entity copycmd.label "copy"> <!entity pastecmd.label "paste"> <!entity cutcmd.accesskey "t"> <!entity copycmd.accesskey "c"> <!entity pastecmd.accesskey "p"> <!entity cutcmd.commandkey "x"> <!entity copycmd.commandkey "c"> <!entity pastecmd.commandkey "v"> <!entity opencmdtoolbar.label "open"> <!entity savecmdtoolbar.label "save"> <!entity searchtab "search"> <!entity
optionstab "
options"> <!entity finddescription "enter your search criteria below and select the find button to begin the search."> <!entity findcriteria "search criteria"> <!entity type.name "name"> <!entity type.size "size"> <!entity type.date "date modified"> <!entity mode.is "is"> <!entity mode.isnot "is not"> <!entity casesensitive "case sensitive search"> <!entity matchfilename "match entire filenam...
XUL Questions and Answers - Archive of obsolete content
as an extension author, you have at least two
options: use dom methods to dynamically create or rearrange elements file an enhancement request in bugzilla to have extra ids added.
... there are several
options for displaying graphics and animation in xul: <html:canvas> svg <xul:image> (static images or animated gif; support for apng is planned) plugins templates with non-rdf datasources?
...change this line var settings = printutils.getprintsettings(); to this var settings = printutils.getprintsettings().clone(); settings.docurl = " "; // suppress url on printout other
options you can modify are documented here: http://www.xulplanet.com/references/...tsettings.html how can i send xml/xul document fragment to the server instead of using get or post variables?
prefwindow - Archive of obsolete content
rties buttons, currentpane, defaultbutton, lastselected, preferencepanes, type methods acceptdialog, addpane, canceldialog, centerwindowonscreen, getbutton, opensubdialog, openwindow, showpane examples <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <prefwindow xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <prefpane id="save
options" label="backups"> <preferences> <preference id="pref-backup" name="myapp.mybackups" type="bool"/> <preference id="pref-backupduration" name="myapp.mybackups.duration" type="int"/> </preferences> <checkbox label="automatically save backups" preference="pref-backup"/> <textbox label="duration:" preference="pref-backupduration"/> </prefpane> </prefwindow> attributes ...
...usually this method would be used to allow the user to configure advanced
options.
...therefore, an example call to opensubdialog() would look like this: document.documentelement.opensubdialog("chrome://myextension/content/
options-sub.xul", "", null) issues when using prefpanes in prefwindow when you wish to put non-<prefpane> elements to prefwindow, you should place them after all of <prefpane>s.
Building XULRunner with Python - Archive of obsolete content
mk_add_
options moz_objdir=@topsrcdir@/../obj-xulrunner mk_add_
options moz_co_project=xulrunner ac_add_
options --enable-application=xulrunner ac_add_
options --enable-extensions=python,default ac_add_
options --disable-javaxpcom ac_add_
options --disable-activex ac_add_
options --disable-activex-scripting ac_add_
options --disable-tests ac_add_
options --enable-optimize to check out all the required source code and ...
...th no local client.mk file, execute cd /c/projects cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co mozilla/client.mk cd mozilla make -f client.mk for subsequent updates from cvs followed by a build, use cd /c/projects/mozilla make -f client.mk which will also checkout client.mk itself for build only, without checkouts, use make -f client.mk build and see client.mk for other
options.
... using python in xul applications add the following to yourprefs.js during development pref("browser.dom.window.dump.enabled", true); pref("javascript.
options.showinconsole", true); pref("javascript.
options.strict", true); pref("nglayout.debug.disable_xul_cache", true); pref("nglayout.debug.disable_xul_fastload", true); html <script> tags specify that python is used withtype="application/x-python" attribute.
Using LDAP XPCOM with XULRunner - Archive of obsolete content
if you want to use ldap components in your xul application, you have two
options : compile xulrunner with ldap support enabled, or add ldap xpcom directly to your xul app (in the components directory).
...when configuring build
options, just add: ac_add_
options --enable-ldap to your .mozconfig file.
...leafname(ns_literal_cstring(krealcomponent)); prlibrary *lib; rv = library->load(&lib); if (ns_failed(rv)) return rv; nsgetmoduleproc getmoduleproc = (nsgetmoduleproc) pr_findfunctionsymbol(lib, ns_get_module_symbol); if (!getmoduleproc) return ns_error_failure; return getmoduleproc(acompmgr, alocation, aresult); } then change your .mozconfig to add this line: ac_add_
options --enable-extensions=ldapstub rebuild xulrunner.
Game promotion - Game development
there are two
options to get coverage from the youtubers: first is you contact them directly and send a link to your game via email or private message.
... events if you've gone through all the
options listed above you can still find new, creative ways to promote your game — events are another good example.
...you have a whole lot of
options to chose from with most of them being free, so it's only about your enthusiasm and available time.
Preflight request - MDN Web Docs Glossary: Definitions of Web-related terms
it is an
options request, using three http request headers: access-control-request-method, access-control-request-headers, and the origin header.
... for example, a client might be asking a server if it would allow a delete request, before sending a delete request, by using a preflight request:
options /resource/foo access-control-request-method: delete access-control-request-headers: origin, x-requested-with origin: https://foo.bar.org if the server allows it, then it will respond to the preflight request with an access-control-allow-methods response header, which lists delete: http/1.1 204 no content connection: keep-alive access-control-allow-origin: https://foo.bar.org access-control-allow-methods: p...
...ost, get,
options, delete access-control-max-age: 86400 the preflight response can be optionally cached for the requests created in the same url using access-control-max-age header like in the above example.
HTML: A good basis for accessibility - Learn web development
other form elements have different controls, for example, the <select> element can have its
options displayed and cycled between using the up and down arrow keys.
... note: different browsers may have different keyboard control
options available.
...there are two other
options for tabindex: tabindex="0" — as indicated above, this value allows elements that are not normally tabbable to become tabbable.
HTML: A good basis for accessibility - Learn web development
other form elements have different controls, for example, the <select> element can have its
options displayed and cycled between using the up and down arrow keys.
... note: different browsers may have different keyboard control
options available.
...there are two other
options for tabindex: tabindex="0" — as indicated above, this value allows elements that are not normally tabbable to become tabbable.
Advanced styling effects - Learn web development
take a look at the mdn page for filter for many other
options you could try.
...some of the filter
options available do very similar things to other css features, for example drop-shadow() works in a very similar way and gives a similar effect to box-shadow or text-shadow.
...there is no support as yet in edge, and safari only supports some of the blend mode
options.
Advanced form styling - Learn web development
n> </select></div> we then use generated content to generate a little down arrow, and put it in the right place using positioning: .select-wrapper { position: relative; } .select-wrapper::after { content: "▼"; font-size: 1rem; top: 6px; right: 10px; position: absolute; } the second, slightly more major issue is that you don't have control over the box that appears containing the
options when you click on the <select> box to open it.
... you'll notice that the
options don't inherit the font set on the parent.
... if you really need full control over the option styling, you'll have to either use some kind of library to generate a custom control, or build your own custom control, or in the case of select use the multiple attribute, which makes all the
options appear on the page, sidestepping this particular problem: <select id="select" name="select" multiple> ...
Sending form data - Learn web development
good
options for local php testing are mamp (mac and windows) and ampps (mac, windows, linux).
...to get it working again, we have found that you can load up the mamp app, then choose the menu
options mamp > preferences > php, and set "standard version:" to "7.2.x" (x will differ depending on what version you have installed).
...it's more common to use one of the many high quality frameworks that make handling forms easier, such as: django for python (a bit more heavyweight than flask, but with more tools and
options).
Handling common JavaScript problems - Learn web development
(see using a task runner to automate testing tools in a later article.) see eslint integrations for eslint
options; jshint is supported out of the box by grunt, and also has other integrations available, e.g.
...via a <script> element), although there are normally many other usage
options for such libraries, like installing them as bower components, or including them as dependencies via the webpack module bundler.
... note: there are some 3rd party
options to consider, for example polyfill.io — this is a meta-polyfill library that will look at each browser's capabilities and apply polyfills as needed, depending on what apis and js features you are using in your code.
Introducing a complete toolchain - Learn web development
this is general practice for tool configuration — you tend to find the config files in the project root, which more often than not contain configuration
options expressed in a json structure (though our tools and many others also support yaml, which you can switch to if that's your preferred flavour of configuration file).
... next up, we’ll configure eslint — create another file in the root of your will-it-miss directory called .eslintrc.json, and give it the following contents: { "env": { "es6": true, "browser": true }, "extends": "eslint:recommended", "parser
options": { "ecmaversion": 6, "sourcetype": "module" }, "rules": { "no-console": 0 } } the above eslint configuration says that we want to use the "recommended" eslint settings, that we're going to allow usage of es6 features (such as map() or set()), that we can use module import statements, and that using console.log() is allowed.
... the final config file should look like this — add in the bolded parts and save it: { "env": { "es6": true, "browser": true }, "extends": ["eslint:recommended", "plugin:react/recommended"], "parser
options": { "ecmaversion": 6, "sourcetype": "module", "ecmafeatures": { "jsx": true } }, "plugins": ["react"], "rules": { "semi": "error", "no-console": 0, "react/jsx-uses-vars": "error" } } as the configuration now uses a plugin called "react", this development dependency also needs to be installed, so that the code is there to actually run that part of the l...
Package management basics - Learn web development
in the case of npm (and javascript- and node-based package managers) you have two
options for where you install your dependencies.
...you could manage your own package registry — products like microsoft azure allow you to create proxies to the npm registry (so you can override or lock certain packages), github also offers a package registry service, and there will be likely more
options appearing as time goes on.
... the list will grow over time, but at time of writing, the following main package managers are available: npm at npmjs.org pnpm at pnpm.js.org yarn at yarnpkg.com npm and pnpm are similar from a command line point of view — in fact pnpm aims to have full parity over the argument
options that npm offers.
HTMLIFrameElement.download()
syntax var instanceofdomrequest = instanceofhtmliframeelement.download(url,
options); returns a domrequest for handling the download request.
...
options optional an
options object allowing optional settings to be specified for the download.
... the available
options are: filename: the filename to save the downloaded file as.
HTMLIFrameElement.executeScript()
syntax var mydomrequest = instanceofhtmliframeelement.executescript(script,
options); return value a domrequest object that returns an onsuccess handler if the script is successfully executed against the loaded content, or an onerror handler if not.
...
options optional optionally, you can provide an origin or url for the script to be executed against.
...http://example.com/index.html note: the
options parameter does not currently seem to have much effect.
Overview of Mozilla embedding APIs
bbrowser nsiwebnavigation nsiwebbrowsersetup nsiwebbrowserpersist nsiwebbrowserfind nsiwebbrowserprint nsiwebbrowserfocus nsibasewindow requestor interfaces: nsidomwindow nsidomdocument nsiwebprogress nsiclipboardcommands nsiprompt related interfaces: nsiprompt nsiwebbrowserchrome nsiwebbrowsersitewindow nsiwebprogresslistener nsicontextmenulistener nsiprint
options overview: most of gecko's functionality is exposed through the nswebbrowser component.
...first, the printer and page
options are collected via the nsiprint
options interface.
...once all of the
options have been set, the nsiwebbrowserprint interface is used to print the contents of the desired domwindow.
Downloads.jsm
to use it, you first need to import the code module into your javascript scope: components.utils.import("resource://gre/modules/downloads.jsm"); method overview promise<download> createdownload(object aproperties); promise<void> fetch(asource, atarget, [optional] object a
options); promise<downloadlist> getlist(atype); promise<downloadsummary> getsummary(atype); constants constant description public work on downloads that were not started from a private browsing window.
... promise fetch( asource, atarget, object a
options ); parameters asource string containing the uri for the download source.
... a
options optional an optional object used to control the behavior of this function.
QA phase
to create and configure this file, follow these instructions: until the fix for bug 1063880 lands on mozilla-aurora and mozilla-beta when building language packs against those two trees you should: remove ac_add_
options --disable-compile-environment from .mozconfig in step 3 use ./mach build config after step 4 update the mozilla source code: $ cd mozilla-aurora $ hg pull -u enter the following command to create the .mozconfig file: $ nano -w .mozconfig enter the following lines in your .mozconfig file: mk_add_
options moz_objdir=@topsrcdir@/../firefox-build ac_add_
options --disable-compile-...
...environment ac_add_
options --with-l10n-base=../l10n-central # path relative to moz_objdir ac_add_
options --enable-application=[browser or mail] you will need to specify which application you're localizing in the fourth line (e.g., for firefox, that's browser, thunderbird would be mail).
...at this point you can choose between two build
options.
Investigating leaks using DMD heap scan mode
moz_cc_log_process=content moz_cc_log_thread=main: these
options specify that we only want cc logs for the main thread of content processes, to make shutdown less slow.
... if your leak is happening in a different process or thread, change the
options, which are listed in xpcom/base/nscyclecollector.cpp.
...you can pass some additional
options to affect how the results are displayed.
Profiling with the Firefox Profiler
these are
options to gather additional data in your profiles.
... each option will increase the performance overhead of profiling so it's important to activate only
options that will provide useful information for your particular problem to reduce the distortion.
... all
options may be set in about:profiling or through the moz_profiler_startup_features environement variable.
Profiling with the Gecko Profiler and Local Symbols on Windows
you need to add the lines ac_add_
options --target=x86_64-pc-mingw32 and ac_add_
options --host=x86_64-pc-mingw32 to your mozconfig in order to build a 64 bit build of firefox.
... make sure you don't have ac_add_
options --disable-crashreporter in your firefox .mozconfig file.
... if you're building a beta or release channel version, and you want proper c++ callstacks in your profiles, add ac_add_
options --enable-profiling to your firefox .mozconfig file.
PR_SetSocketOption
retrieves the socket
options set for a specified socket.
... syntax #include <prio.h> prstatus pr_setsocketoption( prfiledesc *fd, prsocketoptiondata *data); parameters the function has the following parameters: fd a pointer to a prfiledesc object representing the socket whose
options are to be set.
... data a pointer to a structure of type prsocketoptiondata specifying the
options to set.
NSS functions
3.2 and later ssl_handshakecallback mxr 3.2 and later ssl_importfd mxr 3.2 and later ssl_inheritmpserversidcache mxr 3.2 and later ssl_invalidatesession mxr 3.2 and later ssl_localcertificate mxr 3.4 and later ssl_optionget mxr 3.2 and later ssl_optiongetdefault mxr 3.2 and later ssl_
optionset mxr 3.2 and later ssl_
optionsetdefault mxr 3.2 and later ssl_peercertificate mxr 3.2 and later ssl_preencryptedfiletostream mxr 3.2 and later ssl_preencryptedstreamtofile mxr 3.2 and later ssl_rehandshake mxr 3.2 and later ssl_rehandshakewithtimeout mxr 3.11.4 and later ssl_resethandshake ...
... function name/documentation source code replacement in nss 3.2 ssl_enable mxr ssl_
optionset ssl_enablecipher mxr ssl_cipherprefsetdefault ssl_enabledefault mxr ssl_
optionsetdefault ssl_redohandshake mxr ssl_rehandshake ssl_setpolicy mxr ssl_cipherpolicyset certificate functions the public functions listed here are used to interact with certificate databases.
...updated 3.8 with new
options.
NSS tools : ssltab
if a connection is ssl, the data display includes interpreted ssl records and handshaking
options -v print a version string for the tool.
...although you can run the tool at its most basic by issuing the ssltap command with no
options other than hostname:port, the information you get in this way is not very useful.
...the following examples show the output from commonly used combinations of
options.
NSS tools : ssltap
if a connection is ssl, the data display includes interpreted ssl records and handshaking
options -v print a version string for the tool.
...although you can run the tool at its most basic by issuing the ssltap command with no
options other than hostname:port, the information you get in this way is not very useful.
...the following examples show the output from commonly used combinations of
options.
NSS tools : vfychain
name vfychain — vfychain [
options] [revocation
options] certfile [[
options] certfile] ...
...
options -a the following certfile is base64 encoded -b yymmddhhmmz validate date (default: now) -d directory database directory -f enable cert fetching from aia url -o oid set policy oid for cert validation(format oid.1.2.3) -p use pkix library to validate certificate by calling: * cert_verifycertificate if specified once, * cert_pkixverifycert if specified twice and more.
...prints root cert subject(double the argument for whole root cert info) -w password database password -w pwfile password file revocation
options for pkix api (invoked with -pp
options) is a collection of the following flags: [-g type [-h flags] [-m type [-s flags]] ...] ...
NSS tools : ssltap
if a connection is ssl, the data display includes interpreted ssl records and handshaking
options -v print a version string for the tool.
...although you can run the tool at its most basic by issuing the ssltap command with no
options other than hostname:port, the information you get in this way is not very useful.
...the following examples show the output from commonly used combinations of
options.
NSS tools : vfychain
name vfychain — vfychain [
options] [revocation
options] certfile [[
options] certfile] ...
...
options -a the following certfile is base64 encoded -b yymmddhhmmz validate date (default: now) -d directory database directory -f enable cert fetching from aia url -o oid set policy oid for cert validation(format oid.1.2.3) -p use pkix library to validate certificate by calling: * cert_verifycertificat...
...prints root cert subject(double the argument for whole root cert info) -w password database password -w pwfile password file revocation
options for pkix api (invoked with -pp
options) is a collection of the following flags: [-g type [-h flags] [-m type [-s flags]] ...] ...
Statistics API
the browser preference javascript.
options.mem.log controls dumping of human-readable gc stats messages to the developer console.
... the browser preference javascript.
options.mem.notify controls emission of json encoded gc stats to an observer interface.
... var prefs = require("api-utils/preferences-service"); components.utils.import('resource://gre/modules/services.jsm'); function observer(subject, topic, json) { var data = json.parse(json); // process the data } prefs.set("javascript.
options.mem.notify", true); services.obs.addobserver(observer, "garbage-collection-statistics", false); the toplevel json object contains these fields: timestamp: integer (microseconds) - time at which the gc ended, measured from epoch.
JS::CompileFunction
syntax bool js::compilefunction(jscontext *cx, js::autoobjectvector &scopechain, const js::readonlycompile
options &
options, const char *name, unsigned nargs, const char *const *argnames, const char16_t *chars, size_t length, js::mutablehandlefunction fun); bool js::compilefunction(jscontext *cx, js::autoobjectvector &scopechain, const js::readonlycompile
options &
options, const char *name, unsigned nargs, const char *const *argnames, js::sourcebufferholder &srcbuf, js::mutablehandlefunction fun); bool js::compilefunction(jscontext *cx, js::autoobjectvector &sc...
...opechain, const js::readonlycompile
options &
options, const char *name, unsigned nargs, const char *const *argnames, const char *bytes, size_t length, js::mutablehandlefunction fun); name type description cx jscontext * the context in which to compile the function.
...
options js::readonlycompile
options & compile
options.
JS_CompileScript
syntax // added in spidermonkey 45 bool js_compilescript(jscontext *cx, const char *ascii, size_t length, const js::compile
options &
options, js::mutablehandlescript script); bool js_compileucscript(jscontext *cx, const char16_t *chars, size_t length, const js::compile
options &
options, js::mutablehandlescript script); // obsolete since jsapi 39 bool js_compilescript(jscontext *cx, js::handleobject obj, const char *ascii, size_t length, const js::compile
options &
options, js::mutablehandlescript script); bool js_compileucscript(jscontext *cx, js::handleobject obj, const char16_t *ch...
...ars, size_t length, const js::compile
options &
options, js::mutablehandlescript script); name type description cx jscontext * pointer to a js context from which to derive runtime information.
...
options js::compile
options & compile
options.
JS_NewGlobalObject
syntax jsobject * js_newglobalobject(jscontext *cx, const jsclass *clasp, jsprincipals *principals, js::onnewglobalhookoption hookoption, const js::compartment
options &
options = js::compartment
options()); name type description cx jscontext * the context in which to create the new global object.
... hookoption js::onnewglobalhookoption see debugger api hook added in spidermonkey 31
options const js::compartment
options & the option for new compartment (passed to jscompartment constructor).
... enum onnewglobalhookoption { fireonnewglobalhook, dontfireonnewglobalhook }; see also mxr id search for js_newglobalobject mxr id search for onnewglobalhookoption bug 897322 bug 880917 bug 759585 bug 570040 bug 755186 bug 1239666 -
options is no longer optional ...
JSAPI reference
i 30 js_clearoperationcallback obsolete since javascript 1.9.1 js_getoperationlimit obsolete since javascript 1.9.1 js_setoperationlimit obsolete since javascript 1.9.1 js_max_operation_limit obsolete since javascript 1.9.1 js_operation_weight_base obsolete since javascript 1.9.1 js_setthreadstacklimit obsolete since jsapi 13 js_setscriptstackquota obsolete since javascript 1.8.6 js_set
options obsolete since jsapi 27 js_get
options obsolete since jsapi 27 js_toggle
options obsolete since jsapi 27 enum jsversion jsversion_ecma_3 jsversion_1_6 jsversion_1_7 jsversion_1_8 jsversion_ecma_5 jsversion_default jsversion_unknown jsversion_latest js_getimplementationversion js_getversion js_setversionforcompartment added in spidermonkey 31 js_stringtover...
...key 1.8.1 obsolete since jsapi 18 js_leavecrosscompartmentcall added in spidermonkey 1.8.1 obsolete since jsapi 18 locale callbacks: struct jslocalecallbacks js_getlocalecallbacks js_setlocalecallbacks locale callback types: jslocaletouppercase jslocaletolowercase jslocalecompare jslocaletounicode scripts just running some javascript code is straightforward: class js::compile
options added in spidermonkey 17 class js::owningcompile
options added in spidermonkey 31 class js::readonlycompile
options added in spidermonkey 31 class js::sourcebufferholder added in spidermonkey 31 js::evaluate added in spidermonkey 17 js_evaluatescript obsolete since jsapi 36 js_evaluateucscript obsolete since jsapi 36 js_evaluatescriptforprincipals obsolete since jsapi 30 js_evaluateucscr...
...similarly, "lookup" is a lower-level version of "get" that offers extra
options and does not call getters.
Parser API
reflect.parse(src[,
options]) coerces src to a string and parses the result as a javascript program.
... additional
options may be provided via the
options object, which can include any of the following properties: loc boolean default: true when loc is true, the parser includes source location information in the returned ast nodes.
... if the loc option is enabled (see the reflect.parse()
options above), then each callback is provided with the source location information of the parsed node as an extra parameter.
Thread Sanitizer
adjusting the build configuration create the build configuration file .mozconfig with the following content in your mozilla-central directory: mk_add_
options moz_objdir=@topsrcdir@/objdir-ff-tsan mk_add_
options moz_make_flags=-j12 # enable llvm specific code and build workarounds ac_add_
options --enable-thread-sanitizer # if clang is already in your $path, then these can simply be: # export cc=clang # export cxx=clang++ export cc="/path/to/clang" export cxx="/path/to/clang++" # llvm-symbolizer displays much more complete backtraces when data rac...
...# note: the use of this flag causes clang to automatically link the tsan runtime :) export ldflags="-fsanitize=thread -fpic -pie" # these three are required by tsan ac_add_
options --disable-jemalloc ac_add_
options --disable-crashreporter ac_add_
options --disable-elf-hack # keep symbols to symbolize tsan traces export moz_debug_symbols=1 ac_add_
options --enable-debug-symbols ac_add_
options --disable-install-strip # settings for an opt build ac_add_
options --enable-optimize="-o2 -gline-tables-only" ac_add_
options --disable-debug starting the build process now you start ...
...to use it, either make sure the llvm-symbolizer binary is in your path or set the environment variable tsan_
options="external_symbolizer_path=/path/to/llvm-symbolizer" before running the process.
Gecko Roles
role_menupopup represents a menu, which presents a list of
options from which the user can make a selection to perform an action.
...it is one of a group of mutually exclusive
options.
... role_combobox_option a item of list that is shown by combobox role_image_map an image map -- has child links representing the areas role_option an option in a listbox role_rich_option a rich option in a listbox, it can have other widgets as children role_listbox a list of
options editor's note: use template role_ to get reference on accessible role.
Using the Places history service
nsinavhistoryservice.getnewquery
options: returns a new query
options object initialized to the default values.
... nsinavhistoryservice.executequery: runs a query with a single query object and
options.
... nsinavhistoryservice.querystringtoqueries: converts a serialized query ("place:" uri) back to the actual query objects and
options.
Components.utils.exportFunction
syntax components.utils.exportfunction(func, targetscope[,
options]); parameters func : function the function to export.
...
options : object optional parameter that supplies additional
options.
... the following
options are currently defined: defineas: determines the name of the function in targetscope.
nsIAccessibleRole
role_menupopup 11 represents a menu, which presents a list of
options from which the user can make a selection to perform an action.
...it is one of a group of mutually exclusive
options.
... role_listbox 119 a list of
options.
nsIMarkupDocumentViewer
bidi
options pruint32 use this attribute to access all the bidi
options in one operation.
... biditextdirection octet
options for bidi presentation.
... use these attributes to access the individual bidi
options.
Thunderbird Configuration Files
to access the config editor, go to tools >
options or do thunderbird > preferences.
... if you are on mac os x, and on linux do edit > preferences on, select the advanced
options panel, click on the general tab, and click on config editor.
...start explorer (just click on the my computer icon on your desktop) and select tools > folder
options.
Debugging service workers - Firefox Developer Tools
right/ctrl clicking on one of the caches gives you two
options: delete all — delete all caches under this origin.
... you can also click on one of the individual items stored in the cache, then right/ctrl click on it to get
options for deleting just that item, or every item in the cache.
... these
options make it much easier to remove a cache if it is required for testing a code update.
UI Tour - Firefox Developer Tools
there are several context menu
options available for individual files and folders or groups; typically viewed by right-clicking on the item.
... for files, the following context menu
options are available: copy source uri copies the full identifier of the file to the clipboard.
... for folders and groups, the following context menu
options are available: collapse all collapses all subfolders of the item.
Tutorial: Set a breakpoint - Firefox Developer Tools
to do this, open the firefox developer tools, click on the
options gear at the upper right of the toolbox, and make sure that both “enable browser chrome and add-on debugging toolboxes” and “enable remote debugging” are checked.
... these are located at the bottom right of the
options panel; you may need to scroll to see them.
...to enable it, click on the
options gear at the upper right of the browser content toolbox, and make sure the “scratchpad” box in the “default developer tools” section the left is checked.
Console messages - Firefox Developer Tools
the context menu
options listed below are available on all message categories.
... additional context menu
options are described in the subsection for the message category they apply to.
... for responses that contain objects or variables, the following context menu
options are available: reveal in inspector shows the selected dom node in the inspector pane.
AudioBuffer() - Web APIs
syntax var audiobuffer = new audiobuffer(
options); parameters inherits parameters from the audionode
options dictionary.
...
options options are as follows: length: the size of the audio buffer in sample-frames.
... exceptions notsupportederror one or more of the
options are negative or otherwise has an invalid value (such as numberofchannels being higher than supported, or a samplerate outside the nominal range).
BiquadFilterNode() - Web APIs
syntax var biquadfilternode = new biquadfilternode(context,
options) parameters inherits parameters from the audionode
options dictionary.
...
options optional
options are as follows: type: one of "lowpass", "highpass", "bandpass", "lowshelf", "highshelf", "peaking", "notch", "allpass".
... the meaning of the other
options depends on the value of this one.
Bluetooth - Web APIs
the bluetooth interface of the web bluetooth api returns a promise to a bluetoothdevice object with the specified
options.
...referringdevice; promise<sequence<bluetoothdevice>> getdevices(); promise<bluetoothdevice> requestdevice(optional requestdevice
options options = {}); }; bluetooth includes bluetoothdeviceeventhandlers; bluetooth includes characteristiceventhandlers; bluetooth includes serviceeventhandlers; properties inherits properties from its parent eventtarget.
... bluetooth.requestdevice() returns a promise to a bluetoothdevice object with the specified
options.
Cache.delete() - Web APIs
syntax cache.delete(request, {
options}).then(function(found) { // your cache entry has been deleted if found }); parameters request the request you are looking to delete.
...
options optional an object whose properties control how matching is done in the delete operation.
... the available
options are: ignoresearch: a boolean that specifies whether the matching process should ignore the query string in the url.
Cache.keys() - Web APIs
syntax cache.keys(request, {
options}).then(function(keys) { // do something with your array of requests }); parameters request optional the request want to return, if a specific key is desired.
...
options optional an object whose properties control how matching is done in the keys operation.
... the available
options are: ignoresearch: a boolean that specifies whether the matching process should ignore the query string in the url.
Cache.match() - Web APIs
syntax cache.match(request, {
options}).then(function(response) { // do something with the response }); parameters request the request for which you are attempting to find responses in the cache.
...
options optional an object that sets
options for the match operation.
... the available
options are: ignoresearch: a boolean that specifies whether to ignore the query string in the url.
Cache.matchAll() - Web APIs
syntax cache.matchall(request, {
options}).then(function(response) { // do something with the response array }); parameters request optional the request for which you are attempting to find responses in the cache.
...
options optional an
options object allowing you to set specific control
options for the matching performed.
... the available
options are: ignoresearch: a boolean that specifies whether the matching process should ignore the query string in the url.
CacheStorage.match() - Web APIs
syntax caches.match(request,
options).then(function(response) { // do something with the response }); parameters request the request you want to match.
...
options optional an object whose properties control how matching is done in the match operation.
... the available
options are: ignoresearch: a boolean that specifies whether the matching process should ignore the query string in the url.
ChannelMergerNode() - Web APIs
syntax var mynode = new channelmergernode(context,
options); parameters context a baseaudiocontext representing the audio context you want the node to be associated with.
...
options optional a channelmerger
options dictionary object defining the properties you want the channelmergernode to have (also inherits parameters from the audionode
options dictionary): numberofinputs: a number defining the number of inputs the channelmergernode should have.
... example var ac = new audiocontext(); var
options = { numberofinputs : 2 } var mymerger = new channelmergernode(ac,
options); specifications specification status comment web audio apithe definition of 'channelmergernode' in that specification.
ChannelSplitterNode.ChannelSplitterNode() - Web APIs
syntax var splitter = new channelspitternode(context,
options); parameters inherits parameters from the audionode
options dictionary.
...
options optional a channelsplitter
options dictionary object defining the properties you want the channelsplitternode to have (it also inherits the
options defined in the audionode
options dictionary): numberofoutputs: a number defining the number of inputs the channelsplitternode should have.
... example var ac = new audiocontext(); var
options = { numberofoutputs : 2 } var mysplitter = new channelsplitternode(ac,
options); specifications specification status comment web audio apithe definition of 'channelsplitternode' in that specification.
ContentIndexEvent() - Web APIs
the contentindexevent() constructor creates a new contentindexevent object whose type and other
options are configured as specified.
... eventinitdict optional an
options object containing any initialization data you want to populate the contentindexevent object with.
... the
options are: id: the id of the indexed content you want the contentindexevent to remove.
DeviceOrientationEvent.DeviceOrientationEvent() - Web APIs
syntax var deviceorientationevent = new deviceorientationevent(type[,
options]) parameters type either "deviceorientation" or "deviceorientationabsolute".
... if the later, then
options.absolute should be true.
...
options optional
options are as follows: alpha: a number representing the motion of the device around the z axis, express in degrees with values ranging from 0 to 360.
Element.scrollBy() - Web APIs
syntax element.scrollby(x-coord, y-coord); element.scrollby(
options) parameters x-coord is the horizontal pixel value that you want to scroll by.
... - or -
options is a scrollto
options dictionary.
... examples // scroll an element element.scrollby(300, 300); using
options: element.scrollby({ top: 100, left: 100, behavior: 'smooth' }); specification specification status comment css object model (cssom) view modulethe definition of 'element.scrollby()' in that specification.
Using Fetch - Web APIs
supplying request
options the fetch() method can optionally accept a second parameter, an init object that allows you to control a number of different settings: see fetch() for the full
options available, and more details.
... // example post method implementation: async function postdata(url = '', data = {}) { // default
options are marked with * const response = await fetch(url, { method: 'post', // *get, post, put, delete, etc.
...making a copy like this allows you to make use of the request/response again while varying the init
options if desired.
File.File() - Web APIs
syntax new file(bits, name[,
options]); parameters bits an array of arraybuffer, arraybufferview, blob, usvstring objects, or a mix of any of such objects, that will be put inside the file.
...
options optional an
options object containing optional attributes for the file.
... available
options are as follows: type: a domstring representing the mime type of the content that will be put into the file.
Geolocation.watchPosition() - Web APIs
syntax navigator.geolocation.watchposition(success[, error[,
options]]) parameters success a callback function that takes a geolocationposition object as an input parameter.
...
options optional an optional position
options object that provides configuration
options for the location watch.
... examples var id, target,
options; function success(pos) { var crd = pos.coords; if (target.latitude === crd.latitude && target.longitude === crd.longitude) { console.log('congratulations, you reached the target'); navigator.geolocation.clearwatch(id); } } function error(err) { console.warn('error(' + err.code + '): ' + err.message); } target = { latitude : 0, longitude: 0 };
options = { enablehighaccuracy: false, timeout: 5000, maximumage: 0 }; id = navigator.geolocation.watchposition(success, error,
options); specifications specification status comment geolocation apithe definition o...
Using the Geolocation API - Web APIs
a third, optional, parameter is an
options object where you can set the maximum age of the position returned, the time to wait for a request, and if you want high accuracy for the position.
... navigator.geolocation.clearwatch(watchid); fine tuning the response both getcurrentposition() and watchposition() accept a success callback, an optional error callback, and an optional position
options object.
... a call to watchposition could look like: function success(position) { dosomething(position.coords.latitude, position.coords.longitude); } function error() { alert('sorry, no position available.'); } const
options = { enablehighaccuracy: true, maximumage: 30000, timeout: 27000 }; const watchid = navigator.geolocation.watchposition(success, error,
options); describing a position the user's location is described using a geolocationposition object instance, which itself contains a geolocationcoordinates object instance.
IIRFilterNode() - Web APIs
syntax var iirfilternode = new iirfilternode(context,
options) parameters inherits parameters from the audionode
options dictionary.
...
options options are as follows: feedforward: a sequence of feedforward coefficients.
... unlike other nodes in the web audio api, the
options passed into the iir filter upon creation are not optional.
KeyframeEffect.KeyframeEffect() - Web APIs
syntax var keyframes = new keyframeeffect(element, keyframeset, keyframe
options); var keyframes = new keyframeeffect(sourcekeyframes); parameters the first type of constructor (see above) creates a completely new keyframeeffect object instance.
... keyframe
options optional either an integer representing the animation's duration (in milliseconds), or an object containing one or more of the following: delay optional the number of milliseconds to delay the start of the animation.
... example, the keyframeeffect constructor is used to create a set of keyframes that dictate how the white rabbit should animate down the hole: var rabbitdownkeyframes = new keyframeeffect( whiterabbit, // element to animate [ { transform: 'translatey(0%)' }, // keyframe { transform: 'translatey(100%)' } // keyframe ], { duration: 3000, fill: 'forwards' } // keyframe
options ); specifications specification status comment web animations level 2the definition of 'keyframeeffect
options.iterationcomposite' in that specification.
LockManager.request() - Web APIs
the mode property of the
options parameter may be either "exclusive" or "shared".
... syntax lockmanager.request(var promise = name[, {
options}], callback) parameters name an identifier for the lock you want to request.
...
options optional an object describing characteristics of the lock you want to create.
MediaElementAudioSourceNode() - Web APIs
syntax var myaudiosource = new mediaelementaudiosourcenode(context,
options); parameters inherits parameters from the audionode
options dictionary.
...
options a mediaelementaudiosource
options dictionary object defining the properties you want the mediaelementaudiosourcenode to have: mediaelement: an htmlmediaelement that will be used as the source for the audio.
... example var ac = new audiocontext(); var mediaelement = document.createelement('audio'); var
options = { mediaelement : mediaelement } var myaudiosource = new mediaelementaudiosourcenode(ac,
options); specifications specification status comment web audio apithe definition of 'mediaelementaudiosourcenode' in that specification.
MediaRecorder() - Web APIs
syntax var mediarecorder = new mediarecorder(stream[,
options]); parameters stream the mediastream that will be recorded.
...
options optional a dictionary object that can contain the following properties: mimetype: a mime type specifying the format for the resulting media; you may simply specify the container format (the browser will select its preferred codecs for audio and/or video), or you may use the codecs parameter and/or the profiles parameter to provide detailed information about which codecs to use and how to configure them.
...if (navigator.mediadevices.getusermedia) { var constraints = { audio: true, video: true }; var chunks = []; var onsuccess = function(stream) { var
options = { audiobitspersecond : 128000, videobitspersecond : 2500000, mimetype : 'video/mp4' } var mediarecorder = new mediarecorder(stream,
options); m = mediarecorder; ...
MediaStreamAudioSourceNode() - Web APIs
syntax audiosourcenode = new mediastreamaudiosourcenode(context,
options); parameters context an audiocontext representing the audio context you want the node to be associated with.
...
options a mediastreamaudiosource
options object defining the properties you want the mediastreamaudiosourcenode to have: mediastream a required property which specifies the mediastream from which to obtain audio for the node.
...ine variables var audioctx = new (window.audiocontext || window.webkitaudiocontext)(); // getusermedia block - grab stream // put it into a mediastreamaudiosourcenode if (navigator.mediadevices.getusermedia) { navigator.mediadevices.getusermedia ( // constraints: audio and video for this app { audio: true, video: false }).then(function(stream) { var
options = { mediastream : stream } var source = new mediastreamaudiosourcenode(audioctx,
options); source.connect(audioctx.destination); }).catch(function(err) { console.log('the following gum error occured: ' + err); }); } else { console.log('new getusermedia not supported on your browser!'); } specifications specification status c...
MediaTrackConstraints.cursor - Web APIs
let displaymedia
options = { cursor: "always" }; example: cursor visible during motion with fallback in this example, the cursor property is configured to request that the cursor be visible when in motion, falling back to always being visible if the user agent doesn't support in-motion only cursor rendering.
... let displaymedia
options = { cursor: ["motion", "always"] }; example: require that the cursor not be visible this constraints object explicitly requires that the cursor not be rendered into the video track.
... let displaymedia
options = { cursor: { exact: "none" } }; specifications specification status comment screen capturethe definition of 'mediatrackconstraints.cursor' in that specification.
MediaTrackSupportedConstraints.logicalSurface - Web APIs
example this method sets up the constraints object specifying the
options for the call to getdisplaymedia().
... it adds the logicalsurface constraint (requesting that only logical display surfaces—those which may not be entirely visible onscreen—be included among the
options available to the user) only if it is known to be supported by the browser.
... async function capture() { let supportedconstraints = navigator.mediadevices.getsupportedconstraints(); let displaymedia
options = { video: { }, audio: false; }; if (supportedconstraints.logicalsurface) { displaymedia
options.video.logicalsurface = "monitor"; } try { videoelem.srcobject = await navigator.mediadevices.getdisplaymedia(displaymedia
options); } catch(err) { /* handle the error */ } } specifications specification status comment screen capturethe definition of 'mediatracksupportedconstraints.logicalsurface' in that specification.
MutationObserverInit.attributes - Web APIs
syntax var
options = { attributes: true | false } value a boolean value indicating whether or not to report through the callback any changes to the values of attributes on the node or nodes being monitored.
... you can expand the capabilities of attribute mutation monitoring using other
options: attributefilter lets you specify specific attribute names to monitor instead of monitoring all attributes.
... when observe() is called, the specified
options are attributes and attributeoldvalue, which means that changes to attribute values will be reported, and each mutation record will include the oldvalue property specifying the attribute's previous value.
NDEFWriter.write() - Web APIs
syntax var sessionpromise = ndefwriter.write(message,
options); parameters message the message to be written, either domstring or buffersource or ndefmessageinit.
...
options optional ignoreread -- boolean specifying whether or not to skip reading for the activated reader objects.
... exceptions this method doesn't throw true exceptions; instead, it rejects the returned promise, passing into it a domexception whose name is one of the following: aborterror the write operation was aborted with abortsignal passed in
options.
PannerNode.PannerNode() - Web APIs
syntax var mypanner = new pannernode(context,
options); parameters inherits parameters from the audionode
options dictionary.
...
options optional a panner
options dictionary object defining the properties you want the pannernode to have (it also inherits the
options defined in the audionode
options dictionary.): panningmodel: the pannernode.panningmodel you want the pannernode to have (the default is equalpower.) distancemodel: the pannernode.distancemodel you want the pannernode to have (the default is inverse.) positionx: the pannernode.positionx you want the pannernode to have (the default is 0.) positiony: the pannernode.positiony you want the pannernode to have (the default is 0.) positionz: the pannernode.positionz you want the pannernode to have (the default is 0.) orientationx: the pannernode.orient...
... example var ctx = new audiocontext(); var
options = { positionx : 1, maxdistance: 5000 } var mypanner = new pannernode(ctx,
options); specifications specification status comment web audio apithe definition of 'pannernode()' in that specification.
PaymentDetailsUpdate.error - Web APIs
the paymentdetailsupdate dictionary's error property is a human-readable domstring which provides an error message to be displayed if the specified information doesn't offer any valid shipping
options.
... syntax errorstring = paymentdetailsupdate.error; paymentdetailsupdate.error = errorstring; value a domstring specifying the string to display to the user if the information specified in the paymentdetailsupdate doesn't provide any valid shipping
options.
... the paymentdetailsupdate object specifies no valid shipping
options in its shipping
options list.
PaymentMethodChangeEvent - Web APIs
syntax paymentmethodchangeevent = new paymentmethodchangeevent(type,
options); parameters type a domstring which must contain the string paymentmethodchange, the name of the only type of event which uses the paymentmethodchangeevent interface.
...
options optional an optional paymentmethodchangeeventinit dictionary which may contain zero or more of the following properties: methodname optional a domstring containing the payment method identifier for the payment handler being used.
... return value a newly-created paymentmethodchangeevent object describing a change to the
options specified for the payment method given in the methodname property.
PaymentRequest.shippingAddress - Web APIs
you can trigger this by setting payment
options.requestshipping to true when calling the paymentrequest constructor.
...var payment = new paymentrequest(supportedinstruments, details,
options); payment.addeventlistener('shippingaddresschange', function(evt) { evt.updatewith(new promise(function(resolve) { updatedetails(details, request.shippingaddress, resolve); })); }); payment.show().then(function(paymentresponse) { // processing of paymentresponse exerpted for brevity.
... shippingoption.id = 'mo'; shippingoption.label = 'free shipping in missouri'; details.total.amount.value = '55.00'; } else { shippingoption.id = 'us'; shippingoption.label = 'standard shipping in us'; shippingoption.amount.value = '5.00'; details.total.amount.value = '60.00'; } details.displayitems.splice(2, 1, shippingoption); details.shipping
options = [shippingoption]; } else { delete details.shipping
options; } resolve(details); } specifications specification status comment payment request apithe definition of 'shippingaddress' in that specification.
PaymentRequest.shippingOption - Web APIs
it is initially null by when no "selected" shipping
options are provided.
... const request = new paymentrequest(methoddata, details,
options); // async update to details request.onshippingaddresschange = ev => { ev.updatewith(checkshipping(request)); }; // sync update to the total request.onshippingoptionchange = ev => { const shippingoption = shipping
options.find( option => option.id === request.id ); const newtotal = { currency: "usd", label: "total due", value: calculatenewtotal(shippingoption), }; ev.up...
...datewith({ ...details, total: newtotal }); }; async function checkshipping(request) { try { const json = request.shippingaddress.tojson(); await ensurecanshipto(json); const { shipping
options, total } = await calculateshipping(json); return { ...details, shipping
options, total }; } catch (err) { return { ...details, error: `sorry!
PaymentResponse.retry() - Web APIs
see the example below for a thorough example, but the basic concept, in outline form, is: create a new paymentrequest (new paymentrequest()) display the payment request (paymentrequest.show() if show() resolves, the returned paymentresponse describes the requested payment and the
options chosen by the user.
... async function handlepayment() { const payrequest = new paymentrequest(methoddata, details,
options); try { let payresponse = await payrequest.show(); while (payresponse has errors) { /* let the user edit the payment information, wait until they submit */ await response.retry(); } await payresponse.complete("success"); } catch(err) { /* handle the exception */ } } examples try { await paymentrequest.retry(errorfields); } catch (domexception er...
...} async function dopaymentrequest() { const request = new paymentrequest(methoddata, details,
options); const response = await request.show(); await recursivevalidate(request, response); await response.complete("success"); } // keep validating until the data looks good!
PaymentResponse.shippingAddress - Web APIs
you can trigger this by setting payment
options.requestshipping to true when calling the paymentrequest constructor.
... var payment = new paymentrequest(supportedinstruments, details,
options); request.addeventlistener('shippingaddresschange', function(evt) { evt.updatewith(new promise(function(resolve) { updatedetails(details, request.shippingaddress, resolve); })); }); payment.show().then(function(paymentresponse) { // processing of paymentresponse exerpted for the same of brevity.
... shippingoption.id = 'mo'; shippingoption.label = 'free shipping in missouri'; details.total.amount.value = '55.00'; } else { shippingoption.id = 'us'; shippingoption.label = 'standard shipping in us'; shippingoption.amount.value = '5.00'; details.total.amount.value = '60.00'; } details.displayitems.splice(2, 1, shippingoption); details.shipping
options = [shippingoption]; } else { delete details.shipping
options; } resolve(details); } specifications specification status comment payment request api candidate recommendation initial definition.
PaymentResponse.shippingOption - Web APIs
this option is only present when the requestshipping option is set to true in the payment
options object passed to the paymentrequest constructor.
...var payment = new paymentrequest(supportedinstruments, details,
options); request.addeventlistener('shippingoptionchange', function(evt) { evt.updatewith(new promise(function(resolve, reject) { updatedetails(details, request.shippingoption, resolve, reject); })); }); payment.show().then(function(paymentresponse) { // processing of paymentresponse exerpted for the same of brevity.
... }).catch(function(err) { console.error("uh oh, something bad happened", err.message); }); function updatedetails(details, shippingoption, resolve, reject) { var selectedshippingoption; var othershippingoption; if (shippingoption === 'standard') { selectedshippingoption = details.shipping
options[0]; othershippingoption = details.shipping
options[1]; details.total.amount.value = '55.00'; } else if (shippingoption === 'express') { selectedshippingoption = details.shipping
options[1]; othershippingoption = details.shipping
options[0]; details.total.amount.value = '67.00'; } else { reject('unknown shipping option \'' + shippingoption + '\''); return; } selectedshippingoption.selected = true; othershippingoption.selected = false; details.displayitems.s...
PeriodicWave.PeriodicWave() - Web APIs
syntax var mywave = new periodicwave(context,
options); parameters inherits parameters from the audionode
options dictionary.
...
options optional a periodicwave
options dictionary object defining the properties you want the periodicwave to have (it also inherits the
options defined in the periodicwaveconstraints dictionary.): real: a float32array containing the cosine terms that you want to use to form the wave (equivalent to the real parameter of audiocontext.createperiodicwave).
... example var real = new float32array(2); var imag = new float32array(2); var ac = new audiocontext(); real[0] = 0; imag[0] = 0; real[1] = 1; imag[1] = 0; var
options = { real : real, imag : imag, disablenormalization : false } var wave = new periodicwave(ac,
options); specifications specification status comment web audio apithe definition of 'periodicwave' in that specification.
PhotoCapabilities - Web APIs
the photocapabilities interface of the the mediastream image capture api provides available configuration
options for an attached photographic device.
... photocapabilities.filllightmode read only returns an array of available fill light
options.
...
options may include auto, off, or flash.
RTCDTMFToneChangeEvent.RTCDTMFToneChangeEvent() - Web APIs
syntax var event = new rtcdtmftonechangeevent(type,
options); parameters type a domstring containing the name of the event.
...
options a dictionary of type rtcdtmftonechangeeventinit, which may contain one or more of the following fields: tone a domstring containing a single dtmf tone character which has just begun to play, or an empty string ("") to indicate that the previous tone has stopped playing.
... return value a newly-created rtcdtmftonechangeevent, configured as specified in the provided
options.
RTCPeerConnection.createAnswer() - Web APIs
the answer contains information about any media already attached to the session, codecs and
options supported by the browser, and any ice candidates already gathered.
... syntax apromise = rtcpeerconnection.createanswer([
options]); rtcpeerconnection.createanswer(successcallback, failurecallback[,
options]); parameters
options optional an object which contains
options which customize the answer; this is based on the rtcanswer
options dictionary.
...
options optional an optional rtcoffer
options object providing
options requested for the answer.
RTCPeerConnectionIceEvent() - Web APIs
syntax var event = new rtcpeerconnectioniceevent(type,
options); parameters type is a domstring containing the name of the event, like "icecandidate".
...
options a dictionary of type rtcpeerconnectioninit, which may contain one or more of the following fields: "candidate" (optional, default is null): a rtcicecandidate representing the ice candidate being concerned by the event.
... return value a newly-created rtcpeerconnectioniceevent, configured as specified in the provided
options.
RTCRtpSender.setParameters() - Web APIs
syntax var promise = rtcrtpsender.setparameters(parameters) parameters parameters an object conforming with the rtcrtpsendparameters dictionary, specifying
options for the rtcrtpsender; these include potential codecs that could be use for encoding the sender's track.
... the available
options are: degradationpreference specifies the preferred way the webrtc layer should handle optimizing bandwidth against quality in constrained-bandwidth situations; the value comes from the rtcdegradationpreference enumerated string type, and the default is balanced.
...you cannot change the number of encoding
options once the sender has been created.
ReadableStream.pipeThrough() - Web APIs
syntax var transformedstream = readablestream.pipethrough(transformstream[,
options]); parameters transformstream a transformstream (or an object with the structure {writable, readable}) consisting of a readable stream and a writable stream working together to transform some data from one form to another.
...
options optional the
options that should be used when piping to the writable stream.
... available
options are: preventclose: if this is set to true, the source readablestream closing will no longer cause the destination writablestream to be closed.
ReadableStream.pipeTo() - Web APIs
syntax var promise = readablestream.pipeto(destination[,
options]); parameters destination a writablestream that acts as the final destination for the readablestream.
...
options optional the
options that should be used when piping to the writable stream.
... available
options are: preventclose: if this is set to true, the source readablestream closing will no longer cause the destination writablestream to be closed.
Reporting API - Web APIs
the callback runs when observation starts an
options dictionary that allows you to specify the type of reports to collect, and whether the reports that were generated before the observer was able to be created should be observable (buffered: true).
... reporting api dictionaries reportingobserver
options allows
options to be set in the constructor when creating a reporting observer.
... examples in our deprecation_report.html example, we create a simple reporting observer to observe usage of deprecated features on our web page: let
options = { types: ['deprecation'], buffered: true } let observer = new reportingobserver(function(reports, observer) { reportbtn.onclick = () => displayreports(reports); },
options); we then tell it to start observing reports using reportingobserver.observe(); this tells the observer to start collecting reports in its report queue, and runs the callback function specified inside the constructor:...
ResizeObserver.observe() - Web APIs
syntax resizeobserver.observe(target,
options); parameters target a reference to an element or svgelement to be observed.
...
options optional an
options object allowing you to set
options for the observation.
...e = math.max(1.5, entry.contentboxsize.inlinesize/200) + 'rem'; pelem.style.fontsize = math.max(1, entry.contentboxsize.inlinesize/600) + 'rem'; } else { h1elem.style.fontsize = math.max(1.5, entry.contentrect.width/200) + 'rem'; pelem.style.fontsize = math.max(1, entry.contentrect.width/600) + 'rem'; } } }); resizeobserver.observe(divelem); an observe() call with an
options object would look like so: resizeobserver.observe(divelem, { box : 'border-box' }); specifications specification status comment resize observerthe definition of 'observe()' in that specification.
ServiceWorkerContainer.register() - Web APIs
syntax serviceworkercontainer.register(scripturl,
options) .then(function(serviceworkerregistration) { ...
...
options optional an object containing registration
options.
... currently available
options are: scope: a usvstring representing a url that defines a service worker's registration scope; that is, what range of urls a service worker can control.
ServiceWorkerRegistration.showNotification() - Web APIs
syntax serviceworkerregistration.shownotification(title, [
options]); parameters title the title that must be shown within the notification
options optional an object that allows configuring the notification.
...if
options’s renotify is true and
options’s tag is the empty string a typeerror will be thrown.
...if
options’s silent is true and
options’s vibrate is present a typeerror exception will be thrown.
Using Service Workers - Web APIs
let’s look at a few other
options we have when defining our magic (see our fetch api documentation for more information about request and response objects.) the response() constructor allows you to create a custom response.
... fortunately service workers’ promise-based structure makes it trivial to provide further
options towards success.
... the "forget" button, available in firefox's customization
options, can be used to clear service workers and their caches (bug 1252998).
SyncManager.register() - Web APIs
syntax syncmanager.register([
options]).then(function(syncregistration) { ...
... parameters
options optional an object that sets
options for an instance of syncregistration.
... the available
options are: allowonbattery: a boolean that determines whether synchronization is allowed when the user agent is on a battery-powered device.
Using DTMF with WebRTC - Web APIs
let dialstring = "12024561111"; let callerpc = null; let receiverpc = null; let dtmfsender = null; let hasaddtrack = false; let mediaconstraints = { audio: true, video: false }; let offer
options = { offertoreceiveaudio: 1, offertoreceivevideo: 0 }; let dialbutton = null; let logelement = null; these are, in order: dialstring the dtmf string the caller will send when the "dial" button is clicked.
... offer
options an rtcoffer
options object providing
options to specify when calling rtcpeerconnection.createoffer().
... function handlecallernegotiationneeded() { log("negotiating..."); callerpc.createoffer(offer
options) .then(function(offer) { log("setting caller's local description: " + offer.sdp); return callerpc.setlocaldescription(offer); }) .then(function() { log("setting receiver's remote description to the same as caller's local"); return receiverpc.setremotedescription(callerpc.localdescription) }) .then(function() { log("creating answer"); return receiverpc.createanswe...
Geometry and reference spaces in WebXR - Web APIs
the compatibility issues that arise may be as fundamental as being unable to support immersive-ar mode (augmented reality sessions) on a vr-only headset, or may involve a request for one or more required
options which cannot be met when attempting to create the xr session.
...currently, the only supported
options are strings identifying the standard reference spaces.
...in the future, it's likely that more
options will become available.
Starting up and shutting down a WebXR session - Web APIs
there may be
options available to allow you to experiment with webxr even if you don't have a compatible system, however.
...there are three
options: immersive-vr a fully-immersive virtual reality session using a headset or similar device that fully replaces the world around the user with the images you present.
...this is an opportunity to notify the user of the device's availability, begin to monitor it for inputs, offer configuration
options, or whatever you need to do with it.
Window.scrollTo() - Web APIs
syntax window.scrollto(x-coord, y-coord) window.scrollto(
options) parameters x-coord is the pixel along the horizontal axis of the document that you want displayed in the upper left.
... - or -
options is a scrollto
options dictionary.
... examples window.scrollto(0, 1000); using
options: window.scrollto({ top: 100, left: 100, behavior: 'smooth' }); notes window.scroll() is effectively the same as this method.
Window.showModalDialog() - Web APIs
syntax returnval = window.showmodaldialog(uri[, arguments][,
options]); returnval holds the returnvalue property as set by the document specified by uri.
...
options is an optional string specifying window ornamentation for the dialog, using one or more semicolon delimited values: syntax description center: {on | off | yes | no | 1 | 0 } if on, yes, or 1, the dialog window is centered on the desktop; otherwise it's hidden.
...the third argument for additional
options was not present in the html5 version.
self.createImageBitmap() - Web APIs
syntax const imagebitmappromise = createimagebitmap(image[,
options]); const imagebitmappromise = createimagebitmap(image, sx, sy, sw, sh[,
options]); parameters image an image source, which can be an <img>, svg <image>, <video>, <canvas>, htmlimageelement, svgimageelement, htmlvideoelement, htmlcanvaselement, blob, imagedata, imagebitmap, or offscreencanvas object.
...
options optional an object that sets
options for the image's extraction.
... the available
options are: imageorientation: specifies whether the image should be presented as is or flipped vertically.
XRSystem: requestSession() - Web APIs
sessioninit optional a xrsessioninit object providing
options to configure the new xrsession.
... see specifying session
options for details on how to configure a webxr session.
... notsupportederror there is no webxr-compatible device available, or the device does not support the specified sessionmode; this can also be thrown if any of the required
options are unsupported.
XRWebGLLayer() - Web APIs
layerinit optional an object conforming to the xrwebgllayerinit dictionary, providing configuration
options for the new xrwebgllayer.
... the
options available are: alpha optional the frame buffer's color buffer will be established with an alpha channel if the alpha boolean property is true.
...any
options specified in layerinit are used to tailor the rendering system's configuration.
Accessibility: What users can do to browse more safely - Accessibility
there is a github repository for it at https://github.com/0ui/gif-scrubber beeline reader beeline reader has a browser extension that allows you to set up for grayscale and dyslexi font, among other things take advantage operating system accessibility features most operating systems such as windows 10, have accessibility
options that are surprisingly powerful.
...an interesting discussion by users on the benefits of using grayscale may be found in the discussion thread, "what is the “grayscale” setting for in accessibility
options?".
...grayscale is enabled when the color filters button is toggled "on" see also accessibilty accessibility learning path web accessibility for seizures and physical reactions color blindness discussion: "what is the “grayscale” setting for in accessibility
options?" contributors many, many thanks to eric eggert from knowbility; for his discussions and huge help on this topic.
Web Accessibility: Understanding Colors and Luminance - Accessibility
a great example of a tool that converts colors for you is tom jewett's "mini color selector" with hsl, rgb, hex
options for checking contrast in the browser.
...for example, it has been demonstrated that some colors are more likely to cause epileptic fits than others; there is an interesting observation in a discussion thread, "what is the “grayscale” setting for in accessibility
options?" in which one of the participants states: "i have photo-triggered ocular migraines and wish everything had a greyscale option.
... see also mdn accessibilty accessibility learning path color <color> web accessibility for seizures and physical reactions color blindness discussions (general) what is the “grayscale” setting for in accessibility
options?
Border-image generator - CSS: Cascading Style Sheets
le(false); } this.time = date.now(); }; dropdown.prototype.setnodevalue = function setnodevalue(node) { this.value['name'] = node.textcontent; this.value['value'] = node.getattribute('data-value'); this.select.textcontent = node.textcontent; this.select.setattribute('data-value', this.value['value']); notify.call(this); }; var createdropdown = function createdropdown(topic,
options) { var dropdown = document.createelement('div'); dropdown.setattribute('data-topic', topic); dropdown.classname = 'ui-dropdown'; for (var i in
options) { var x = document.createelement('div'); x.setattribute('data-value', i); x.textcontent =
options[i]; dropdown.appendchild(x); } new dropdown(dropdown); return dropdown; }; var setvalue = function setvalue(topic, i...
...ose'; panel.id = 'unit-settings'; panel.setattribute('data-active', 'false'); panel.appendchild(title); panel.appendchild(precision); panel.appendchild(step); panel.appendchild(close); document.body.appendchild(panel); }; return { init : init, show : show }; })(); /** * tool manager */ var tool = (function tool() { var preview_area; var dropdown_unit_
options = [ { '' : '--', '%' : '%'}, { 'px' : 'px', '%' : '%', 'em' : 'em'}, { 'px' : 'px', 'em' : 'em'}, ]; var border_slice = []; var border_width = []; var border_outset = []; var border_slice_values = []; var border_width_values = []; var border_outset_values = []; var border_slice_units = ['', '', '', '']; var border_width_units = ['px', 'px', 'px', 'px']; var border_...
...= value + 'px'; }; var setpreviewareaheight = function setpreviewareaheight(value) { preview_area.style.height = value + 'px'; }; var updatedragoption = function updatedragoption(value) { if (value === true) subject.setattribute('data-draggable', 'true'); else subject.removeattribute('data-draggable'); }; var createproperty = function createproperty(topic, labelid,
optionsid) { var slider = inputslidermanager.createslider(topic, positions[labelid]); var dropdown = dropdownmanager.createdropdown(topic, dropdown_unit_
options[
optionsid]); inputslidermanager.setsensivity(topic, 3); inputslidermanager.setprecision(topic, 1); var property = document.createelement('div'); var config = document.createelement('div'); property.classname = 'property';...
image-set() - CSS: Cascading Style Sheets
the image-set() function delivers the most appropriate image resolution for a user’s device, providing a set of image
options — each with an associated resolution declaration — from which the browser picks the most appropriate for the device and settings.
... image-set() allows the author to provide
options rather than determining what each individual user needs.
... examples background-image: image-set( "cat.png" 1x, "cat-2x.png" 2x, "cat-print.png" 600dpi); this example shows how to use image-set() to provide two alternative background-image
options, chosen depending on the resolution needed: a normal version and a high-resolution version.
<input type="month"> - HTML: Hypertext Markup Language
bday-month" value="2017-06"> var monthcontrol = document.queryselector('input[type="month"]'); monthcontrol.value = '1978-06'; additional attributes in addition to the attributes common to <input> elements, month inputs offer the following attributes: attribute description list the id of the <datalist> element that contains the optional pre-defined autocomplete
options max the latest year and month to accept as a valid input min the earliest year and month to accept as a valid input readonly a boolean which, if present, indicates that the input's value can't be edited step a stepping interval to use when incrementing and decrementing the value of the input field list the values of the list attribute is the...
...any values in the list that are not compatible with the type are not included in the suggested
options.
... note: when the data entered by the user doesn't adhere to the stepping configuration, the user agent may round to the nearest valid value, preferring numbers in the positive direction when there are two equally close
options.
<input type="search"> - HTML: Hypertext Markup Language
additional attributes in addition to the attributes that operate on all <input> elements regardless of their type, search field inputs support the following attributes: attribute description list the id of the <datalist> element that contains the optional pre-defined autocomplete
options maxlength the maximum number of characters the input should accept minlength the minimum number of characters long the input can be and still be considered valid pattern a regular expression the input's contents must match in order to be valid placeholder an exemplar value to display in the input field whenever it is empty readonly a boo...
...any values in the list that are not compatible with the type are not included in the suggested
options.
...the following screenshot comes from chrome: in addition, modern browsers also tend to automatically store search terms previously entered across domains, which then come up as autocomplete
options when subsequent searches are performed in search inputs on that domain.
<input type="time"> - HTML: Hypertext Markup Language
additional attributes in addition to the attributes common to all <input> elements, time inputs offer the following attributes: attribute description list the id of the <datalist> element that contains the optional pre-defined autocomplete
options max the latest time to accept, in the syntax described under time value format min the earliest time to accept as a valid input readonly a boolean attribute which, if present, indicates that the contents of the time input should not be user-editable step the stepping interval to use both for user interfaces purposes and during constraint validation ...
...any values in the list that are not compatible with the type are not included in the suggested
options.
... note: when the data entered by the user doesn't adhere to the stepping configuration, the user agent may round to the nearest valid value, preferring numbers in the positive direction when there are two equally close
options.
HTML elements reference - HTML: Hypertext Markup Language
<datalist> the html <datalist> element contains a set of <option> elements that represent the permissible or recommended
options available to choose from within other controls.
... <optgroup> the html <optgroup> element creates a grouping of
options within a <select> element.
... <select> the html <select> element represents a control that provides a menu of
options <textarea> the html <textarea> element represents a multi-line plain-text editing control, useful when you want to allow users to enter a sizeable amount of free-form text, for example a comment on a review or feedback form.
Index - HTTP
this header is necessary as the preflight request is always an
options and doesn't use the same method as the actual request.
... 116 x-content-type-
options http, http header, reference, response header the x-content-type-
options response http header is a marker used by the server to indicate that the mime types advertised in the content-type headers should not be changed and be followed.
... 121 x-frame-
options gecko, haproxy, http, response header, security, nginx the x-frame-
options http response header can be used to indicate whether or not a browser should be allowed to render a page in a <frame>, <iframe>, <embed> or <object> .
HTTP headers - HTTP
x-content-type-
options disables mime sniffing and forces browser to use the type given in content-type.
... x-download-
options the x-download-
options http header indicates that the browser (internet explorer) should not display the option to "open" a file that has been downloaded from an application, to prevent phishing attacks as the file otherwise would gain access to execute in the context of the application.
... x-frame-
options (xfo) indicates whether a browser should be allowed to render a page in a <frame>, <iframe>, <embed> or <object>.
Loops and iteration - JavaScript
example in the example below, the function contains a for statement that counts the number of selected
options in a scrolling list (a <select> element that allows multiple selections).
...it checks that i is less than the number of
options in the <select> element, performs the succeeding if statement, and increments i by after each pass through the loop.
... <option selected="selected">r&b</option> <option>jazz</option> <option>blues</option> <option>new age</option> <option>classical</option> <option>opera</option> </select> </p> <p><input id="btn" type="button" value="how many are selected?" /></p> </form> <script> function howmany(selectobject) { let numberselected = 0; for (let i = 0; i < selectobject.
options.length; i++) { if (selectobject.
options[i].selected) { numberselected++; } } return numberselected; } let btn = document.getelementbyid('btn'); btn.addeventlistener('click', function() { alert('number of
options selected: ' + howmany(document.selectform.musictypes)); }); </script> do...while statement the do...while statement repeats until a specified condition evaluates ...
Intl.Collator.supportedLocalesOf() - JavaScript
syntax intl.collator.supportedlocalesof(locales[,
options]) parameters locales a string with a bcp 47 language tag, or an array of such strings.
...
options optional.
... var locales = ['ban', 'id-u-co-pinyin', 'de-id']; var
options = { localematcher: 'lookup' }; console.log(intl.collator.supportedlocalesof(locales,
options).join(', ')); // → "id-u-co-pinyin, de-id" specifications specification ecmascript internationalization api (ecma-402)the definition of 'intl.collator.supportedlocalesof' in that specification.
Intl.DateTimeFormat.supportedLocalesOf() - JavaScript
syntax intl.datetimeformat.supportedlocalesof(locales[,
options]) parameters locales a string with a bcp 47 language tag, or an array of such strings.
...
options optional.
... var locales = ['ban', 'id-u-co-pinyin', 'de-id']; var
options = { localematcher: 'lookup' }; console.log(intl.datetimeformat.supportedlocalesof(locales,
options).join(', ')); // → "id-u-co-pinyin, de-id" specifications specification ecmascript internationalization api (ecma-402)the definition of 'intl.datetimeformat.supportedlocalesof' in that specification.
Intl.DisplayNames() constructor - JavaScript
syntax new intl.displaynames([locales[,
options]]) parameters locales optional a string with a bcp 47 language tag, or an array of such strings.
...
options optional an object with some or all of the following properties: localematcher the locale matching algorithm to use.
... "code" "none" examples basic usage in basic use without specifying a locale, a formatted string in the default locale and with default
options is returned.
Intl.DisplayNames.supportedLocalesOf() - JavaScript
syntax intl.displaynames.supportedlocalesof(locales[,
options]) parameters locales a string with a bcp 47 language tag, or an array of such strings.
...
options optional.
... const locales = ['ban', 'id-u-co-pinyin', 'de-id']; const
options = { localematcher: 'lookup' }; console.log(intl.displaynames.supportedlocalesof(locales,
options).join(', ')); // → "id-u-co-pinyin, de-id" specifications specification intl.displaynamesthe definition of 'supportedlocalesof()' in that specification.
Intl.ListFormat.supportedLocalesOf() - JavaScript
syntax intl.listformat.supportedlocalesof(locales[,
options]) parameters locales a string with a bcp 47 language tag, or an array of such strings.
...
options optional.
... const locales = ['ban', 'id-u-co-pinyin', 'de-id']; const
options = { localematcher: 'lookup' }; console.log(intl.listformat.supportedlocalesof(locales,
options).join(', ')); // → "id-u-co-pinyin, de-id" specifications specification intl.listformatthe definition of 'supportedlocalesof()' in that specification.
Intl.Locale() constructor - JavaScript
syntax new intl.locale(tag [,
options]) parameters tag the unicode locale identifier string.
...
options an object that contains configuration for the locale.
... examples basic usage at its very simplest, the intl.locale constructor takes a locale identifier string as its argument: let us = new intl.locale('en-us'); using the locale constructor with an
options object the constructor also takes an optional configuration object argument, which can contain any of several extension types.
Intl.Locale.prototype.baseName - JavaScript
description an intl.locale object represents a parsed local and
options for that locale.
... examples basic example let myloc = new intl.locale("fr-latn-ca"); // sets locale to canadian french console.log(myloc.tostring()); // prints out "fr-latn-ca-u-ca-gregory" console.log(myloc.basename); // prints out "fr-latn-ca" example with
options in the input string // sets language to japanese, region to japan, // calendar to gregorian, hour cycle to 24 hours let japan = new intl.locale("ja-jp-u-ca-gregory-hc-24"); console.log(japan.tostring()); // prints out "ja-jp-u-ca-gregory-hc-h24" console.log(japan.basename); // prints out "ja-jp" example with
options that override input string // input string indicates language as dutch and re...
...gion as belgium, // but
options object overrides the region and sets it to the netherlands let dutch = new intl.locale("nl-latn-be", {region: "nl"}); console.log(dutch.basename); // prints out "nl-latn-nl" specifications specification ecmascript internationalization api (ecma-402) ...
Intl.NumberFormat() constructor - JavaScript
syntax new intl.numberformat([locales[,
options]]) parameters locales optional a string with a bcp 47 language tag, or an array of such strings.
...
options optional an object with some or all of the following properties: compactdisplay only used when notation is "compact".
... examples basic usage in basic use without specifying a locale, a formatted string in the default locale and with default
options is returned.
Intl.NumberFormat.prototype.format() - JavaScript
the intl.numberformat.prototype.format() method formats a number according to the locale and formatting
options of this numberformat object.
... description the format getter function formats a number into a string according to the locale and formatting
options of this numberformat object.
... examples using format use the format getter function for formatting a single currency value, here for russia: var
options = { style: 'currency', currency: 'rub' }; var numberformat = new intl.numberformat('ru-ru',
options); console.log(numberformat.format(654321.987)); // → "654 321,99 руб." using format with map use the format getter function for formatting all numbers in an array.
Intl.NumberFormat.supportedLocalesOf() - JavaScript
syntax intl.numberformat.supportedlocalesof(locales[,
options]) parameters locales a string with a bcp 47 language tag, or an array of such strings.
...
options optional.
... var locales = ['ban', 'id-u-co-pinyin', 'de-id']; var
options = { localematcher: 'lookup' }; console.log(intl.numberformat.supportedlocalesof(locales,
options).join(', ')); // → "id-u-co-pinyin, de-id" specifications specification ecmascript internationalization api (ecma-402)the definition of 'intl.numberformat.supportedlocalesof' in that specification.
Intl.PluralRules.supportedLocalesOf() - JavaScript
syntax intl.pluralrules.supportedlocalesof(locales[,
options]) parameters locales a string with a bcp 47 language tag, or an array of such strings.
...
options optional.
... var locales = ['ban', 'id-u-co-pinyin', 'de-id']; var
options = { localematcher: 'lookup' }; console.log(intl.pluralrules.supportedlocalesof(locales,
options).join(', ')); // → "id-u-co-pinyin, de-id" specifications specification ecmascript internationalization api (ecma-402)the definition of 'intl.pluralrules.supportedlocalesof' in that specification.
Intl.RelativeTimeFormat.supportedLocalesOf() - JavaScript
syntax intl.relativetimeformat.supportedlocalesof(locales[,
options]) parameters locales a string with a bcp 47 language tag, or an array of such strings.
...
options optional.
... const locales = ['ban', 'id-u-co-pinyin', 'de-id']; const
options = { localematcher: 'lookup' }; console.log(intl.relativetimeformat.supportedlocalesof(locales,
options).join(', ')); // → "id-u-co-pinyin, de-id" specifications specification status comment ecmascript internationalization api (ecma-402)the definition of 'relativetimeformat.supportedlocalesof()' in that specification.
How to make PWAs re-engageable using Notifications and Push - Progressive web apps (PWAs)
n with the content: it sets the game's name as the title, mentioning the author in the body, and showing the image as an icon: function randomnotification() { var randomitem = math.floor(math.random()*games.length); var notiftitle = games[randomitem].name; var notifbody = 'created by '+games[randomitem].author+'.'; var notifimg = 'data/img/'+games[randomitem].slug+'.jpg'; var
options = { body: notifbody, icon: notifimg } var notif = new notification(notiftitle,
options); settimeout(randomnotification, 30000); } a new random notification is created every 30 seconds until it becomes too annoying and is disabled by the user.
...there are two
options passed to the pushmanager.subscribe() method — the first is uservisibleonly: true, which means all the notifications sent to the user will be visible to them, and the second one is the applicationserverkey, which contains our successfully acquired and converted vapid key.
... module.exports = function(app, route) { app.get(route + 'vapidpublickey', function(req, res) { res.send(process.env.vapid_public_key); }); app.post(route + 'register', function(req, res) { res.sendstatus(201); }); app.post(route + 'sendnotification', function(req, res) { const subscription = req.body.subscription; const payload = req.body.payload; const
options = { ttl: req.body.ttl }; settimeout(function() { webpush.sendnotification(subscription, payload,
options) .then(function() { res.sendstatus(201); }) .catch(function(error) { console.log(error); res.sendstatus(500); }); }, req.body.delay * 1000); }); }; service-worker.js the last file we will look at is the service worker...
The building blocks of responsive design - Progressive web apps (PWAs)
when you click on an image in the gallery it brings up
options to delete or cancel deletion of the card, and you don't want two buttons on top of one another.
...there are many more
options available in the viewport meta tag, which you can read about in using the viewport meta tag to control layout on mobile browsers.
... background: url(images/low-res-header.jpg) 1rem center ; } @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and ( min-resolution: 192dpi), only screen and ( min-resolution: 2dppx) { button { background: url(images/high-res-header.jpg) 1rem center ; } } this looks rather complicated, but really it's not — we are providing a number of media query
options, as at this time different browsers support different resolution media query types and even units.
Loading Content Scripts - Archive of obsolete content
the constructors for content-script-using objects such as panel and page-mod define a group of
options for loading content scripts: contentscript string, array contentscriptfile string, array contentscriptwhen string contentscript
options object we have already seen the contentscript option, which enables you to pass in the text of the script itself as a string literal.
... the contentscript
options is a json that is exposed to content scripts as a read only value under self.
options property.
SDK and XUL Comparison - Archive of obsolete content
advantages of xul-based add-ons user interface flexibility xul overlays offer a great deal of
options for building a ui and integrating it into the browser.
... using only the sdk's supported apis you have much more limited
options for your ui.
Working with Events - Archive of obsolete content
in the latter case the
options object passed to the constructor typically defines properties whose names are the names of supported event types prefixed with "on": for example, "onopen", "onready" and so on.
... the following add-on creates a button and assigns a listener to the onclick property of the
options object supplied to the button's constructor.
XUL Migration Guide - Archive of obsolete content
to add user interface components to the browser, there are a few different
options.
... in order of complexity, the main
options are: the sdk includes modules that implement some basic user interface components including buttons, dialogs, and context menu items.
hotkeys - Archive of obsolete content
globals constructors hotkey(
options) creates a hotkey whose onpress listener method is invoked when key combination defined by hotkey is pressed.
... parameters
options : object required
options: name type combo string any function key: "f1, f2, ..., f24" or key combination in the format of 'modifier-key': "accel-s" "meta-shift-i" "control-alt-d" all hotkeys require at least one modifier as well as the key.
notifications - Archive of obsolete content
globals functions notify(
options) displays a transient notification to the user.
... parameters
options : object optional
options: name type title string a string to display as the message's title.
frame/hidden-frame - Archive of obsolete content
globals constructors hiddenframe(
options) creates a hidden frame.
... parameters
options : object required
options: name type onready function,array functions to call when the frame is ready to load content.
lang/functional - Archive of obsolete content
throttle(fn, wait,
options) this function is new in firefox 30.
...
options : object by default the function is called as soon as it is invoked (the leading edge of the wait period), and at the end of wait (the trailing edge of the wait period).
net/url - Archive of obsolete content
globals functions readuri(uri,
options) reads a uri and returns a promise.
...
options : object optional
options: name type sync boolean if this option is set to true, the promise returned will be resolved synchronously.
tabs/utils - Archive of obsolete content
opentab(window, url,
options) open a new tab in the specified browser window.
...
options : object optional
options: name type inbackground boolean if true, open the new tab, but keep the currently selected tab selected.
cfx to jpm - Archive of obsolete content
there is a known bug in simple
options handling which may require the workaround described in https://bug635044.bugzilla.mozilla.org/show_bug.cgi?id=1243467 commands and command
options permanently removed commands jpm has dropped support for all the "internal" cfx commands.
... permanently removed
options jpm has dropped support for: --extra-packages --use-config --package-path --pkgdir --no-strip-xpi --harness-option --manifest-overload --output-file --templatedir --keydir --profiledir --overload-modules --static-args --app --no-run --addons --e10s --logfile --dependencies --force-mobile --test-runner-pkg instead of --profiledir and --overload-modules, use --profile and --overload.
Add a Context Menu Item - Archive of obsolete content
the constructor in this case takes four
options: label, context, contentscript, and onmessage.
... so: the user clicks the item the content script's click event fires, and the content script retrieves the selected text and sends a message to the add-on the add-on's message event fires, and the add-on code's handler function is passed the selected text, which it logs more
options adding an image you can add an image to a context menu item with the image option.
Listening for Load and Unload - Archive of obsolete content
exports.main = function (
options, callbacks) {};
options is an object describing the parameters with which your add-on was loaded.
...
options.loadreason
options.loadreason is one of the following strings describing the reason your add-on was loaded: install enable startup upgrade downgrade exports.onunload() if your add-on exports a function called onunload(), that function will be called when the add-on is unloaded.
Modifying Web Pages Based on URL - Archive of obsolete content
in particular, the pagemod constructor takes several additional
options to control its behavior: by default, content scripts are not attached to any tabs that are already open when the page-mod is created, and are attached to iframes as well as top-level documents.
... define read-only values accessible to content scripts using the contentscript
options option.
Localization - Archive of obsolete content
now when the browser's locale is set to "en-us", users see this in the add-ons manager: when the browser's locale is set to "fr", they see this: the menulist and the radio preference types have
options.
...if the locale file has a entry with the value of the label attribute prefixed with "{name}_
options." as its key, where {name} is the name of the preference, its value is used as a localized label.
Preferences - Archive of obsolete content
using preference observers changes a user makes to your extension's preferences, such as through an
options dialog, may not take effect until the browser is restarted (e.g., if you have initialized local variables when the browser loads).
... a brief guide to mozilla preferences — describes preferences system from user's/administrator's pov mozilla xpcom interfaces of the preferences system most used interfaces (these are frozen and will not change): nsiprefbranch and nsiprefservice nsiprefbranch2 interface (before gecko 1.8 it was called nsiprefbranchinternal) preferences system - an easy way to create a xul
options window for your extension or application syncing preferences across clients using sync lxr pages for libpref, the source code module that implements the preferences system a javascript wrapper for preferences api adding preferences to an extension — a simple tutorial with a working extension that illustrates the use of preference observers inline
options - how to use the new preference ui ...
Creating custom Firefox extensions with the Mozilla build system - Archive of obsolete content
please consider all of your
options carefully before deciding to use native code (c++) in your extension.
...add the following line at the end of the file: ac_add_
options --enable-extensions=default,myextension now launch make from the mozilla root: make -f client.mk build even if you have an up-to-date firefox build, you'll have to wait a while for make to recurse over the entire mozilla source tree looking for new stuff (on my machine, which is pretty fast, this takes a good 10-15 minutes).
Chapter 1: Introduction to Extensions - Archive of obsolete content
extensions (these can do anything) yes yes theming (this changes the look of the browser) no yes let's build an extension table 1 shows the various customization
options available to a user in firefox.
... users have flexible customization
options, using css in user style sheets and javascript/dom in user scripts (these depend on stylish, greasemonkey, and userchrome.js).
Adding Toolbars and Toolbar Buttons - Archive of obsolete content
it points to the id of a popup element that holds the customization
options that are displayed when the user right-clicks on the toolbar.
...menu toolbar buttons are handy when you want to include many
options in your toolbar and you don't want it to be too cluttered.
Building TransforMiiX standalone - Archive of obsolete content
add tx_exe=1 mk_add_
options build_modules="xpcom transformiix" ac_add_
options --enable-standalone-modules="xpcom transformiix" to your .mozconfig, and use client.mk to pull as usual.
... it is recommended to add ac_add_
options --disable-gtktest ac_add_
options --without-jpeg ac_add_
options --without-zlib ac_add_
options --without-png ac_add_
options --without-x to your .mozconfig, too, as it stops configure from testing unneeded libs.
Documentation for BiDi Mozilla - Archive of obsolete content
other bidi functionality clipboard: based on bidi
options in preferences, the text mode of the clipboard may be "logical", "visual" or "as source".
...form controls: based on bidi
options in preferences, the text mode of form controls may be "logical", "visual" or "like containing document".
statusBar - Archive of obsolete content
many of the
options are optional.
... syntax jetpack.statusbar.append(
options); possible
options are: url width (string/length) the width of the panel-item html (string) the html code which will be used inside the item onload (event) this event fires when the item was appended.
Build - Archive of obsolete content
the contents of the file should look something like this : mk_add_
options moz_co_project=xulrunner mk_add_
options moz_objdir=@topsrcdir@/mozilla-obj ac_add_
options --enable-application=xulrunner ac_add_
options --disable-debug ac_add_
options --enable-optimize ac_add_
options --disable-tests ac_add_
options --disable-javaxpcom build xulrunner : make -f client.mk build once the build is done, there will be a directory called mozilla-obj.
... go into the prism/ directory and create a .mozconfig file mk_add_
options moz_objdir=@topsrcdir@/mozilla-obj/prism ac_add_
options --with-libxul-sdk=../dist ac_add_
options --enable-application=prism you need to define an environment variable to point the build to the new .mozconfig.
Running Tamarin performance tests - Archive of obsolete content
to compare a build against another build set the avm2 environment variable to the other avmshell or use the "-s --avm2"
options.
...performance test
options there are a variety of
options available with runtests.py - here is the help text followed by explanations for some
options: $ ./runtests.py -h usage: runtests.py [
options] [tests] -v --verbose enable additional output -e --avm avmplus command to use -a --asc compiler to use -g --globalabc deprecated but still works - use builtin.abc (used to be location of global.ab...
Reading from Files - Archive of obsolete content
while there is only one method to create an input stream, it provides a number of
options to control exactly how reading is performed.
... for instance, there are
options to read a file as if it were text or a binary file.
Index - Archive of obsolete content
this method has a number of
options to specify text or binary writing, the character set, and whether to append to an existing file or create a new one.
... 890 providing command-line
options add-ons, command line, extensions, guide, xulrunner extensions and xul applications can modify the way command line parameters are handled by writing a component that implements the nsicommandlinehandler interface and registering it in a category.
Special per-platform menu considerations - Archive of obsolete content
menu_prefsseparator the separator just before the preferences/
options item.
... here is an example: <menubar> <menu label="tools"> <menupopup> <menuitem label="spell check"/> <menuitem id="menu_preferences" label="preferences" oncommand="window.opendialog('
options.xul', '_new', 'chrome');"/> </menupopup> </menu> </menubar> this menu item will be placed on the application menu on the macintosh but left in the tools menu on other platforms.
Using Visual Studio as your XUL IDE - Archive of obsolete content
go to tools >
options...
...all va
options can be found at: hkey_current_user\software\whole tomato\visual assist x\ find the folder that represents your visual studio version ((vanet8, vanet9, etc.) and add your extensions to the corresponding registry entries extjs and extxml.
XUL FAQ - Archive of obsolete content
troubleshooting prefwindow-based
options windows this ought to be on a separate page, preferences system troubleshooting.
...some things to check when you have issues with your prefwindow-based
options window: does each prefpane have a unique id?
XUL controls - Archive of obsolete content
button reference related elements: menupopup menuitem <checkbox> a control that may be turned on and off, typically used to create
options which may be enabled or disabled.
... progressmeter reference <radio> a radio button is used when only one of a set of
options may be selected at a time.
Debugging a XULRunner Application - Archive of obsolete content
/* debugging prefs */ pref("browser.dom.window.dump.enabled", true); pref("javascript.
options.showinconsole", true); pref("javascript.
options.strict", true); pref("nglayout.debug.disable_xul_cache", true); pref("nglayout.debug.disable_xul_fastload", true); don't forget to change these preferences back to their defaults when you've finished debugging; leaving them as-is can significantly harm performance and usability.
...to show errors in chrome javascript, the pref pref("javascript.
options.showinconsole", true) must be set.
xulauncher - Archive of obsolete content
#!/bin/bash -e # a simple bash script to create a minimal xulrunner dir structure and # needed meta files in /tmp, copy the xul-file over and start it # usage: # xulauncher xulfile.xul [
options] ############################################################################## # check if theres atleast one parameter ############################################################################## if [ $# -lt 1 ] then echo "you need to give the xul file as first parameter" exit fi # check if 1st parameter is a file ############################################################################## if [ !
...###################################################################### echo " content $xulname file:$xulname/ ">$xulmanifest # create prefs.js file ############################################################################## echo " pref(\"toolkit.defaultchromeuri\", \"chrome://$xulname/content/$xulfile\"); /* debugging prefs */ pref(\"browser.dom.window.dump.enabled\", true); pref(\"javascript.
options.showinconsole\", true); pref(\"javascript.
options.strict\", true); pref(\"nglayout.debug.disable_xul_cache\", true); pref(\"nglayout.debug.disable_xul_fastload\", true); ">$xulprefs # copy xul file to right location and run it ############################################################################## cp $xulfile $xuldir xulrunner $xulappini $@ ...
Gecko Compatibility Handbook - Archive of obsolete content
after restarting your browser, add the the user-agent strings that you want to test to the list (tools | user agent switcher |
options |
options...
...once you filled the dialog box (it should look like the screenshot below), click ok and close the
options dialog.
2006-11-17 - Archive of obsolete content
solution is provided by jay lee should there be an additional
options for account configuration that just delete the messages from the server whenever they are deleted in tb?
...however, david bienvenu stated that the
options already exist in tb 2.0, just that it is a hidden.
JS-Engine FAQ - Archive of obsolete content
how to compile javascript into java invoking compiler: java org.mozilla.javascript.tools.jsc.main [
options] file1.js [file2.js...] this results in a class file.
... compiler
options can be vied here.
NPP_New - Archive of obsolete content
this gives developers a chance to use private attributes to communicate instance-specific
options or other information to the plug-in.
... place private
options at the end of the list of standard attributes in the embed tag.
Scratchpad - Archive of obsolete content
editing the scratchpad window looks something like this (on macos the menu bar is at the top of the screen): the file menu offers
options to save and load javascript code snippets, so you can reuse code later if you like.
... there are four execution
options available.
Troubleshooting XForms Forms - Archive of obsolete content
in order to fix this, go to the noscript
options dialog (right-click on the 's' icon on the status bar and select '
options...') and select the advanced tab.
... the xss sub-tab has the following
options: turn cross-site post requests into data-less get requests anti-xss protection exceptions you can temporarily fix the problem by unchecking the turn cross-site post requests into data-less get requests check box.
Publishing games - Game development
this series of articles looks at the
options you have when you want to publish and distribute your game, and earn something out of it while you wait for it to become famous.
...game monetization is essential to anyone who considers their game development work a serious endeavour on the path to becoming an independent game developer able to make a living, so read on and see what your
options are.
Desktop mouse and keyboard controls - Game development
ft.isdown || this.keyleft.isdown) { // move left } else if(this.cursors.right.isdown || this.keyright.isdown) { // move right } if(this.cursors.up.isdown || this.keyup.isdown) { // move up } else if(this.cursors.down.isdown || this.keydown.isdown) { // move down } in the update() function we can now move the player's ship in any direction using one of the two sets of movement key
options.
... how to play we've implemented the controls, and now we should inform the player about their
options to control the game — they wouldn't know about them otherwise.
How much does it cost to do something on the Web? - Learn web development
if you want to install an (s)ftp client, there are several reliable and free
options: for example, filezilla for all platforms, winscp for windows, cyberduck for mac or windows, and more.
...for the latter, you won't have to pay anything, but you may have less control over templating and other
options.
Graceful asynchronous programming with Promises - Learn web development
since getusermedia() has to ensure that the user has permission to use those devices and ask the user which microphone to use and which camera to use (or whether to be a voice-only call, among other possible
options), it can block until not only all of those decisions are made, but also the camera and microphone have been engaged.
...this can also take an
options object as an optional second parameter, but we are just using the simplest version for now.
Introduction to events - Learn web development
in addition, there are other powerful features and
options available with this event mechanism.
... the other two are relatively interchangeable, at least for simple uses: event handler properties have less power and
options, but better cross-browser compatibility (being supported as far back as internet explorer 8).
Server-side web frameworks - Learn web development
we then explain some of the criteria you can use for choosing a web framework, and then list some of your
options.
...the field definitions may also specify their maximum size, default values, selection list
options, help text for documentation, label text for forms etc.
Getting started with Ember - Learn web development
now type the following into your terminal to install ember-cli: npm install -g ember-cli this tool provides the ember program in your terminal, which is used to create, build, develop, test, and scaffold your application (run ember --help for a full list of commands and their
options).
... in ember-cli-build.js, find the following code: let app = new emberapp(defaults, { // add
options here }); add the following lines underneath it before saving the file: app.import('node_modules/todomvc-common/base.css'); app.import('node_modules/todomvc-app-css/index.css'); for more information on what ember-cli-build.js does, and for other ways in which you can customize your build / pipeline, the ember guides have a page on addons and dependencies.
TypeScript support in Svelte - Learn web development
if you are not interested at all in typescript, you can skip to the next chapter, where we will look at different
options for deploying our svelte applications, further resources, and more.
...if we pass an unknown property in the
options parameter of the app constructor (for example a typo like traget instead of target) typescript will complain: in the app.svelte component, the setuptypescript.js script has added the lang="ts" attribute to the <script> tag.
Working with Svelte stores - Learn web development
you have several
options, like nvda for windows, chromevox for chrome, orca on linux, and voiceover for mac os x and ios, among other
options.
...svelte has lots of
options for dealing with animations and transitions.
Handling common HTML and CSS problems - Learn web development
github's atom code editor for example has a rich plugin ecosystem available, with many linting
options.
...you can choose which browsers you want to make sure you support using the notation outlined in autoprefixer
options; also see browserslist queries, which this is based on, for more detail.
Setting up your own test automation environment - Learn web development
if you want different
options, webdriver.io and nightwatch.js are also good choices.
... let driver = new webdriver.builder() .forbrowser('firefox') .build(); note that it is possible to set specific configuration
options for browsers to be tested, for example you can set a specific version and os to test in the forbrowser() method: let driver = new webdriver.builder() .forbrowser('firefox', '46', 'mac') .build(); you could also set these
options using an environment variable, for example: selenium_browser=firefox:46:mac let's create a new test to allow us to explore this code as we talk about it.
Mozilla’s UAAG evaluation report
(p2) vg preferences, advanced, scripts & windows - allow scripts to "open unrequested windows" we do not have a strategy to "alert the user and allow the user to open it on demand" we do not have exposed prefs for all of our popup control
options.
...(p2) vg user profiles are fully supported for all configuration
options.
Benchmarking
add the following to your mozconfig in order to build with level 2: ac_add_
options rustc_opt_level=2 gc poisoning many firefox builds have a diagnostic tool that causes crashes to happen sooner and produce much more actionable information, but also slow down regular usage substantially.
... another option that is on by default in non-release builds is the preference javascript.
options.asyncstack, which provides better debugging information to developers.
Debugging Frame Reflow
element width maximum width frame status overflow area getting the log make sure that your build is a debug build (in short you need ac_add_
options --enable-debug in your .mozconfig file).
...other reflow debug
options gecko_display_reflow_flag_pixel_errors setting this option via set gecko_display_reflow_flag_pixel_errors = 1 enables a verification for each coordinate value that the coordinates are aligned at pixel boundaries.
Building Firefox with Debug Symbols
ac_add_
options --enable-debug-symbols this can optionally take an argument for the type of symbols that need to be produced (like "-g3").
...if you want to keep the symbols in the patches, you need to add this to your mozconfig: ac_add_
options --disable-install-strip ...
Gecko Logging
set moz_log_file="log.txt" the rotate and append
options described above only apply when logging to a file.
... check the env_logger docs for more details on logging
options.
Performance best practices for Firefox front-end engineers
if you require size or position information, you have a few
options.
...for example: services.scriptloader.loadsubscriptwith
options(myscripturl, { async: true }).then(() => { console.log("script at " + myscripturl + " loaded asynchronously!"); }); ...
FxAccountsOAuthClient.jsm
components.utils.import("resource://gre/modules/fxaccountsoauthclient.jsm"); creating a new fxaccountsoauthclient new fxaccountsoauthclient(object
options); method overview launchwebflow(); teardown(); attributes parameters object returns the set of parameters that initialized the firefox accounts oauth flow.
...fxaccountsoauthclient fxaccountsoauthclient( object
options object parameters string client_id string state string oauth_uri string content_uri [optional] string scope [optional] string action [optional] string authorizationendpoint ); parameters client_id - oauth id returned from client registration.
FxAccountsProfileClient.jsm
components.utils.import("resource://gre/modules/fxaccountsprofileclient.jsm"); creating a new fxaccountsprofileclient new fxaccountsprofileclient(object
options); method overview fetchprofile(); attributes serverurl url profiler server url.
...fxaccountsprofileclient fxaccountsprofileclient( object
options string serverurl, string token ); parameters serverurl - firefox profile server url.
Sqlite.jsm
this function takes an object defining connection
options: path (required) the database file to open.
... openconnection(
options) returns a promise that resolves to an opened connection instance or is rejected if an error occurred while opening the database.
Bootstrapping a new locale
set up for building the next step is to create a .mozconfig file with the compile
options for the localized build of firefox, and to set up the object directory for the localized build.
... cd mozilla-1.9.1 echo "mk_add_
options moz_objdir=@topsrcdir@/../fx-ab-dc" > .mozconfig echo "ac_add_
options --with-l10n-base=../" >> .mozconfig echo "ac_add_
options --disable-compile-environment" >> .mozconfig echo "ac_add_
options --enable-application=browser" >> .mozconfig make -f client.mk configure create a language pack first, we'll create a build directory.
Localizing with Mercurial
mercurial on windows with windows, you have a couple of install
options: for a command line interface, download and install mozillabuild package.
...if you don't see path among the
options, you'll have to click add and edit it within the add dialog.
Localizing with Mozilla Translator
these are your
options: create one product for each ''root'' directories.
... for the last two
options, you should be able to adjust your current mt product paths so you can keep using it just like with cvs.
BloatView
to do so, the xpcom_mem_log_classes environment variable should be set to the name of the class from the bloatview table: xpcom_mem_log_classes=myclass mach mochitest [
options] multiple class names can be specified by setting xpcom_mem_log_classes to a comma-separated list of names: xpcom_mem_log_classes=myclass,myotherclass,deliberatelyleakedclass mach mochitest [
options] test harness scripts typically accept a --setenv option for specifying environment variables, which may be more convenient in some cases: mach mochitest --setenv=xpcom_mem_log_classes=myclass [op...
...tions] for getting allocation stacks in automation, you can add the appropriate --setenv
options to the test configurations for the platforms you're interested in.
TraceMalloc
the built mozilla application will support the following additional command-line
options: --trace-malloc filename the application will log allocation and deallocation events with stack traces in a binary format to the given file.
...run using both the --trace-malloc and --shutdown-leaks
options.
powermetrics
by default, the coalitions/processes are sorted by a composite value computed from several factors, though this can be changed via command-line
options.
... also note that powermetrics -h is a better guide to the the command-line
options than man powermetrics.
Profile Manager
the version of firefox which will be launched is indicated in the "firefox version" dropdown in the launch
options box: there are several additional launch
options available for firefox.
... see command line
options for a description of these.
I/O Types
directory type file descriptor types file info types network address types types used with socket
options functions type used with memory-mapped i/o offset interpretation for seek functions directory type prdir file descriptor types nspr represents i/o objects, such as open files and sockets, by file descriptors of type prfiledesc.
... file info types prfileinfo prfileinfo64 prfiletype network address types prnetaddr pripv6addr types used with socket
options functions prsocketoptiondata prsockoption prlinger prmcastrequest type used with memory-mapped i/o prfilemap offset interpretation for seek functions prseekwhence ...
PR_GetSocketOption
retrieves the socket
options set for a specified socket.
... syntax #include <prio.h> prstatus pr_getsocketoption( prfiledesc *fd, prsocketoptiondata *data); parameters the function has the following parameters: fd a pointer to a prfiledesc object representing the socket whose
options are to be retrieved.
Building NSS
because nss is a cross-platform library that builds on many different platforms and has many
options, it may be complex to build.
... this supports some alternative
options, but can be a lot slower.
4.3 Release Notes
release date: 01 april 2009 introduction network security services for java (jss) 4.3 is a minor release with the following new features: sqlite-based shareable certificate and key databases libpkix: an rfc 3280 compliant certificate path validation library pkcs11 needslogin method support hmacsha256, hmacsha384, and hmacsha512 support for all nss 3.12 initialization
options jss 4.3 is tri-licensed under mpl 1.1/gpl 2.0/lgpl 2.1.
... libpkix: an rfc 3280 compliant certificate path validation library (see pkixverify) pk11token.needslogin method (see needslogin) support hmacsha256, hmacsha384, and hmacsha512 (see hmactest.java) support for all nss 3.12 initialization
options (see initializationvalues) new ssl error codes (see http://mxr.mozilla.org/security/sour...util/sslerrs.h) ssl_error_unsupported_extension_alert ssl_error_certificate_unobtainable_alert ssl_error_unrecognized_name_alert ssl_error_bad_cert_status_response_alert ssl_error_bad_cert_hash_value_alert new tls cipher suites (see http://mxr.mozilla.org/security/sour...sslsock...
NSS 3.12.4 release notes
whenever value exceeds 384 bytes bug 487736: libpkix passes wrong argument to der_decodetimechoice and crashes bug 487858: remove obsolete build
options mozilla_security_build and mozilla_bsafe_build bug 487884: object leak in libpkix library upon error bug 488067: pk11_importcrl reports sec_error_crl_not_found when it fails to import a crl bug 488350: nspr-free freebl interface need to do post tests only in fips mode.
...bug 505858: nss_registershutdown can return without unlocking nssshutdownlist.lock bug 507041: invalid build
options for vc6 bug 507228: coreconf.dep doesn't need to contain the nss version number bug 507422: crash [[@ port_freearena - lg_mksecretkeyrep] when port_newarena fails bug 507482: nss 3.12.3 (and later) doesn't build on aix 5.1 bug 507937: pwdecrypt program problems bug 508259: pk11mode crashed on linux2.4 bug 508467: libpkix ocsp checker should use date argument to obtain the time for cert validity v...
NSS 3.14 release notes
these functions are intended to replace the now-deprecated use of the ssl_enable_ssl3 and ssl_enable_tls socket
options.
...the old
options to disable ssl 2, ssl 3 and tls 1.0 have been removed and replaced with a new -v option that specifies the enabled range of protocol versions (see usage output of those tools).
NSS 3.15 release notes
tls client applications may enable this via a call to ssl_
optionsetdefault(ssl_enable_ocsp_stapling, pr_true); added function secitem_reallocitemv2.
... new macros in ssl.h ssl_enable_ocsp_stapling - used with ssl_
optionset to configure tls client sockets to request the certificate_status extension (eg: ocsp stapling) when set to pr_true notable changes in nss 3.15 secitem_reallocitem is now deprecated.
NSS 3.21 release notes
new in nss 3.21 new functionality certutil now supports a --rename option to change a nickname (bug 1142209) tls extended master secret extension (rfc 7627) is supported (bug 1117022) new info functions added for use during mid-handshake callbacks (bug 1084669) new functions in nss.h nss_
optionset - sets nss global
options nss_optionget - gets the current value of nss global
options in secmod.h secmod_createmoduleex - create a new secmodmodule structure from module name string, module parameters string, nss specific parameters string, and nss configuration parameter string.
...r} for ckm_tls_kdf ck_tls_mac_params{_ptr} - parameters {or pointer} for ckm_tls_mac in sslt.h sslhashtype - identifies a hash function sslsignatureandhashalg - identifies a signature and hash function sslpreliminarychannelinfo - provides information about the session state prior to handshake completion new macros in nss.h nss_rsa_min_key_size - used with nss_
optionset and nss_optionget to set or get the minimum rsa key size nss_dh_min_key_size - used with nss_
optionset and nss_optionget to set or get the minimum dh key size nss_dsa_min_key_size - used with nss_
optionset and nss_optionget to set or get the minimum dsa key size in pkcs11t.h ckm_tls12_master_key_derive - derives tls 1.2 master secret ckm_tls12_key_and_mac_derive - derives t...
NSS 3.35 release notes
the signatures of functions ssl_
optionset, ssl_optionget, ssl_
optionsetdefault and ssl_optiongetdefault have been modified, to take a printn argument rather than prbool.
... this makes it clearer, that
options can have values other than 0 or 1.
NSS API Guidelines
there seem to be three reasonable
options: enum members have the same standard as exposed data structure members.
...
options 2 and 3 are the more preferred
options.
NSS PKCS11 Functions
syntax #include "pk11pub.h" pk11slotinfo *secmod_openuserdb(const char *modulespec) parameters this function has the following parameters: modulespec is the same data that you would pass to softoken at initialization time under the 'tokens'
options.
...modulespec is the same data that you would pass to softoken at initialization time under the 'tokens'
options.
OLD SSL Reference
ssl initialization functions nss_init nss_initreadwrite nss_nodb_init ssl_
optionsetdefault ssl_optiongetdefault ssl_cipherprefsetdefault ssl_cipherprefgetdefault ssl_clearsessioncache ssl_configserversessionidcache initializing multi-processing with a shared ssl server cache ssl_configmpserversidcache ssl_inheritmpserversidcache ...
... ssl export policy functions nss_setdomesticpolicy nss_setexportpolicy nss_setfrancepolicy ssl_cipherpolicyset ssl_cipherpolicyget ssl configuration functions ssl configuration ssl_importfd ssl_
optionset ssl_optionget ssl_cipherprefset ssl_cipherprefget ssl_configsecureserver ssl_seturl ssl_setpkcs11pinarg callback configuration ssl_authcertificatehook ...
NSS tools : pk12util
name pk12util — export and import keys and certificate to or from a pkcs #12 file and the nss database synopsis pk12util [-i p12file [-h tokenname] [-v] [common-
options] ] [ -l p12file [-h tokenname] [-r] [common-
options] ] [ -o p12file -n certname [-c keycipher] [-c certcipher] [-m|--key_len keylen] [-n|--cert_key_len certkeylen] [common-
options] ] [ common-
options are: [-d [sql:]directory] [-p dbprefix] [-k slotpasswordfile|-k slotpassword] [-w p12filepasswordfile|-w p12filepassword] ] description the pkcs #12 utility, pk12util, enables sharing certificates among any server that supports pkcs#12.
...
options and arguments
options -i p12file import keys and certificates from a pkcs#12 file into a security database.
Installing Pork
to tell mcpp which gcc installation to integrate itself with, place the selected gcc bin dir as the first element of your path: path=/bindir/of/my/gcc:$path if you want to use a gcc that has binaries named something other than "gcc" and "g++", or you use "ccache" for you main gcc installation and want mcpp to override a separate installation, you need to pass the
options "cc=gccxxx cxx=g++xxx" to "./configure".
...following configure command: ac_cv_visibility_hidden=no cc="gcc34 -save-temps -wp,-w0,-k" cxx="g++ -save-temps -wp,-w0,-k" cppflags=-dns_disable_literal_template $srcdir/configure --enable-debug --disable-optimize --disable-accessibility --enable-application=browser --disable-crashreporter building will probably require disabling warnings_as_errors: make warnings_as_errors= "-wp,-w0,-k" are
options that get passed to mcpp.
JS::CompileOffThread
syntax bool js::cancompileoffthread(jscontext *cx, const js::readonlycompile
options &
options, size_t length); bool js::compileoffthread(jscontext *cx, const js::readonlycompile
options &
options, const char16_t *chars, size_t length, js::offthreadcompilecallback callback, void *callbackdata); jsscript * js::finishoffthreadscript(jscontext *maybecx, jsruntime *rt, void *token); typedef void (*js::offthreadcompilecallback)(void *token, void *callbackdata); name type description cx / maybe jscontext * pointer to a js context from which to derive runtime information.
...
options js::readonlycompile
options & compile
options.
JS_SetBranchCallback
this is guaranteed to be non-null, unless the jsoption_native_branch_callback option has been enabled for the context cx using js_set
options().
... see also mxr id search for js_setbranchcallback js_setoperationcallback js_set
options bug 477187 ...
Profiling SpiderMonkey
here's a sample mozconfig: mk_add_
options moz_objdir=@topsrcdir@/ff-opt-libxul mk_add_
options moz_make_flags=-j3 ac_add_
options --enable-optimize ac_add_
options --enable-libxul ac_add_
options --enable-shark ac_add_
options --enable-debugger-info-modules ac_add_
options --enable-application=browser 2.) you'll want to run shark on both the browser and [xpcshell], since the host environments differ.
...when we have js scriptable profiling
options available for all tier 1 platforms, we'll look at adding global start/stop profiling functions.
SpiderMonkey 1.8.5
to enable js-ctypes in your embedding, you must configure with the --enable-ctypes option and choose one of the configuration
options to enable nspr (e.g.
...to select an alternate c++ compiler, invoke configure thus: cxx=/usr/bin/g++-4.0 /path/configure --my-configuration-
options js-config the new configure-based build system does not correctly generate the js-config script on many platforms, nor when js-ctypes are enabled.
SpiderMonkey 1.8.7
to enable js-ctypes in your embedding, you must configure with the --enable-ctypes option and choose one of the configuration
options to enable nspr (e.g.
...to select an alternate c++ compiler, invoke configure thus: cxx=/usr/bin/g++-4.0 /path/configure --my-configuration-
options js-config the new configure-based build system does not correctly generate the js-config script on many platforms, nor when js-ctypes are enabled.
TPS Tests
built-in functions sync(
options) initiates a sync operation.
... if no
options are passed, a default sync operation is performed.
Web Replay
advanced
options preferences devtools.recordreplay.enablerewinding when disabled, firefox records a page signifcantly faster.
... appendix: debugger details here is some more detailed information about how a recording/replaying process affects the debugger, and
options for future improvements.
History Service Design
a places query is made of of a query object (nsinavhistoryquery) and a query
options object (nsinavhistoryquery
options) that defines the constraints results must obey to.
... once places receives a place: uri or a query object an internal query builder checks for the requested
options and make up a real sql query that is executed with storage apis.
Creating the Component Code
several new
options have been added to regxpcom in versions 1.4 and later.
... you can run regxpcom with the -h option to see full usage
options.
Index
493 nsidomgeoposition
options dom, geolocation, interfaces, interfaces:scriptable, xpcom, xpcom interface reference the nsidomgeoposition
options interface is used to specify
options for geolocation operations.
...this is important because, if the user has their profile on a networked drive, query latency can be non-negligible 795 nsinavhistoryquery
options developing mozilla, extensions, interfaces, interfaces:scriptable, places, xpcom interface reference you can ask for the results to be pre-sorted.
Components.utils.cloneInto
syntax components.utils.cloneinto(obj, targetscope[,
options]); parameters obj : object the object to clone.
...
options : object this optional parameter is an object with the following optional properties: clonefunctions: a boolean value that determines if functions should be cloned.
Components.utils.createObjectIn
syntax var newobject = components.utils.createobjectin(obj,
options); parameters obj an object indicating the compartment in which the new object should be created; the new object will be created in the scope of this object's compartment.
...
options an object containing a single option defineas, which determines the name of the object in the target compartment.
Components.utils.reportError
to show them, set the preference 'javascript.
options.showinconsole' to true, or use nsconsoleservice instead to show a message.
... firefox 4: the preference 'javascript.
options.showinconsole' is set to true by default in this version.
nsIDOMWindowInternal
if the name doesn't exist, then a new window is opened and the specified resource is loaded into its browsing context.">open(in domstring url, in domstring name, in domstring
options) nsidomwindow nsisupports aextraargument) void close() void updatecommands(in domstring action) boolean find([optional] in domstring str,[optional] in boolean casesensitive, [optional] in boolean backwards, [optional] in boolean wraparound, [optional] in boolean wholeword, [optional] in boolean searchinframes, [optional] in boolean showdialog) domstri...
...ng atob(in domstring aasciistring) domstring btoa(in domstring abase64data) nsivariant showmodaldialog(in nsivariant aargs, [optional] in domstring a
options) void postmessage(in domstring message, in domstring targetorigin) attributes attribute type description window nsidomwindowinternal readonly: the window object itself.
nsINavHistoryQueryResultNode
1.0 66 introduced gecko 1.8 inherits from: nsinavhistorycontainerresultnode last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) note: if you request that places not be expanded in the
options that generated the node, the node will report that it has no children and will never try to populate itself.
... query
options nsinavhistoryquery
options the
options that group the node's children; only valid for result_type_query nodes.
nsINavHistoryResult
this value must be one of nsinavhistoryquery
options.sort_by_*.
... changing this value updates the corresponding
options for the result so that reusing the current
options and queries will always return results based on the current view.
nsIWindowMediator
getting most recent window the following code is useful when you need any of the windows of given type, or to check if a window of a particular type (for example your extension's
options dialog) is already open.
...for example, you could use it in the "ok" handler of your
options dialog to apply the new settings to each open browser window.
XPCOM Interface Reference
ificationnsidomdesktopnotificationcenternsidomelementnsidomeventnsidomeventgroupnsidomeventlistenernsidomeventtargetnsidomfilensidomfileerrornsidomfileexceptionnsidomfilelistnsidomfilereadernsidomfontfacensidomfontfacelistnsidomgeogeolocationnsidomgeopositionnsidomgeopositionaddressnsidomgeopositioncallbacknsidomgeopositioncoordsnsidomgeopositionerrornsidomgeopositionerrorcallbacknsidomgeoposition
optionsnsidomglobalpropertyinitializernsidomhtmlaudioelementnsidomhtmlformelementnsidomhtmlmediaelementnsidomhtmlsourceelementnsidomhtmltimerangesnsidomjswindownsidommousescrolleventnsidommoznetworkstatsnsidommoznetworkstatsdatansidommoznetworkstatsmanagernsidommoztoucheventnsidomnshtmldocumentnsidomnavigatordesktopnotificationnsidomnodensidomofflineresourcelistnsidomorientationeventnsidomparsernsidompro...
...olinfonsimsgruleactionnsimsgsearchcustomtermnsimsgsearchnotifynsimsgsearchscopetermnsimsgsearchsessionnsimsgsearchtermnsimsgsearchvaluensimsgsendlaternsimsgthreadnsimsgwindownsimsgwindowcommandsnsimutablearraynsinavbookmarkobservernsinavbookmarksservicensinavhistorybatchcallbacknsinavhistorycontainerresultnodensinavhistoryfullvisitresultnodensinavhistoryobservernsinavhistoryquerynsinavhistoryquery
optionsnsinavhistoryqueryresultnodensinavhistoryresultnsinavhistoryresultnodensinavhistoryresultobservernsinavhistoryresulttreeviewernsinavhistoryresultviewobservernsinavhistoryresultviewernsinavhistoryservicensinavhistoryvisitresultnodensinetworklinkservicensiobservernsiobserverservicensioutputstreamnsioutputstreamcallbacknsiparentalcontrolsservicensiparserutilsnsipasswordnsipasswordmanagernsipermission...
pyxpidl
generating c++ headers to generate c++ headers, use the header.py utility: sdkdir/sdk/bin/header.py --cachedir=<path> -o <outputfilename.h> <filename.idl> generating typelibs generating typelib files is done using the typelib.py utility: sdkdir/sdk/bin/typelib.py --cachedir=<path> -o <outputfilename.xpt> <filename.idl> comparing pyxpidl to xpidl this table provides a mapping of old xpidl
options to pyxpidl.
...ds to include the extension; for example -o /tmp/nsifoo.idl) -e specify an explicit output file name (-e /tmp/nsifoo.idl for example) n/a (this is subsumed by -o now) -d write dependencies (requires -e) -d (unchanged) -m specify output mode n/a (feature removed; use header.py or typelib.py specifically) it's worth noting that the old output mode
options for generating documentation and java interfaces (-m doc and -m java) have no equivalents in pyxpidl.
Index
to access the config editor, go to tools >
options or do thunderbird > preferences.
... if you are on mac os x, and on linux do edit > preferences on, select the advanced
options panel, click on the general tab, and click on config editor.
Using popup notifications
you can use this to style the icon, like this: .popup-notification-icon[popupid="sample-popup"] { list-style-image: url("chrome://popupnotifications/skin/mozlogo.png"); } with this css in place, the result is the look we want: adding secondary
options to provide
options in the drop-down menu, add an array of notification actions to the call to the show() method, like this: popupnotifications.show(gbrowser.selectedbrowser, "sample-popup", "this is a sample popup notification.", null, /* anchor id */ { label: "do something", accesskey: "d", callback: function() { alert("doing so...
... document.getelementbyid("notification-popup-box")); var notification = notify.show( // browser gbrowser.selectedbrowser, // popup id "pdes-popup", // message "hi, there!, i'm gonna show you something today!!", // anchor id null, // main action { label: "click here", accesskey: "d", callback: function() { // you can call your function here } }, // secondary action null, //
options { // alternative way to set the popup icon popupiconurl: "chrome://popupnotifications/skin/mozlogo.png" } ); settimeout(function(){ notification.remove(); }, 900); // time in milliseconds to disappear the door-hanger popup.
Add to iPhoto
once installed, when you right-click on an image, you'll see among the
options in the contextual menu an option to "add image to iphoto".
... an optionbits value providing a bit field of special
options.
Set a breakpoint - Firefox Developer Tools
there are a few
options available here: add breakpoint: add a standard unconditional breakpoint at this line number (see below).
... other context menu
options worth mentioning are: disable breakpoint: turn it off, but don't remove it completely.
DevTools API - Firefox Developer Tools
showtoolbox(target [, toolid [, hosttype [, host
options]]]) opens a toolbox for given target either by creating a new one or activating an existing one.
... host
options {object} - an
options object passed to the selected host.
Network request list - Firefox Developer Tools
context menu context-clicking on a row in the list displays a context menu with the following
options: menuitem description copy > copy url copies the url.
... copy as curl the command may include the following
options: -x [method] if the method is not get or post --data for url encoded request parameters --data-binary for multipart request parameters --http/version if the http version is not 1.1 -i if the method is head -h one for each request header.
CSS Flexbox Inspector: Examine Flexbox layouts - Firefox Developer Tools
once you select an element whose display is defined as flex, the panel will include a number of
options for viewing details about the flex container and flex items within it.
... flex container
options the flex container section of the layout view looks like this: there are two settings you can change in the flex container section: you can control the color of the overlay by clicking on the small circle next to the selector.
CSS Grid Inspector: Examine grid layouts - Firefox Developer Tools
the layout view grid section when grids are included on a page, the css pane's layout view includes a "grid" section containing a number of
options for viewing those grids.
... grid
options the grid section of the layout view looks like this: you'll see a number of
options contained within: overlay grid: contains a checkbox for each grid present on the page, along with various
options.
Animation inspector example: Web Animations API - Firefox Developer Tools
ne-block; opacity: 0; width: 0; } javascript content var iconkeyframeset = [ { transform: 'scale(1)', filter: 'grayscale(100%)'}, { filter: 'grayscale(100%)', offset: 0.333}, { transform: 'scale(1.5)', offset: 0.666 }, { transform: 'scale(1.5)', filter: 'grayscale(0%)'} ]; var notekeyframeset = [ { opacity: '0', width: '0'}, { opacity: '1', width: '300px'} ]; var iconkeyframe
options = { duration: 750, fill: 'forwards', easing: 'ease-in', enddelay: 100 } var notekeyframe
options = { duration: 500, fill: 'forwards', easing: 'ease-out', delay: 150 } var icon = document.getelementbyid("icon"); var note = document.getelementbyid("note"); var iconanimation = icon.animate(iconkeyframeset, iconkeyframe
options); var noteanimation = note.animate(notekeyframeset, note...
...keyframe
options); iconanimation.pause(); noteanimation.pause(); var firsttime = true; function animatechannel(e) { if (e.button != 0) { return; } if (e.target.id != "icon") { return; } if (firsttime) { iconanimation.play(); noteanimation.play(); firsttime = false; } else { iconanimation.reverse(); noteanimation.reverse(); } } document.addeventlistener("click", animatechannel); ...
Web Console remoting - Firefox Developer Tools
actor preferences to allow the web console to configure logging
options while it is running, we have added the setpreferences packet: { "to": "conn0.console9", "type": "setpreferences", "preferences": { "networkmonitor.saverequestandresponsebodies": false } } reply: { "updated": [ "networkmonitor.saverequestandresponsebodies" ], "from": "conn0.console10" } for convenience you can use webconsoleclient.setpreferences(prefs, onresponse).
... firefox 23: added the bindobjectactor and frameactor
options to the evaluatejs request packet.
AnalyserNode.AnalyserNode() - Web APIs
syntax var analysernode = new analysernode(context, ?
options); parameters inherits parameters from the audionode
options dictionary.
...
options optional fftsize: the desired initial size of the fft for frequency-domain analysis.
AudioBufferSourceNode.AudioBufferSourceNode() - Web APIs
syntax var audiobuffersourcenode = new audiobuffersourcenode(context,
options) parameters inherits parameters from the audionode
options dictionary.
...
options optional
options are as follows: buffer: an instance of audiobuffer to be played.
AuthenticatorAssertionResponse.userHandle - Web APIs
the same value may be found on the id property of the
options.user object (used for the creation of the publickeycredential instance).
...username, e-mail, phone number, etc.) examples var
options = { challenge: new uint8array(26), // will be another value, provided by the relying party server timeout: 60000 }; navigator.credentials.get({ publickey:
options }) .then(function (assertionpkcred) { var userhandle = assertionpkcred.response.userhandle; // send response and client extensions to the server so that it can // go on with the authentication }).catch(function (er...
BaseAudioContext.createBuffer() - Web APIs
returns an audiobuffer configured based on the specified
options.
... exceptions notsupportederror one or more of the
options are negative or otherwise has an invalid value (such as numberofchannels being higher than supported, or a samplerate outside the nominal range).
BasicCardRequest.supportedNetworks - Web APIs
}; var
options = { ...
... }; var request = new paymentrequest(supportedinstruments, details,
options); specifications specification status comment basic card paymentthe definition of 'supportednetworks' in that specification.
BasicCardRequest - Web APIs
are: amex cartebancaire diners discover jcb mastercard mir unionpay visa examples in the following example, the paymentrequest() constructor is used to create a new payment request, which takes three objects as parameters — one containing details of the payment methods that can be used for the payment, one containing details of the actual order (such as items bought and shipping
options), and an optional object that describes what data is needed to fullfil the payment (e.g., a shipping address).
...supportedmethods: 'basic-card', data: { supportednetworks: ['visa', 'mastercard', 'amex', 'jcb', 'diners', 'discover', 'mir', 'unionpay'] } }]; var details = { total: {label: 'donation', amount: {currency: 'usd', value: '65.00'}}, displayitems: [ { label: 'original donation amount', amount: {currency: 'usd', value: '65.00'} } ], shipping
options: [ { id: 'standard', label: 'standard shipping', amount: {currency: 'usd', value: '0.00'}, selected: true } ] }; var
options = {requestshipping: true}; try { var request = new paymentrequest(supportedinstruments, details,
options); // add event listeners here.
BasicCardResponse - Web APIs
examples in the following example, the paymentrequest() constructor is used to create a new payment request, which takes three objects as parameters — one containing details of the payment methods that can be used for the payment, one containing details of the actual order (such as items bought and shipping
options), and an optional object containing further
options.
... supportednetworks: ['visa', 'mastercard', 'amex', 'jcb', 'diners', 'discover', 'mir', 'unionpay'], supportedtypes: ['credit', 'debit'] } }]; var details = { total: {label: 'donation', amount: {currency: 'usd', value: '65.00'}}, displayitems: [ { label: 'original donation amount', amount: {currency: 'usd', value: '65.00'} } ], shipping
options: [ { id: 'standard', label: 'standard shipping', amount: {currency: 'usd', value: '0.00'}, selected: true } ] }; var
options = {requestshipping: true}; try { var request = new paymentrequest(supportedinstruments, details,
options); // add event listeners here.
Blob() - Web APIs
syntax var newblob = new blob(array,
options); parameters array an array of arraybuffer, arraybufferview, blob, usvstring objects, or a mix of any of such objects, that will be put inside the blob.
...
options optional an optional object of type blobpropertybag which may specify any of the following properties: type optional the mime type of the data that will be stored into the blob.
CanvasRenderingContext2D.lineJoin - Web APIs
syntax ctx.linejoin = "bevel" || "round" || "miter";
options there are three possible values for this property: "round", "bevel", and "miter".
..."></canvas> javascript const canvas = document.getelementbyid('canvas'); const ctx = canvas.getcontext('2d'); ctx.linewidth = 20; ctx.linejoin = 'round'; ctx.beginpath(); ctx.moveto(20, 20); ctx.lineto(190, 100); ctx.lineto(280, 20); ctx.lineto(280, 150); ctx.stroke(); result comparison of line joins the example below draws three different paths, demonstrating each of the three linejoin
options.
ClipboardEvent() - Web APIs
syntax var clipboardevent = new clipboardevent(type[,
options]); parameters the clipboardevent() constructor also inherits arguments from event().
...
options optional
options are as follows: clipboarddata: a datatransfer containing the data concerned by the clipboard event.
ConstantSourceNode() - Web APIs
syntax var constantsourcenode = new constantsourcenode(context,
options); parameters context an audiocontext representing the audio context you want the node to be associated with.
...
options a constantsource
options dictionary object defining the properties you want the constantsourcenode to have: offset: a read-only audioparam specifying the constant value generated by the source.
ConvolverNode() - Web APIs
syntax var convolvernode = new convolvernode(context,
options) parameters inherits parameters from the audionode
options dictionary.
...
options optional
options are as follows: audiobuffer: a mono, stereo, or 4-channel audiobuffer containing the (possibly multichannel) impulse response used by the convolvernode to create the reverb effect.
CustomElementRegistry.define() - Web APIs
syntax customelements.define(name, constructor,
options); parameters name name for the new custom element.
...
options optional object that controls how the element is defined.
DelayNode() - Web APIs
syntax var delaynode = new delaynode(context); var delaynode = new delaynode(context,
options); parameters inherits parameters from the audionode
options dictionary.
...
options optional an object specifying the delay node
options.
DeviceMotionEvent.DeviceMotionEvent() - Web APIs
syntax var devicemotionevent = new devicemotionevent(type[,
options]) parameters type must be "devicemotion".
...
optionsoptional
options are as follows: acceleration: an object giving the acceleration of the device on the three axis x, y and z.
DisplayMediaStreamConstraints - Web APIs
processing information is specified using mediatrackconstraints objects providing
options which are applied to the track after the media data is received but before it is made available on the mediastream.
...optionally, a mediatrackconstraints object may be given, providing
options specifying processing to be performed on the video data before adding it to the stream.
Document.createElement() - Web APIs
syntax let element = document.createelement(tagname[,
options]); parameters tagname a string that specifies the type of element to be created.
...
options optional an optional elementcreation
options object, containing a single property named is, whose value is the tag name of a custom element previously defined via customelements.define().
Document.createElementNS() - Web APIs
syntax var element = document.createelementns(namespaceuri, qualifiedname[,
options]); parameters namespaceuri a string that specifies the namespace uri to associate with the element.
...
optionsoptional an optional elementcreation
options object containing a single property named is, whose value is the tag name for a custom element previously defined using customelements.define().
Document.registerElement() - Web APIs
syntax var constructor = document.registerelement(tag-name,
options); parameters tag-name the name of the custom element.
...
optionsoptional an object with properties prototype to base the custom element on, and extends, an existing tag to extend.
Introduction to the DOM - Web APIs
<html> <head> <title>dom tests</title> <script> function setbodyattr(attr, value) { if (document.body) document.body[attr] = value; else throw new error("no support"); } </script> </head> <body> <div style="margin: .5in; height: 400px;"> <p><b><tt>text</tt></b></p> <form> <select onchange="setbodyattr('text', this.
options[this.selectedindex].value);"> <option value="black">black</option> <option value="red">red</option> </select> <p><b><tt>bgcolor</tt></b></p> <select onchange="setbodyattr('bgcolor', this.
options[this.selectedindex].value);"> <option value="white">white</option> <option value="lightgrey">gray</option> </select> <p><b><tt>link</t...
...t></b></p> <select onchange="setbodyattr('link', this.
options[this.selectedindex].value);"> <option value="blue">blue</option> <option value="green">green</option> </select> <small> <a href="http://some.website.tld/page.html" id="sample"> (sample link) </a> </small><br /> <input type="button" value="version" onclick="ver()" /> </form> </div> </body> </html> to test a lot of interfaces in a single page—for example, a "suite" of properties that affect the colors of a web page—you can create a similar test page with a whole console of buttons, textfields, and other html elements.
DynamicsCompressorNode() - Web APIs
syntax var dynamicscompressornode = new dynamicscompressornode(context,
options) parameters context a reference to an audiocontext.
...
options optional
options are as follows: attack: the amount of time (in seconds) to reduce the gain by 10db.
ExtendableEvent() - Web APIs
init optional an
options object containing any custom settings that you want to apply to the event object.
... currently no possible
options exist inside the spec, but this has been defined for forward compatibility across the different derived events.
FetchEvent() - Web APIs
init optional an object conforming to the fetcheventinit dictionary, containing
options to apply to the event object.
...
options are as follows: clientid read only the client that the current service worker is controlling.
FontFaceSetLoadEvent.FontFaceSetLoadEvent() - Web APIs
syntax var fontfacesetloadevent = new fontfacesetloadevent(type[,
options]) parameters type the literal value 'type' (quotation marks included).
...
options optional
options are as follows: fontfaces: an array of fontface instances.
Fullscreen API - Web APIs
dictionaries fullscreen
options provides optional settings you can specify when calling requestfullscreen().
...shows an overlay button which can not be disabled.samsung internet android full support 10.0 full support 10.0 full support 1.0prefixed prefixed implemented with the vendor prefix: webkit
options parameterchrome full support 71edge full support 79firefox full support 64ie no support noopera ?
GainNode() - Web APIs
syntax var gainnode = new gainnode(context,
options) parameters inherits parameters from the audionode
options dictionary.
...
options optional
options are as follows: gain: the amount of gain to apply.
GamepadEvent() - Web APIs
syntax var gamepadevent = new gamepadevent(typearg,
options) parameters typearg a domstring that must be one of gamepadconnected or gamepaddisconnected.
...
options optional
options are as follows: gamepad: an instance of gamepad describing the gamepad associated with the event.
Geolocation API - Web APIs
an optional position
options object, which provides
options for retrieval of the position data.
... dictionaries position
options represents an object containing
options to pass in as a parameter of geolocation.getcurrentposition() and geolocation.watchposition().
HTMLCanvasElement.toBlob() - Web APIs
low'; ctx.fill(); function blobcallback(iconname) { return function(b) { var a = document.createelement('a'); a.textcontent = 'download'; document.body.appendchild(a); a.style.display = 'block'; a.download = iconname + '.ico'; a.href = window.url.createobjecturl(b); } } canvas.toblob(blobcallback('passthisstring'), 'image/vnd.microsoft.icon', '-moz-parse-
options:format=bmp;bpp=32'); save toblob to disk with os.file (chrome/add-on context only) this technique saves it to the desktop and is only useful in firefox chrome context or add-on code as os apis are not present on web sites.
...int8array(r.result), {tmppath:writepath + '.tmp'}); promise.then( function() { console.log('successfully wrote file'); }, function() { console.log('failure writing file') } ); }; r.readasarraybuffer(b); } } canvas.toblob(blobcallback('passthisstring'), 'image/vnd.microsoft.icon', '-moz-parse-
options:format=bmp;bpp=32'); specifications specification status comment html living standardthe definition of 'htmlcanvaselement.toblob' in that specification.
HTMLCanvasElement.toDataURL() - Web APIs
syntax canvas.todataurl(type, encoder
options); parameters type optional a domstring indicating the image format.
... encoder
options optional a number between 0 and 1 indicating the image quality to use for image formats that use lossy compression such as image/jpeg and image/webp.
Option() - Web APIs
examples just add new
options /* assuming we have the following html <select id='s'> </select> */ var s = document.getelementbyid('s'); var
options = [four, five, six];
options.foreach(function(element,key) { s[key] = new option(element,key); }); append
options with different parameters /* assuming we have the following html <select id="s"> <option>first</option> <option>second</option> <option>third</...
...option> </select> */ var s = document.getelementbyid('s'); var
options = [ 'zero', 'one', 'two' ];
options.foreach(function(element, key) { if (element == 'zero') { s[s.
options.length] = new option(element, s.
options.length, false, false); } if (element == 'one') { s[s.
options.length] = new option(element, s.
options.length, true, false); // will add the "selected" attribute } if (element == 'two') { s[s.
options.length] = new option(element, s.
options.length, false, true); // just will be selected in "view" } }); /* result <select id="s"> <option value="0">zero</option> <option value="1" selected="">one</option> <option value="2">two</option> // user will see this as 'selected' </select> */ specification specification status comment html5 ...
HTMLOptionElement - Web APIs
htmloptionelement.index read only is a long representing the position of the option within the list of
options it belongs to, in tree-order.
... if the option is not part of a list of
options, like when it is part of the <datalist> element, the value is 0.
HTMLSlotElement.assignedElements() - Web APIs
syntax var assignedelements = htmlslotelement.assignedelements(
options) parameters
options optional an object that sets
options for the nodes to be returned.
... the available
options are: flatten: a boolean indicating whether to return the assigned elements of any available child <slot> elements (true) or not (false).
HTMLSlotElement.assignedNodes() - Web APIs
syntax var assignednodes = htmlslotelement.assignednodes(
options) parameters
options optional an object that sets
options for the nodes to be returned.
... the available
options are: flatten: a boolean indicating whether to return the assigned nodes of any available child <slot> elements (true) or not (false).
The HTML DOM API - Web APIs
ment obsolete html element interfaces htmlbasefontelement htmlfontelement htmlframeelement htmlframesetelement htmlisindexelement htmlmenuitemelement web app and browser integration interfaces these interfaces offer access to the browser window and document that contain the html, as well as to the browser's state, available plugins (if any), and various configuration
options.
... formdataevent htmlformcontrolscollection html
optionscollection radionodelist validitystate canvas and image interfaces these interfaces represent objects used by the canvas api as well as the <img> element and <picture> elements.
IDBDatabase.createObjectStore() - Web APIs
syntax idbdatabase.createobjectstore(name); idbdatabase.createobjectstore(name,
options); parameters name the name of the new object store to be created.
... optionalparameters optional an
options object whose attributes are optional parameters to the method.
IDBFactory.deleteDatabase() - Web APIs
syntax for the current standard: var request = indexeddb.deletedatabase(name); for the experimental version with
options (see below): var request = indexeddb.deletedatabase(name,
options); parameters name the name of the database you want to delete.
...
optionsnon-standard in gecko, since version 26, you can include a non-standard optional storage parameter that specifies whether you want to delete a permanent (the default value) indexeddb, or an indexeddb in temporary storage (aka shared pool.) return value a idbopendbrequest on which subsequent events related to this request are fired.
ImageCapture.takePhoto() - Web APIs
syntax const blobpromise = imagecaptureobj.takephoto([photosettings]) parameters photosettings optional an object that sets
options for the photo to be taken.
... the available
options are: filllightmode: the flash setting of the capture device, one of "auto", "off", or "flash".
Using IndexedDB - Web APIs
if you need to change an existing object store (e.g., to change the keypath), then you must delete the old object store and create it again with the new
options.
...as with createobjectstore(), createindex() takes an optional
options object that refines the type of index that you want to create.
InstallEvent.InstallEvent() - Web APIs
init optional an
options object containing any custom settings that you want to apply to the event object.
... available
options are as follows: activeworker: the serviceworker that is currently actively controlling the page.
IntersectionObserver.thresholds - Web APIs
although the
options object you can specify when creating an intersectionobserver has a field named threshold, this property is called thresholds.
...if you accidentally use thresholds as the name of the field in your
options, the thresholds array will wind up being simply [0.0], which is likely not what you expect.
InterventionReportBody - Web APIs
examples let
options = { types: ['intervention'], buffered: true } let observer = new reportingobserver(function(reports, observer) { let firstreport = reports[0]; console.log(firstreport.type); // intervention console.log(firstreport.body.id); console.log(firstreport.body.message); console.log(firstreport.body.sourcefile); console.log(firstreport.body.linenumber); console.log(firstreport.body.colu...
...mnnumber); },
options); specifications specification status comment reporting apithe definition of 'interventionreportbody' in that specification.
MediaKeyMessageEvent() - Web APIs
syntax var mediakeymessageevent = new mediakeymessageevent(typearg,
options) parameters typearg a domstring containing one of may be one of license-request, license-renewal, license-renewal, or individualization-request.
...
options options are as follows: messagetype: a developer-defined message type that allows applications to differentiate messages without parsing them.
MediaStreamTrackAudioSourceNode - Web APIs
the audio itself might be input from a microphone or other audio sampling device, or might be received through a rtcpeerconnection, among other posible
options.
... constructor new mediastreamtrackaudiosourcenode() creates a new mediastreamtrackaudiosourcenode object instance with the specified
options.
MediaStream Recording API - Web APIs
create a mediarecorder object, specifying the source stream and any desired
options (such as the container's mime type or the desired bit rates of its tracks).
...var stream = canvas.capturestream(25); var recordedchunks = []; console.log(stream); var
options = { mimetype: "video/webm; codecs=vp9" }; mediarecorder = new mediarecorder(stream,
options); mediarecorder.ondataavailable = handledataavailable; mediarecorder.start(); function handledataavailable(event) { console.log("data-available"); if (event.data.size > 0) { recordedchunks.push(event.data); console.log(recordedchunks); download(); } else { // ...
MediaTrackSupportedConstraints.cursor - Web APIs
example this method sets up the constraints object specifying the
options for the call to getdisplaymedia().
... async function capturewithcursor() { let supportedconstraints = navigator.mediadevices.getsupportedconstraints(); let displaymedia
options = { video: { displaysurface: "browser" }, audio: false; }; if (supportedconstraints.cursor) { displaymedia
options.video.cursor = "always"; } try { videoelem.srcobject = await navigator.mediadevices.getdisplaymedia(displaymedia
options); } catch(err) { /* handle the error */ } } specifications specification status comment screen capturethe definition of 'mediatr...
MediaTrackSupportedConstraints.displaySurface - Web APIs
example this method sets up the constraints object specifying the
options for the call to getdisplaymedia().
... async function capture() { let supportedconstraints = navigator.mediadevices.getsupportedconstraints(); let displaymedia
options = { video: { }, audio: false; }; if (supportedconstraints.displaysurface) { displaymedia
options.video.displaysurface = "monitor"; } try { videoelem.srcobject = await navigator.mediadevices.getdisplaymedia(displaymedia
options); } catch(err) { /* handle the error */ } } specifications specification status comment screen capturethe def...
MerchantValidationEvent() - Web APIs
syntax merchantvalidationevent = new merchantvalidationevent(type,
options); parameters type a domstring which must be merchantvalidation, the only type of event which uses the merchantvalidationevent interface.
...
options optional an optional dictionary which may contain zero or more of the following properties: methodname optional a domstring containing the payment method identifier for the payment handler being used.
MutationObserver - Web APIs
observe() configures the mutationobserver to begin receiving notifications through its callback function when dom changes matching the given
options occur.
... // select the node that will be observed for mutations const targetnode = document.getelementbyid('some-id'); //
options for the observer (which mutations to observe) const config = { attributes: true, childlist: true, subtree: true }; // callback function to execute when mutations are observed const callback = function(mutationslist, observer) { // use traditional 'for loops' for ie 11 for(let mutation of mutationslist) { if (mutation.type === 'childlist') { console.log('a child node h...
MutationObserverInit.attributeOldValue - Web APIs
syntax var
options = { attributeoldvalue: true | false } value a boolean value indicating whether or not the prior value of a changed attribute should be included in the mutationobserver.oldvalue property when reporting attribute value changes.
... when observe() is called, the specified
options are attributes and attributeoldvalue, which means that changes to attribute values will be reported, and each mutation record will include the oldvalue property specifying the attribute's previous value.
MutationObserverInit.characterData - Web APIs
syntax var
options = { characterdata: true | false } value a boolean value indicating whether or not to call the observer's callback function when textual nodes' values change.
... you can expand the capabilities of attribute mutation monitoring using other
options: characterdataoldvalue lets you specify whether or not you want the previous value of changed text nodes to be provided using the mutationrecord's oldvalue property.
NDEFReader.scan() - Web APIs
syntax var readerpromise = ndefreader.scan(
options); parameters
options optional id -- the match pattern for matching each ndefrecord.id.
... exceptions this method doesn't throw true exceptions; instead, it rejects the returned promise, passing into it a domexception whose name is one of the following: aborterror the scan operation was aborted with abortsignal passed in
options.
Node.getRootNode() - Web APIs
syntax var root = node.getrootnode(
options); parameters
options optional an object that sets
options for getting the root node.
... the available
options are: composed: a boolean that indicates whether the shadow root should be returned (false, the default), or a root node beyond shadow root (true).
Notification.close() - Web APIs
examples in the following snippet, we have a simple function that when called creates an
options object and then a new notification.
... function spawnnotification(thebody, theicon, thetitle) { var
options = { body: thebody, icon: theicon }; var n = new notification(thetitle,
options); document.addeventlistener('visibilitychange', function() { if (document.visibilitystate === 'visible') { // the tab has become visible so clear the now-stale notification.
Notification.data - Web APIs
examples the following snippet fires a notification; a simple
options object is created, then the notification is fired using the notification() constructor.
... var
options = { body: 'do you like my body?', data: 'i like peas.' } var n = new notification('test notification',
options); console.log(n.data) // should return 'i like peas.' specifications specification status comment notifications apithe definition of 'data' in that specification.
Notification.dir - Web APIs
examples the following snippet fires a notification; a simple
options object is created, then the notification is fired using the notification() constructor.
... var
options = { body: 'do you like my body?', dir: 'rtl' } var n = new notification('test notification',
options); console.log(n.dir) // should return 'rtl' specifications specification status comment notifications apithe definition of 'dir' in that specification.
Notification.lang - Web APIs
examples the following snippet fires a notification; a simple
options object is created, then the notification is fired using the notification() constructor.
... var
options = { body: 'do you like my body?', lang: 'en-us' } var n = new notification('test notification',
options); console.log(n.lang) // should return 'en-us' specifications specification status comment notifications apithe definition of 'lang' in that specification.
Notification.renotify - Web APIs
examples the following snippet is intended to fire a notification that renotifies the user after it has been replaced; a simple
options object is created, and then the notification is fired using the notification() constructor.
... var
options = { body: 'do you like my body?', renotify: true } var n = new notification('test notification',
options); console.log(n.renotify) // should log true specifications specification status comment notifications apithe definition of 'renotify' in that specification.
Notification.requireInteraction - Web APIs
note: this can be set when the notification is first created by setting the requireinteraction option to true in the
options object of the notification.notification() constructor.
... syntax function spawnnotification(thetitle,thebody,shouldrequireinteraction) { var
options = { body: thebody, requireinteraction: shouldrequireinteraction } var n = new notification(thetitle,
options); } value a boolean.
Notification.silent - Web APIs
examples the following snippet is intended to fire a silent notification; a simple
options object is created, and then the notification is fired using the notification() constructor.
... var
options = { body: 'do you like my body?', silent: true } var n = new notification('test notification',
options); console.log(n.silent) // should log true specifications specification status comment notifications apithe definition of 'silent' in that specification.
Notification.timestamp - Web APIs
examples the following snippet fires a notification; a simple
options object is created, then the notification is fired using the notification() constructor.
... var dts = math.floor(date.now()); var
options = { body: 'do you like my body?', timestamp: dts } var n = new notification('test notification',
options); console.log(n.timestamp) // should log original timestamp specifications specification status comment notifications apithe definition of 'timestamp' in that specification.
Notification.vibrate - Web APIs
examples the following snippet is intended to create a notification that also triggers a device vibration; a simple
options object is created, and then the notification is fired using the notification() constructor.
... var
options = { body: 'do you like my body?', vibrate: [200, 100, 200] } var n = new notification('test notification',
options); console.log(n.vibrate) // should log [200,100,200] specifications specification status comment notifications apithe definition of 'vibrate' in that specification.
OscillatorNode.OscillatorNode() - Web APIs
syntax var oscillatornode = new oscillatornode(context,
options) parameters inherits parameters from the audionode
options dictionary.
...
options optional an object whose properties specify the initial values for the oscillator node's properties.
PasswordCredential.additionalData - Web APIs
//the
options object was previously created.
... navigator.credentials.get(
options).then(function(creds) { if (creds.type == 'password') { var form = new formdata(); var csrf_token = document.queryselector('csrf_token').value; form.append('csrf_token', csrf_token); creds.additionaldata = form; fetch('https://www.example.com', { method: 'post', credentials: creds }); }; }); specifications specification status comment credential management level 1 working draft initial definition.
PaymentAddress - Web APIs
examples in the following example, the paymentrequest() constructor is used to create a new payment request, which takes three objects as parameters — one containing details of the payment methods that can be used for the payment, one containing details of the actual order (such as items bought and shipping
options), and an optional object containing further
options.
... const supportedinstruments = [ { supportedmethods: "basic-card", }, ]; const details = { total: { label: "donation", amount: { currency: "usd", value: "65.00" } }, displayitems: [ { label: "original donation amount", amount: { currency: "usd", value: "65.00" }, }, ], shipping
options: [ { id: "standard", label: "standard shipping", amount: { currency: "usd", value: "0.00" }, selected: true, }, ], }; const
options = { requestshipping: true }; async function dopaymentrequest() { const request = new paymentrequest(supportedinstruments, details,
options); // add event listeners here.
PaymentRequest.onshippingoptionchange - Web APIs
var request = new paymentrequest(supportedinstruments, details,
options); // when user selects a shipping address request.addeventlistener('shippingaddresschange', e => { e.updatewith(((details, addr) => { var shippingoption = { id: '', label: '', amount: { currency: 'usd', value: '0.00' }, selected: true }; // shipping to us is supported if (addr.country === 'us') { shippingoption.id = 'us'; shippingoption.label...
...ue = '55.00'; // shipping to jp is supported } else if (addr.country === 'jp') { shippingoption.id = 'jp'; shippingoption.label = 'international shipping'; shippingoption.amount.value = '10.00'; details.total.amount.value = '65.00'; // shipping to elsewhere is unsupported } else { // empty array indicates rejection of the address details.shipping
options = []; return promise.resolve(details); console.log(details.error); } // hardcode for simplicity if (details.displayitems.length === 2) { details.displayitems[2] = shippingoption; } else { details.displayitems.push(shippingoption); } details.shipping
options = [shippingoption]; return promise.resolve(details); })(details, request.shippingaddres...
PaymentRequest: paymentmethodchange event - Web APIs
the code assumes the existence of a method detailsforshipping(), which returns a paymentdetailsupdate object containing the shipping
options for the ground shipping method, in the form found in the paymentshippingoption dictionary.
... const
options = { requestshipping: true }; const paymentrequest = new paymentrequest(paymentmethods, detailsforshipping("ground"),
options); paymentrequest.addeventlistener("paymentmethodchange", handlepaymentchange, false); paymentrequest.show() .then(response => response.complete("success")) .catch(err => console.log("error handling payment request: " + err)); the event handler function itself, handlepaymentchange(), looks like this: handlepaymentchange = event => { const detailsupdate = {}; if (event.methodname === "https://apple.com/apple-pay") { const servicefeeinfo = calculateservicefee(event.methoddetails); object.assign(detailsupdate, servicefeeinfo); } event.updatewith(detailsupdate); ...
PaymentRequest: shippingoptionchange event - Web APIs
for payment requests that request shipping information, and for which shipping
options are offered, the shippingoptionchange event is sent to the paymentrequest whenever the user chooses a shipping option from the list of available
options.
...for example, if there are three
options (such as "free ground shipping", "2-day air", and "next day"), each time the user chooses one of those
options, this event handler is called to recalculate the total based on the changed shipping option.
PaymentRequestEvent() - Web APIs
syntax var paymentrequestevent = new paymentrequesteventy(type,
options) parameters type must always be 'paymentrequest'.
...
options optional
options are as follows: instrumentkey: a paymentinstrument object reflecting the payment instrument selected by the user or an empty string if the user has not registered or chosen a payment instrument.
PaymentResponse.onpayerdetailchange - Web APIs
examples in the example below, onpayerdetailchange is used to set up a listener for the payerdetailchange event in order to validate the information entered by the user, requesting that any mistakes be corrected //
options for paymentrequest(), indicating that shipping address, // payer email address, name, and phone number all be collected.
... const
options = { requestshipping: true, requestpayeremail: true, requestpayername: true, requestpayerphone: true, }; const request = new paymentrequest(methods, details,
options); const response = request.show(); // get the data from the response let { payername: oldpayername, payeremail: oldpayeremail, payerphone: oldpayerphone, } = response; // set up a handler for payerdetailchange events, to // request corrections as needed.
PaymentResponse: payerdetailchange event - Web APIs
bubbles no cancelable no interface paymentrequestupdateevent event handler property onpayerdetailchange examples in the example below, onpayerdetailchange is used to set up a listener for the payerdetailchange event in order to validate the information entered by the user, requesting that any mistakes be corrected //
options for paymentrequest(), indicating that shipping address, // payer email address, name, and phone number all be collected.
... const
options = { requestshipping: true, requestpayeremail: true, requestpayername: true, requestpayerphone: true, }; const request = new paymentrequest(methods, details,
options); const response = request.show(); // get the data from the response let { payername: oldpayername, payeremail: oldpayeremail, payerphone: oldpayerphone, } = response; // set up a handler for payerdetailchange events, to // request corrections as needed.
PerformanceObserver.observe() - Web APIs
syntax observer.observe(
options); parameters
options a performanceobserverinit dictionary with the following possible members: entrytypes: an array of domstring objects, each specifying one performance entry type to observe.
... may not be used together with the "type" or "buffered"
options.
Permissions.query() - Web APIs
}) parameters permissiondescriptor an object that sets
options for the query operation consisting of a comma-separated list of name-value pairs.
... the available
options are: name: the name of the api whose permissions you want to query.
Permissions.revoke() - Web APIs
var revokepromise = navigator.permissions.revoke(descriptor); parameters descriptor an object based on the permissiondescriptor dictionary that sets
options for the operation consisting of a comma-separated list of name-value pairs.
... the available
options are: name: the name of the api whose permissions you want to query.
PhotoCapabilities.fillLightMode - Web APIs
the filllightmode read-only property of the photocapabilities interface returns all available fill light
options of the source device.
...
options may include auto, off, or flash.
PromiseRejectionEvent() - Web APIs
syntax promiserejectionevent = promiserejectionevent(type,
options); parameters the promiserejectionevent() constructor also inherits parameters from event().
...
options an object specifying details about the rejection which occurred: promise the promise that was rejected.
PublicKeyCredential.getClientExtensionResults() - Web APIs
during the creation or fetching of a publickeycredential (respectively via navigator.credentials.create() and navigator.credentials.get()), it is possible to have "custom" processing by the client for different extensions which are respectively given by publickeycredentialcreation
options.extensions and publickeycredentialrequest
options.extensions.
...as of march 2019, only appid (used during creation with publickeycredentialrequest
options.extensions) is supported by chrome and edge.
PushEvent.PushEvent() - Web APIs
eventinitdict optional an
options object containing any initialization data you want to populate the pushevent object with.
... the
options are: data: the data you want the pushevent to contain, if any.
PushManager.permissionState() - Web APIs
syntax pushmanager.permissionstate(
options).then(function(pushmessagingstate) { ...
... }); parameters
options optional an object containing optional configuration parameters.
RTCConfiguration - Web APIs
the rtcconfiguration dictionary is used to provide configuration
options for an rtcpeerconnection.
... the
options include ice server and transport settings and identity information.
Report.body - Web APIs
examples let
options = { types: ['deprecation'], buffered: true } let observer = new reportingobserver(function(reports, observer) { let firstreport = reports[0]; // log the first report's report body, i.e.
... a deprecationreportbody object console.log(firstreport.body); },
options); specifications specification status comment reporting apithe definition of 'report.body' in that specification.
Report.type - Web APIs
examples let
options = { types: ['deprecation'], buffered: true } let observer = new reportingobserver(function(reports, observer) { let firstreport = reports[0]; // log the first report's report type, i.e.
... "deprecation" console.log(firstreport.type); },
options); specifications specification status comment reporting apithe definition of 'report.body' in that specification.
Report.url - Web APIs
examples let
options = { types: ['deprecation'], buffered: true } let observer = new reportingobserver(function(reports, observer) { let firstreport = reports[0]; // log the url of the document that generated the first report // e.g.
... "https://www.example.com/cats.html" console.log(firstreport.url); },
options); specifications specification status comment reporting apithe definition of 'report.url' in that specification.
Request() - Web APIs
init optional an
options object containing any custom settings that you want to apply to the request.
... the possible
options are: method: the request method, e.g., get, post.
Response() - Web APIs
this can be null (which is the default value), or one of: blob buffersource formdata readablestream urlsearchparams usvstring init optional an
options object containing any custom settings that you want to apply to the response, or an empty object (which is the default value).
... the possible
options are: status: the status code for the reponse, e.g., 200.
Screen Capture API - Web APIs
to start capturing video from the screen, you call getdisplaymedia() on the instance of media navigator.mediadevices: capturestream = await navigator.mediadevices.getdisplaymedia(displaymedia
options); the promise returned by getdisplaymedia() resolves to a mediastream which streams the captured media.
...similar to getusermedia(), this method creates a promise that resolves with a mediastream containing the display area selected by the user, in a format that matches the specified
options.
ServiceWorkerGlobalScope: pushsubscriptionchange event - Web APIs
self.addeventlistener("pushsubscriptionchange", event => { event.waituntil(swregistration.pushmanager.subscribe(event.oldsubscription.
options) .then(subscription => { return fetch("register", { method: "post", headers: { "content-type": "application/json" }, body: json.stringify({ endpoint: subscription.endpoint }) }); }) ); }, false); when a pushsubscriptionchange event arrives, indicating that the subscription has expired, we resubscribe by calling the...
... you can also use the onpushsubscriptionchange event handler property to set up the event handler: self.onpushsubscriptionchange = event => { event.waituntil(swregistration.pushmanager.subscribe(event.oldsubscription.
options) .then(subscription => { /* ...
SharedWorker() - Web APIs
syntax var myworker = new sharedworker(aurl, name); var myworker = new sharedworker(aurl,
options); parameters aurl a domstring representing the url of the script the worker will execute.
...
options optional an object containing option properties that can set when creating the object instance.
StereoPannerNode.StereoPannerNode() - Web APIs
syntax var stereopannernode = stereopannernode(context,
options) parameters inherits parameters from the audionode
options dictionary.
...
options optional
options are as follows: pan: a floating point number in the range [-1,1] indicating the position of an audionode in an output image.
SyncEvent.SyncEvent() - Web APIs
init optional an
options object containing any custom settings that you want to apply to the event object.
...
options are as follows: tag: a developer-defined unique identifier for this syncevent.
TextDecoder() - Web APIs
syntax decoder = new textdecoder(utflabel,
options); parameters utflabeloptional is a domstring, defaulting to "utf-8", containing the label of the encoder.
...6011987", "euc-kr", "iso-ir-149", "korean", "ks_c_5601-1987", "ks_c_5601-1989", "ksc5601", "ksc_5601", "windows-949" 'euc-kr' "csiso2022kr", "iso-2022-kr" 'iso-2022-kr' "utf-16be" 'utf-16be' "utf-16", "utf-16le" 'utf-16le' "x-user-defined" 'x-user-defined' "iso-2022-cn", "iso-2022-cn-ext" 'replacement'
optionsoptional is a textdecoder
options dictionary with the property: fatal a boolean flag indicating if the textdecoder.decode() method must throw a domexception with the "encodingerror" value when an coding error is found.
TextDecoder.prototype.decode() - Web APIs
syntax b1 = decoder.decode(buffer,
options); b2 = decoder.decode(buffer); b3 = decoder.decode(); parameters buffer optional is either an arraybuffer or an arraybufferview containing the text to decode.
...
options optional is a textdecode
options dictionary with the property: stream a boolean flag indicating that additional data will follow in subsequent calls to decode().
USBDevice.controlTransferIn() - Web APIs
syntax var promise = usbdevice.controltransferin(setup, length) parameters setup an object that sets
options for .
... the available
options are: requesttype: must be one of three values specifying whether the tranfer is "standard" (common to all usb devices) "class" (common to an industry-standard class of devices) or "vendor".
USBDevice.controlTransferOut() - Web APIs
syntax var promise = usbdevice.controltransferout(setup, data) parameters setup an object that sets
options for .
... the available
options are: requesttype: must be one of three values specifying whether the tranfer is "standard" (common to all usb devices) "class" (common to an industry-standard class of devices) or "vendor".
WaveShaperNode.WaveShaperNode() - Web APIs
syntax var waveshapernode = new waveshapernode(context,
options) parameters inherits parameters from the audionode
options dictionary.
...
options optional
options are as follows: curve: the shaping curve used for the waveshaping effect.
Establishing a connection: The WebRTC perfect negotiation pattern - Web APIs
the old way in the past, if you encountered an ice error and needed to restart negotiation, you might have done something like this: pc.onnegotiationneeded = async
options => { await pc.setlocaldescription(await pc.createoffer(
options)); signaler.send({ description: pc.localdescription }); }; pc.oniceconnectionstatechange = () => { if (pc.iceconnectionstate === "failed") { pc.onnegotiationneeded({ icerestart: true }); } }; this has a number of reliability issues and outright bugs (such as failing if the iceconnectionstatechange event fires when the si...
... using restartice() now, you can use restartice() to do this much more cleanly: pc.onnegotiationneeded = async
options => { await pc.setlocaldescription(await pc.createoffer(
options)); signaler.send({ description: pc.localdescription }); }; pc.oniceconnectionstatechange = () => { if (pc.iceconnectionstate === "failed") { pc.restartice(); } }; with this improved technique, instead of directly calling onnegotiationneeded with
options to trigger ice restart, the failed ice connection state simply calls ...
Signaling and video calling - Web APIs
each peer continues to send candidates until it runs out of
options, even after the media has already begun to flow.
... this is done in hopes of identifying even better
options than the one initially selected.
Keyframe Formats - Web APIs
there are several
options to this format, which are explained below.
...any easing value specified on the
options argument, however, applies across a single iteration of the animation — for the entire duration.
Example and tutorial: Simple synth keyboard - Web APIs
the waveform picker on the right side of the settings bar, we place a label and a <select> element named "waveform" whose
options correspond to the available waveforms.
... function playtone(freq) { let osc = audiocontext.createoscillator(); osc.connect(mastergainnode); let type = wavepicker.
options[wavepicker.selectedindex].value; if (type == "custom") { osc.setperiodicwave(customwaveform); } else { osc.type = type; } osc.frequency.value = freq; osc.start(); return osc; } playtone() begins by creating a new oscillatornode by calling the audiocontext.createoscillator() method.
Using the Web Audio API - Web APIs
depending on the use case, there's a myriad of
options, but we'll provide functionality to play/pause the sound, alter the track's volume, and pan it from left to right.
...when we do it this way, we have to pass in the context and any
options that that particular node may take: const panner
options = { pan: 0 }; const panner = new stereopannernode(audiocontext, panner
options); note: the constructor method of creating nodes is not supported by all browsers at this time.
Web Locks API - Web APIs
it takes a lock name, an optional set of
options, and a callback.
... await do_something_else_without_lock();
options several
options can be passed when requesting a lock: mode: the default mode is "exclusive", but "shared" can be specified.
Using the Web Storage API - Web APIs
the landing page provides controls that can be used to customize the color, font, and decorative image: when you choose different
options, the page is instantly updated; in addition, your choices are stored in localstorage, so that when you leave the page and load it again, later on, your choices are remembered.
...finally, we update the styles/decorative image on the page, so your customization
options come up again on reload.
window.requestIdleCallback() - Web APIs
syntax var handle = window.requestidlecallback(callback[,
options]) return value an id which can be used to cancel the callback by passing it into the window.cancelidlecallback() method.
...
options optional contains optional configuration parameters.
Worker() - Web APIs
syntax var myworker = new worker(aurl,
options); parameters aurl a usvstring representing the url of the script the worker will execute.
...
options optional an object containing option properties that can be set when creating the object instance.
Worklet.addModule() - Web APIs
syntax addpromise = worklet.addmodule(moduleurl); addpromise = worklet.addmodule(moduleurl,
options); parameters moduleurl a string containing the url of a javascript file with the module to add.
...
options optional an object with any of the following
options: credentials: a requestcredentials value that indicates whether to send credentials (e.g.
XRWebGLLayerInit - Web APIs
the webxr device api's xrwebgllayerinit dictionary is used to provide configuration
options when creating a new xrwebgllayer object with the xrwebgllayer() constructor.
... const layer
options = { ignoredepthvalues: true }; xrsession.updaterenderstate({ baselayer: new xrwebgllayer(xrsession, gl, layer
options); }); specifications specification status comment webxr device apithe definition of 'xrwebgllayerinit' in that specification.
ARIA Test Cases - Accessibility
for example, "
options, button, alt+shift+t" should be spoken if there is an
options button in the alert with alt+shift+t as an accesskey.
... optional: for each character typed, screen readers may choose to indicate how many
options are remaining in the autocomplete list (if that number has changed).
ARIA annotations - Accessibility
as an example, let’s say you have a poll/voting ui widget that shows numbers of votes, but you want to summarize the purpose of the widget in a clear description because the ui does not make it clear: <section aria-description="choose your favourite fruit — the fruit with the highest number of votes will be added to the lunch
options next week."> <p>pick your favourite fruit:</p> <form> <ul> <li><label>apple: <input type="radio" name="fruit" value="apple"></label></li> <li><label>orange: <input type="radio" name="fruit" value="orange"></label></li> <li><label>banana: <input type="radio" name="fruit" value="banana"></label></li> </ul> </form> </section> if the descriptive text does appear in th...
...e ui, you can link the description to the widget using aria-describedby, like so: <p id="fruit-desc">choose your favourite fruit — the fruit with the highest number of votes will be added to the lunch
options next week.</p> <section aria-describedby="fruit-desc"> <form> <ul> <li><label>apple: <input type="radio" name="fruit" value="apple"></label></li> <li><label>orange: <input type="radio" name="fruit" value="orange"></label></li> <li><label>banana: <input type="radio" name="fruit" value="banana"></label></li> </ul> </form> </section> insertions and deletions a common wish in online document systems like google docs is to be able to track changes, to see what reviewers or editors have suggested as changes to the text, before the managing editor or author accep...
Value definition syntax - CSS: Cascading Style Sheets
double bar separating two or more components by a double bar, ||, means that all entities are
options: at least one of them must be present, and they may appear in any order.
... single bar separating two or more entities by a single bar, |, means that all entities are exclusive
options: exactly one of these
options must be present.
<input>: The Input (Form Input) element - HTML: Hypertext Markup Language
age, submit http method to use for form submission formnovalidate image, submit bypass form control validation for form submission formtarget image, submit browsing context for form submission height image same as height attribute for <img>; vertical dimension list almost all value of the id attribute of the <datalist> of autocomplete
options max numeric types maximum value maxlength password, search, tel, text, url maximum length (number of characters) of value min numeric types minimum value minlength password, search, tel, text, url minimum length (number of characters) of value multiple email, file boolean.
...any values in the list that are not compatible with the type are not included in the suggested
options.
<kbd>: The Keyboard Input element - HTML: Hypertext Markup Language
see the example under representing onscreen input
options below.
... <p>if a syntax error occurs, the tool will output the initial command you typed for your review:</p> <blockquote> <samp><kbd>custom-git ad my-new-file.cpp</kbd></samp> </blockquote> representing onscreen input
options nesting a <samp> element inside a <kbd> element represents input which is based on text presented by the system, such as the names of menus and menu items, or the names of buttons displayed on the screen.
<optgroup> - HTML: Hypertext Markup Language
the html <optgroup> element creates a grouping of
options within a <select> element.
... label the name of the group of
options, which the browser can use when labeling the
options in the user interface.
Using the application cache - HTML: Hypertext Markup Language
the offline cache can be cleared for each site separately using the "remove..." button in tools ->
options -> advanced -> network -> offline data.
... prior to firefox 11, neither tools -> clear recent history nor tools ->
options -> advanced -> network -> offline data -> clear now cleared the offline cache.
MIME types (IANA media types) - HTTP
the optional codecs parameter can be added to the mime type to further specify which codecs to use and what
options were used to encode the media, such as codec profile, level, or other such information.
...servers can prevent mime sniffing by sending the x-content-type-
options header.
Access-Control-Allow-Headers - HTTP
the preflight request is an
options request which includes some combination of the three preflight request headers: access-control-request-method, access-control-request-headers, and origin, such as:
options /resource/foo access-control-request-method: delete access-control-request-headers: origin, x-requested-with origin: https://foo.bar.org response if the server allows cors requests to use the delete method, it responds with ...
...an access-control-allow-methods response header, which lists delete along with the other methods it supports: http/1.1 200 ok content-length: 0 connection: keep-alive access-control-allow-origin: https://foo.bar.org access-control-allow-methods: post, get,
options, delete access-control-max-age: 86400 if the requested method isn't supported, the server will respond with an error.
HTTP request methods - HTTP
options the
options method is used to describe the communication
options for the target resource.
... specifications specification title comment rfc 7231, section 4: request methods hypertext transfer protocol (http/1.1): semantics and content specifies get, head, post, put, delete, connect,
options, trace.
A typical HTTP session - HTTP
example responses successful web page response: http/1.1 200 ok content-type: text/html; charset=utf-8 content-length: 55743 connection: keep-alive cache-control: s-maxage=300, public, max-age=0 content-language: en-us date: thu, 06 dec 2018 17:37:18 gmt etag: "2e77ad1dc6ab0b53a2996dfd4653c1c3" server: meinheld/0.6.1 strict-transport-security: max-age=63072000 x-content-type-
options: nosniff x-frame-
options: deny x-xss-protection: 1; mode=block vary: accept-encoding,cookie age: 7 <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>a simple webpage</title> </head> <body> <h1>simple html5 webpage</h1> <p>hello, world!</p> </body> </html> notification that the requested resource has permanently moved: http/1.1 301 moved permanently server: apache/...
...ation that the requested resource doesn't exist: http/1.1 404 not found content-type: text/html; charset=utf-8 content-length: 38217 connection: keep-alive cache-control: no-cache, no-store, must-revalidate, max-age=0 content-language: en-us date: thu, 06 dec 2018 17:35:13 gmt expires: thu, 06 dec 2018 17:35:13 gmt server: meinheld/0.6.1 strict-transport-security: max-age=63072000 x-content-type-
options: nosniff x-frame-
options: deny x-xss-protection: 1; mode=block vary: accept-encoding,cookie x-cache: error from cloudfront <!doctype html...
JavaScript modules - JavaScript
full support 63edge full support 79firefox full support 67 full support 67 no support 66 — 67disabled disabled from version 66 until version 67 (exclusive): this feature is behind the javascript.
options.dynamicimport preference (needs to be set to true).
...support 63chrome android full support 63firefox android full support 67 full support 67 no support 66 — 67disabled disabled from version 66 until version 67 (exclusive): this feature is behind the javascript.
options.dynamicimport preference (needs to be set to true).
Warning: Date.prototype.toLocaleFormat is deprecated - JavaScript
var today = new date(); var
options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }; var date = today.tolocaledatestring('de-de',
options); console.log(date); // "freitag, 10.
... var
options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }; var dateformatter = new intl.datetimeformat('de-de',
options) var dates = [date.utc(2012, 11, 20, 3, 0, 0), date.utc(2014, 04, 12, 8, 0, 0)]; dates.foreach(date => console.log(dateformatter.format(date))); // "donnerstag, 20.
Date.prototype.getDay() - JavaScript
var xmas95 = new date('december 25, 1995 23:15:30'); var weekday = xmas95.getday(); console.log(weekday); // 1 note: if needed, the full name of a day ("monday" for example) can be obtained by using intl.datetimeformat with an
options parameter.
... using this method, the internationalization is made easier: var
options = { weekday: 'long'}; console.log(new intl.datetimeformat('en-us',
options).format(xmas95)); // monday console.log(new intl.datetimeformat('de-de',
options).format(xmas95)); // montag specifications specification ecmascript (ecma-262)the definition of 'date.prototype.getday' in that specification.
Date.prototype.getMonth() - JavaScript
var xmas95 = new date('december 25, 1995 23:15:30'); var month = xmas95.getmonth(); console.log(month); // 11 note: if needed, the full name of a month ("january" for example) can be obtained by using intl.datetimeformat() with an
options parameter.
... using this method, internationalization is made easier: var
options = { month: 'long'}; console.log(new intl.datetimeformat('en-us',
options).format(xmas95)); // december console.log(new intl.datetimeformat('de-de',
options).format(xmas95)); // dezember specifications specification ecmascript (ecma-262)the definition of 'date.prototype.getmonth' in that specification.
Intl.Collator - JavaScript
intl.collator.prototype.resolved
options() returns a new object with properties reflecting the locale and collation
options computed during initialization of the object.
...of the language used in the user interface of your application, make sure to specify that language (and possibly some fallback languages) using the locales argument: // in german, ä sorts with a console.log(new intl.collator('de').compare('ä', 'z')); // → a negative value // in swedish, ä sorts after z console.log(new intl.collator('sv').compare('ä', 'z')); // → a positive value using
options the results provided by collator.prototype.compare() can be customized using the
options argument: // in german, ä has a as the base letter console.log(new intl.collator('de', { sensitivity: 'base' }).compare('ä', 'a')); // → 0 // in swedish, ä and a are separate base letters console.log(new intl.collator('sv', { sensitivity: 'base' }).compare('ä', 'a')); // → a positive value specif...
Intl.DateTimeFormat.prototype.formatRange() - JavaScript
the intl.datetimeformat.prototype.formatrange() formats a date range in the most concise way based on the locale and
options provided when instantiating intl.datetimeformat object.
... syntax intl.datetimeformat.prototype.formatrange(startdate, enddate) examples basic formatrange usage this method receives two dates and formats the date range in the most concise way based on the locale and
options provided when instantiating intl.datetimeformat.
Intl.DisplayNames - JavaScript
instance methods intl.displaynames.prototype.of() this method receives a code and returns a string based on the locale and
options provided when instantiating intl.displaynames.
... intl.displaynames.prototype.resolved
options() returns a new object with properties reflecting the locale and formatting
options computed during initialization of the object.
Intl.ListFormat.prototype.formatToParts() - JavaScript
description whereas intl.listformat.prototype.format() returns a string being the formated version of the list (according to the given locale and style
options), formattoparts() returns an array of the different components of the formated string.
... the locale and style
options used for formatting are given when constructing the intl.listformat instance.
Intl.RelativeTimeFormat.prototype.format() - JavaScript
the intl.relativetimeformat.prototype.format() method formats a value and unit according to the locale and formatting
options of this relativetimeformat object.
... description the function returned by the format getter formats a value and a unit into a string according to the locale and formatting
options of this intl.relativetimeformat object.
Intl.RelativeTimeFormat - JavaScript
instance methods intl.relativetimeformat.prototype.format() formats a value and a unit according to the locale and formatting
options of the given intl.relativetimeformat object.
... intl.relativetimeformat.prototype.resolved
options() returns a new object with properties reflecting the locale and formatting
options computed during initialization of the object.
TypedArray.prototype.toLocaleString() - JavaScript
syntax typedarray.tolocalestring([locales [,
options]]); parameters the locales and
options arguments customize the behavior of the function and let applications specify the language whose formatting conventions should be used.
... in implementations, which ignore the locales and
options arguments, the locale used and the form of the string returned are entirely implementation dependent.
Autoplay guide for media and Web Audio APIs - Web media technologies
to autoplay videos like these, you have two
options: don't have an audio track, or have an audio track but configure the <video> element to mute the audio by default, like this: <video src="/videos/awesomevid.webm" controls autoplay muted> this video element is configured to include the user controls (typically play/pause, scrubbing through the video's timeline, volume control, and muting); also, since the muted attribute is included, the video ...
... browser configuration
options browsers may have preferences that control the way autoplay works, or how autoplay blocking is handled.
Media container formats (file types) - Web media technologies
you should carefully consider the
options before making a final decision, especially if you have a lot of media that will need to be encoded.
...this can be used to offer various versions of a video that can be selected depending on bandwidth availability, but in our case, we'll use it to offer format
options.
Codecs used by WebRTC - Web media technologies
these two rfcs also lay out
options that must be supported for each codec, as well as specific user comfort features such as echo cancelation.
...for voice-only connections in a constrained environment, using g.711 at an 8 khz sample rate can provide an acceptable experience for conversation, but typically you'll use g.711 as a fallback option, since there are other
options which are more efficient and sound better, such as opus in its narrowband mode.
The "codecs" parameter in common media types - Web media technologies
the list may also contain codecs not present in the file.= codec
options by container the containers below support extended codec
options in their codecs parameters: 3gp av1 iso bmff mpeg-4 quicktime webm several of the links above go to the same section; that's because those media types are all based on iso base media file format (iso bmff), so they share the same syntax.
...firstly, you can use it with the <source> element when creating an <audio> or <video> element, in order to establish a group of
options for the browser to choose from when selecting the format of the media to present to the user in the element.
Web security
http x-content-type-
options the x-content-type-
options response http header is a marker used by the server to indicate that the mime types advertised in the content-type headers should not be changed and be followed.
... http x-frame-
options the x-frame-
options http response header can be used to indicate whether or not a browser should be allowed to render a page in a <frame>, <iframe>, <embed> or <object>.
Using custom elements - Web Components
optionally, an
options object containing an extends property, which specifies the built-in element your element inherits from, if any (only relevant to customized built-in elements; see the definition below).
... next, we register the element using the define() method as before, except that this time it also includes an
options object that details what element our custom element inherits from: customelements.define('expanding-list', expandinglist, { extends: "ul" }); using the built-in element in a web document also looks somewhat different: <ul is="expanding-list"> ...
Navigator.mozNotification - Archive of obsolete content
permissions when using notifications in an open web app, be sure to add the desktop-notification permission in your manifest file: "permissions": { "desktop-notification": {} } usage notes in firefox 22+, the instantiation of a new notification should be done with the notification object by calling new notification(title,
options).
Content Scripts - Archive of obsolete content
passing configuration
options the contentscript
options is a json object that is exposed to content scripts as a read-only value under the self.
options property: // main.js var tabs = require("sdk/tabs"); tabs.on('ready', function(tab) { tab.attach({ contentscript: 'window.alert(self.
options.message);', contentscript
options: {"message" : "hello world"} }); }); any kind of jsonable value (object, array, str...
private-browsing - Archive of obsolete content
it returns true only if the object is: a private window, or a tab belonging to a private window, or a worker that's associated with a document hosted in a private window any window, tab, or worker if the browser has been configured to never remember history (
options->privacy->history) add-ons can use this api to decide whether or not to store user data.
core/namespace - Archive of obsolete content
let sandboxes = ns(); function widget(
options) { let { element, contentscript } =
options; let widget = object.create(widget.prototype); view.call(widget,
options.element); sandboxes(widget).sandbox = cu.sandbox(element.ownerdocument.defaultview); // ...
io/file - Archive of obsolete content
apart from these
options, this api always passes the following
options: create_file, truncate (see //github.com/realityripple/uxp/blob/master/nsprpub/pr/include/prio.h#550).
Developing for Firefox Mobile - Archive of obsolete content
then execute jpm-mobile run with some extra
options: jpm-mobile run --adb /path/to/adb in the command shell, you should see something like: launching mobile application with intent name org.mozilla.fennec pushing the addon to your device starting: intent { act=android.activity.main cmp=org.mozilla.fennec/.app (has extras) } --------- beginning of /dev/log/main --------- beginning of /dev/log/system could not read chrome manifest 'file:///data/...
Alerts and Notifications - Archive of obsolete content
var message = 'another pop-up blocked'; var box = gbrowser.getnotificationbox(); var notification = box.getnotificationwithvalue('popup-blocked'); if (notification) { notification.label = message; } else { var buttons = [{ label: 'button', accesskey: 'b', popup: 'blockedpopup
options', callback: null }]; let priority = box.priority_warning_medium; box.appendnotification(message, 'popup-blocked', 'chrome://browser/skin/info.png', priority, buttons); } ...
Canvas code snippets - Archive of obsolete content
function savecanvas(canvas, path, type,
options) { return task.spawn(function *() { var reader = new filereader; var blob = yield new promise(accept => canvas.toblob(accept, type,
options)); reader.readasarraybuffer(blob); yield new promise(accept => { reader.onloadend = accept }); return yield os.file.writeatomic(path, new uint8array(reader.result), { tmppa...
Signing an XPI - Archive of obsolete content
don't forget to delete the certificate from mozilla firefox once you've finished testing firefox 1.5: from the tools menu choose
options->advanced->security->view certificates->authorities firefox 1.0: from the tools menu choose
options->advanced->certificates->manage certificates->authorities press the import button.
Index of archived content - Archive of obsolete content
extension library extension packaging extension samples extension theming guidelines extension versioning, update and compatibility extensions support in seamonkey 2 firefox addons developer guide hiding browser chrome hotfix extension how to convert an overlay extension to restartless inline
options install manifests installing extensions and themes from web pages interaction between privileged and non-privileged pages jetpack processes legacy add-ons legacy extensions for firefox for android api accounts.jsm browserapp ...
Structure of an installable bundle - Archive of obsolete content
(>=1.7) /defaults/preferences/*.js default preferences (>=1.7) /plugins/* npapi plugins (>=1.8) /chrome/icons/default/* window icons (>=1.8) /icon.png extension icon, for display in the add-ons manager, 32px × 32px (>=1.9.2) /icon64.png extension icon, for display in the add-ons manager, 64px × 64px (>=2.0) /
options.xul extension
options, for display in the add-ons manager (>=7.0) ...
Repackaging Firefox - Archive of obsolete content
however, it's still recommended that you look through this tutorial, as it contains tips specific for creating extensions of this type, and there are a few
options that you will need to set to ensure a smooth upgrade path for users.
slideBar - Archive of obsolete content
jetpack.future.import("slidebar"); methods append(iconurihtmlhtml/xmlurluriwidthintpersistboolautoreloadboolonclickfunctiononselectfunctiononreadyfunction)this is a list of
options to specify modifications to your slidebar instance.
More Menu Features - Archive of obsolete content
example 2 : source view <toolbox> <menubar id="
options-menubar"> <menu id="
options_menu" label="
options"> <menupopup> <menuitem id="backups" label="make backups" type="checkbox"/> <menuitem id="email" label="email administrator" type="checkbox" checked="true"/> </menupopup> </menu> </menubar> </toolbox> the type attribute has been added which is used to make the menu item checkable.
dialog - Archive of obsolete content
nceldialog, centerwindowonscreen, getbutton, movetoalertposition examples <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?> <dialog id="donothing" title="dialog example" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" buttons="accept,cancel" buttonlabelcancel="cancel" buttonlabelaccept="save"> <dialogheader title="
options" description="my preferences"/> <groupbox> <caption label="colour"/> <radiogroup> <radio label="red"/> <radio label="green" selected="true"/> <radio label="blue"/> </radiogroup> <label value="nickname"/> <textbox/> </groupbox> </dialog> attributes activetitlebarcolor type: color string specify background color of the window's titlebar when it is a...
Building XULRunner - Archive of obsolete content
a basic minimal mozconfig which will build a release configuration of xulrunner is: mk_add_
options moz_co_project=xulrunner mk_add_
options moz_objdir=@topsrcdir@/obj-xulrunner ac_add_
options --enable-application=xulrunner #uncomment the following line if you don't want to build javaxpcom: #ac_add_
options --disable-javaxpcom cvs tags and xulrunner versions older xulrunner releases where tagged in cvs with (for instance xulrunner_1_8_0_5_release ) up to version 1.8.0.5 the cvs repository do...
Getting started with XULRunner - Archive of obsolete content
*/ pref("browser.dom.window.dump.enabled", true); pref("javascript.
options.showinconsole", true); pref("javascript.
options.strict", true); pref("nglayout.debug.disable_xul_cache", true); pref("nglayout.debug.disable_xul_fastload", true); xulrunner specific preferences include: toolkit.defaultchromeuri specifies the default window to open when the application is launched.
MacFAQ - Archive of obsolete content
to enable the mac "about" menu make sure that you use "aboutname" as the id for your menu item to enable the mac "preferences" menu make sure that you use "menu_preferences" as the id for your
options/preferences menu item toolbars mac windows have a small "jelly bean" button in the top right corner.
Mozprofile - Archive of obsolete content
if a profile is not specified, one will be created in a temporary directory which will be echoed to the terminal: (mozmill)> mozprofile /tmp/tmp4q1ieu.mozrunner (mozmill)> ls /tmp/tmp4q1ieu.mozrunner user.js to run mozprofile from the command line enter: mozprofile --help for a list of
options.
Mozilla release FAQ - Archive of obsolete content
regarding compilation
options, it would be good not to compile with optimization, because it's much slower to build, and on windows platforms, there's a bug in some versions of vc++ that makes mozilla crash in many common circumstances if compiled with optimization on.
Implementation Status - Archive of obsolete content
11.6.1 resource supported 11.7.1 method unsupported 11.8 header unsupported 11.8.1 name unsupported 11.8.2 value unsupported 11.9 submission
options supported 11.9.1 the get submission method supported 11.9.2 the post, multipart-post, form-data-post, and urlencoded-post submission methods supported 11.9.3 the put submission method supported 11.9.4 the delete submission ...
Game monetization - Game development
if your work is a serious endeavour on the path to becoming an independent game developer able to make a living, read on and see what your
options are.
Scaling - Game development
update your existing preload() function as follows: function preload() { game.scale.scalemode = phaser.scalemanager.show_all; game.scale.pagealignhorizontally = true; game.scale.pagealignvertically = true; } scalemode has a few different
options available for how the canvas can be scaled: no_scale — nothing is scaled.
2D maze game with device orientation - Game development
var game = new phaser.game(320, 480, phaser.canvas, 'game'); the line above will initialize the phaser instance — the arguments are the width of the canvas, height of the canvas, rendering method (we're using canvas, but there are also webgl and auto
options available) and the optional id of the dom container we want to put the canvas in.
ICE - MDN Web Docs Glossary: Definitions of Web-related terms
the framework algorithm looks for the lowest-latency path for connecting the two peers, trying these
options in order: direct udp connection (in this case—and only this case—a stun server is used to find the network-facing address of a peer) direct tcp connection, via the http port direct tcp connection, via the https port indirect connection via a relay/turn server (if a direct connection fails, e.g., if one peer is behind a firewall that blocks nat traversal) learn more general knowledge ...
Response header - MDN Web Docs Glossary: Definitions of Web-related terms
a9199f722e3a621a" keep-alive: timeout=5, max=997 last-modified: mon, 18 jul 2016 02:36:04 gmt server: apache set-cookie: mykey=myvalue; expires=mon, 17-jul-2017 16:06:00 gmt; max-age=31449600; path=/; secure transfer-encoding: chunked vary: cookie, accept-encoding x-backend-server: developer2.webapp.scl3.mozilla.com x-cache-info: not cacheable; meta data too large x-kuma-revision: 1085259 x-frame-
options: deny ...
Accessible multimedia - Learn web development
in terms of actually creating the transcript, your
options are: commercial services — you could pay a professional to do the transcription, see for example companies like scribie, casting words, or rev.
WAI-ARIA basics - Learn web development
generally, you are able to use the tab key to move between controls, the enter/return key to select or activate controls, and occasionally other controls as needed (for example the up and down cursor to move between
options in a <select> box).
Responsive design - Learn web development
historic website layouts at one point in history you had two
options when designing a website: you could create a liquid site, which would stretch to fill the browser window or a fixed width site, which would be a fixed size in pixels.
Styling links - Learn web development
two points to note here are: the underline has been created using border-bottom, not text-decoration — some people prefer this because the former has better styling
options than the latter, and is drawn a bit lower, so doesn't cut across the descenders of the word being underlined (e.g.
Styling lists - Learn web development
in our example, we've set the ordered list to use uppercase roman numerals, with: ol { list-style-type: upper-roman; } this gives us the following look: you can find a lot more
options by checking out the list-style-type reference page.
What software do I need to build a website? - Learn web development
there are dozens of browser
options for your personal use, but when you're developing a website you should test it at least with the following major browsers, to make sure your site works for most people: mozilla firefox google chrome microsoft internet explorer apple safari if you're targeting a specific group (e.g., technical platform or country), you may have to test the site with additional browsers, like opera, konquer...
Styling web forms - Learn web development
the real problem with all these controls is that they have a very complex structure, and beyond some basic styling (such as changing the width or margin of the control) you generally don't have the ability to style the controls' internal components (such as the date picker calendar, or the button on the <select> that causes the
options list to display) making up those widgets.
Browser chrome tests
for example, to run the tests in browser/base/content/test the command would be: ./mach mochitest -f browser browser/base/content/test/ or without mach test_path=<path_to_the_tests> make -c <objdir> mochitest-browser-chrome to run tests in debugger the following should work ./mach mochitest -f browser --debugger gdb browser/base/content/test/ run ./mach help mochitest-browser for more
options.
Testopia
new reports: worst offender and case roll-up set priorities on indidual case-runs new clone
options uses the latest extjs 3.0 library converts testopia into a true bugzilla extension numerous bug fixes integration points testopia integrates with bugzilla products, components, versions, and milestones to allow a single management interface for high level objects.
Creating a Language Pack
pre-build steps in the .mozconfig, you want to have mk_add_
options moz_objdir=@topsrcdir@/obj-firefox-build ac_add_
options --disable-compile-environment ac_add_
options --with-l10n-base=../l10n-central # path relative to moz_objdir ac_add_
options --enable-application=[browser or mail] the given path should have your localization directory as child (i.e., a subdirectory ab-cd where ab-cd is your locale code).
Debugging JavaScript
strict code checking if you set the pref javascript.
options.strict to true, the javascript engine gives you more types of warnings on the error console, most of which hint at code bugs that are easy to oversee or even bad syntax.
Debugging Table Reflow
it can be invoked by set gecko_block_debug_flags=reflow the available
options are: reflow really-noisy-reflow max-element-size space-manager verify-lines damage-repair lame-paint-metrics lame-reflow-metrics disable-resize-opt these
options can be combined with a comma separated list messages generated by the reflow switch: block(div)(1)@00be5ac4: reflowing dirty lines computedwidth=9000 computedheight=1500 this message is generated inside of nsresult nsblockf...
Debugging on Mac OS X
(xcode always runs lldb from "/", # regardless of what directory xcode was started from, and regardless of the # value of the "custom working directory" field in the scheme's run
options.
How Mozilla's build system works
the primary job of configure is to determine characteristics of the system and compiler, apply
options passed into it, and validate everything looks ok to build.
ESLint
setting up eslint ./mach eslint --setup running eslint eslint can be run via: ./mach lint -l eslint you can limit running it to a specific directory with: ./mach lint -l eslint browser/components or work directory changes: ./mach lint -l eslint -w or outgoing commits only: ./mach lint -l eslint -o see ./mach eslint --help for more
options when running eslint.
SVG Guidelines
however, there are some utilities that cover parts of this document: mostly complete command line tool: https://github.com/svg/svgo alternatives to svgo: https://github.com/razrfalcon/svgcleaner https://github.com/scour-project/scour gui for command line tool (use with "prettify code" and "remove <title>"
options on): https://jakearchibald.github.io/svgomg/ good alternative to svgo/svgomg: https://petercollingridge.appspot.com/svg-editor fixes the excessive number precision: https://simon.html5.org/tools/js/svg-optimizer/ converts inline styles to svg attributes: https://www.w3.org/wiki/svgtidy raphaeljs has a couple of utilities that may be useful: raphael.js ...
mach
many pkgbuild
options to choose from and most work like a charm - while "mach" may not necessarily work like a charm for everyone.
Firefox and the "about" protocol
about:newtab start page when opening a new tab about:performance displays memory and performance information about firefox subprocesses/add-ons/tabs about:plugins displays information about installed plugins about:policies lists out the firefox for enterprise policies about:preferences firefox settings (also available through firefox menu >
options) about:privatebrowsing start page when opening a private window about:profiles display and manage firefox profiles about:protections privacy protections report consisting of enhanced tracking protection, firefox monitor and firefox lockwise data about:restartrequired a page users are sent to when firefox requires a restart due to an update ...
Using the Browser API
if searchactive is true, meaning that a search has been done, we want to disable the search as we hide the search
options — we disable the buttons, make searchactive false, clear the entered search value, and run htmliframeelement.clearmatch(), which gets rid of any stored/highlighted search results from the browser.
mozbrowsercontextmenu
items an array of further menu objects, which indicate the menu
options available in a menu, if the context menu being accessed is a menu.
Getting Started with Chat
the following are some other
options available to you: windows mac linux colloquy ● irssi ● ● ●* xchat ● ○ ● key: ● — binary or executable program available ○ — only available by downloading and compiling source code ●* — binary or executable may be available.
PR_NOT_REACHED
this macro compiles to nothing if compile-time
options are not specified to enable logging.
NSPR API Reference
version constants initialization and cleanup module initialization locks lock type lock functions condition variables condition variable type condition variable functions monitors monitor type monitor functions cached monitors cached monitor functions i/o types directory type file descriptor types file info types network address types types used with socket
options functions type used with memory-mapped i/o offset interpretation for seek functions i/o functions functions that operate on pathnames functions that act on file descriptors directory i/o functions socket manipulation functions converting between host and network addresses memory-mapped i/o functions anonymous pipe function polling functions pollable events manipulating layers ne...
Deprecated SSL functions
function name/documentation source code replacement in nss 3.2 ssl_enable mxr ssl_
optionset ssl_enablecipher mxr ssl_cipherprefsetdefault ssl_enabledefault mxr ssl_
optionsetdefault ssl_redohandshake mxr ssl_rehandshake ssl_setpolicy mxr ssl_cipherpolicyset ...
NSS_3.12.1_release_notes.html
bug 311432: ecc's ecl_use_fp code (for linux x86) fails pairwise consistency test bug 330622: certutil's usage messages incorrectly document certain
options bug 330628: coreconf/linux.mk should _not_ default to x86 but result in an error if host is not recognized bug 359302: remove the sslsample code from nss source tree bug 372241: need more versatile form of cert_nametoascii bug 390296: nss ignores subject cn even when san contains no dnsname bug 401928: support generalized pkcs#5 v2 pbes bug 403543: pkix: need a way to enable/disable a...
NSS_3.12.2_release_notes.html
bug 444974: crash upon reinsertion of e-identity smartcard bug 447563: modutil -add prints no error explanation on failure bug 448431: pk11_createmergelog() declaration causes gcc warning when compiling with -wstrict-prototypes bug 449334: pk12util has duplicate
options letters bug 449725: signver is still using static libraries.
NSS 3.12.5 release_notes
this default setting can also be changed within the application by using the following existing api functions: secstatus ssl_
optionset(prfiledesc *fd, print32 option, prbool on) secstatus ssl_
optionsetdefault(print32 option, prbool on) there is now a new value for "option", which is: ssl_enable_renegotiation the corresponding new values for ssl_enable_renegotiation are: ssl_renegotiate_never: never renegotiate at all (default).
NSS 3.12.6 release notes
these
options can also be set with the following ssl
options: ssl
options.enablerenegotiation ssl
options.requiresafenegotiation new pseudo cipher suite value: tls_empty_renegotiation_info_scsv (cannot be negotiated) tls server name indication for servers tls server name indication (sn...
NSS 3.12.9 release notes
new in nss 3.12.9 removed functions new ssl
options new error codes bugs fixed the following bugs have been fixed in nss 3.12.9.
NSS_3.12_release_notes.html
r_cancel might have a leak bug 232392: erroneous root ca tests in nss libraries bug 286642: util should be in a shared library bug 287052: function to get crl entry reason code has incorrect prototype and implementation bug 299308: need additional apis in the crl cache for libpkix bug 335039: nssckfwcryptooperation_updatecombo is not declared bug 340917: crlutil should init nss read-only for some
options bug 350948: freebl macro change can give 1% improvement in rsa performance on amd64 bug 352439: reference leaks in modutil bug 369144: certutil needs option to generate subjectkeyid extension bug 391771: pk11_config_name and pk11_config_strings leaked on shutdown bug 401194: crash in lg_findobjects on win64 bug 405652: in the tls clienthello message the gmt_unix_time is incorrect bug 424917: perf...
NSS 3.15.5 release notes
two ssl socket
options, ssl_enable_npn and ssl_enable_alpn, can be used to control whether npn or alpn (or both) should be used for application layer protocol negotiation.
NSS 3.20 release notes
they can be enabled with the new socket option ssl_enable_server_dhe and the ssl_
optionset or the ssl_
optionsetdefault api.
Renaming With Pork
note the -k,-w0
options are passed down to the mcpp preprocessor such that it can annotate files with more precise position information.
Rhino Debugger
the debugger is itself a java program which you may run as java org.mozilla.javascript.tools.debugger.main [
options] [filename.js] [script-arguments] where the
options are the same as the shell.
Rhino JavaScript compiler
compiler command line java org.mozilla.javascript.tools.jsc.main [
options] file1.js [file2.js...] where
options are: -extends java-class-name specifies that a java class extending the java class java-class-name should be generated from the incoming javascript source file.
Shumway
several buttons are available at the bottom of the screen to enable or disable various shumway
options.
Hacking Tips
make sure to build a browser for x86 (32-bits) and add this option to your mozconfig file: ac_add_
options --enable-arm-simulator if you are under an ubuntu or debian 64-bits distribution and you want to build a 32-bits browser, it might be hard to find the relevant 32-bits dependencies.
Bytecode Descriptions
note: the frontend has to emit jsop::gimplicitthis (and not jsop::undefined) for global unqualified function calls, even when compile
options::nonsyntacticscope == false, because later js::cloneglobalscript can be called with scopekind::nonsyntactic to clone the script into a non-syntactic environment, with the bytecode reused, unchanged.
SpiderMonkey Internals
jsinvoke.cpp is a build hack used on some platforms to build js_interpret under different compiler
options from the rest of jsinterp.cpp.
JIT Optimization Strategies
provide a user-browsable documentation of optimization strategies, how they work, how they are defeated, and
options for how to re-enable them.
JSAPI User Guide
for maximum ecmascript standard compliance, applications should also use js_set
options to enable jsoption_varobjfix.
JS::SourceBufferHolder
example size_t length = 512; char16_t* chars = static_cast<char16_t*>(js_malloc(sizeof(char16_t) * length)); js::sourcebufferholder srcbuf(chars, length, js::sourcebufferholder::giveownership); js::compile(cx, obj,
options, srcbuf); see also mxr id search for js::sourcebufferholder js::compile js::compilefunction js::evaluate bug 987556 ...
JSRuntime
exception handling, error reporting, and some language
options are per-jscontext.
JS_InitStandardClasses
ties defined in ecma 262-3 §15.1: array, boolean, date, decodeuri, decodeuricomponent, encodeuri, encodeuricomponent, error, eval, evalerror, function, infinity, isnan, isfinite, math, nan, number, object, parseint, parsefloat, rangeerror, referenceerror, regexp, string, syntaxerror, typeerror, undefined, and urierror as well as a few spidermonkey-specific globals, depending on compile-time
options: escape, unescape, uneval, internalerror, script, xml, namespace, qname, file, generator, iterator, and stopiteration, as of spidermonkey 1.7.
JS_SetGCZeal
(in a debug build of gecko, you can also set the current gc zeal level using the javascript.
options.gczeal preference.) see also mxr id search for js_setgczeal mxr id search for js_gc_zeal js_schedulegc bug 308429 bug 650978 ...
SpiderMonkey 1.8
two new context
options can be used with js_set
options: jsoption_relimit, which causes extremely long-running regular expression searches to fail with an error, and jsoption_anonfunfix, which bans anonymous functions from appearing anyplace where a statement could appear, such as in the argument to eval().
nsIPromptService
button_pos_2 65536 this button can be used to give the user a choice of
options, but still allowing the user to cancel the prompt.
nsIScriptableUnescapeHTML
1.0 66 introduced gecko 1.8 obsolete gecko 14.0 inherits from: nsisupports last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) note: as of firefox 14, this interface is obsolete (but still available for compatibility with legacy extensions) and all its functionality is available with more configuration
options via the nsiparserutils interface.
nsIWindowWatcher
list of feature
options aarguments extra argument(s) to be attached to the new window as the window.arguments property.
nsIXPConnect
aflags one of the flags below specifying what
options this global object wants.
XPCOM Interface Reference by grouping
siautocompleteinput nsiautocompletesearch console nsiconsolelistener nsiconsolemessage nsiconsoleservice document nsidocshell dom device nsidomgeogeolocation nsidomgeoposition nsidomgeopositionaddress nsidomgeopositioncallback nsidomgeopositioncoords nsidomgeopositionerror nsidomgeopositionerrorcallback nsidomgeoposition
options nsidomglobalpropertyinitializer element nsidomchromewindow nsidomclientrect nsidomelement nsidomhtmlaudioelement nsidomhtmlformelement nsidomhtmlmediaelement nsidomhtmlsourceelement nsidomhtmltimeranges nsidomjswindow nsidomnode nsidomnshtmldocument nsidomstorageitem nsidomstoragemanager nsidomwindow nsidomwindow2 nsidomw...
Using IndexedDB in chrome
if you are creating a sandbox, and want indexeddb to be available in it, use the wantglobalproperties option in the sandbox constructor: var
options = { "wantglobalproperties": ["indexeddb"] } var principal = cc["@mozilla.org/systemprincipal;1"].createinstance(ci.nsiprincipal); var sandbox = components.utils.sandbox(principal,
options); // the sandbox will have access to indexeddb var sandboxscript = 'var req = indexeddb.open("my-database");'; components.utils.evalinsandbox(sandboxscript, sandbox); before firefox 33, you would access ind...
The Valgrind Test Job
ac_add_
options --enable-valgrind ac_add_
options --disable-jemalloc running to run the valgrind test job locally, run the following command.
MailNews fakeserver
to enable/disable debugging, call setdebuglevel on your nsmailserver instance with one of the following
options: const fsdebugnone = 0; // dump nothing const fsdebugrecv = 1; // dump just the received commands const fsdebugrecvsend = 2; // dump received + sent commands, no data const fsdebugall = 3; // dump everything debugging is set to "none" by default.
Finding the code for a feature
(for debug builds, you can make it appear by default using "ac_add_
options --enable-extensions=default,venkman,inspector" which is part of my standard configuration).
WebIDL bindings
there are all sorts of possible
options here that handle various edge cases, but most descriptors can be very simple.
Using Objective-C from js-ctypes
// [nsstring getbytes:maxlength:usedlength:encoding:
options:range:remainingrange:] sel foo = sel_registername("getbytes:maxlength:usedlength:encoding:
options:range:remainingrange:"); method which returns non-id type if a method returns a type which is compatible with id, we can cast it, or just use it as id type (since we don't need to use a different type for each instance, in terms of c).
Working with data
for example: var num1 = ctypes.uint64(5000); var num2 = ctypes.int64(-42); if you need to create a 64-bit integer whose value can't be represented by a javascript number, you have two
options.
ctypes.open
there are two
options: custom native file (dll, so, dylib, etc.) standard os libraries custom native file for this method, a native file must be created.
Mozilla
command line
options command line
options are used to specify various startup
options for mozilla applications.this page describes the commonly used
options and how to use them.
Flash Activation: Browser Comparison - Plugins
the user can click the flash object to show activation
options: users have the choice to allow flash just for the current session, or to remember their choice: site authoring tips if a flash element is very small, hidden, or covered by other content, users will probably not notice that flash is required and will become confused.
Preferences System
example: var features = "chrome,titlebar,toolbar,centerscreen,modal"; window.opendialog(url, "preferences", features); bugzilla the component for bugs in the preferences bindings (but not in firefox/thunderbird
options ui) is toolkit:preferences (file a bug list open bugs) ...
Accessibility Inspector - Firefox Developer Tools
notable related features when the accessibility features are turned on, there are a number of useful additional features available in the devtools, which are detailed below: context menu
options an extra context menu option is added, both for the general context menu on the web page when right/ctrl + clicking a ui feature, and the html pane of the page inspector when right/ctrl + clicking a dom element: when you choose the inspect accessibility properties/show accessibility properties context menu
options, the accessibility tab is immediately opened to show the corresponding access...
DOM Inspector - Firefox Developer Tools
or, build thunderbird yourself with the following
options: ac_add_
options --enable-extensions="default inspector" ac_add_
options --enable-inspector-apis mozilla suite and seamonkey select tools > web development > dom inspector.
Network request details - Firefox Developer Tools
"value": "ns=-1;special=badtitle;wmf-last-access=11-jun-2019;wmf-last-access-global=11-jun-2019;https=1" }, { "name": "x-cache", "value": "cp1075 pass, cp1075 pass" }, { "name": "x-cache-status", "value": "pass" }, { "name": "x-client-ip", "value": "204.210.158.136" }, { "name": "x-content-type-
options", "value": "nosniff" }, { "name": "x-firefox-spdy", "value": "h2" }, { "name": "x-frame-
options", "value": "sameorigin" }, { "name": "x-powered-by", "value": "hhvm/3.18.6-dev" }, { "name": "x-search-id", "value": "esvan0r5bnnwscyk2wq09i1im" }, { "name": "x-va...
Examine and edit HTML - Firefox Developer Tools
within visited screenshot node scroll into view copy inner html outer html css selector css path xpath image data-url attribute paste inner html outer html before after as first child as last child expand all collapse all open link in new tab * open file in debugger * open file in style-editor * copy link address * * these
options only appear in certain contexts, for example the "open file in style-editor" option only appears when you context-click over the top of a link to a css file.
Responsive Design Mode - Firefox Developer Tools
tons allow you to: camera button - take a screenshot settings button - opens the rdm settings menu close button - closes rdm mode and returns to regular browsing the settings menu includes the following commands: left-align viewport - when checked moves the rdm viewport to the left side of the browser window show user agent - when checked displays the user agent string the final two
options define when the page is reloaded: reload when touch simulation is toggled: when this option is enabled, the page is reloaded whenever you toggle touch support.
Rulers - Firefox Developer Tools
once enabled, the "toggle rulers for the page" button appears at the top right of the toolbox, in the same place as the settings/
options button.
Tips - Firefox Developer Tools
click the
options button in the style sheet pane and click "show original sources" to toggle the display of css preprocessor files.
about:debugging - Firefox Developer Tools
when about:debugging opens, on the left-hand side, you'll see a sidebar with two
options and information about your remote debugging setup: setup use the setup tab to configure the connection to your remote device.
Firefox Developer Tools
opens the menu that includes docking
options, the ability to show or hide the split console, and developer tools settings.
AbortController.abort() - Web APIs
when the fetch request is initiated, we pass in the abortsignal as an option inside the request's
options object (see {signal}, below).
AbortController.signal - Web APIs
when the fetch request is initiated, we pass in the abortsignal as an option inside the request's
options object (see {signal}, below).
AbortController - Web APIs
when the fetch request is initiated, we pass in the abortsignal as an option inside the request's
options object (see {signal}, below).
AbortSignal - Web APIs
when the fetch request is initiated, we pass in the abortsignal as an option inside the request's
options object (see {signal}, below).
AbsoluteOrientationSensor - Web APIs
syntax var absoluteorientationsensor = new absoluteorientationsensor([
options]) parameters
options optional
options are as follows: frequency: the desired number of times per second a sample should be taken, meaning the number of times per second that sensor.onreading will be called.
AbsoluteOrientationSensor - Web APIs
const
options = { frequency: 60, referenceframe: 'device' }; const sensor = new absoluteorientationsensor(
options); sensor.addeventlistener('reading', () => { // model is a three.js object instantiated elsewhere.
Accelerometer.Accelerometer() - Web APIs
syntax var accelerometer = new accelerometer([
options]) parameters
options optional
options are as follows: frequency: the desired number of times per second a sample should be taken, meaning the number of times per second that sensor.onerror will be called.
AmbientLightSensor.AmbientLightSensor() - Web APIs
syntax var ambientlightsensor = new ambientlightsensor(
options) parameters
options optional currently only one option is supported: frequency: the desired number of times per second a sample should be taken, meaning the number of times per second that sensor.onreading will be called.
AudioContext() - Web APIs
syntax var audioctx = new audiocontext(); var audioctx = new audiocontext(
options); parameters
options optional an object based on the audiocontext
options dictionary that contains zero or more optional properties to configure the new context.
AudioContextLatencyCategory - Web APIs
audiocontextlatencycategory can be used when constructing a new audiocontext by passing one of these values as the latencyhint option in the audiocontext() constructor's
options dictionary.
AudioWorkletProcessor - Web APIs
the constructor of the deriving class is getting called with an
options object, so you can perform a custom initialization procedures — see constructor page for details.
AuthenticatorAssertionResponse.authenticatorData - Web APIs
examples var
options = { challenge: new uint8array(26), // will be another value, provided by the relying party server timeout: 60000 }; navigator.credentials.get({ publickey:
options }) .then(function (assertionpkcred) { var authenticatordata = assertionpkcred.response.authenticatordata; // maybe try to convert the authenticatordata to see what's inside // send response and client extensions to ...
AuthenticatorAssertionResponse.signature - Web APIs
examples var
options = { challenge: new uint8array(26), // will be another value, provided by the relying party server timeout: 60000 }; navigator.credentials.get({ publickey:
options }) .then(function (assertionpkcred) { var signature = assertionpkcred.response.signature; // send response and client extensions to the server so that it can // go on with the authentication }).catch(function (err)...
AuthenticatorAssertionResponse - Web APIs
examples var
options = { challenge: new uint8array([/* bytes sent from the server */]) }; navigator.credentials.get({ "publickey":
options }) .then(function (credentialinfoassertion) { var assertionresponse = credentialinfoassertion.response; // do something specific with the response // send assertion response back to the server // to proceed with the control of the credential }).catch(functi...
AuthenticatorResponse - Web APIs
examples getting an authenticatorassertionresponse var
options = { challenge: new uint8array([/* bytes sent from the server */]) }; navigator.credentials.get({ "publickey":
options }) .then(function (credentialinfoassertion) { var assertionresponse = credentialinfoassertion.response; // send assertion response back to the server // to proceed with the control of the credential }).catch(function (err) { console.error(err); }); getti...
BasicCardResponse.billingAddress - Web APIs
example let's look at a sample payment request: var request = new paymentrequest(supportedinstruments, details,
options); // call show() to trigger the browser's payment flow.
BasicCardResponse.cardNumber - Web APIs
example let's look at a sample payment request: var request = new paymentrequest(supportedinstruments, details,
options); // call show() to trigger the browser's payment flow.
BasicCardResponse.cardholderName - Web APIs
example let's look at a sample payment request: var request = new paymentrequest(supportedinstruments, details,
options); // call show() to trigger the browser's payment flow.
BasicCardResponse.expiryMonth - Web APIs
example let's look at a sample payment request: var request = new paymentrequest(supportedinstruments, details,
options); // call show() to trigger the browser's payment flow.
BasicCardResponse.expiryYear - Web APIs
example let's look at a sample payment request: var request = new paymentrequest(supportedinstruments, details,
options); // call show() to trigger the browser's payment flow.
Clients - Web APIs
an
options argument allows you to control the types of clients returned.
ContentIndexEvent - Web APIs
constructor contentindexevent() creates and returns a new contentindexevent object whose type and other
options are configured as specified.
CredentialsContainer - Web APIs
methods credentialscontainer.create()secure context returns a promise that resolves with a new credential instance based on the provided
options, or null if no credential object can be created.
DeprecationReportBody - Web APIs
examples in our deprecation_report.html example, we create a simple reporting observer to observe usage of deprecated features on our web page: let
options = { types: ['deprecation'], buffered: true } let observer = new reportingobserver(function(reports, observer) { reportbtn.onclick = () => displayreports(reports); },
options); we then tell it to start observing reports using reportingobserver.observe(); this tells the observer to start collecting reports in its report queue, and runs the callback function specified inside the constructor:...
Element: click event - Web APIs
the interval is also likely to be affected by user preferences; for example, accessibility
options may extend this interval to make it easier to perform multiple clicks with adaptive interfaces.
Element.getAnimations() - Web APIs
syntax const animations = element.getanimations(
options); parameters
options optional an
options object containing the following property: subtree a boolean value which, if true, causes animations that target descendants of element to be returned as well.
Element.msZoomTo() - Web APIs
syntax element.mszoomto(arguments); parameters args[in] type: mszoomto
options contentx[in]: the x-coordinate of the content that is the target of the scroll/zoom.
Element.requestFullscreen() - Web APIs
syntax var promise = element.requestfullscreen(
options); parameters
options optional a fullscreen
options object providing
options that control the behavior of the transition to full-screen mode.
FederatedCredential - Web APIs
syntax var mycredential = new federatedcredential(init) parameters init
options are: provider: a usvstring; identifying the credential provider.
Fetch API - Web APIs
you can also optionally pass in an init
options object as the second argument (see request).
FileSystemFlags - Web APIs
methods which accept an
options parameter of this type may specify zero or more of these flags as fields in an object, like this: datadirectoryentry.getdirectory("workspace", { create: true }, function(entry) { }); here, we see that the create property is provided, with a value of true, indicating that the directory should be created if it's not already there.
FormData() - Web APIs
those with a name, not disabled and checked (radio buttons and checkboxes) or selected (one or more
options within a select).
Geolocation.clearWatch() - Web APIs
xample var id, target, option; function success(pos) { var crd = pos.coords; if (target.latitude === crd.latitude && target.longitude === crd.longitude) { console.log('congratulation, you reach the target'); navigator.geolocation.clearwatch(id); } }; function error(err) { console.warn('error(' + err.code + '): ' + err.message); }; target = { latitude : 0, longitude: 0, }
options = { enablehighaccuracy: false, timeout: 5000, maximumage: 0 }; id = navigator.geolocation.watchposition(success, error,
options); specifications specification status comment geolocation api recommendation initial specification.
GeolocationPositionError - Web APIs
3 timeout the time allowed to acquire the geolocation, defined by position
options.timeout information was reached before the information was obtained.
Gyroscope.Gyroscope() - Web APIs
syntax var gyroscope = new gyroscope([
options]) parameters
options optional
options are as follows: frequency: the desired number of times per second a sample should be taken, meaning the number of times per second that sensor.onreading will be called.
HTMLDataListElement - Web APIs
" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="396" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmldatalistelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement htmldatalistelement.
options read only is a htmlcollection representing a collection of the contained option elements.
HTMLElement: input event - Web APIs
this is unlike the change event, which only fires when the value is committed, such as by pressing the enter key, selecting a value from a list of
options, and the like.
HTMLImageElement.align - Web APIs
it may be worth noting that vertical-align offers several additional
options for its value; you may wish to consider these when changing your code to use it.
HTMLImageElement.border - Web APIs
the border property or its longhand properties to not only set the thickness of the border but to potentially apply a wide variety of other styling
options to it.
HTMLImageElement.src - Web APIs
if you use the srcset content attribute to provide multiple image
options for different display pixel densities, the url specified by the src attribute is used in one of two ways: as a fallback for browsers that don't support srcset.
HTMLImageElement.srcset - Web APIs
"icon32px.png 32w, icon64px.png 64w, icon-retina.png 2x icon-ultra.png 3x icon.svg" here,
options are provided for an icon at widths of 32px and 64px, as well as at pixel densities of 2x and 3x.
HTMLInputElement - Web APIs
the htmlinputelement interface provides special properties and methods for manipulating the
options, layout, and presentation of <input> elements.
HTMLMediaElement.load() - Web APIs
usage notes calling load() aborts all ongoing operations involving this media element, then begins the process of selecting and loading an appropriate media resource given the
options specified in the <audio> or <video> element and its src attribute or child <source> element(s).
HTMLElement.focus() - Web APIs
syntax element.focus(
options); // object parameter parameters
options optional an optional object providing
options to control aspects of the focusing process.
HTMLSelectElement.add() - Web APIs
inserting to an existing collection var sel = document.getelementbyid("existinglist"); var opt = document.createelement("option"); opt.value = "3"; opt.text = "option: value 3"; sel.add(opt, sel.
options[1]); /* takes the existing following select object: <select id="existinglist"> <option value="1">option: value 1</option> <option value="2">option: value 2</option> </select> and changes it to: <select id="existinglist"> <option value="1">option: value 1</option> <option value="3">option: value 3</option> <option value="2">option: value 2</option> </select> */ ...
HTMLSelectElement.item() - Web APIs
the htmlselectelement.item() method returns the element corresponding to the htmloptionelement whose position in the
options list corresponds to the index given in the parameter, or null if there are none.
HashChangeEvent - Web APIs
examples syntax
options for a hash change you can listen for the hashchange event using any of the following
options: window.onhashchange = funcref; or <body onhashchange="funcref();"> or window.addeventlistener("hashchange", funcref, false); basic example function locationhashchanged() { if (location.hash === '#somecoolfeature') { somecoolfeature(); } } window.addeventlistener('hashchange', location...
IDBFactory.open() - Web APIs
experimental gecko
options object
options (version and storage) optional in gecko, since version 26, you can include a non-standard
options object as a parameter of idbfactory.open that contains the version number of the database, plus a storage value that specifies whether you want to use persistent or temporary storage.
ImageCapture.getPhotoCapabilities() - Web APIs
the getphotocapabilities() method of the imagecapture interface returns a promise that resolves with a photocapabilities object containing the ranges of available configuration
options.
ImageCapture - Web APIs
imagecapture.getphotocapabilities() returns a promise that resolves with a photocapabilities object containing the ranges of available configuration
options.
Browser storage limits and eviction criteria - Web APIs
this will only be evicted if the user chooses to (for example, in firefox you can choose to delete all stored data or only stored data from selected origins by going to preferences and using the
options under privacy & security > cookies & site data).
IntersectionObserver.root - Web APIs
the intersection of this bounding rectangle, offset by any margins specified in the
options passed to the intersectionobserver() constructor, the target element's bounds, minus the bounds of every element or other object which overlaps the target element, is considered to be the visible area of the target element.
KeyframeEffect.target - Web APIs
syntax var targetelement = document.getelementbyid("elementtoanimate"); var keyframes = new keyframeeffect( targetelement, keyframeblock, timing
options ); // returns #elementtoanimate keyframes.target; // assigns keyframes a new target keyframes.target = newtargetelement; value an element, csspseudoelement, or null.
KeyframeEffect - Web APIs
example, the keyframeeffect constructor is used to create a set of keyframes that dictate how the white rabbit should animate down the hole: var rabbitdownkeyframes = new keyframeeffect( whiterabbit, // element to animate [ { transform: 'translatey(0%)' }, // keyframe { transform: 'translatey(100%)' } // keyframe ], { duration: 3000, fill: 'forwards' } // keyframe
options ); specifications specification status comment web animationsthe definition of 'keyframeeffect' in that specification.
LinearAccelerationSensor.LinearAccelerationSensor() - Web APIs
syntax var linearaccelerationsensor = new linearaccelerationsensor([
options]) parameters
options optional
options are as follows: frequency: the desired number of times per second a sample should be taken, meaning the number of times per second that sensor.onreading will be called.
Magnetometer.Magnetometer() - Web APIs
syntax var magnetometer = new magnetometer([
options]) parameters
options optional
options are as follows: frequency: the desired number of times per second a sample should be taken, meaning the number of times per second that sensor.onreading will be called.
MediaElementAudioSourceNode.mediaElement - Web APIs
examples const audioctx = new window.audiocontext(); const audioelem = document.queryselector('audio'); let
options = { mediaelement: audioelem } let source = new mediaelementaudiosourcenode(audioctx,
options); console.log(source.mediaelement); specifications specification status comment web audio apithe definition of 'mediaelementaudiosourcenode.mediaelement' in that specification.
getConfiguration() - Web APIs
the mediakeysystemaccess.getconfiguration() method returns a mediakeysystemconfiguration object with the supported combination of configuration
options.
MediaKeySystemAccess - Web APIs
mediakeysystemaccess.getconfiguration() returns a mediakeysystemconfiguration object with the supported combination of configuration
options.
MediaRecorder.mimeType - Web APIs
if (navigator.mediadevices) { console.log('getusermedia supported.'); var constraints = { audio: true, video: true }; var chunks = []; navigator.mediadevices.getusermedia(constraints) .then(function(stream) { var
options = { audiobitspersecond: 128000, videobitspersecond: 2500000, mimetype: 'video/mp4' } var mediarecorder = new mediarecorder(stream,
options); m = mediarecorder; m.mimetype; // would return 'video/mp4' ...
MediaRecorder.start() - Web APIs
this exception may also be delivered as an error event if the security
options for the source media change after recording begins.
MediaRecorder - Web APIs
options are available to do things like set the container's mime type (such as "video/webm" or "video/mp4") and the bit rates of the audio and video tracks or a single overall bit rate.
MediaStreamAudioSourceNode.mediaStream - Web APIs
examples const audioctx = new window.audiocontext(); let
options = { mediastream : stream } let source = new mediastreamaudiosourcenode(audioctx,
options); console.log(source.mediastream); specifications specification status comment web audio apithe definition of 'mediastreamaudiosourcenode.mediastream' in that specification.
Capabilities, constraints, and settings - Web APIs
navigator.mediadevices.getusermedia({ video: { width: { min: 640, ideal: 1920 }, height: { min: 400, ideal: 1080 }, aspectratio: { ideal: 1.7777777778 } }, audio: { samplesize: 16, channelcount: 2 } }).then(stream => { videoelement.srcobject = stream; }).catch(handleerror); in this example, constraints are applied at getusermedia() time, asking for an ideal set of
options with fallbacks for the video.
MutationObserver.disconnect() - Web APIs
const targetnode = document.queryselector("#someelement"); const observer
options = { childlist: true, attributes: true } const observer = new mutationobserver(callback); observer.observe(targetnode, observer
options); /* some time later...
MutationObserver.takeRecords() - Web APIs
const targetnode = document.queryselector("#someelement"); const observer
options = { childlist: true, attributes: true } const observer = new mutationobserver(callback); observer.observe(targetnode, observer
options); /* ...later, when it's time to stop observing...
MutationObserverInit.characterDataOldValue - Web APIs
syntax var
options = { characterdataoldvalue: true | false } value a boolean value indicating whether or not to set the mutationrecord's oldvalue property to be a string containing the value of the character node's contents prior to the change represented by the mutation record.
MutationObserverInit.childList - Web APIs
syntax var
options = { childlist: true | false } value a boolean value indicating whether or not to invoke the callback function when new nodes are added to or removed from the section of the dom being monitored..
msSaveBlob - Web APIs
notes when a site calls this method, the behavior is the same as when windows internet explorer downloads a file with the following in the header, where x-download-
options removes the file open button from the browser file download dialog: content-length: <blob.size> content-type: <blob.type> content-disposition: attachment;filename=<defaultname> x-download-
options: noopen specifications not part of any specifications.
Notification.body - Web APIs
examples function spawnnotification(thebody, theicon, thetitle) { var
options = { body: thebody, icon: theicon } var n = new notification(thetitle,
options); console.log(n.body); } specifications specification status comment notifications apithe definition of 'body' in that specification.
Notification.title - Web APIs
examples function spawnnotification(thebody,theicon,thetitle) { var
options = { body: thebody, icon: theicon } var n = new notification(thetitle,
options); console.log(n.title) } specifications specification status comment notifications apithe definition of 'title' in that specification.
Notifications API - Web APIs
this must be passed a title argument, and can optionally be passed an
options object to specify
options, such as text direction, body text, icon to display, notification sound to play, and more.
OfflineAudioContext.OfflineAudioContext() - Web APIs
syntax var offlineaudioctx = new offlineaudiocontext(numberofchannels, length, samplerate); var offlineaudioctx = new offlineaudiocontext(
options); parameters you can specify the parameters for the offlineaudiocontext() constructor as either the same set of parameters as are inputs into the audiocontext.createbuffer() method, or by passing those parameters in an
options object.
OffscreenCanvas.convertToBlob() - Web APIs
syntax promise<blob> offscreencanvas.converttoblob(
options); parameters
optionsoptional you can specify several
options when converting your offscreencanvas object into a blob object, for example: const blob = offscreencanvas.converttoblob({ type: "image/jpeg", quality: 0.95 });
options: type: a domstring indicating the image format.
OffscreenCanvas.convertToBlob() - Web APIs
syntax promise<blob> offscreencanvas.converttoblob(
options); parameters
optionsoptional you can specify several
options when converting your offscreencanvas object into a blob object, for example: const blob = offscreencanvas.converttoblob({ type: "image/jpeg", quality: 0.95 });
options: type: a domstring indicating the image format.
OffscreenCanvas.convertToBlob() - Web APIs
syntax promise<blob> offscreencanvas.converttoblob(
options); parameters
options optional you can specify several
options when converting your offscreencanvas object into a blob object, for example: const blob = offscreencanvas.converttoblob({ type: "image/jpeg", quality: 0.95 });
options: type: a domstring indicating the image format.
OrientationSensor - Web APIs
const
options = { frequency: 60, referenceframe: 'device' }; const sensor = new absoluteorientationsensor(
options); sensor.addeventlistener('reading', () => { // model is a three.js object instantiated elsewhere.
PaymentDetailsBase - Web APIs
shipping
optionsoptional an array of paymentshippingoption objects, each describing one available shipping option from which the user may choose.
PaymentDetailsUpdate - Web APIs
shipping
options optional an array of paymentshippingoption objects, each describing one available shipping option from which the user may choose.
PaymentRequest.abort() - Web APIs
var request = new paymentrequest(supportedinstruments, details,
options); var paymenttimeout = window.settimeout(() => { window.cleartimeout(paymenttimeout); request.abort().then(() => { print('payment timed out after 20 minutes.'); }).catch(() => { print('unable to abort, because the user is currently in the process ' + 'of paying.'); }); }, 20 * 60 * 1000); /* 20 minutes */ specifications specification status comment ...
PaymentRequest.onshippingaddresschange - Web APIs
var payment = new paymentrequest(supportedinstruments, details,
options); request.addeventlistener('shippingaddresschange', function(evt) { evt.updatewith(new promise(function(resolve) { updatedetails(details, request.shippingaddress, resolve); })); }); payment.show().then(function(paymentresponse) { // processing of paymentresponse exerpted for the same of clarity.
PaymentRequest: shippingaddresschange event - Web APIs
const paymentrequest = new paymentrequest(methoddata, details,
options); paymentrequest.addeventlistener("shippingaddresschange", event => { let detailsupdate = checkaddress(paymentrequest.shippingaddress); event.updatewith(detailsupate); }, false); const checkaddress = theaddress => { let detailsupdate = {}; // check the address, return a paymentdetailsupdate object // with any changes or errors.
PaymentRequest - Web APIs
paymentrequest.shippingaddress read only secure context if requested via payment
options, returns the shipping address chosen by the user for the purposes of calculating shipping.
PaymentResponse.complete() - Web APIs
var payment = new paymentrequest(supportedinstruments, details,
options); payment.show().then(function(paymentresponse) { var fetch
options = { method: 'post', credentials: include, body: json.stringify(paymentresponse) }; var serverpaymentrequest = new request('secure/payment/endpoint'); fetch(serverpaymentrequest, fetch
options).then( response => { if (response.status < 400) { paymentresponse.complete("success"); } else { paym...
PaymentResponse.payerEmail - Web APIs
this option is only present when the requestpayeremail option is set to true in the payment
options object passed to the paymentrequest constructor.
PayerResponse.payerPhone - Web APIs
this option is only present when the requestpayerphone option is set to true in the payment
options object passed to the paymentrequest constructor.
PerformanceObserverEntryList.getEntries() - Web APIs
syntax general syntax: entries = list.getentries(); entries = list.getentries(performanceentryfilter
options); specific usage: entries = list.getentries({name: "entry_name", entrytype: "mark"}); parameters performanceentryfilter
optionsoptional is a performanceentryfilter
options dictionary, having the following fields: "name", the name of a performance entry.
Using the Permissions API - Web APIs
if we choose to never share our location from the permission prompt (deny permission), then we can't get back to the permission prompt without using the browser menu
options: firefox: tools > page info > permissions > access your location.
PublicKeyCredential.rawId - Web APIs
examples var
options = { challenge: new uint8array(26) /* from the server */, rp: { name: "example corp", id : "login.example.com" }, user: { id: new uint8array(26), /* to be changed for each user */ name: "jdoe@example.com", displayname: "john doe", }, pubkeycredparams: [ { type: "public-key", alg: -7 } ] }; navigator.credentials.create({ publickey:
options })...
PublicKeyCredential.response - Web APIs
examples var
options = { challenge: new uint8array(16) /* from the server */, rp: { name: "example corp", id : "login.example.com" }, user: { id: new uint8array(16) /* from the server */, name: "jdoe@example.com", displayname: "john doe" }, pubkeycredparams: [ { type: "public-key", alg: -7 } ] }; navigator.credentials.create({ publickey:
options }) .then(func...
PublicKeyCredential - Web APIs
var
options = { challenge: new uint8array([/* bytes sent from the server */]) }; navigator.credentials.get({ "publickey":
options }) .then(function (credentialinfoassertion) { // send assertion response back to the server // to proceed with the control of the credential }).catch(function (err) { console.error(err); }); specifications specification status comment ...
RTCConfiguration.certificates - Web APIs
although a given dtls connection only uses a single certificate, providing multiple
options in the certificates list may improve the odds of establishing a connection by increasing the chances a mutually-compatible encryption algorithm and key size may be found.
RTCDataChannel.maxRetransmits - Web APIs
this can only be set when the rtcdatachannel is created by calling rtcpeerconnection.createdatachannel(), using the maxretransmits field in the specified
options.
RTCDataChannel.ordered - Web APIs
this is set when the rtcdatachannel is created, by setting the ordered property on the rtcdatachannelinit object passed as rtcpeerconnection.createdatachannel()'s
options parameter.
RTCIceCandidate.address - Web APIs
you can't specify the address in the
options object, but the address is automatically extracted from the candidate a-line, if it's formatted properly.
RTCIceCandidate.relatedAddress - Web APIs
you can't specify the value of relatedaddress in the
options object, but the address is automatically extracted from the candidate a-line, if it's formatted properly, being taken from its rel-address field.
RTCIceCandidate.relatedPort - Web APIs
you can't specify the value of relatedport in the
options object, but the address is automatically extracted from the candidate a-line, if it's formatted properly, being taken from its rel-port field.
RTCIceCandidate.type - Web APIs
you can't specify the value of type in the
options object, but the address is automatically extracted from the candidate a-line, if it's formatted properly, being taken from its cand-type field.
RTCPeerConnection() - Web APIs
syntax pc = new rtcpeerconnection([configuration]); parameters configuration optional an rtcconfiguration dictionary providing
options to configure the new connection.
RTCPeerConnection - Web APIs
the answer contains information about any media already attached to the session, codecs and
options supported by the browser, and any ice candidates already gathered.
RTCRtpTransceiverInit - Web APIs
the rtcrtptransceiverinit dictionary is used when calling the webrtc function rtcpeerconnection.addtransceiver() to provide configuration
options for the new transceiver.
RTCSessionDescription - Web APIs
the process of negotiating a connection between two peers involves exchanging rtcsessiondescription objects back and forth, with each description suggesting one combination of connection configuration
options that the sender of the description supports.
RelativeOrientationSensor.RelativeOrientationSensor() - Web APIs
syntax var relativeorientationsensor = new relativeorientationsensor([
options]) parameters
options optional
options are as follows: frequency: the desired number of times per second a sample should be taken, meaning the number of times per second that sensor.onreading will be called.
RelativeOrientationSensor - Web APIs
const
options = { frequency: 60, referenceframe: 'device' }; const sensor = new relativeorientationsensor(
options); sensor.addeventlistener('reading', () => { // model is a three.js object instantiated elsewhere.
Report - Web APIs
examples in our deprecation_report.html example, we create a simple reporting observer to observe usage of deprecated features on our web page: let
options = { types: ['deprecation'], buffered: true } let observer = new reportingobserver(function(reports, observer) { reportbtn.onclick = () => displayreports(reports); },
options); we then tell it to start observing reports using reportingobserver.observe(); this tells the observer to start collecting reports in its report queue, and runs the callback function specified inside the constructor:...
ReportingObserver.disconnect() - Web APIs
syntax reportingobserverinstance.disconnect() examples let
options = { types: ['deprecation'], buffered: true } let observer = new reportingobserver(function(reports, observer) { reportbtn.onclick = () => displayreports(reports); },
options); observer.observe() ...
ReportingObserver.observe() - Web APIs
syntax reportingobserverinstance.observe() examples let
options = { types: ['deprecation'], buffered: true } let observer = new reportingobserver(function(reports, observer) { reportbtn.onclick = () => displayreports(reports); },
options); observer.observe() specifications specification status comment reporting apithe definition of 'reportingobserver.observe()' in that specification.
ReportingObserver.takeRecords() - Web APIs
examples let
options = { types: ['deprecation'], buffered: true } let observer = new reportingobserver(function(reports, observer) { reportbtn.onclick = () => displayreports(reports); },
options); observer.observe() // ...
ReportingObserver - Web APIs
examples in our deprecation_report.html example, we create a simple reporting observer to observe usage of deprecated features on our web page: let
options = { types: ['deprecation'], buffered: true } let observer = new reportingobserver(function(reports, observer) { reportbtn.onclick = () => displayreports(reports); },
options); we then tell it to start observing reports using reportingobserver.observe(); this tells the observer to start collecting reports in its report queue, and runs the callback function specified inside the constructor:...
Sensor APIs - Web APIs
notice that detection through the navigator interface is not one of the available
options.
Using server-sent events - Web APIs
for example: const evtsource = new eventsource("ssedemo.php"); if the event generator script is hosted on a different origin, a new eventsource object should be created with both the url and an
options dictionary.
SpeechSynthesis.speak() - Web APIs
inputform.onsubmit = function(event) { event.preventdefault(); var utterthis = new speechsynthesisutterance(inputtxt.value); var selectedoption = voiceselect.selected
options[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } synth.speak(utterthis); inputtxt.blur(); } specifications specification status comment web speech apithe definition of 'speak()' in that specification.
SpeechSynthesis - Web APIs
option.setattribute('data-name', voices[i].name); voiceselect.appendchild(option); } } populatevoicelist(); if (speechsynthesis.onvoiceschanged !== undefined) { speechsynthesis.onvoiceschanged = populatevoicelist; } inputform.onsubmit = function(event) { event.preventdefault(); var utterthis = new speechsynthesisutterance(inputtxt.value); var selectedoption = voiceselect.selected
options[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } utterthis.pitch = pitch.value; utterthis.rate = rate.value; synth.speak(utterthis); inputtxt.blur(); } specifications specification status comment web speech apithe definition of 'speechsynthesis' in that ...
SpeechSynthesisErrorEvent.error - Web APIs
inputform.onsubmit = function(event) { event.preventdefault(); var utterthis = new speechsynthesisutterance(inputtxt.value); var selectedoption = voiceselect.selected
options[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } synth.speak(utterthis); utterthis.onerror = function(event) { console.error('an error has occurred with the speech synthesis: ' + event.error); } inputtxt.blur(); } specifications specification status comment...
SpeechSynthesisErrorEvent - Web APIs
inputform.onsubmit = function(event) { event.preventdefault(); var utterthis = new speechsynthesisutterance(inputtxt.value); var selectedoption = voiceselect.selected
options[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } synth.speak(utterthis); utterthis.onerror = function(event) { console.log('an error has occurred with the speech synthesis: ' + event.error); } inputtxt.blur(); } specifications specification status comment ...
SpeechSynthesisUtterance.SpeechSynthesisUtterance() - Web APIs
inputform.onsubmit = function(event) { event.preventdefault(); var utterthis = new speechsynthesisutterance(inputtxt.value); var selectedoption = voiceselect.selected
options[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } synth.speak(utterthis); inputtxt.blur(); } specifications specification status comment web speech apithe definition of 'speechsynthesisutterance()' in that specification.
SpeechSynthesisUtterance.lang - Web APIs
inputform.onsubmit = function(event) { event.preventdefault(); var utterthis = new speechsynthesisutterance(inputtxt.value); var selectedoption = voiceselect.selected
options[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } utterthis.lang = 'en-us'; synth.speak(utterthis); inputtxt.blur(); } specifications specification status comment web speech apithe definition of 'lang' in that specification.
SpeechSynthesisUtterance.onboundary - Web APIs
inputform.onsubmit = function(event) { event.preventdefault(); var utterthis = new speechsynthesisutterance(inputtxt.value); var selectedoption = voiceselect.selected
options[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } synth.speak(utterthis); utterthis.onboundary = function(event) { console.log(event.name + ' boundary reached after ' + event.elapsedtime + ' milliseconds.'); } inputtxt.blur(); } specifications specification sta...
SpeechSynthesisUtterance.onend - Web APIs
inputform.onsubmit = function(event) { event.preventdefault(); var utterthis = new speechsynthesisutterance(inputtxt.value); var selectedoption = voiceselect.selected
options[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } synth.speak(utterthis); utterthis.onend = function(event) { console.log('utterance has finished being spoken after ' + event.elapsedtime + ' milliseconds.'); } inputtxt.blur(); } specifications specification sta...
SpeechSynthesisUtterance.onerror - Web APIs
inputform.onsubmit = function(event) { event.preventdefault(); var utterthis = new speechsynthesisutterance(inputtxt.value); var selectedoption = voiceselect.selected
options[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } synth.speak(utterthis); utterthis.onerror = function(event) { console.log('an error has occurred with the speech synthesis: ' + event.error); } inputtxt.blur(); } specifications specification status comment ...
SpeechSynthesisUtterance.onmark - Web APIs
inputform.onsubmit = function(event) { event.preventdefault(); var utterthis = new speechsynthesisutterance(inputtxt.value); var selectedoption = voiceselect.selected
options[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } synth.speak(utterthis); utterthis.onmark = function(event) { console.log('a mark was reached: ' + event.name); } inputtxt.blur(); } specifications specification status comment web speech apithe defin...
SpeechSynthesisUtterance.onpause - Web APIs
inputform.onsubmit = function(event) { event.preventdefault(); var utterthis = new speechsynthesisutterance(inputtxt.value); var selectedoption = voiceselect.selected
options[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } synth.speak(utterthis); utterthis.onpause = function(event) { console.log('speech paused after ' + event.elapsedtime + ' milliseconds.'); } inputtxt.blur(); } specifications specification status comment ...
SpeechSynthesisUtterance.onresume - Web APIs
inputform.onsubmit = function(event) { event.preventdefault(); var utterthis = new speechsynthesisutterance(inputtxt.value); var selectedoption = voiceselect.selected
options[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } synth.speak(utterthis); utterthis.onresume = function(event) { console.log('speech resumed after ' + event.elapsedtime + ' milliseconds.'); } inputtxt.blur(); } specifications specification status comment ...
SpeechSynthesisUtterance.onstart - Web APIs
inputform.onsubmit = function(event) { event.preventdefault(); var utterthis = new speechsynthesisutterance(inputtxt.value); var selectedoption = voiceselect.selected
options[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } synth.speak(utterthis); utterthis.onstart = function(event) { console.log('we have started uttering this speech: ' + event.utterance.text); } inputtxt.blur(); } specifications specification status comment ...
SpeechSynthesisUtterance.pitch - Web APIs
inputform.onsubmit = function(event) { event.preventdefault(); var utterthis = new speechsynthesisutterance(inputtxt.value); var selectedoption = voiceselect.selected
options[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } utterthis.pitch = 1.5; synth.speak(utterthis); inputtxt.blur(); } specifications specification status comment web speech apithe definition of 'pitch' in that specification.
SpeechSynthesisUtterance.rate - Web APIs
inputform.onsubmit = function(event) { event.preventdefault(); var utterthis = new speechsynthesisutterance(inputtxt.value); var selectedoption = voiceselect.selected
options[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } utterthis.rate = 1.5; synth.speak(utterthis); inputtxt.blur(); } specifications specification status comment web speech apithe definition of 'rate' in that specification.
SpeechSynthesisUtterance.text - Web APIs
inputform.onsubmit = function(event) { event.preventdefault(); var utterthis = new speechsynthesisutterance(inputtxt.value); var selectedoption = voiceselect.selected
options[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } console.log(utterthis.text); synth.speak(utterthis); inputtxt.blur(); } specifications specification status comment web speech apithe definition of 'text' in that specification.
SpeechSynthesisUtterance.voice - Web APIs
inputform.onsubmit = function(event) { event.preventdefault(); var utterthis = new speechsynthesisutterance(inputtxt.value); var selectedoption = voiceselect.selected
options[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } synth.speak(utterthis); inputtxt.blur(); } specifications specification status comment web speech apithe definition of 'voice' in that specification.
SpeechSynthesisUtterance.volume - Web APIs
inputform.onsubmit = function(event) { event.preventdefault(); var utterthis = new speechsynthesisutterance(inputtxt.value); var selectedoption = voiceselect.selected
options[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } utterthis.volume = 0.5; synth.speak(utterthis); inputtxt.blur(); } specifications specification status comment web speech apithe definition of 'volume' in that specification.
SpeechSynthesisVoice.localService - Web APIs
the localservice read-only property of the speechsynthesisvoice interface returns a boolean indicating whether the voice is supplied by a local speech synthesizer service (true), or a remote speech synthesizer service (false.) this property is provided to allow differentiation in the case that some voice
options are provided by a remote service; it is possible that remote voices might have extra latency, bandwidth or cost associated with them, so such distinction may be useful.
SpeechSynthesisVoice - Web APIs
option.setattribute('data-name', voices[i].name); voiceselect.appendchild(option); } } populatevoicelist(); if (speechsynthesis.onvoiceschanged !== undefined) { speechsynthesis.onvoiceschanged = populatevoicelist; } inputform.onsubmit = function(event) { event.preventdefault(); var utterthis = new speechsynthesisutterance(inputtxt.value); var selectedoption = voiceselect.selected
options[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } utterthis.pitch = pitch.value; utterthis.rate = rate.value; synth.speak(utterthis); utterthis.onpause = function(event) { var char = event.utterance.text.charat(event.charindex); console.log('speech paused at character ' + ...
SubmitEvent - Web APIs
constructor submitevent() creates and returns a new submitevent object whose type and other
options are configured as specified.
TransformStream - Web APIs
chunk)) } } let _jstes_wm = new weakmap(); /* info holder */ class jstextencoderstream extends transformstream { constructor() { let t = {...tes} super(t) _jstes_wm.set(this, t) } get encoding() {return _jstes_wm.get(this).encoder.encoding} } similarly, textdecoderstream can be written as such: const tes = { start(){ this.decoder = new textdecoder(this.encoding, this.
options) }, transform(chunk, controller) { controller.enqueue(this.decoder.decode(chunk)) } } let _jstds_wm = new weakmap(); /* info holder */ class jstextdecoderstream extends transformstream { constructor(encoding = 'utf-8', {...
options} = {}) { let t = {...tds, encoding,
options} super(t) _jstes_wm.set(this, t) } get encoding() {return _jstds_wm.get(this).decoder.encoding}...
WakeLock.request() - Web APIs
syntax var wakelock = navigator.wakelock.request(type); parameters type
options are as follows: 'screen': requests a screen wake lock.
WebGLProgram - Web APIs
examples using the program the steps to actually do some work with the program involve telling the gpu to use the program, bind the appropriate data and configuration
options, and finally draw something to the screen.
WebGL best practices - Web APIs
imagebitmap creation using the imagebitmap
options dictionary is essential for properly preparing textures for upload to webgl, but unfortunately there's no obvious way to query exactly which dictionary members are supported by a given browser.
Using WebRTC data channels - Web APIs
let datachannel = pc.createdatachannel("myapp channel"); datachannel.addeventlistener("open", (event) => { begintransmission(datachannel); }); manual negotiation to manually negotiate the data channel connection, you need to first create a new rtcdatachannel object using the createdatachannel() method on the rtcpeerconnection, specifying in the
options a negotiated property set to true.
WebRTC API - Web APIs
dictionaries rtcconfiguration used to provide configuration
options for an rtcpeerconnection.
WebRTC Statistics API - Web APIs
try { mypeerconnection = new rtcpeerconnection(pc
options); statsinterval = window.setinterval(getconnectionstats, 1000); /* add event handlers, etc */ } catch(err) { console.error("error creating rtcpeerconnection: " + err); } function getconnectionstats() { mypeerconnection.getstats(null).then(stats => { var statsoutput = ""; stats.foreach(report => { if (report.type === "inbound-rtp" && report.kind === "video") { obje...
Writing a WebSocket server in C# - Web APIs
nfinite cycle to be able to handle every change in stream while (true) { while (!stream.dataavailable); while (client.available < 3); // match against "get" byte[] bytes = new byte[client.available]; stream.read(bytes, 0, client.available); string s = encoding.utf8.getstring(bytes); if (regex.ismatch(s, "^get", regex
options.ignorecase)) { console.writeline("=====handshaking from client=====\n{0}", s); // 1.
Using bounded reference spaces - Web APIs
the
options specified when requesting the session indicate that at a minimum, the session must be compatible with the local-floor reference space, but that it would be nice if the bounded-floor space were supported as well.
WebXR Device API - Web APIs
using webxr input profiles a guide to interpreting the json data provided by the webxr input profiles registry, which can be used to determine what
options and controls are available on the user's available input devices.
Using IIR filters - Web APIs
setting our iirfilter co-efficients when creating an iir filter, we pass in the feedforward and feedback coefficients as
options (coefficients is how we describe the values).
Web audio spatialization basics - Web APIs
as if its extensive variety of sound processing (and other)
options wasn't enough, the web audio api also includes facilities to allow you to emulate the difference in sound as a listener moves around a sound source, for example panning as you move around a sound source inside a 3d game.
Web Audio API - Web APIs
audiocontext
options the audiocontext
options dictionary is used to provide
options when instantiating a new audiocontext.
Web Storage API - Web APIs
when you choose different
options, the page is instantly updated; in addition your choices are stored in localstorage, so that when you leave the page then load it again later on your choices are remembered.
Window.open() - Web APIs
these features include
options such as the window's default size and position, whether or not to include toolbar, and so forth.
Window.speechSynthesis - Web APIs
option.setattribute('data-name', voices[i].name); voiceselect.appendchild(option); } } populatevoicelist(); if (speechsynthesis.onvoiceschanged !== undefined) { speechsynthesis.onvoiceschanged = populatevoicelist; } inputform.onsubmit = function(event) { event.preventdefault(); var utterthis = new speechsynthesisutterance(inputtxt.value); var selectedoption = voiceselect.selected
options[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } synth.speak(utterthis); inputtxt.blur(); } specifications specification status comment web speech apithe definition of 'speechsynthesis' in that specification.
XMLHttpRequest.getAllResponseHeaders() - Web APIs
an example of what a raw header string looks like: date: fri, 08 dec 2017 21:04:30 gmt\r\n content-encoding: gzip\r\n x-content-type-
options: nosniff\r\n server: meinheld/0.6.1\r\n x-frame-
options: deny\r\n content-type: text/html; charset=utf-8\r\n connection: keep-alive\r\n strict-transport-security: max-age=63072000\r\n vary: cookie, accept-encoding\r\n content-length: 6502\r\n x-xss-protection: 1; mode=block\r\n each line is terminated by both carriage return and line feed characters (\r\n).
XRInputSourceEventInit - Web APIs
the xrinputsourceeventinit dictionary is used when calling the xrinputsourceevent() constructor to provide configuration
options for the newly-created xrinputsourceevent object to take on.
XRInputSourcesChangeEventInit - Web APIs
the xrinputsourceschangeeventinit dictionary is used to provide
options to the xrinputsourceschangeevent() constructor in order to set the initial state of the new xrinputsourceschangeevent object.
XRSession - Web APIs
renderstate read only an xrrenderstate object which contains
options affecting how the imagery is rendered.
XRWebGLLayer.ignoreDepthValues - Web APIs
this is demonstrated in the snippet of code below: const gllayer
options = { ignoredepthvalues: true }; let gllayer = new xrwebgllayer(xrsession, gl, gllayer
options); specifications specification status comment webxr device apithe definition of 'xrwebgllayer.ignoredepthvalues' in that specification.
XRWebGLLayerInit.antialias - Web APIs
let
options = { antialias: getpreferencevalue("antialiasing") }; let gllayer = new xrwebgllayer(xrsession, gl,
options); if (gllayer) { xrsession.updaterenderstate({ baselayer: gllayer }); } offering the user features such as the ability to enable or disable things like anti-aliasing can provide them with optiions to try when your app isn't performing as well as they'd like.
XRWebGLLayerInit.ignoreDepthValues - Web APIs
the xrwebgllayerinit dictionary's boolean ignoredepthvalues property can be provided in the
options passed into the xrwebgllayer() constructor to indicate that the depth buffer, if it exists, should be ignored while composing the scene.
ARIA live regions - Accessibility
n; } else { planettitle.textcontent = 'no planet selected'; planetdescription.textcontent = 'select a planet to view its description'; } } const renderplanetinfobutton = document.queryselector('#renderplanetinfobutton'); renderplanetinfobutton.addeventlistener('click', event => { const planetsselect = document.queryselector('#planetsselect'); const selectedplanet = planetsselect.
options[planetsselect.selectedindex].value; renderplanetinfo(selectedplanet); }); as the user selects a new planet, the information in the live region will be announced.
Using the alert role - Accessibility
the pseudo code snippet below illustrates this approach: <p id="forminstruction">you must select at least 3
options</p> // when the user tries to submit the form with less than 3 checkboxes selected: document.getelementbyid("forminstruction").setattribute("role", "alert"); example 4: making an element with an alert role visible if an element already has role="alert" and is initially hidden using css, making it visible will cause the alert to fire as if it was just added to the page.
Using the radio role - Accessibility
<h3 id="rg1_label">lunch
options</h3> <ul class="radiogroup" id="rg1" role="radiogroup" aria-labelledby="rg1_label"> <li id="r1" tabindex="-1" role="radio" aria-checked="false"> <img role="presentation" src="radio-unchecked.gif" /> thai </li> <li id="r2" tabindex="-1" role="radio" aria-checked="false"> <img role="presentation" src="radio-unchecked.gif" /> subway </li> <li id="r3" tabindex="0" role="radio" aria...
Basic form hints - Accessibility
<h3 id="rg1_label">lunch
options</h3> <ul class="radiogroup" id="rg1" role="radiogroup" aria-labelledby="rg1_label"> <li id="r1" tabindex="-1" role="radio" aria-checked="false"> <img role="presentation" src="radio-unchecked.gif" /> thai </li> <li id="r2" tabindex="-1" role="radio" aria-checked="false"> <img role="presentation" src="radio-unchecked.gif" /> subway </li> <li id="r3" tabindex="0" role="radio...
Cognitive accessibility - Accessibility
timers
options for adjusting time requirements include: allowing the user to turn off or adjust the time to at least 10 times the original limit before encountering it.
Operable - Accessibility
for example, if you press enter/return on a focused button to open an
options window, you should be able to close that window again and return to the main content using the keyboard.
Perceivable - Accessibility
see text alternatives for static caption
options, and audio transcripts, video text tracks, and other multimedia content for other alternatives.
Understandable - Accessibility
success criteria how to conform to the criteria practical resource 3.3.1 error identification (a) when a user is filling out a form or choosing between
options, any error that is detected should be clearly reported to the user, along with the form control that the error relates to.
suffix - CSS: Cascading Style Sheets
r-color-stop> = <color> && <color-stop-angle>?<angular-color-hint> = <angle-percentage>where <color-stop-length> = <length-percentage>{1,2}<color-stop-angle> = <angle-percentage>{1,2}<angle-percentage> = <angle> | <percentage> examples setting a suffix for a counter html <ul class="choices"> <li>one</li> <li>two</li> <li>three</li> <li>none of the above</li> </ul> css @counter-style
options { system: fixed; symbols: a b c d; suffix: ") "; } .choices { list-style:
options; } result specifications specification status comment css counter styles level 3the definition of 'suffix' in that specification.
Linear-gradient Generator - CSS: Cascading Style Sheets
ue'); this.select.textcontent = node.textcontent; this.select.setattribute('data-value', this.value['value']); if (send_notify !== false) notify.call(this); }; var clickout = function clickout(e) { if (active.state === 0 || e.target === active.dropmenu || e.target === active.select) return; active.toggle(false); }; var createdropdown = function createdropdown(topic,
options) { var dropdown = document.createelement('div'); dropdown.setattribute('data-topic', topic); dropdown.classname = 'ui-dropdown'; for (var i in
options) { var x = document.createelement('div'); x.setattribute('data-value', i); x.textcontent =
options[i]; dropdown.appendchild(x); } new dropdown(dropdown); return dropdown; }; var setvalue = function setvalue(topic, i...
background-blend-mode - CSS: Cascading Style Sheets
sity</option> </select> #div { width: 300px; height: 300px; background: url('https://mdn.mozillademos.org/files/8543/br.png'),url('https://mdn.mozillademos.org/files/8545/tr.png'); background-blend-mode: screen; } document.getelementbyid("select").onchange = function(event) { document.getelementbyid("div").style.backgroundblendmode = document.getelementbyid("select").selected
options[0].innerhtml; } console.log(document.getelementbyid('div')); specifications specification status comment compositing and blending level 1the definition of 'background-blend-mode' in that specification.
Intl.Locale - JavaScript
examples basic usage at its very simplest, the intl.locale constructor takes a locale identifier string as its argument: let us = new intl.locale('en-us'); using the locale constructor with an
options object the constructor also takes an optional configuration object argument, which can contain any of several extension types.
Intl.PluralRules - JavaScript
instance methods intl.pluralrules.prototype.resolved
options() returns a new object with properties reflecting the locale and collation
options computed during initialization of the object.
Number - JavaScript
number.prototype.tolocalestring([locales [,
options]]) returns a string with a language sensitive representation of this number.
Object.defineProperty() - JavaScript
in order to ensure these defaults are preserved, you might freeze the object.prototype upfront, specify all
options explicitly, or point to null with object.create(null).
Promise - JavaScript
when either of these
options happens, the associated handlers queued up by a promise's then method are called.
String - JavaScript
string.prototype.localecompare(comparestring [, locales [,
options]]) returns a number indicating whether the reference string comparestring comes before, after, or is equivalent to the given string in sort order.
Logical nullish assignment (??=) - JavaScript
y; examples using logical nullish assignment function config(
options) {
options.duration ??= 100;
options.speed ??= 25; return
options; } config({ duration: 125 }); // { duration: 125, speed: 25 } config({}); // { duration: 100, speed: 25 } specifications specification logical assignment operatorsthe definition of 'assignment operators' in that specification.
export - JavaScript
ort from 'bar.js'; // valid export defaultexport from 'bar.js'; // invalid the correct way of doing this is to rename the export: export { default as defaultexport } from 'bar.js'; examples using named exports in a module my-module.js, we could include the following code: // module "my-module.js" function cube(x) { return x * x * x; } const foo = math.pi + math.sqrt2; var graph = {
options: { color:'white', thickness:'2px' }, draw: function() { console.log('from graph draw function'); } } export { cube, foo, graph }; then in the top-level module included in your html page, we could have: import { cube, foo, graph } from './my-module.js'; graph.
options = { color:'blue', thickness:'3px' }; graph.draw(); console.log(cube(3)); // 27 console.log(foo...
for...in - JavaScript
given that for...in is built for iterating object properties, not recommended for use with arrays, and
options like array.prototype.foreach() and for...of exist, what might be the use of for...in at all?
Image file type and format guide - Web media technologies
indexed color n/a n/a greyscale with alpha n/a n/a true color with alpha n/a n/a compression lossless licensing open source choosing an image format picking the best image format for your needs is likely easier than video formats, as there are fewer
options with broad support, and each tends to have a specific set of use-cases.
Guide to streaming audio and video - Web media technologies
in this guide, we'll examine the techniques used to stream audio and/or video media on the web, and how you can optimize your code, your media, your server, and the
options you use while performing the streaming to bring out the best quality and performance possible.
Lazy loading - Web Performance
event handlers when browser compatibility is crucial, there are a few
options: polyfill intersection observer fallback to scroll, resize or orientation change event handlers to determine if a specific element is in viewport specifications specification status comment html living standard living standard ...
Understanding latency - Web Performance
different browser developer tools have different preset
options, the characteristics emulated include download speed, upload speed, and minimum latency, or the minimum amount of type it takes to send a packet of data.
Progressive web app structure - Progressive web apps (PWAs)
tion(); } }); }); the last block creates notifications that display a randomly-selected item from the games list: function randomnotification() { var randomitem = math.floor(math.random()*games.length); var notiftitle = games[randomitem].name; var notifbody = 'created by '+games[randomitem].author+'.'; var notifimg = 'data/img/'+games[randomitem].slug+'.jpg'; var
options = { body: notifbody, icon: notifimg } var notif = new notification(notiftitle,
options); settimeout(randomnotification, 30000); } the service worker the last file we will quickly look at is the service worker: sw.js — it first imports data from the games.js file: self.importscripts('data/games.js'); next, it creates a list of all the files to be cached, both from...
Installing and uninstalling web apps - Progressive web apps (PWAs)
among the
options should be the "add to home screen" option, unless it's been specifically removed from the list by the user editing the optons displayed: choosing "add to home screen" here presents the confirmation dialog box, which not only confirms that the user wants to add the app to the home screen, but also lets the user customize its name.
Mobile first - Progressive web apps (PWAs)
so, if you were planning to have a vertical navigation menu on desktop, you might replace this on mobile with a select menu containing the
options, or even a single button that when pressed brings the navigation
options up in an overlay.
Structural overview of progressive web apps - Progressive web apps (PWAs)
randomnotification(); } }); }); the randomnotification() function follows, rounding out the last of the code in the file: function randomnotification() { var randomitem = math.floor(math.random()*games.length); var notiftitle = games[randomitem].name; var notifbody = 'created by '+games[randomitem].author+'.'; var notifimg = 'data/img/'+games[randomitem].slug+'.jpg'; var
options = { body: notifbody, icon: notifimg } var notif = new notification(notiftitle,
options); settimeout(randomnotification, 30000); } the service worker the last file we'll briefly look at here is the service worker, which is found in the file sw.js.
fill-rule - SVG: Scalable Vector Graphics
--> <polygon fill-rule="evenodd" stroke="red" points="150,0 121,90 198,35 102,35 179,90"/> </svg> usage notes value nonzero | evenodd default value nonzero animatable yes the fill-rule attribute provides two
options for how the inside (that is, the area to be filled) of a shape is determined: nonzero the value nonzero determines the "insideness" of a point in the shape by drawing a ray from that point to infinity in any direction, and then examining the places where a segment of the shape crosses the ray.
<cursor> - SVG: Scalable Vector Graphics
if a different image format is used, this format should support the definition of a transparency mask (two
options: provide an explicit alpha channel or use a particular pixel color to indicate transparency).
SVG 2 support in Mozilla - SVG: Scalable Vector Graphics
ever implemented (prototype removed in bug 921456) svgcolor and svgicccolor removed never implemented svgelement.focus(), svgelement.blur() not implemented (bug 778654) svgelement.tabindex implemented (bug 778654) document.activeelement implementation status unknown globaleventhandlers on svgelement implementation status unknown
options dictionary attribute for svggraphicselement.getbbox() implemented behind the preference svg.new-getbbox.enabled (bug 999964, bug 1019326) allow leading and trailing whitespace in <length>, <angle>, <number> and <integer> implementation status unknown form feed (u+000c) in whitespace implementation status unknown svgelement.xmlbase, svgelement.xmllang and svgele...
Patterns - SVG: Scalable Vector Graphics
all three of the preceding examples are shown below on a rectangle that has been slightly elongated to a height of 300px, but i should note that it's not an exhaustive picture, and there are other
options available depending on your application.
Securing your site - Web security
the x-frame-
options response header the x-frame-
options: http response header can be used to indicate whether or not a browser should be allowed to render a page in a <frame>.