Search completed in 1.42 seconds.
XRReferenceSpace.getOffsetReferenceSpace() - Web APIs
the xr
referencespace interface's getoffset
referencespace() method returns a new
reference space object which describes the relative difference in position between the object on which the method is called and a given point in 3d space.
... the object returned by getoffset
referencespace() is an xr
referencespace if called on an xr
referencespace, or an xrbounded
referencespace if called on an object of that type.
... in other words, when you have an object in 3d space and need to position another object relative to that one, you can call getoffset
referencespace(), passing into it the position and orientation you want the second object to have relative to the position and orientation of the object on which you call getoffset
referencespace().
...And 15 more matches
Preference reference
accessibility.tabfocusthe p
reference accessibility.tabfocus controls what elements receive focus when the user presses the tab key.browser.altclicksavethe p
reference browser.altclicksave controls whether clicking a link while holding the alt key starts the download of that link.browser.dom.window.dump.enabledthis setting enables the dump function, which sends messages to the system console.
... set it to true to enable it, or false to disable it.browser.dom.window.dump.filebrowser.dom.window.dump.file redirects the ouput of window.dump() calls to a file whose address is specified in this p
reference if browser.dom.window.dump.enabled is set to true.
...if set to true, the data is stored as content p
reference.browser.pagethumbnails.capturing_disabledthe p
reference browser.pagethumbnails.capturing_disabled controls whether the application creates screenshots of visited pages which will be shown if the web page is shown in the grid of the "new tab page" (about:newtab) which offers the most often visited pages for fast navigation.browser.search.context.loadinbackgroundbrowser.search.context.loadinbackground controls whether a search from the context menu with "search <search engine> for <selected text>"...
...And 6 more matches
ReferenceError: reference to undefined property "x" - JavaScript
the javascript warning "
reference to undefined property" occurs when a script attempted to access an object property which doesn't exist.
... message
referenceerror:
reference to undefined property "x" (firefox) error type (firefox only)
referenceerror warning which is reported only if javascript.options.strict p
reference is set to true.
...there are two ways to access properties; see the property accessors
reference page to learn more about them.
...And 2 more matches
XRReferenceSpaceEventInit.referenceSpace - Web APIs
the xr
referencespaceeventinit property
referencespace is used to establish the value of a newly-constructed xr
referencespaceevent object when calling the xr
referencespaceevent() constructor.
... syntax let eventinitdict = {
referencespace: xr
referencespace, transform: xrrigidtransform }); value an xr
referencespace indicating the source of the event.
... examples this simple snippet calls the constructor to create a new
reference space event of type reset.
... let refspaceevent = new xr
referencespaceevent("reset", {
referencespace: myrefspace, transform: mytransform }); specifications specification status comment webxr device apithe definition of 'xr
referencespaceeventinit.
referencespace' in that specification.
XRReferenceSpaceEvent.referenceSpace - Web APIs
the read-only xr
referencespaceevent property
referencespace specifies the
reference space which is the originator of the event.
... syntax let refspace = xr
referencespaceevent.
referencespace; value an xr
referencespace indicating the source of the event.
... examples specifications specification status comment webxr device apithe definition of 'xr
referencespaceevent.
referencespace' in that specification.
Handling Preferences - Archive of obsolete content
« previousnext » p
references in firefox mozilla applications are highly customizable.
... p
references are used to store settings and information to change their default behavior.
... to open the p
references window in firefox, select the following from the main menu: on windows, tools > options on mac, firefox > p
references on linux, edit > p
references note: keep in mind the usage of the terms "p
references" and "options" in different platforms.
...And 69 more matches
Preferences - Archive of obsolete content
this article provides examples for extension developers that wish to use the mozilla p
references system.
...for more details on p
references in mozilla, see p
references system.
... if you haven't yet, read other documents about mozilla p
references on mdn (links below in resources section).
...And 63 more matches
Geometry and reference spaces in WebXR - Web APIs
in this article, we introduce the ways in which webxr expands upon the geometry of webgl, and how the positions and orientations of objects—both physical and virtual—are described in relation to one another using spaces and, in particular,
reference spaces.
... on the origins of spaces a complete xr-enhanced scene—whether virtual or augmented—is a composite of anywhere from one to potentially dozens of frames of
reference.
...that's where
reference spaces come in.
...And 49 more matches
Adding preferences to an extension - Archive of obsolete content
it also adds a p
reference dialog that lets you switch to a stock other than one of the ones included in the popup menu.
... as before, concepts covered in the previous articles in this series won't be rehashed here, so if you haven't already seen them: creating a status bar extension creating a dynamic status bar extension also, for
reference, you may want to take a look at p
references system and the p
references api.
... please note that if you are using code from this tutorial to add to an existing extension, you must uninstall and reinstall your extension to enable the p
references button for your extension in the add-ons list.
...And 38 more matches
A brief guide to Mozilla preferences
it provides a general overview of mozilla p
references, including where p
references are stored, a file-by-file analysis of p
reference loading sequence, and information on editing p
references.
... what is a p
reference?
... a p
reference is any value or defined behavior that can be set (presumably, one setting is preferable to another).
...And 36 more matches
Weak reference
in xpcom, a weak
reference is a special object that contains a pointer to an xpcom object, but doesnot keep that object alive.
... if the referent object is destroyed before the weak
reference, the pointer inside the weak
reference is set to nsnull.
... when you hold an owning
reference on an object (i.e., you have addrefed it), you are holding that object in existence for the duration of your
reference.
...And 35 more matches
preference - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] declares a p
reference that may be adjusted in a prefpane.
... this element must be placed inside a p
references element.
... each p
reference element corresponds to a p
reference which is stored in the user's p
references file.
...And 33 more matches
Using bounded reference spaces - Web APIs
among the various
reference spaces available in the webxr set of apis, the bounded-floor
reference space is somehwat unique.
... not only is it represented by a unique subclass, xrbounded
referencespace, but it's the only one which restricts movement based not upon virtual restrictions but upon limitations imposed by the real world.
... this article examines bounded
reference spaces as represented by xrbounded
referencespace, describing what they are and how they're used.
...And 33 more matches
XRReferenceSpace - Web APIs
the webxr device api's xr
referencespace interface describes the coordinate system for a specific tracked entity or object within the virtual world using a specified tracking behavior.
... the tracking behavior is defined by the selected
reference space type.
... it expands upon the base class, xrspace, by adding support for several different tracking behaviors as well as to request a new
reference space which describes the offset transform between the tracked object and another location in the world.
...And 32 more matches
preferences/service - Archive of obsolete content
access the p
references system in firefox.
...these are the same p
references that are exposed to users in the about:config page.
... p
references/service gives you full access to the p
references system.
...And 25 more matches
Spaces and reference spaces: Spatial tracking in WebXR - Web APIs
in this guide, we'll explore how webxr uses spaces and, more specifically,
reference spaces, to track the positions, orientations, and movements of objects and of the user's body in the virtual world.
... note: this article presumes that you are familiar with the concepts introduced in geometry and
reference spaces in webxr: that is, the basics of 3d coordinate systems, as well as webxr spaces,
reference spaces, and how
reference spaces are used to create local coordinate systems for individual objects or movable components within a scene.
... representing a position using a
reference space as covered in defining spatial relationships with
reference spaces in geometry and
reference spaces in webxr,
reference spaces establish a local coordinate system which is offset from another coordinate system that is itself defined by some other space.
...And 20 more matches
extIPreferenceBranch
this content covers features introduced in thunderbird 3 the extip
referencebranch interface provides simplified access to p
references.
... the interface has a predefined root p
reference branch.
...for example, an extension's p
references has a root of "extensions.extensionid.", while the application-level p
references have an empty root.
...And 17 more matches
Reference - Archive of obsolete content
there are 5 cases where "javascript1.2" is mentioned in this
reference: special:search?search=javascript1.2&go=go.
...--maian 23:43, 21 september 2005 (pdt) i think we need a new section in the
reference that specifies the differences between versions, collecting this information into a single location rather than leaving it scattered haphazardly throughout the
reference as it currently is.
...--maian 05:10, 22 september 2005 (pdt) if the examples are there specifically to show the differences between two versions of js, and if we have a section in the
reference that is dedicated to discussing these differences, i would think that those samples should be included in that section of the
reference.
...And 13 more matches
Reference Manual
the basics design an nscomptr is designed to be a complete replacement for raw xpcom interface pointers where they are used as owning
references.
...most of the work of being an owning
reference can be done in the constructor, destructor, and assignment operators of nscomptr.
...null-de
reference safeguards an nscomptr will also assert at runtime if you try to de
reference it when it is void, e.g., nscomptr<nsifoo> foo; // note: default initialized to |0| foo->dosomething(); // ns_precondition: "you can't de
reference a null nscomptr with operator->()" a similar precondition intervenes on behalf of operator*.
...And 13 more matches
XRSession.requestReferenceSpace() - Web APIs
the request
referencespace() method of the xrsession interface returns a promise that resolves with an instance of either xr
referencespace or xrbounded
referencespace as appropriate given the type of
reference space requested.
... syntax refspacepromise = xrsession.request
referencespace(
referencespacetype); parameters type a domstring specifying the type of
reference space for which an instance is to be returned.
... the string must be one of those found in the xr
referencespacetype enumerated type.
...And 13 more matches
Using content preferences - Archive of obsolete content
firefox 3 introduces the concept of content p
references.
... this permits code running within chrome (in other words: extensions and the browser itself, not web sites) to locally save p
references on a per-site basis.
...the content p
references service, implemented by nsicontentprefservice, offers functions for setting and retrieving p
references for specific sites or in the global p
reference space; global p
references are used whenever a site-specific p
reference isn't available.
...And 11 more matches
XRReferenceSpaceType - Web APIs
the xr
referencespacetype enumerated type defines the strings which identify the types of
reference spaces supported by webxr.
... this type is used when calling the request
referencespace() method to obtain a
reference space for an xrsession.
... values the
reference space returned by xrsession.request
referencespace() is either xr
referencespace or xrbounded
referencespace.
...And 10 more matches
Preferences
the p
reference system makes it possible to store data for mozilla applications using a key/value pairing system.
... these articles provide information about how to use the p
reference system.
... documentation p
references system an introduction to using the p
reference system in mozilla.
...And 9 more matches
XRReferenceSpace: reset event - Web APIs
the reset event is sent to an xr
referencespace object when a discontinuity is detected in either the native origin or the effective origin, causing a jump in the position or orientation of objects oriented using the
reference space.
... in the case of xrbounded
referencespace objects, the reset event can also be fired when the boundsgeometry changes.
... bubbles yes cancelable no interface xr
referencespaceevent event handler property onreset usage notes the reset event indicates that the coordinate system has been reset or reconfigured by changing the
reference space's origin, moving and rotating it as indicated by the event's transform property.
...And 9 more matches
ReferenceError - JavaScript
the
referenceerror object represents an error when a non-existent variable is
referenced.
... constructor
referenceerror() creates a new
referenceerror object.
... instance properties
referenceerror.prototype.message error message.
...And 8 more matches
NSS reference
initial notes we are migrating the ssl
reference into the format described in the mdn style guide.
... the proposed chapters below are based on the chapters of the ssl
reference and the categories of functions in nss public functions.
... building and installing nss overview of an nss application based on "overview of an ssl application" in the ssl
reference.
...And 7 more matches
preferences - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] overview <p
references> is a container for <p
reference> elements.
... <p
references> element should contain one or more <p
reference> elements.
... examples <p
references> <p
reference id="pref_one" name="extensions.myextension.one" type="bool"/> <p
reference id="pref_two" name="extensions.myextension.two" type="string"/> ...
...And 6 more matches
nsSupportsWeakReference
« xpcom api
reference summary inherit from this c++ class to add canonical support for nsisupportsweak
reference.
... see weak
reference for detailed description of weak
references.
... #include "nsweak
reference.h" class nssupportsweak
reference { ...
...And 5 more matches
XRReferenceSpaceEvent - Web APIs
the webxr device api interface xr
referencespaceevent represents an event sent to an xr
referencespace.
... constructor xr
referencespaceevent() returns a new xr
referencespaceevent with the specified type and configured using the values in the given xr
referencespaceeventinit dictionary.
... properties in addition to inheriting the properties available on the parent interface, event, xr
referencespaceevent objects include the following properties:
referencespace read only an xr
referencespace indicating the
reference space that generated the event.
...And 5 more matches
Download Manager preferences - Archive of obsolete content
there are several p
references used by the download manager.
... p
reference description browser.download.antivirus.dontclean note: in gecko 1.9.1.
... in thunderbird the default value is 1; if the p
reference is missing, the value 0 is used.
...And 4 more matches
Syncing custom preferences - Archive of obsolete content
when p
references sync is enabled, firefox sync will synchronize p
references between the same application based on a whitelist.
... that means p
references between firefox and fennec, for instance, are never synced.
... to sync p
references between firefoxes, fennecs, thunderbirds, etc., ensure the prefs are whitelisted.
...And 4 more matches
Preferences system
this document describes toolkit's p
references system.
... using this system it is possible to create p
references windows that display and operate appropriately on various platforms (windows, macos x and gnome).
...
reference information about them is available below: p
references system documentation: introduction: getting started | examples | troubleshooting
reference: prefwindow | prefpane | p
references | p
reference | xul attributes use code for a typical p
references window may look like this: <prefwindow id="appp
references" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <prefpane id="pane1" label="&pane1.title;"> <p
references> <p
reference id="pref1" name="pref.name" type="bool"/> </p
references> ..
...And 4 more matches
nsISupportsWeakReference
xpcom/base/nsiweak
reference.idlscriptable this interface is a factory interface, which produces appropriate instances of nsiweak
reference.
... weak
references in this scheme can only be produced for objects that implement this interface.
... inherits from: nsisupports last changed in gecko 1.7 method overview nsiweak
reference getweak
reference(); methods getweak
reference() produces an appropriate instance of nsiweak
reference.
...And 4 more matches
nsIWeakReference
xpcom/base/nsiweak
reference.idlscriptable this interface represents a proxy for an xpcom object.
... it allows a consumer to hold an indirect, non-owning
reference to an xpcom object.
... inherits from: nsisupports last changed in gecko 0.9.9 an instance of nsiweak
reference is a proxy object that cooperates with its referent to give clients a non-owning, non-dangling
reference.
...And 4 more matches
customDBHeaders Preference
as you follow along the step-by-step guide in creating a custom column, you may want to consider a p
reference setting that exposes custom header data for use in a custom column within thunderbird's main view.
... the mailnews.customdbheaders p
reference will be our focus.
... setting the p
references although there are various ways to set p
references, i tend to just navigate to the directory where my profile is stored and edit the user.js file with my favorite text editor.
...And 4 more matches
Preferences System
this document describes toolkit's p
references system.
... using this system it is possible to create p
references windows that display and operate appropriately on various platforms (windows, macos x and gnome).
...
reference information about them is available below: p
references system documentation: introduction: getting started | examples | troubleshooting
reference: prefwindow | prefpane | p
references | p
reference | xul attributes use code for a typical p
references window may look like this: <prefwindow id="appp
references" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <prefpane id="pane1" label="&pane1.title;"> <p
references> <p
reference id="pref1" name="pref.name" type="bool"/> </p
references> ..
...And 4 more matches
XRBoundedReferenceSpace.boundsGeometry - Web APIs
the read-only xrbounded
referencespace property boundsgeometry is an array of dompointreadonly objects which specifies the points making up a polygon inside which the viewer is allowed to move.
... syntax bounds = xr
referencespace.boundsgeometry; value the boundsgeometry property is an array of dompointreadonly objects, each of which defines one vertex in a polygon inside which the viewer is required to remain.
...in other words, the bounds are the physical limitations of the available space, shifted so that the
reference space's bounds points are all defined relative to the xrbounded
referencespace's effective origiin.
...And 4 more matches
About the JavaScript reference - JavaScript
the javascript
reference serves as a repository of facts about the javascript language.
...as you write javascript code, you'll refer to these pages often (thus the title "javascript
reference").
...for the most part, this
reference attempts to be environment-agnostic and does not target a web browser environment.
...And 4 more matches
Default Preferences - Archive of obsolete content
mozilla provides a simple way of shipping default settings by allowing default p
references.
... remember that p
references are held in two separate trees.
...default p
references are set similarly but inside an extension and use the pref() function.
...And 3 more matches
Accessibility API cross-reference
this cross-
reference helps us see the difference between today's accessibility api's.
...this table is the start of a cross-
reference, so we can spot the differences and similarities in the apis.
... fill out tagged pdf column (relevant documents from pdf association) add missing aria properties fill out events cross
reference table use this info to expand mozilla's accessibility api coverage to include mac, so that we can start to freeze them talk about the fact that msaa uses one interface (iaccessible), wherease gnome accessibility uses a lot of different interfaces depending on the type of object go through the atk info and make sure it's up-to-date accessible roles description & notes msaa role (...
...And 3 more matches
Preferences API
p
references api allows you to save and read strings, numbers, booleans, and
references to files to the p
references store.
... it is relatively easy to use, while providing a number of useful user and developer features, including support for default p
references, user overrides via user.js, and locking.
... you can also create a xul-based options window easily to allow user modify some p
references.
...And 3 more matches
XRBoundedReferenceSpace - Web APIs
the webxr device api's xrbounded
referencespace interface describes a virtual world
reference space which has preset boundaries.
... this extends xr
referencespace, which describes an essentially unrestricted space around the viewer's position.
...see the article using bounded
reference spaces for details on how bounded spaces work and why they're useful.
...And 3 more matches
XRReferenceSpaceEvent() - Web APIs
the xr
referencespaceevent() constructor is used to create a new xr
referencespaceevent object, which represents an event regarding the state of a webxr
reference space object, xr
referencespace.
... syntax let refspaceevent = new xr
referencespaceevent(type, eventinitdict); parameters type a domstring indicating the event type which has occurred.
... eventinitdict an object based on the xr
referencespaceeventinit dictionary, containing data used to initialize the new event object.
...And 3 more matches
preferences/event-target - Archive of obsolete content
listen to changes to the p
references system in firefox.
...these are the same p
references that are exposed to users in the about:config page.
... p
references/service gives you full access to the p
references system.
...And 2 more matches
Components.utils.getWeakReference
this method was introduced in firefox 3 and is used for obtaining a weak
reference for an object.
... to obtain the object
reference, you have to call get() on the resulting object.
... syntax weakref = components.utils.getweak
reference(obj); parameters obj the object for which to obtain a weak
reference.
...And 2 more matches
XPCOM Interface Reference by grouping
01, 2010) list of mozilla interfaces as listed on the xpcom interface
reference page where that page lists items by alphabetical sorting, this page attempts to group them by function.
...ortsdouble nsisupportsfloat nsisupportsid nsisupportsinterfacepointer nsisupportsprbool nsisupportsprimitive nsisupportsprint16 nsisupportsprint32 nsisupportsprint64 nsisupportspriority nsisupportsprtime nsisupportspruint16 nsisupportspruint32 nsisupportspruint64 nsisupportspruint8 nsisupportsstring nsisupportsvoid nsisupportsweak
reference nsivariant do not use nsienumerator nsiinprocesscontentframemessagemanager nsiscriptableio nsixpcscriptable future nsixmlhttprequestupload obsolete nsixmlrpcclient nsixmlrpcfault security auth nsiauthmodule nsiauthprompt nsiauthpromptprovider nsiauthpromptwrapper nsiasyncverif...
... nsiprocess nsiprocess2 thread nsithread nsithreadeventfilter nsithreadinternal nsithreadmanager nsithreadobserver nsithreadpool nsithreadpoollistener nsitoolkit util nsiversioncomparator nsiweak
reference nsifactory nsiinterfacerequestor nsijscid nsijsid nsijsiid nsimodule nsiobserver nsiobserverservice nsiproperties nsiproperty nsipropertybag nsipropertybag2 nsipropertyelement nsiserversocket nsiserversocketlistener nsiservicemanager nsisocket...
...And 2 more matches
CSSVariableReferenceValue - Web APIs
the cssvariable
referencevalue interface of the css typed object model api allows you to create a custom name for a built-in css value.
... constructor cssvariable
referencevalue.cssvariable
referencevalue() creates a new cssvariable
referencevalue object.
... properties cssvariable
referencevalue.variable returns the custom name passed to the constructor.
...And 2 more matches
RTCRtpTransceiver.setCodecPreferences() - Web APIs
the rtcrtptransceiver method setcodecp
references() configures the transceiver's codecs given a list of rtcrtpcodeccapability objects specifying the new p
references for each codec.
... syntax rtcrtptransceiver.setcodecp
references(codecs) parameters codecs an array of rtcrtpcodeccapability objects, in order of p
reference, each providing the parameters for one of the transceiver's supported codecs.
... a good approach to setting codec p
references is to first get the list of codecs that are actually supported, then modify that list to match what you want.
...And 2 more matches
SVGURIReference - Web APIs
the svguri
reference interface is used to reflect the href attribute and the deprecated xlink:href attribute.
... <div id="interfacediagram" style="display: inline-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: inline-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/svguri
reference" target="_top"><rect x="1" y="1" width="150" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="76" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svguri
reference</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties svguri
reference.href read only an svganimatedstring that represents the val...
... specifications specification status comment scalable vector graphics (svg) 2the definition of 'svguri
reference' in that specification.
...And 2 more matches
XRReferenceSpaceEventInit - Web APIs
the xr
referencespaceeventinit dictionary is used when calling the xr
referencespaceevent() constructor to provide the values for its properties.
... properties
referencespace the xr
referencespace from which the event originated.
... usage notes all of this dictionary's properties must have valid values set on them before calling the xr
referencespaceevent() constructor.
...And 2 more matches
ReferenceError: deprecated caller or arguments usage - JavaScript
message typeerror: 'arguments', 'callee' and 'caller' are restricted function properties and cannot be accessed in this context (edge) warning:
referenceerror: deprecated caller usage (firefox) warning:
referenceerror: deprecated arguments usage (firefox) typeerror: 'callee' and 'caller' cannot be accessed in strict mode.
... (safari) error type a strict-mode-only warning that a
referenceerror occurred.
... examples deprecated function.caller or arguments.callee.caller function.caller and arguments.callee.caller are deprecated (see the
reference articles for more information).
...And 2 more matches
ReferenceError: "x" is not defined - JavaScript
the javascript exception "variable is not defined" occurs when there is a non-existent variable
referenced somewhere.
... message
referenceerror: "x" is not defined error type
referenceerror.
... there is a non-existent variable
referenced somewhere.
...And 2 more matches
preference.type - Archive of obsolete content
« xul
reference home type type: one of the values below the p
reference type which should be one of the following values.
...usually a checkbox would be connected to these p
references.
...in this situation the p
reference will save the path to a property file which contains the actual value of the p
reference.
...the file path will be stored in the p
references.
NPAPI plugin reference - Archive of obsolete content
npn_releaseobject decrements the
reference count of the given npobject.
... if the
reference count reaches 0, the npobject is deallocated by calling its deallocate function if one is provided; if one is not provided, free() is used.
... npn_retainobject increments the
reference count of the given npobject.
... npobject npobject is a structure that holds a pointer to an npclass and an integer
reference count, and possibly also implementation specific (i.e.
Object reference - MDN Web Docs Glossary: Definitions of Web-related terms
object
references can be used exactly like the linked objects.
... the concept of object
references becomes clear when assigning the same object to more than one property.
... rather than holding a copy of the object, each assigned property holds object
references that link to the same object, so that when the object changes all properties referring to the object reflect the change.
... learn more general knowledge
reference (computer science) on wikipedia ...
Reference - MDN Web Docs Glossary: Definitions of Web-related terms
in the context of objects, this is an object
reference.
... on mdn, we could be talking about the javascript
reference itself.
... in computing, a
reference is a value that indirectly accesses data to retrieve a variable or a record in a computer's memory or other storage device.
... learn more general knowledge
reference (computer science) on wikipedia ...
Midas editor module security preferences
to enable these functions, you must modify your browser p
references.
... warning: changing these p
references can leave your browser insecure, especially if you grant permission to untrusted sites.
... changing the p
references in firefox quit firefox.
... note: the p
reference is site as well as protocol specific.
XRReferenceSpaceEventInit.transform - Web APIs
the xr
referencespaceeventinit property transform indicates the position and orientation of the affected
reference space's native origin after the changes the event represents are applied.
... syntax let eventinitdict = {
referencespace: xr
referencespace, transform: xrrigidtransform }); value an xrrigidtransform object providing a transform that can be used to convert coordinates from the pre-event coordinate system to the post-event coordinate system.
... examples this simple snippet calls the constructor to create a new
reference space event of type reset.
... let refspaceevent = new xr
referencespaceevent("reset", {
referencespace: myrefspace, transform: mytransform }); specifications specification status comment webxr device apithe definition of 'xr
referencespaceeventinit.transform' in that specification.
ReferenceError() constructor - JavaScript
the
referenceerror object represents an error when a non-existent variable is
referenced.
... syntax new
referenceerror([message[, filename[, linenumber]]]) parameters message optional optional.
... examples catching a
referenceerror try { let a = undefinedvariable } catch (e) { console.log(e instanceof
referenceerror) // true console.log(e.message) // "undefinedvariable is not defined" console.log(e.name) // "
referenceerror" console.log(e.filename) // "scratchpad/1" console.log(e.linenumber) // 2 console.log(e.columnnumber) // 6 console.log(e.stack) // "@scratchpad/2:2:7\n" } creating a
referenceerror try { throw new
referenceerror('hel...
...lo', 'somefile.js', 10) } catch (e) { console.log(e instanceof
referenceerror) // true console.log(e.message) // "hello" console.log(e.name) // "
referenceerror" console.log(e.filename) // "somefile.js" console.log(e.linenumber) // 10 console.log(e.columnnumber) // 0 console.log(e.stack) // "@scratchpad/2:2:9\n" } specifications specification ecmascript (ecma-262)the definition of 'nativeerror constructor' in that specification.
Microsummary XML grammar reference - Archive of obsolete content
see the
reference core_javascript_1.5_
reference:global_objects:regexp for the details of the regular expression syntax valid for generators and the tutorial creating regular expressions for a microsummary generator for step by step instructions to writing regular expressions that match urls.
... if the <update> element does not include an interval attribute, firefox applies the interval specified by the browser.microsummary.updateinterval p
reference.
... if that p
reference has not been set, firefox applies its default update interval, which is 30 minutes.
preference-editable - Archive of obsolete content
« xul
reference home p
reference-editable mozilla 1.8 type: boolean if true, the element may be used as one that modifies a p
reference in a prefwindow.
... the p
reference attribute may be used to connect to a p
reference element.
...the element should fire change, command, or input event when the value is changed so that the p
reference will update accordingly.
XUL Reference - Archive of obsolete content
« xul
reference « alphabetical list of all xul elements action arrowscrollbox assign bbox binding bindings box broadcaster broadcasterset button browser checkbox caption clicktoscroll colorpicker column columns commandset command conditions content datepicker deck description dialog dialogheader dropmarker editor grid grippy groupbox hbox iframe image key keyset label listbox listcell listcol listcols listhead listheader listitem member menu menubar menuitem menulist menupopup menuseparator notification notificationbox observes overlay page panel param popupset p
reference p
references prefpane prefwindow progressmeter query queryset radio radiogroup resizer richlistbox richlistitem row rows rule scale script s...
...refox autocomplete) textbox (mozilla autocomplete) timepicker titlebar toolbar toolbarbutton toolbargrippy toolbaritem toolbarpalette toolbarseparator toolbarset toolbarspacer toolbarspring toolbox tooltip tree treecell treechildren treecol treecols treeitem treerow treeseparator triple vbox where window wizard wizardpage categorical list of all xul elements « xul
reference « windows window wizard wizardpage titlebar window structure --- menus and popups --- toolbars toolbar toolbarbutton toolbargrippy toolbaritem toolbarpallete toolbarseperator toolbarspring tabs and grouping tab tabbox tabpanel tabpanels tabs controls --- text and images label caption image lists --- trees --- layout ...
... --- templates --- scripting --- helper elements other xul lists dialog overlay page window wizard wizardpage p
reference p
references prefpane prefwindow browser tabbrowser editor iframe titlebar resizer statusbar statusbarpanel dialogheader notification notificationbox menubar menu menuitem menuseparator menupopup panel tooltip popupset toolbar toolbarbutton toolbargrippy toolbaritem toolbarpalette toolbarseparator toolbarset toolbarspacer toolbarspring toolbox tabbox tabs tab tabpanels tabpanel groupbox caption separator spacer button checkbox colorpicker datepicker menulist progressmeter radio radiogroup scale splitter textbox textbox (firefox autocomplete) textbox (mozilla autocomplete) timepicker description...
Plug-in Development Overview - Gecko Plugin API Reference
the data can come from either an object element in an html file (where the object or embed element either specifies the mime type directly or
references a file of that type), from a separate non-html file of that mime type, or from the server.
...it determines which plug-ins are installed and which types they support through a combination of user p
references that are private to the browser, the contents of the plug-ins directory, or the registry on windows.
... see the scripting plugins section of this
reference for the details.
Cookies Preferences in Mozilla
these p
references apply to most mozilla products (including firefox and seamonkey), however they are application-specific, so not all of them may apply to you.
... to be at least 300 network.cookie.maxperhost default value: 50 configures the maximum amount of cookies to be stored per host valid range is from 0-65535, rfc 2109 and 2965 require this to be at least 20 network.cookie.disablecookieformailnews default value: true true = do not accept any cookies from within mailnews or from mail-style uris false = allow cookies in these situations this p
reference is applicable to all versions of seamonkey.
... new in thunderbird 3 this p
reference is applicable to thunderbird 3 and later.
JSAPI reference
the
reference applies this versioning scheme retroactively starting with firefox 5.
...they have been removed in js 1.8.5, though js_enterlocalrootscope obsolete since javascript 1.8.5 js_leavelocalrootscope obsolete since javascript 1.8.5 js_leavelocalrootscopewithresult obsolete since javascript 1.8.5 js_forgetlocalroot obsolete since javascript 1.8.5 added in spidermonkey 1.8 if an object contains
references to other gc things that are not stored in spidermonkey data structures ("slots"), it must implement the jstraceop hook to enable the garbage collector to traverse those
references.
... js_getmethod obsolete since jsapi 23 js_getmethodbyid obsolete since jsapi 23 a spidermonkey extension allows a native function to return an lvalue—that is, a
reference to a property of an object: js_setcallreturnvalue2 obsolete since javascript 1.8.5 id a jsid is an identifier for a property or method of an object.
XPCOM Interface Reference
this is a
reference to the xpcom interfaces provided by the mozilla platform.
...sisupportsnsisupports proxiesnsisupportsarraynsisupportscstringnsisupportscharnsisupportsdoublensisupportsfloatnsisupportsidnsisupportsinterfacepointernsisupportsprboolnsisupportsprint16nsisupportsprint32nsisupportsprint64nsisupportsprtimensisupportspruint8nsisupportspruint16nsisupportspruint32nsisupportspruint64nsisupportsprimitivensisupportsprioritynsisupportsstringnsisupportsvoidnsisupportsweak
referencensisyncjpakensisyncmessagesendernsitxttohtmlconvnsitaggingservicensitaskbarpreviewnsitaskbarpreviewbuttonnsitaskbarpreviewcontrollernsitaskbarprogressnsitaskbartabpreviewnsitaskbarwindowpreviewnsitelemetrynsitextinputprocessornsitextinputprocessorcallbacknsitextinputprocessornotificationnsithreadnsithreadeventfilternsithreadinternalnsithreadmanagernsithreadobservernsithreadpoolnsithreadpoollistene...
...treeselectionnsitreeviewnsiurinsiurifixupnsiurifixupinfonsiurlnsiurlformatternsiurlparsernsiutf8converterservicensiutf8stringenumeratornsiuuidgeneratornsiupdatensiupdatechecklistenernsiupdatecheckernsiupdateitemnsiupdatemanagernsiupdatepatchnsiupdatepromptnsiupdatetimermanagernsiuploadchannelnsiuploadchannel2nsiurllistmanagercallbacknsiusercertpickernsiuserinfonsivariantnsiversioncomparatornsiweak
referencensiwebbrowsernsiwebbrowserchromensiwebbrowserchrome2nsiwebbrowserchrome3nsiwebbrowserchromefocusnsiwebbrowserfindnsiwebbrowserfindinframesnsiwebbrowserpersistnsiwebcontenthandlerregistrarnsiwebnavigationnsiwebnavigationinfonsiwebpagedescriptornsiwebprogressnsiwebprogresslistenernsiwebprogresslistener2nsiwebsocketchannelnsiwebsocketlistenernsiwebappssupportnsiwifiaccesspointnsiwifilistenernsiwifimo...
XPCOM reference
this
reference describes the interfaces and functions provided by the xpcom library.
...ample, to request the 'show all threads' view use the constant:nsstaticmoduleinfothis data structure is used by ns_initxpcom3 to specify static xpcom modules.standard xpcom componentsthere are a number of components provided in the standard implementation of xpcom; these are as follows.xpcom glue classesthese "glue" classes are provided to make it easier to use xpcom from c++ code.xpcom interface
referencethis is a
reference to the xpcom interfaces provided by the mozilla platform.xpcom interface
reference by groupingthis page lists the current (as of dec.
... 01, 2010) list of mozilla interfaces as listed on the xpcom interface
reference page where that page lists items by alphabetical sorting, this page attempts to group them by function.
CSSVariableReferenceValue() - Web APIs
creates a new cssvariable
referencevalue.
... syntax new cssvariable
referencevalue(variable[, fallback]]) parameters variable a custom property name.
... specifications specification status comment css typed om level 1the definition of 'cssvariable
referencevalue()' in that specification.
NodeIterator.expandEntityReferences - Web APIs
the nodeiterator.expandentity
references read-only property returns a boolean flag indicating whether or not the children of entity
reference nodes are visible to the nodeiterator.
... if this value is false, the children of entity
reference nodes (as well as all of their descendants) are rejected.
... syntax expand = nodeiterator.expandentity
references; example var nodeiterator = document.createnodeiterator( document.body, nodefilter.show_element, { acceptnode: function(node) { return nodefilter.filter_accept; } }, false ); expand = nodeiterator.expandentity
references; specifications specification status comment document object model (dom) level 2 traversal and range specificationthe definition of 'nodeiterator.expandentity
references' in that specification.
TreeWalker.expandEntityReferences - Web APIs
the treewalker.expandentity
references read-only property returns a boolean flag indicating whether or not the children of entity
reference nodes are visible to the treewalker.
... if this value is false, the children of entity
reference nodes (as well as all of their descendants) are rejected.
... syntax expand = treewalker.expandentity
references; example var treewalker = document.createtreewalker( document.body, nodefilter.show_element, { acceptnode: function(node) { return nodefilter.filter_accept; } }, false ); expand = treewalker.expandentity
references; specifications document object model (dom) level 2 traversal and range specificationthe definition of 'treewalker.expandentity
references' in that specification.
XRReferenceSpaceEvent.transform - Web APIs
the read-only xr
referencespaceevent property transform indicates the position and orientation of the affected
referencespace's native origin after the changes the event represents are applied.
... syntax let refspace = xr
referencespaceevent.transform; value an xrrigidtransform object providing a transform that can be used to convert coordinates from the pre-event coordinate system to the post-event coordinate system.
... xr
referencespace.addeventlistener("reset", event => { for (let obj of scene.objects) { mat4.multiply(obj.transform, obj.transform, event.transform); } }); specifications specification status comment webxr device apithe definition of 'xr
referencespaceevent.transform' in that specification.
CSS Properties Reference - CSS: Cascading Style Sheets
common css properties
reference the following is a basic list of the most common css properties with the equivalent of the dom notation which is usually accessed from javascript: note: this list is incomplete.
... for more css properties see the main css
reference and mozilla css extensions.
... the
reference articles also include examples on how to use all the properties.
HTML reference - HTML: Hypertext Markup Language
this html
reference describes all elements and attributes of html, including global attributes that apply to all elements.
... html element
reference this page lists all the html elements, which are created using tags.
... html attribute
reference elements in html have attributes; these are additional values that configure the elements or adjust their behavior in various ways to meet the criteria the users want.
Firefox user agent string reference - HTTP
starting in version 6, users can opt into using a geckoview-based focus for android with a hidden p
reference: it uses a geckoview ua string to advertise gecko compatibility.
...l mac os x 10.5; rv:10.0.1) gecko/20100101 firefox/10.0.1 seamonkey/2.7.1 seamonkey on linux mozilla/5.0 (x11; linux i686; rv:10.0.1) gecko/20100101 firefox/10.0.1 seamonkey/2.7.1 implementation notes for applications, vendors, and extensions prior to firefox 4 and gecko 2.0, it was possible for extensions to add user agent parts through the general.useragent.extra.identifier p
references, (see the obsolete user agent strings
reference).
... see also firefox os user agent string (blog post w/bug 777710
reference) final user agent string for firefox 4 (blog post) recommendations on sniffing the ua string for cross-browser support window.navigator.useragent add android version to fennec ua string (bug 1169772) comments to mozilla.dev.platform ...
ReferenceError: assignment to undeclared variable "x" - JavaScript
message
referenceerror: assignment to undeclared variable "x" (firefox)
referenceerror: "x" is not defined (chrome)
referenceerror: variable undefined in strict mode (edge) error type
referenceerror warning in strict mode only.
... for more details and examples, see the var
reference page.
... function foo() { 'use strict'; bar = true; } foo(); //
referenceerror: assignment to undeclared variable bar valid cases to make "bar" a declared variable, you can add the var keyword in front of it.
JavaScript reference - JavaScript
read more about this
reference.
... value properties infinity nan undefined globalthis function properties eval() isfinite() isnan() parsefloat() parseint() decodeuri() decodeuricomponent() encodeuri() encodeuricomponent() fundamental objects object function boolean symbol error objects error aggregateerror evalerror internalerror rangeerror
referenceerror syntaxerror typeerror urierror numbers & dates number bigint math date text processing string regexp indexed collections array int8array uint8array uint8clampedarray int16array uint16array int32array uint32array float32array float64array bigint64array biguint64array keyed collections map set weakmap weakset structu...
... arguments arrow functions default parameters rest parameters additional
reference pages lexical grammar data types and data structures strict mode deprecated features ...
Web technology reference
introduction to html | learn html | html5 | developer guide | element
reference |
reference css — styling the web cascading style sheets are used to describe the appearance of web content.
... introduction to css | getting started with css | learn css | common css questions |
reference javascript — dynamic client-side scripting the javascript programming language is used to add interactivity and other dynamic features to web sites.
... learn javascript | developer guide |
reference ...
Dehydra Object Reference - Archive of obsolete content
.fieldof variable object provides the object being de
referenced, in the ast system.
... pointer and
reference types property type description .ispointer boolean flag .is
reference boolean flag .type type object the type this points to or
references array type property type description .isarray boolean flag .max integer or normal fixed-size arrays, the index of the largest element of the array.
preference - Archive of obsolete content
« xul
reference home p
reference type: id connects the element to a corresponding p
reference.
...more information is available in the p
references system article.
OLD SSL Reference
old ssl
reference we are migrating this ssl
reference into the format described in the mdn style guide.
... upgraded documentation may be found in the current nss
reference ssl
reference newsgroup: mozilla.dev.tech.crypto writer: sean cotter manager: wan-teh chang chapter 1 overview of an ssl application ssl and related apis allow compliant applications to configure sockets for authenticated, tamper-proof, and encrypted communications.
CSSVariableReferenceValue.fallback - Web APIs
the fallback read-only property of the cssvariable
referencevalue interface returns the custom property fallback value of the cssvariable
referencevalue.
... syntax var fallback = cssvariable
referencevalue.fallback; value a cssunparsedvalue.
CSSVariableReferenceValue.variable - Web APIs
the variable property of the cssvariable
referencevalue interface returns the custom property name of the cssvariable
referencevalue.
... syntax var variable = cssvariable
referencevalue.variable; value a usvstring beginning with -- (that is, a custom property name).
NodeIterator.pointerBeforeReferenceNode - Web APIs
the nodeiterator.pointerbefore
referencenode read-only property returns a boolean flag that indicates whether the nodefilter is anchored before (if this value is true) or after (if this value is false) the anchor node indicated by the nodeiterator.
referencenode property.
... syntax flag = nodeiterator.pointerbefore
referencenode; example var nodeiterator = document.createnodeiterator( document.body, nodefilter.show_element, { acceptnode: function(node) { return nodefilter.filter_accept; } }, false ); flag = nodeiterator.pointerbefore
referencenode; specifications specification status comment domthe definition of 'nodeiterator.pointerbefore
referencenode' in that specification.
NodeIterator.referenceNode - Web APIs
the nodeiterator.
referencenode read-only returns the node to which the iterator is anchored; as new nodes are inserted, the iterator remains anchored to the
reference node as specified by this property.
... syntax node = nodeiterator.
referencenode; example var nodeiterator = document.createnodeiterator( document.body, nodefilter.show_element, { acceptnode: function(node) { return nodefilter.filter_accept; } }, false ); node = nodeiterator.
referencenode; specifications specification status comment domthe definition of 'nodeiterator.
referencenode' in that specification.
XRReferenceSpace.onreset - Web APIs
the xr
referencespace interface's onreset event handler property can be set to a function which is called when the xr
referencespace receives a reset event, signaling that the xr device has experienced a discontinuity large enough to require that the position and/or orientation of the origin be significantly altered to compensate.
... syntax xr
referencespace.onreset = eventhandler; eventhandler = xr
referencespace.onreset; value an event handler function which will be called whenever the reset event is received by the xr
referencespace.
CSS reference - CSS: Cascading Style Sheets
use this css
reference to browse an alphabetical index of all of the standard css properties, pseudo-classes, pseudo-elements, data types, and at-rules.
...also included is a brief dom-css / cssom
reference.
HTML attribute reference - HTML: Hypertext Markup Language
codebase <applet> this attribute gives the absolute or relative url of the directory where applets' .class files
referenced by the code attribute are stored.
... default <track> indicates that the track should be enabled unless the user's p
references indicate something different.
Index - Web APIs
found 5328 pages: # page tags and summary 1 web apis api, dom, landing,
reference, web when writing code for the web, there are a large number of web apis available.
... 2 angle_instanced_arrays api,
reference, webgl, webgl extension the angle_instanced_arrays extension is part of the webgl api and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type.
... 3 angle_instanced_arrays.drawarraysinstancedangle() angle_instanced_arrays, api, method,
reference, webgl, webgl extension the angle_instanced_arrays.drawarraysinstancedangle() method of the webgl api renders primitives from array data like the gl.drawarrays() method.
...And 4421 more matches
Index - Archive of obsolete content
6 navigator.moznotification api, deprecated, mobile, non-standard, property,
reference provides support for creating notification objects, which are used to display desktop notification alerts to the user.
... 41 addon-page add-on sdk, add-ons, extensions, obsolete,
reference create a page that does not contain navigational elements.
... 58 simple-prefs add-on sdk store p
references across application restarts.
...And 1147 more matches
Index - Archive of obsolete content
2 <statusbarpanel> deprecated, xul, xul elements, xul
reference an individual element of a statusbar.
... 4 accessibility/xul accessibility
reference accessibility, xul this table is designed to show how to expose text properly for various xul element types.
... 5 attribute (xul) xul attributes, xul
reference no summary!
...And 954 more matches
Index
31 components.utils.sandbox needsmarkupwork,
reference, référence(2), xpcom:language bindings, xpconnect components.utils.sandbox is used to create a sandbox object for use with evalinsandbox().
...it returns a
reference to the clone: 33 components.utils.createobjectin add-ons, developing mozilla, extensions, javascript,
reference, référence(2), xpcom:language bindings, xpconnect components.utils.createobjectin creates a new javascript object in the scope of the specified object's compartment.
... 36 components.utils.exportfunction api, add-ons, components, extensions, language bindings, method, mozilla, non-standard,
reference, webextensions, xpcom this function provides a safe way to expose a function from a privileged scope to a less-privileged scope.
...And 760 more matches
Index
17 jsapi
reference needscontent, spidermonkey js::deflatestringtoutf8buffer 18 boolean_to_jsval jsapi
reference, obsolete, spidermonkey boolean_to_jsval converts a bool argument, b, to a boolean jsval.
... 19 double_to_jsval jsapi
reference, obsolete, spidermonkey double_to_jsval is the inverse of js::tonumber.
... 20 int_fits_in_jsval jsapi
reference, obsolete, spidermonkey determines if a specified c integer value, i, lies within the range allowed for integer jsvals.
...And 488 more matches
HTML documentation index - HTML: Hypertext Markup Language
2 allowing cross-origin use of images and canvas advanced, cors, canvas, html, image,
reference, security, storage, data html provides a crossorigin attribute for images that, in combination with an appropriate cors header, allows images defined by the <img> element that are loaded from foreign origins to be used in a <canvas> as if they had been loaded from the current origin.
... 6 date and time formats used in html date, element, format, html, iso 8601, input,
reference, string, time, week, datetime, datetime-local, del, ins, month, month-year, week-year certain html elements use date and/or time values.
... 7 global attributes attribute, html,
reference, web global attributes are attributes common to all html elements; they can be used on all elements, though they may have no effect on some elements.
...And 214 more matches
HTTP Index - HTTP
found 277 pages: # page tags and summary 1 http http, hypertext,
reference, tcp/ip, web, web development, l10n:priority hypertext transfer protocol (http) is an application-layer protocol for transmitting hypermedia documents, such as html.
... 10 incomplete list of mime types audio, file types, files, http, mime, mime types, php,
reference, text, types, video here is a list of mime types, associated by type of documents, ordered by their common extensions.
... 16 content security policy (csp) csp, content security policy,
reference, security content security policy (csp) is an added layer of security that helps to detect and mitigate certain types of attacks, including cross site scripting (xss) and data injection attacks.
...And 182 more matches
Index - HTTP
found 122 pages: # page tags and summary 1 http headers http, http header, networking, overview,
reference http headers allow the client and the server to pass additional information with the request or the response.
... 2 accept http, http header,
reference, request header the accept request http header advertises which content types, expressed as mime types, the client is able to understand.
... 3 accept-charset content negotiation, http, http header,
reference, request header the accept-charset request http header advertises which character set the client is able to understand.
...And 102 more matches
Component; nsIPrefBranch
component: nsiprefbranch modules/libpref/public/nsiprefbranch.idlscriptable this interface is used to manipulate the p
references data.
... this object may be obtained from the p
references service (nsiprefservice) and used to get and set default and/or user p
references across the application.
... inherits from: nsisupports last changed in gecko 58 (firefox 58 / thunderbird 58 / seamonkey 2.55) this object is created with a "root" value which describes the base point in the p
references "tree" from which this "branch" stems.
...And 98 more matches
SVG documentation index - SVG: Scalable Vector Graphics
found 383 pages: # page tags and summary 1 svg: scalable vector graphics 2d graphics, graphics, icons, images,
reference, responsive design, svg, scalable graphics, scalable images, vector graphics, web, l10n:priority scalable vector graphics (svg) are an xml-based markup language for describing two-dimensional based vector graphics.xml 2 applying svg effects to html content css, guide, html, svg modern browsers support using svg within css styles to apply graphical effects to html content.
... 8 other resources
reference, svg here is a list of additional resources on svg: 9 project svg no summary!
... 13 svg attribute
reference drawing, landing, needshelp, overview, responsive design, svg, svg attribute, svg
reference, vector graphics svg elements can be modified using attributes that specify details about exactly how the element should be handled or rendered.
...And 82 more matches
nsIContentPrefService2
dom/interfaces/base/nsicontentprefservice2.idlscriptable asynchronous api for content p
references 1.0 66 introduced gecko 20.0 inherits from: nsisupports last changed in gecko 20.0 (firefox 20.0 / thunderbird 20.0 / seamonkey 2.17) description content p
references allow the application to associate arbitrary data, or "p
references", with specific domains, or web "content".
... specifically, a content p
reference is a structure with three values: a domain with which the p
reference is associated, a name that identifies the p
reference within its domain, and a value.
... (see nsicontentpref below.) for example, if you want to remember the user's p
reference for a certain zoom level on www.mozilla.org pages, you might store a p
reference whose domain is "www.mozilla.org", whose name is "zoomlevel", and whose value is the numeric zoom level.
...And 63 more matches
Index - MDN Web Docs Glossary: Definitions of Web-related terms
12 accessibility tree (aom) aom, accessibility, dom, glossary,
reference the accessibility tree, or accessibility object model (aom), contains accessibility-related information for most html elements.
... 30 bigint bigint, glossary, javascript,
reference, arbitrary precision format in javascript, bigint is a numeric data type that can represent integers in the arbitrary precision format.
... 41 brotli brotli, glossary,
reference, web performance, compression brotli is a general-purpose lossless compression algorithm.
...And 44 more matches
nsIContentPrefService
provides a way for extensions and browser code to save p
references for specific websites.
... p
references are saved as key/value pairs on a per-website basis.
...ng aname, in nsicontentprefobserver aobserver); void removepref(in nsivariant agroup, in astring aname); void removeprefsbyname(in astring aname); void setpref(in nsivariant agroup, in astring aname, in nsivariant avalue); attributes attribute type description dbconnection mozistorageconnection the database connection to the content p
references database.
...And 39 more matches
Index - XPath
2 axes transforming_xml_with_xslt, xpath, xpath_
reference, xslt, xslt_
reference for further information on using xpath expressions, please see the for further reading section at the end of transforming xml with xslt document.
... 16 comparison of css selectors and xpath css, draft, needscontent,
reference, selectors, xpath this article seeks to document the difference between css selectors and xpath for web developers to be able to better choose the right tool for the right job.
... 17 functions transforming_xml_with_xslt, xpath, xpath_
reference, xslt, xslt_
reference no summary!
...And 38 more matches
Index - XSLT: Extensible Stylesheet Language Transformations
xslt/xpath
reference: xslt elements, exslt functions, xpath functions, xpath axes found 54 pages: # page tags and summary 1 xslt: extensible stylesheet language transformations landing, web, xslt extensible stylesheet language transformations (xslt) is an xml-based language used, in conjunction with specialized processing software, for the transformation of xml documents.
... 3 index index,
reference, xslt found 54 pages: 4 pi parameters xslt no summary!
... 8 interface list needscontent,
reference see xsltprocessor in the web api documentation section.
...And 38 more matches
Experimental features in Firefox
nightly 53 yes developer edition 53 no beta 53 no release 53 no p
reference name dom.dialog_element.enabled global attribute: inputmode our implementation of the inputmode global attribute has been updated as per the whatwg spec (bug 1509527), but we still need to make other changes too, like making it available on contenteditable content.
... nightly 75 yes developer edition 75 no beta 75 no release 75 no p
reference name dom.forms.inputmode <link rel="preload"> the <link> element's rel attribute is intended to help provide performance gains by letting you download resources earlier in the page lifecycle, ensuring that they're available earlier and are less likely to block page rendering.
... nightly 78 yes developer edition 78 yes beta 78 yes release 78 no p
reference name network.preload css display stray control characters in css as hex boxes this feature renders control characters (unicode category cc) other than tab (u+0009), line feed (u+000a), form feed (u+000c), and carriage return (u+000d) as a hexbox when they are not expected.
...And 37 more matches
MMgc - Archive of obsolete content
you can qualify
references to classes in the library; for example: mmgc::gc, mmgc::gcfinalizedobject.
... each instance manages its own set of objects; objects are not allowed to
reference objects in other gc instances.
...memory allocated with alloc doesn't need to be explicitly freed, although it can be freed with free if it is known that there are no other
references to it.
...And 36 more matches
simple-prefs - Archive of obsolete content
experimental store p
references across application restarts.
... you can store booleans, integers, and string values, and users can configure these p
references in the add-ons manager.
... this gives users a consistent way to access and modify p
references across different add-ons.
...And 35 more matches
Chapter 5: Let's build a Firefox extension - Archive of obsolete content
change your p
references for more efficient development before you get to work developing your extension, you’ll want to change some of your firefox p
references.
... p
reference description value nglayout.debug.disable_xul_cache (not present in firefox 3.5+) ordinarily, firefox will cache xul documents after they have been read in once, to speed subsequent displays.
... true javascript.options.strict (present in firefox 3.5+) enforces strict error output from javascript true table 1: p
references to set for developing extensions to make these changes, start your development profile, type about:config into firefox’s location bar and open the p
references window; find the p
references listed in table 1 and double-click on them to set them accordingly.
...And 33 more matches
MCD, Mission Control Desktop, AKA AutoConfig - Archive of obsolete content
it's mission is to enable completely automatic configuration of mozilla's apps p
references based on users properties either retrieved from system environement variables or on an organisation ldap directory.
... objective the objective is to provide users with a mailer agent, a web browser, and a news reader which are automatically configured (p
references) at startup to the current user connected on the computer.
... instead of configuring end user individual p
references files (~/.mozilla/default/randomdir/prefs.js) we now use a centralized default set of p
references.
...And 33 more matches
XUL controls - Archive of obsolete content
for more
reference information, see the xul
reference.
... button
reference <button type="menu"> a button that has a drop down menu attached to it.
... button
reference related elements: menupopup menuitem <button type="menu-button"> a button that that has a separate arrow button with a menu attached to it.
...And 33 more matches
Using the Multiple Accounts API
by alec flett alecf@flett.org structure servers identities storage creating new accounts smtp servers appendix a: listing of all p
references and properties structure the account system consists of: the account manager (nsimsgaccountmanager): there is a single account manager in the the client, which maintains the list of accounts, servers, etc.
... in the above example, the list of identities would be as follows: alec flett <alecf@mywork.com>) alec flett <alecf@myisp.com>) alec flett <alecfnospam@myisp.com>) relevant api calls: nsimsgaccount.identities nsimsgaccountmanager.allservers: a list of all servers across all accounts storage the accounts are stored in the p
references.
...the keys are also used to decide the name of each of the p
references that hold the object's data.
...And 32 more matches
MathML documentation index - MathML
found 40 pages: # page tags and summary 1 mathml landing, mathml,
reference, web, xml mathematical markup language (mathml) is a dialect of xml for describing mathematical notation and capturing both its structure and content.
... 5 proving the pythagorean theorem beginner, example, guide, html5 math, math education, mathml, needsbeginnerupdate we will now prove the pythagorean theorem: 6 mathml attribute
reference mathml, mathml
reference this is an alphabetical list of mathml attributes.
... 7 values guide, mathml, mathml
reference several mathml presentation elements have attributes that accept length values used for size or spacing.
...And 31 more matches
xlink:href - SVG: Scalable Vector Graphics
the xlink:href attribute defines a
reference to a resource as a
reference iri.
...<font-face-uri>, <glyphref>, <image>, <lineargradient>, <mpath>, <pattern>, <radialgradient>, <script>, <set>, <textpath>, <tref>, and <use>} html, body, svg { height: 100%; } <svg viewbox="0 0 160 40" xmlns="http://www.w3.org/2000/svg"> <a xlink:href="https://developer.mozilla.org/"><text x="10" y="25">mdn web docs</text></a> </svg> a for <a>, xlink:href defines the location of the
referenced object.
... value <iri> default value none animatable yes altglyph for <altglyph>, xlink:href defines the
reference either to a <glyph> element in an svg document fragment or to an <altglyphdef> element.
...And 28 more matches
BluetoothCharacteristicProperties - Web APIs
full support 56notes disabled notes linux and versions of windows earlier than 10.disabled from version 56: this feature is behind the #enable-experimental-web-platform-features p
reference (needs to be set to enabled).
... to change p
references in chrome, visit chrome://flags.
... full support ≤79notes disabled notes linux and versions of windows earlier than 10.disabled from version ≤79: this feature is behind the #enable-experimental-web-platform-features p
reference (needs to be set to enabled).
...And 27 more matches
Accessibility documentation index - Accessibility
here's where to file bugs: 13 using aria: roles, states, and properties aria, accessibility, overview,
reference aria defines semantics that can be applied to elements, with these divided into roles (defining a type of user interface element) and states and properties that are supported by a role.
... 21 using the aria-label attribute aria, accessibility, codingscripting, html, needscontent,
reference, référence(2), agent, aria-label, user, useragent the aria-label attribute is used to define a string that labels the current element.
... 41 wai-aria roles aria, aria roles, accessibility,
reference, rôles this page lists
reference pages covering all the wai-aria roles discussed on mdn.
...And 26 more matches
prefwindow - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a specialized window used for p
reference dialogs.
...a row of buttons appears across the p
reference dialog, one for each prefpane.
... each pane will usually group together a set of related p
references.
...And 25 more matches
Index
those handles are
reference counted.
...the application should always call the appropriate de
reference (destroy) functions once a handle is no longer needed.
...such an operation might fail at runtime if data elements are still being
referenced.
...And 25 more matches
BasicCardResponse - Web APIs
chrome no support noedge no support ≤18 — 79firefox full support 56notes disabled full support 56notes disabled notes available only in nightly builds.disabled from version 56: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true) and the dom.payments.request.supportedregions p
reference (needs to be set to a comma-delineated list of one or more 2-character iso country codes indicating the countries in which to support payments (for example, us,ca.).
... to change p
references in firefox, visit about:config.ie no support noopera no support nosafari ?
...port nochrome android full support 57firefox android full support 56notes disabled full support 56notes disabled notes available only in nightly builds.disabled from version 56: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true) and the dom.payments.request.supportedregions p
reference (needs to be set to a comma-delineated list of one or more 2-character iso country codes indicating the countries in which to support payments (for example, us,ca.).
...And 25 more matches
Window.open() - Web APIs
the returned
reference can be used to access properties and methods of the new window as long as it complies with same-origin policy security requirements.
...the window creation and the loading of the
referenced resource are done asynchronously.
... examples var windowobject
reference; var windowfeatures = "menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes"; function openrequestedpopup() { windowobject
reference = window.open("http://www.cnn.com/", "cnn_windowname", windowfeatures); } var windowobject
reference; function openrequestedpopup() { windowobject
reference = window.open( "http://www.domainname.ext/path/imagefile.png", "descriptivewindowname", "resizable,scrollbars,status" ); } if a window with the name already exists, then url is loaded into the existing window.
...And 22 more matches
Window - Web APIs
many of these are documented in the javascript
reference and the dom
reference.
... window.console read only returns a
reference to the console object which provides access to the browser's debugging console.
... window.customelements read only returns a
reference to the customelementregistry object, which can be used to register new custom elements and get information about previously registered custom elements.
...And 22 more matches
Memory Management - JavaScript
references the main concept that garbage collection algorithms rely on is the concept of
reference.
... within the context of memory management, an object is said to
reference another object if the former has access to the latter (either implicitly or explicitly).
... for instance, a javascript object has a
reference to its prototype (implicit
reference) and to its properties values (explicit
reference).
...And 22 more matches
Getting Started Guide
if you're already familiar with nscomptrs, then you might want to skip ahead to the
reference manual or the faq.
... xpcom basics: ownership and
reference counting this is a quick refresher on some fundamental issues of xpcom.
...they
reference it only through a pointer to an `interface', i.e., the static type of the pointer is a pointer to an abstract base class, the actual object pointed to is a class derived from that abstract base class.
...And 21 more matches
BluetoothRemoteGATTDescriptor - Web APIs
full support 57notes disabled notes linux and versions of windows earlier than 10.disabled from version 57: this feature is behind the #enable-experimental-web-platform-features p
reference (needs to be set to enabled).
... to change p
references in chrome, visit chrome://flags.
... full support ≤79notes disabled notes linux and versions of windows earlier than 10.disabled from version ≤79: this feature is behind the #enable-experimental-web-platform-features p
reference (needs to be set to enabled).
...And 21 more matches
sslfnc.html
this page is part of the ssl
reference that we are migrating into the format described in the mdn style guide.
... upgraded documentation may be found in the current nss
reference ssl functions chapter 4 ssl functions this chapter describes the core ssl functions.
... description ssl_cipherprefgetdefault gets the application default p
reference for the specified ssl2, ssl3, or tls cipher a cipher suite is used only if the policy allows it and the p
reference for it is set to pr_true.
...And 20 more matches
Starting up and shutting down a WebXR session - Web APIs
the global variable webxrpolyfill is used only to retain a
reference to the polyfill in order to ensure that it remains available until you no longer need it.
...currently, the only configurable aspect of the session is which of the
reference spaces should be used to represent the world's coordinate system.
... you can specify either required or optional
reference spaces in order to obtain a session compatible with the
reference spaces you need or prefer to use.
...And 20 more matches
Movement, orientation, and motion: A WebXR example - Web APIs
setup and utility functions next, we declare the variables and constants used throughout the application, starting with those used to store webgl and webxr specific information: let polyfill = null; let xrsession = null; let xrinputsources = null; let xr
referencespace = null; let xrbutton = null; let gl = null; let animationframerequestid = 0; let shaderprogram = null; let programinfo = null; let buffers = null; let texture = null; let mouseyaw = 0; let mousepitch = 0; this is followed by a set of constants, mostly to contain various vectors and matrices used while rendering the scene.
...inverseorientation is a quaternion which will be used to represent the rotation to apply to the
reference space for the object in the frame being rendered.
... the last four variables declared are storage for
references to the <div> elements into which we'll output the matrices when we want to show them to the user.
...And 19 more matches
nsIXULTemplateQueryProcessor
content/xul/templates/public/nsixultemplatequeryprocessor.idlscriptable a query processor takes a template query and generates results for it given a datasource and a
reference point.
... 1.0 66 introduced gecko 1.9 inherits from: nsisupports last changed in gecko 1.9 (firefox 3) a query processor takes a template query and generates results for it given a datasource and a
reference point.
...the template builder will supply two variables, the
reference variable and the member variable to further indicate what part of the datasource is to be examined in addition to the query itself.
...And 18 more matches
EventTarget.addEventListener() - Web APIs
(see memory issues, below.) the value of "this" within the handler it is often desirable to
reference the element on which the event handler was fired, such as when using a generic handler for a set of similar elements.
... if attaching a handler function to an element using addeventlistener(), the value of this inside the handler is a
reference to the element.
...g: `this` is not `my_element` console.log(e.currenttarget === this) // logs `false` }) if an event handler (for example, onclick) is specified on an element in the html source, the javascript code in the attribute value is effectively wrapped in a handler function that binds the value of this in a manner consistent with the addeventlistener(); an occurrence of this within the code represents a
reference to the element.
...And 18 more matches
Avoiding leaks in JavaScript XPCOM components
there are no calls to malloc and free and no
reference counting.
...but it's even easier in this environment because some of the objects you're dealing with are
reference-counted behind the scenes.
... programs should not de
reference pointers pointing to memory that has been returned to the heap (and potentially reused).
...And 17 more matches
nsIPrefBranch2
method overview void addobserver(in string adomain, in nsiobserver aobserver, in boolean aholdweak); void removeobserver(in string adomain, in nsiobserver aobserver); methods addobserver() add a p
reference change observer.
... on p
reference changes, the following arguments will be passed to nsiobserver.observe(): asubject - the nsiprefbranch object (this).
... atopic - the string defined by ns_prefbranch_prefchange_topic_id adata - the name of the p
reference which has changed, relative to the "root" of the asubject branch.
...And 17 more matches
Fullscreen API - Web APIs
≤79alternate name alternate name uses the non-standard name: webkitisfullscreenfirefox full support 64 full support 64 no support 49 — 65disabled disabled from version 49 until version 65 (exclusive): this feature is behind the full-screen-api.unprefix.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.
... 18alternate name alternate name uses the non-standard name: webkitisfullscreenfirefox android full support 64 full support 64 no support 49 — 65disabled disabled from version 49 until version 65 (exclusive): this feature is behind the full-screen-api.unprefix.enabled p
reference (needs to be set to true).
...And 17 more matches
An Overview of XPCOM
object ownership in xpcom, since components may implement any number of different interfaces, components must be
reference counted.
... when a component gets created, an integer inside the component tracks the number of clients who have an interface to the components -- also known as the
reference count.
... the
reference count is incremented automatically when the client instantiates the component; over the course of the component's life, the
reference count goes up and down.
...And 16 more matches
nsIPrefService
modules/libpref/public/nsiprefservice.idlscriptable this interface is the main entry point into the back end p
references management library.
... the p
reference service is directly responsible for the management of the p
references files and also facilitates access to the p
reference branch object which allows the direct manipulation of the p
references themselves.
... inherits from: nsisupports last changed in gecko 1.7 method overview nsiprefbranch getbranch(in string aprefroot); nsiprefbranch getdefaultbranch(in string aprefroot); void readuserprefs(in nsifile afile); void resetprefs(); void resetuserprefs(); void savepreffile(in nsifile afile); methods getbranch() call to get a p
references "branch" which accesses user p
reference data.
...And 16 more matches
Basic Shapes - CSS: Cascading Style Sheets
before looking at the shapes, it is worth understanding two pieces of information that go together to make these shapes possible: the <basic-shape> type the
reference box the <basic-shape> type the <basic-shape> type is used as the value for all of our basic shapes.
... the
reference box understanding the
reference box used by css shapes is important when using basic shapes, as it defines each shape's coordinate system.
... you have already met the
reference box in the guide on creating shapes from box values, which directly uses the
reference box to create the shape.
...And 16 more matches
JavaScript modules - JavaScript
androidsafari on iossamsung internetnode.jsimportchrome full support 61edge full support 16 full support 16 full support 15disabled disabled from version 15: this feature is behind the experimental javascript features p
reference.firefox full support 60 full support 60 no support 54 — 60disabled disabled from version 54 until version 60 (exclusive): this feature is behind the dom.modulescripts.enabled p
reference.
... to change p
references in firefox, visit about:config.ie no support noopera full support 48safari full support 10.1webview android full support 61chrome android full support 61firefox android full support 60 full support 60 no support 54 — 60disabled disabled from version 54 until version 60 (exclusive): this feature is behind the dom.modulescripts.enabled p
reference.
... to change p
references in firefox, visit about:config.opera android full support 45safari ios full support 10.3samsung internet android full support 8.0nodejs full support 13.2.0notes full support 13.2.0notes notes modules must either have a filename ending in .mjs, or the nearest parent package.json file must contain "type": "module".
...And 16 more matches
Repackaging Firefox - Archive of obsolete content
at the very least, don't skip the "important extension p
references" section below.
...this xpi has the following contents chrome.manifest components/partnerbookmarks.js defaults/p
references/partner.js install.rdf locale/ar/partner.properties locale/cs/partner.properties locale/da/partner.properties locale/de/partner.properties locale/el/partner.properties locale/en-gb/partner.properties locale/partner.properties locale/es-ar/partner.properties locale/es-es/partner.properties locale/fi/partner.properties locale/fr/partner.properties locale/he/partner.properties locale/hu/partner.properties locale/it/partne...
... defaults/p
references/partner.js default p
references for this dex.
...And 15 more matches
prefpane - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a single p
reference panel in a prefwindow.
... a prefpane is made up of two parts, the p
references descriptions, which specify the set of p
references that will be modified, and the user interface for adjusting those p
references.
... the former is specified using a p
references element while the latter may be specified using other xul elements.
...And 15 more matches
Migrate apps from Internet Explorer to Mozilla - Archive of obsolete content
you can
reference entities through their numerical or character
reference.
... for example, you can
reference the non-breaking space character with   or with its equivalent character
reference .
... accessing elements to retrieve an element
reference using the cross-browser approach, you use document.getelementbyid(aid), which works in internet explorer 5.0+, mozilla-based browsers, other w3c-compliant browsers and is part of the dom level 1 specification.
...And 14 more matches
@font-feature-values - CSS: Cascading Style Sheets
no support noedge no support nofirefox full support 34 full support 34 full support 24disabled disabled from version 24: this feature is behind the layout.css.font-features.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera no support nosafari full support 9.1webview android no support nochrome android no support nofirefox android full support 34 full support 34 full support 24disabled disabled from version 24: this feature is behind the layout.css.font-features.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android no support nosafari ios full support 9.3samsung internet android no support no@annotationchrome no support noedge no support nofirefox full support 34 full support 34 full support 24disabled disabled from version 24: this feature is behind the layout.css.font-features.enabled p
reference (needs to be set to true).
...And 14 more matches
NSS functions
other sources of information: the nss_
reference documents the functions most commonly used by applications to support ssl.
... if documentation is available for a function listed below, the function name is linked to either its mdc wiki page or its entry in the old ssl
reference.
... the mozilla cross
reference (mxr) link for each function provides access to the function definition, prototype definition, and source code
references.
...And 13 more matches
nsIFile
exceptions thrown ns_error_file_not_directory indicates that this nsifile does not
reference a directory.
... filesizeoflink print64 this attribute exposes the size of the symbolic link
referenced by this nsifile.
... unlike filesize, this attribute corresponds to the size of the symbolic link
referenced by this nsifile.
...And 13 more matches
Understanding WebAssembly text format - WebAssembly
each parameter has a type explicitly declared; wasm currently has four available number types (plus
reference types; see the
reference types) section below): i32: 32-bit integer i64: 64-bit integer f32: 32-bit float f64: 64-bit float a single parameter is written (param i32) and the return type is written (result i32), hence a binary function that takes two 32-bit integers and returns a 64-bit float would be written like this: (func (param i32) (param i32) (result f64) ...
...for a full list of the available opcodes, consult the webassembly.org semantics
reference.
...to deal with strings and other more complex data types, webassembly provides memory (although we also have
reference types in newer implementation of webassembly).
...And 13 more matches
XPCOM Objects - Archive of obsolete content
you can think of xpcom as a
reference to all the capabilities available on the lower layers of firefox.
...let's look at the p
reference service as an example of this.
... another useful resource is this xpcom
reference.
...And 12 more matches
Index of archived content - Archive of obsolete content
ils fs/path io/byte-streams io/file io/text-streams lang/functional lang/type loader/cuddlefish loader/sandbox net/url net/xhr places/bookmarks places/favicon places/history platform/xpcom p
references/event-target p
references/service remote/child remote/parent stylesheet/style stylesheet/utils system/child_process system/environment system/events system/runtime system/unload system/xul-app tabs/utils test/assert ...
... javascript debugger service javascript timers javascript daemons management label and description lookupnamespaceuri lookupprefix miscellaneous modules on page load page loading post data to window p
references progress listeners queryselector rosetta running applications svg animation svg general scrollbar sidebar stringview tabbox toolbar tree uri parsing view source for xul applications windows xm...
...l-related code snippets xml:base support in old browsers xpath getattributens common pitfalls communication between html and your extension creating custom firefox extensions with the mozilla build system custom about: urls default p
references deploying a plugin as an extension developing add-ons displaying web content in an extension without security issues downloading json and javascript in extensions enhanced extension installation extension etiquette extension library extension packaging extension samples extension theming guidelines ext...
...And 12 more matches
Modularization techniques - Archive of obsolete content
the mechanism we're using is based on the principles laid down by com, so pretty much anything you know about com can be applied here, and any
reference on com can provide you with more interesting and complex examples than the ones provided here.
...nsisupports provides two key features, interface interrogation and
reference counting.
...
reference counting is performed using the addref() and release() methods.
...And 12 more matches
Advanced Svelte: Reactivity, lifecycle, accessibility - Learn web development
for example, in the following piece of code: const foo = obj.foo foo.bar = 'baz' svelte won't update
references to obj.foo.bar, unless you follow it up with obj = obj.
... that's because svelte can't track object
references, so we have to explicitly tell it that obj has changed by issuing an assignment.
...for that we'll need a
reference to the dom node of the input.
...And 12 more matches
Bytecode Descriptions
this is how we implement typeof step 2, making typeof nonexistingvariable return "undefined" instead of throwing a
referenceerror.
...per spec, the latter throws a
referenceerror if x doesn't exist.
...implements: getvalue for
references created by super.name.
...And 12 more matches
Localization - Archive of obsolete content
the sdk supports localization of strings appearing in: your main add-on's javascript code html files packaged with your add-on the title, description and homepage fields of your add-on's metadata the title and description fields of your add-on's p
references.
... to
reference localized strings from html, add a data-l10n-id attribute to the html tag where you want the localized string to appear, and assign the identifier to it: <html> <body> <h1 data-l10n-id="hello_id"></h1> </body> </html> then you can use this html file to build your interface, for example inside a panel: var button = require("sdk/ui/button/action").actionbutton({ id: "localized-hello",...
... with l10n-id.attributename in the properties file like: hello_id.accesskey= h the following attributes are supported: accesskey alt label title placeholder further the localization of the aria attributes aria-label, aria-valuetext and aria-moz-hint are supported with the same aliases as on firefox os: arialabel ariavaluetext ariamozhint using localized strings in javascript to
reference localized strings from your main add-on code, you do this: var _ = require("sdk/l10n").get; console.log(_("hello_id")); assigning to "_" in particular is not required, but is a convention from the gettext tools and will make it possible to work with existing tools that expect "_" to indicate localizable strings.
...And 11 more matches
Manipulating documents - Learn web development
there are a few really obvious bits you'll
reference regularly in your code — consider the following diagram, which represents the main parts of a browser directly involved in viewing web pages: the window is the browser tab that a web page is loaded into; this is represented in javascript by the window object.
...you can use this object to return and manipulate information on the html and css that comprises the document, for example get a
reference to an element in the dom, change its text content, apply new styles to it, create new elements and add them to the current element as children, or even delete it altogether.
... to manipulate an element inside the dom, you first need to select it and store a
reference to it inside a variable.
...And 11 more matches
WebIDL bindings
if the argument type is a c++
reference, it will also become a nonnull<> around the actual type of the object in the process.
... dictionary types a dictionary argument is represented by a const
reference to a struct whose name is the dictionary name in the mozilla::dom namespace.
... dictionary return values are represented by an out parameter whose type is a non-const
reference to the struct described above, with all the members that have default values preinitialized to those default values.
...And 11 more matches
:is() (:matches(), :any()) - CSS: Cascading Style Sheets
this is demonstrated by the example on the :where()
reference page.
...droidopera for androidsafari on iossamsung internet:is()chrome full support 68notes disabled full support 68notes disabled notes combinators in the selector list argument may not match correctly (see bug 842157).disabled from version 68: this feature is behind the #enable-experimental-web-platform-features p
reference (needs to be set to enabled).
... to change p
references in chrome, visit chrome://flags.
...And 11 more matches
Search Extension Tutorial (Draft) - Archive of obsolete content
the most technically sound method of achieving this, and the only acceptable way of changing p
references such that they are automatically restored on add-on uninstall, is to make such changes in the default p
reference branch, as explained below.
...changing default p
reference values there are two common ways of changing default p
reference values.
... the simplest, which works only for traditional, non-restartless add-ons, is to add the p
reference changes to a file in an extension's defaults/p
references/ directory.
...And 10 more matches
Client-side storage - Learn web development
this has many distinct uses, such as: personalizing site p
references (e.g.
... next, note how our html
references a javascript file called index.js (see line 40).
... we'll start off by creating
references to all the html features we need to manipulate in this example — we'll create them all as constants, as these
references do not need to change in the lifecycle of the app.
...And 10 more matches
Slottable - Web APIs
53edge full support 79firefox full support 63 full support 63 no support 59 — 63disabled disabled from version 59 until version 63 (exclusive): this feature is behind the dom.webcomponents.shadowdom.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.
...— 59disabled disabled until version 59 (exclusive): this feature is behind the dom.webcomponents.enabled p
reference (needs to be set to true) and the dom.webcomponents.shadowdom.enabled p
reference (needs to be set to true).
...And 10 more matches
XRPermissionDescriptor.optionalFeatures - Web APIs
syntax xrpermissiondescriptor = { mode: xrsessionmode, requiredfeatures: reqfeaturelist, optionalfeatures: optfeaturelist }; xrpermissiondescriptor.optionalfeatures = optfeaturelist; optfeaturelist = xrpermissiondescriptor.optionalfeatures; value an array of strings taken from the xr
referencespacetype enumerated type, indicating set of features that your app would like to use, but can operate without if permission to use them isn't available.
... while further features may be defined in future editions of webxr, currently all permitted values come from the xr
referencespacetype enumerated type, indicating
reference spaces the app rquires to be available.
... the
reference space returned by xrsession.request
referencespace() is either xr
referencespace or xrbounded
referencespace.
...And 10 more matches
XRView - Web APIs
transform read only an xrrigidtransform which describes the current position and orientation of the viewpoint in relation to the xr
referencespace specified when getviewerpose() was called on the xrframe being rendered.
... all positions and orientations within the views for a given xrviewerpose are specified in the
reference space that was passed to xrframe.getviewerpose(); this is called the viewer
reference space.
... the transform property describes the position and orientation of the eye or camera represented by the xrview, given in that
reference space.
...And 10 more matches
Autoplay guide for media and Web Audio APIs - Web media technologies
le, you can assume that media will be allowed to autoplay only if at least one of the following is true: the audio is muted or its volume is set to 0 the user has interacted with the site (by clicking, tapping, pressing keys, etc.) if the site has been whitelisted; this may happen either automatically if the browser determines that the user engages with media frequently, or manually through p
references or other user interface features if the autoplay feature policy is used to grant autoplay support to an <iframe> and its document.
... handlefirstplay() looks like this: function handlefirstplay(event) { let vid = event.target; vid.onplay = null; // start whatever you need to do after playback has started } after getting a
reference to the video element from the event object's target, the element's onplay handler is set to null.
... note: it is strongly recommended that you use the autoplay attribute whenever possible, because support for autoplay p
references are more widespread for the autoplay attribute than for other means of playing media automatically.
...And 10 more matches
StringView - Archive of obsolete content
the code stringview.js "use strict"; /*\ |*| |*| :: number.isinteger() polyfill :: |*| |*| /docs/web/javascript/
reference/global_objects/number/isinteger |*| \*/ if (!number.isinteger) { number.isinteger = function isinteger (nval) { return typeof nval === "number" && isfinite(nval) && nval > -9007199254740992 && nval < 9007199254740992 && math.floor(nval) === nval; }; } /*\ |*| |*| stringview mdndeveloper network |*| |*| revision #12, march 21st, 2017 |*| |*| https://developer.mozilla.org/add-ons/code_...
... buffer read only arraybuffer the buffer to be shared between stringview.rawdata and stringview.bufferview view
references.
... object
reference to stringview.bufferview or a new arraybufferview of stringview.buffer will be created (depending on startoffset and length arguments passed).
...And 9 more matches
Setting up an extension development environment - Archive of obsolete content
this will utilize distinctive development p
references in about:config.
... development p
references there is a set of development p
references that, when enabled, allows you to view more information about application activity, thus making debugging easier.
... however, these p
references can degrade performance, so you may want to use a separate development profile when you enable these p
references.
...And 9 more matches
Common causes of memory leaks in extensions - Extensions
storing
references to window objects and dom nodes the most common problem is extensions holding onto
references to content windows for too long.
... to avoid these issues,
references to dom nodes in foreign document should instead be stored in an object which is specific to that document, and cleaned up when the document is unloaded, or stored as weak
references.
...the interval function in the example would still hold a
reference to contentdoc, therefore leaking the content document and the associated window and compartment.
...And 9 more matches
Investigating leaks using DMD heap scan mode
when combined with cycle collector logging, this can be used to investigate leaks of refcounted cycle collected objects, by figuring out what holds a strong
reference to a leaked object.
...if you have a patch that introduces a leak, you are probably better off auditing all of the strong
references that your patch creates before trying this.
... known edges: 0x7f08975a24c0 [fragmentorelement (xhtml) head https://www.example.com] --[mattrsandchildren[i]]--> 0x7f0882fe3230 0x7f08967e7b20 [js object (htmlscriptelement)] --[unwrapdomobject(obj)]--> 0x7f0882fe3230 the first two lines mean that the script element 0x7f0882fe3230 contains a strong
reference to the eventlistenermanager 0x7f0899b4e550.
...And 9 more matches
NSS API Guidelines
likewise, the external
references to errors are made in the prototypes files, with the functions which can return them.
...for some data structures, this problem can be removed by protected
reference counting.
...be sure to increment the
reference count, on the returned object, before unlocking.
...And 9 more matches
Mozilla internal string guide
all string classes support the following three ownership models dynamically:
reference counted, copy-on-write, buffers (the default) adopted buffers (a buffer that the string class owns, but is not
reference counted, because it came from somewhere else) dependent buffers, that is, an underlying buffer that the string class does not own, but that the caller that constructed the string guarantees will outlive the string instance in addition, there is a special string class, ns[c]...
...autostring, that additionally contains an internal 64-unit buffer (intended primarily for use on the stack), leading to a fourth ownership model: storage within an auto string's stack buffer auto strings will prefer
reference counting an existing
reference-counted buffer over their stack buffer, but will otherwise use their stack buffer for anything that will fit in it.
... str.assign(reversedstr); } as function parameters for methods which are exposed across modules, use nsastring
references to pass strings.
...And 9 more matches
nsIXULTemplateBuilder
a template builder, given an input source of data, a template, and a
reference point, generates a list of results from the input, and copies part of the template for each result.
... templates may generate content recursively, using the same template, but with the previous iteration's results as the
reference point.
... as an example, for an xml data source the initial
reference point would be a specific node in the dom tree and a template might generate a list of all child nodes.
...And 9 more matches
ByteLengthQueuingStrategy - Web APIs
internetbytelengthqueuingstrategy experimentalchrome full support 59edge full support 16firefox full support 57disabled full support 57disabled disabled from version 57: this feature is behind the dom.streams.enabled p
reference (needs to be set to true) and the javascript.options.streams p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera full support 46safari ?
... webview android full 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 p
reference (needs to be set to true) and the javascript.options.streams p
reference (needs to be set to true).
...And 9 more matches
CountQueuingStrategy - Web APIs
msung internetcountqueuingstrategy experimentalchrome full support 59edge full support 16firefox full support 57disabled full support 57disabled disabled from version 57: this feature is behind the dom.streams.enabled p
reference (needs to be set to true) and the javascript.options.streams p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera full support 46safari ?
... webview android full 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 p
reference (needs to be set to true) and the javascript.options.streams p
reference (needs to be set to true).
...And 9 more matches
Inputs and input sources - Web APIs
t targetraypose = frame.session.getpose(primaryinput.targetrayspace, viewerrefspace); let targetrayorigin = targetraypose.transform.position; let targetrayvector = targetraypose.transform.orientation; with this, you now have the point from which the targeting ray is emitted (targetrayorigin) and the direction in which it's pointing (targetrayvector), given in the viewer's
reference space (viewerrefspace).
... handedness the most direct way to decide which controller is primary is to have a user-definable "handedness" p
reference that the user sets to indicate which of their hands is dominant.
...the input source's targetrayspace is an xrspace (and actually probably an xr
referencespace) which can be used to determine the orientation of the target ray relative to the viewer's facing direction.
...And 9 more matches
HTML attribute: rel - HTML: Hypertext Markup Language
link not allowed not allowed dns-prefetch tells the browser to preemptively perform dns resolution for the target resource's origin external resource not allowed not allowed external
referenced document is not part of the same site as the current document.
... external resource not allowed not allowed license indicates that the main content of the current document is covered by the copyright license described by the
referenced document.
... external resource not allowed not allowed next indicates that the current document is a part of a series, and that the next document in the series is the
referenced document.
...And 9 more matches
Chapter 3: Introduction to XUL—How to build a more intuitive UI - Archive of obsolete content
for the latest xul specifications, please see the xul
reference on mdc and the xul page in the mozilla wiki.
... because a xul document is also an xml document, it can contain xhtml, svg, mathml, and other elements; if you use external entity
references, the xml document's contents are modularized; combined with other xml-related technologies, such as dom, xlink, or xslt, you can use it for a number of different applications.
...there are also special kinds of element that only come into play after being
referenced by another element.
...And 8 more matches
New Skin Notes - Archive of obsolete content
if you go to your user p
references, you can change the skin to "devmo".
... feedback fix weird width bug on p
references page.
...--callek add "what not to do" css class to stylesheet, as discussed on talk:core javascript 1.5
reference.
...And 8 more matches
Document Object Model - Archive of obsolete content
the window's open() method also returns a
reference to the new window so you can call functions of the new window from the opener.
...since it is one of the most commonly
referenced properties of the window, the document property is usually
referenced without the 'window.' qualifier.
... function dofind(){ var meter = document.getelementbyid('progmeter'); meter.hidden = false; } this function first gets a
reference to the progress meter using its id, progmeter.
...And 8 more matches
Using the Right Markup to Invoke Plugins - Archive of obsolete content
if the flash activex control is not installed, ie will then go to the url
referenced by the codebase attribute and retrieve the activex control.
...furthermore, ie's use of the codebase attribute as an obtainment mechanism itself is not strictly correct according to the html 4.01 specification, which says that the codebase attribute should be used to qualify urns
referenced by the data, archive, and classid attributes.
...ssid="clsid:8ad9c840-044e-11d1-b3e9-00805f499d93" width="460" height="160" codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_4_1-windows-i586.cab#version=1,4,1"> <param...> <param...> </object> the above invocation won't work for mozilla-based browsers such as netscape 7 because of the same reason mentioned above: classid used in conjunction with a unique identifier
references an architecture (activex) that mozilla code (and thus netscape 7) does not support.
...And 8 more matches
Overview of Mozilla embedding APIs
nscomptr<interface-type> these are templatized smart pointers which transparently deal with xpcom
reference counting issues.
... nsweakptr this is an nscomptr which encapsulates xpcom weak
reference support.
... see the nsiweak
reference document for more information.
...And 8 more matches
HTTP Cache
the hash tables keep a strong
reference to cacheentry objects.
...we also - in a thread-safe manner - count the number of consumers keeping a
reference on each entry.
... the open callback actually doesn't give the consumer directly the cacheentry object but a small wrapper class that manages the 'consumer
reference counter' on its cache entry.
...And 8 more matches
CustomizableUI.jsm
if you want to use it from a jsm or another context without a window
reference, you need to import it yourself: components.utils.import("resource:///modules/customizableui.jsm"); introduction the module is intended for two primary purposes: allow adding, moving and removing customizable widgets.
...during a batch update, the customization state is not saved to the user's p
references file, in order to reduce (possibly sync) io.
... note: unlike button described with xul overlay, widget-button created via createwidget() method cannot have
references to other overlay elements transferred directly as parameters.
...And 8 more matches
XPCOM array guide
nscomarray<t> - a c++ class which provides a typesafe,
reference-counted container for pointers to a single type of com object.
... ownership nsiarray xpcom object yes no no no
reference counted, weak/strong nsimutablearray xpcom object yes no yes no
reference counted, weak/strong nscomarray<t> xpcom object no yes yes* no
reference counted, strong nstarray<t> any that has a default constructor and copy constructor no yes yes* no can hold objects directly, in which case it owns them.
... nsisupportsarray xpcom object yes no yes* no
reference counted, strong (*) note: concrete c++ arrays can be made read-only by declaring them const.
...And 8 more matches
Using XPCOM Utilities to Make Things Easier
unless you have very special requirements for managing
reference counting or handling interface discovery, theimplementation macros that xpcom provides can be used.
... // returns a
reference to a shared nsiid object\ static const nsiid iid1 = ns_get_iid(nsisupports); // constructs a new nsiid object static const nsiid iid2 = ns_isupports_iid; in order to use ns_impl_isupportsn, you must be sure that a member variable of type nsrefcnt is defined and named mrefcnt in your class.
... smart pointers all of the interfaces that you've seen so far are
reference counted.
...And 8 more matches
nsIContentPrefObserver
dom/interfaces/base/nsicontentprefservice.idlscriptable this interface allows code to easily watch for changes to the values of content p
references.
... 1.0 66 introduced gecko 1.9 inherits from: nsisupports last changed in gecko 1.9 (firefox 3) method overview void oncontentprefremoved(in astring agroup, in astring aname); void oncontentprefset(in astring agroup, in astring aname, in nsivariant avalue); methods oncontentprefremoved() called when a content p
reference is removed.
... void oncontentprefremoved( in astring agroup, in astring aname ); parameters agroup the group to which the removed p
reference belonged; this may be the uri of a web site.
...And 8 more matches
Index
this
reference will help you track those events down and learn how to use them.
... the following p
references are supported to control how this gets logged: 30 gloda examples thunderbird 3, thunderbird this page provides some examples for using gloda.
...it assumes you are already familiar with configuring p
references for deployed builds in addition to setting up thunderbird to use an ldap directory.
...And 8 more matches
Thunderbird Configuration Files
to access the config editor, go to tools > options or do thunderbird > p
references.
... if you are on mac os x, and on linux do edit > p
references on, select the advanced options panel, click on the general tab, and click on config editor.
... this will display a list of used p
references, as well as a search bar at the top.
...And 8 more matches
IDBIndex - Web APIs
an index is a kind of object store for looking up records in another object store, called the
referenced object store.
...an index lets you look up records in an object store using properties of the values in the object stores records other than the primary key the index is a persistent key-value storage where the value part of its records is the key part of a record in the
referenced object store.
... the records in an index are automatically populated whenever records in the
referenced object store are inserted, updated, or deleted.
...And 8 more matches
Basic concepts - Web APIs
for the
reference documentation on the indexeddb api, refer back to the main indexeddb api article and its subpages, which document the types of objects used by indexeddb.
... for the
reference documentation on object store, see idbobjectstore.
...to learn more about transaction types, see the
reference article for indexeddb.
...And 8 more matches
clip-path - CSS: Cascading Style Sheets
if no geometry box is specified, the border-box will be used as the
reference box.
... <geometry-box> if specified in combination with a <basic-shape>, this value defines the
reference box for the basic shape.
...the geometry box can be one of the following values: margin-box uses the margin box as the
reference box.
...And 8 more matches
Chapter 4: Using XPCOM—Implementing advanced processes - Archive of obsolete content
reference materials to get an idea of what kinds of functions embedded xpcom can handle, take a look at the api
reference and the interface definitions from xpidl in the actual source code.
... you can perform a full-text search of the firefox source code in mozilla cross-
reference using character strings, filenames, etc as search keys.
...listing 1 shows how you can use xpconnect to acquire
references to xpcom services and create new xpcom objects.
...And 7 more matches
XUL Events - Archive of obsolete content
« xul
reference home the following tables and sections describe the event handler that are valid for most xul elements.
... xul event
reference subpages broadcastthe broadcast event is executed when the attributes of the element (such as a broadcaster) being listened to are changed.
... attribute: onpopupshown syncfromp
reference this event is sent when the element is being changed because a p
reference changed, or when an element is initialized from a p
reference.
...And 7 more matches
Accessing Files - Archive of obsolete content
accessing files this section describes how to create a file
reference.
...because string paths are not used,
references to files in a file object are made relative to some starting directory.
...once one of these starting directories is determined, a file
reference may be created relative to this.
...And 7 more matches
Mozilla’s UAAG evaluation report
(p1) c p
references, appearance, colors - "use my chosen colors, ignoring the colors and background image specified" 3.2 toggle audio, video, animated images.
... (p1) p animated images can be made still with the escape key animated images can be made still as a p
reference under p
references, privacy & security, images - "animated images should loop" mozilla has no p
reference or command to toggle audio or video 3.3 toggle animated/blinking text.
...(p1) g p
references, advanced, scripts & windows - enable javascript for when toggled off, we don't notify the user when a page is loaded with scripts 3.5 toggle content refresh.
...And 7 more matches
Introduction to XPCOM for the DOM
i will introduce nscomptr's, interfaces,
reference counting, and the nsisupports interface.
...
reference counting basics xpcom uses a
reference counting mechanism (refcount in short) to make sure that no object is deleted while interface pointers still point at that object.
...that is why each time a pointer to an interface is assigned the address of an object, we have to increase the
reference count of that object by one.
...And 7 more matches
Introduction to the DOM - Web APIs
this documentation provides an object-by-object
reference to the dom.
... dom and javascript the short example above, like nearly all of the examples in this
reference, is javascript.
...though we focus exclusively on javascript in this
reference documentation, implementations of the dom can be built for any language, as this python example demonstrates: # python dom example import xml.dom.minidom as m doc = m.parse(r"c:\projects\py\chap1.xml") doc.nodename # dom property of document object p_list = doc.getelementsbytagname("para") for more information on what technologies are involved in writing javascript on the web, see javascript t...
...And 7 more matches
XRPermissionDescriptor.requiredFeatures - Web APIs
currently, all features are members of the xr
referencespacetype enumerated type, indicating the
reference space types that your app would like permission to use, but can operate without.
... the permitted values are: the types of
reference space are listed in the table below, with brief information about their use cases and which interface is used to implement them.
... xr
referencespacetype description interface bounded-floor similar to the local type, except the user is not expected to move outside a predetermined boundary, given by the boundsgeometry in the returned object.
...And 7 more matches
XRPermissionStatus.granted - Web APIs
currently, all of these strings come from the xr
referencespacetype enumerated type.
... the types of
reference space are listed in the table below, with brief information about their use cases and which interface is used to implement them.
... xr
referencespacetype description interface bounded-floor similar to the local type, except the user is not expected to move outside a predetermined boundary, given by the boundsgeometry in the returned object.
...And 7 more matches
Content type - SVG: Scalable Vector Graphics
the normative definition of these keywords is found in user p
references for colors (css2, section 18.2).
... | "rgb("integer, integer, integer")" | "rgb("integer "%", integer "%", integer "%)" | color-keyword hexdigit ::= [0-9a-fa-f] where color-keyword matches (case insensitively) one of the color keywords listed in css color module level 3, or one of the system color keywords listed in user p
references for colors (css2, section 18.2).
... funciri <funciri> functional notation for a
reference.
...And 7 more matches
package.json - Archive of obsolete content
others, such as lib, permissions, and p
references, represent instructions to the jpm tool itself to generate and include particular code and data structures in your add-on.
...he add-on's directory is "my-addon"): { "name": "my-addon", "title": "my-addon", "id": "jid1-1fergv45e4f4f@jetpack", "description": "a basic add-on", "author": "", "license": "mpl-2.0", "version": "0.1" } if you are using the new jpm tool, you can easily access manifest data from package.json by requiring it like any other module: var title = require("./package.json").title; key
reference package.json may contain the following keys: author the name of the package's original author; this could be the name of a person or a company.
... locales an object holding json objects
referenced by a locale name that use the following keys: title, description and homepage.
...And 6 more matches
How to convert an overlay extension to restartless - Archive of obsolete content
well, xul overlays and windows, jsm files, chrome & resource mappings with localization, default p
references, but no xpcom components of your own.
... step 4: manually handle default p
references normal extensions load default p
references from a standardized file automatically.
...branch : services.prefs; branch.setcomplexvalue(prefname, components.interfaces.nsisupportsstring, string); } just grab the above, move your default p
references file to your chrome mapping, and then do the following line once during your startup: services.scriptloader.loadsubscript("chrome://myaddon/content/defaultprefs.js", {pref:setdefaultpref} ); that's it.
...And 6 more matches
Inline options - Archive of obsolete content
firefox 7 supports a new syntax for defining extensions' p
references for both bootstrapped and traditional extensions.
... the user interface for the p
references defined with this new syntax appears in the extension's detail view in the add-on manager.
...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 p
reference" /> </vbox> note that it's limited to <setting> tags.
...And 6 more matches
Adding sidebars - Archive of obsolete content
the problem is that choosing the right keyboard shortcuts is very, very hard, as explained by the creator of adblock plus, and the mozilla keyboard
reference.
... to sum up both of these
references: you can choose an obscure key combination that won't conflict with firefox, such as ctrl+shift+(some letter), but there's no way of knowing if any other extension uses that same combination as well.
...one minor difference is that the xul sidebar should be defined using the « xul
reference « root element instead of window or dialog.
...And 6 more matches
Theme changes in Firefox 4 - Archive of obsolete content
the value does not necessarily reflect the user p
reference in the toolbar customization palette anymore.
... the iconsize attribute of the toolbox element in the main browser window (#navigator-toolbox) still reflects the user p
reference in the toolbar customization palette.
... default values of the iconsize attribute on browser toolbars if the theme doesn't override the value of the iconsize attribute, the following defaults are used: toolbar element id default iconsize value menu bar #toolbar-menubar small navigation bar #nav-bar small or large depending on user p
reference.
...And 6 more matches
Getting started with HTML - Learn web development
note: find useful
reference pages that include lists of block and inline elements.
...abled elements typically have a grayed-out appearance.) for example: <input type="text" disabled="disabled"> as shorthand, it is acceptable to write this as follows: <!-- using the disabled attribute prevents the end user from entering text into the input box --> <input type="text" disabled> <!-- text input is allowed, as it doesn't contain the disabled attribute --> <input type="text"> for
reference, the example above also includes a non-disabled form input element.the html from the example above produces this result: omitting quotes around attribute values if you look at code for a lot of other sites, you might come across a number of strange markup styles, including attribute values without quotes.
... entity
references: including special characters in html in html, the characters <, >,",' and & are special characters.
...And 6 more matches
Cooperative asynchronous JavaScript: Timeouts and intervals - Learn web development
it takes the following parameters: a function to run, or a
reference to a function defined elsewhere.
...you can give your function a name, and even define it somewhere else and pass a function
reference to the settimeout().
... here's a few hints for you: you can structure and style the button markup however you like; just make sure you use semantic html, with hooks to allow you to grab the button
references using javascript.
...And 6 more matches
Displaying Places information using views
remember that, because xul is xml, any ampersands in query uris must be written as entity
reference & and not simply &.
...see the tree
reference and trees tutorial for general information about trees.
... **the title column (and only the title column) automatically receives the favicon
referenced by the nsinavhistoryresultnode property icon.
...And 6 more matches
The Places database
any time a places component wants to
reference a url, whether visited or not, it refers to this table.
... each entry has an optional
reference to the moz_favicon table to identify the favicon of the page.
...it contains a
reference to the moz_places table which contains the url and other global statistics.
...And 6 more matches
nsIScriptableIO
for example: io.getfile("profile", "cookies.txt"); from an xpcom component, however, you will need to get a
reference as with other components: var scriptableio = components.classes["@mozilla.org/io/scriptable-io;1"] .getservice(); scriptableio.getfile("profile", "cookies.txt"); method overview nsifile getfile(in astring alocation, in astring afilename); nsifile getfilewithpath(in astring afilepath); nsisupports newinputstream(in nsivar...
...tional] in astring areplacechar, [optional] in unsigned long abuffersize); nsisupports newoutputstream(in nsivariant abase, in astring amode, [optional] in astring acharset, [optional] in astring areplacechar, [optional] in unsigned long abuffersize, [optional] in unsigned long apermissions); nsiuri newuri(in nsivariant auri); methods getfile() retrieves a
reference to a file or directory on disk.
... the file does not have to exist already; this method simply creates the file
reference which may then be passed to the newinputstream() or newoutputstream() method to open the file for reading or writing.
...And 6 more matches
<basic-shape> - CSS: Cascading Style Sheets
when creating a shape, the
reference box is defined by each property that uses <basic-shape> values.
... the coordinate system for the shape has its origin at the top-left corner of the
reference box, with the x-axis running to the right and the y-axis running downwards.
... all the lengths expressed in percentages are resolved from the used dimensions of the
reference box.
...And 6 more matches
href - SVG: Scalable Vector Graphics
the href attribute defines a link to a resource as a
reference url.
...<animatetransform>, <discard>, <feimage>, <image>, <lineargradient>, <mpath>, <pattern>, <radialgradient>, <script>, <set>, <textpath>, and <use> html, body, svg { height: 100%; } <svg viewbox="0 0 160 40" xmlns="http://www.w3.org/2000/svg"> <a href="https://developer.mozilla.org/"><text x="10" y="25">mdn web docs</text></a> </svg> in svg a for <a>, href defines the location of the
referenced object, expressed as a url
reference.
... value <url> default value none animatable yes example html, body, svg { height: 100%; } <svg viewbox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <image href="/files/2917/fxlogo.png" x="0" y="0" height="100" width="100"/> </svg> lineargradient for <lineargradient>, href defines url referring to a template gradient element; to be valid, the
reference must be to a different <lineargradient> or <radialgradient> element.
...And 6 more matches
Localizing an extension - Archive of obsolete content
if you haven't already created an extension, or would like to refresh your memory, take a look at the previous articles in this series: creating a status bar extension creating a dynamic status bar extension adding p
references to an extension download the sample you can download this article's sample code so you can look at it side-by-side with the article, or to use it as a basis for your own extension.
...each locale file maps entity names
referenced in the xul files to the strings themselves.
... the p
reference dialog, whose xul file is options.xul, has a corresponding options.dtd file that looks like this: <!entity options_window_title "stockwatcher 2 p
references"> <!entity options_symbol.label "stock to watch: "> the "options_window_title" entity maps to the string "stockwatcher 2 p
references", which is used as the title of the p
reference window.
...And 5 more matches
Proxy UI - Archive of obsolete content
products firefox menu: p
references > advanced tab > networking tab > connection button.
... thunderbird menu: p
references > advanced tab > networking tab > connection button.
... seamonkey menu: p
references > advanced group > proxies panel menu: right-click on offline-online button (on browser windows).
...And 5 more matches
Using Remote XUL - Archive of obsolete content
this also means you can't load xul using file:// urls unless you set the p
reference dom.allow_xul_xbl_for_file to true.
...in order to give them style we have to
reference a stylesheet with rules for styling menus.
...in this case, we'll
reference the default application stylesheet--the one used by the browser to style its own interface.
...And 5 more matches
XUL Questions and Answers - Archive of obsolete content
using the "icon" attribute on a button from xulplanet.com
reference: this attribute should be used to set the usage for common buttons.
... how to add and remove values to/from, set up inside a <prefwindow> container to handle the p
reference?
...some of them can be tied to a p
reference so that the p
reference is automatically updated as the control is manipulated.
...And 5 more matches
menulist - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] an element that can be used for drop-down choice lists.
... attributes accesskey, crop, disableautoselect, disabled, editable, focused, image, label, oncommand, open, p
reference, readonly, sizetopopup, tabindex, value properties accessibletype, crop, description, disableautoselect, disabled, editable, editor, image, inputfield, itemcount, label, menuboxobject, menupopup, open, selectedindex, selecteditem, tabindex, value methods appenditem, contains, getindexofitem, getitematindex, insertitemat, removeallitems, removeitemat, select examples <menulist> <m...
... p
reference type: id connects the element to a corresponding p
reference.
...And 5 more matches
tabbrowser - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] this element is used for holding a set of read-only views of web documents.
...if this attribute is set to true or omitted, autoscroll will be enabled or depending on the user p
reference general.autoscroll.
... contentviewerfile type: nsicontentviewerfile
reference to the nsicontentviewerfile interface for the document.
...And 5 more matches
textbox - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] an input field where the user can enter text.
... attributes cols, decimalplaces, disabled, emptytext, hidespinbuttons, increment, label, max, maxlength, min, multiline, newlines, onblur, onchange, onfocus, oninput, placeholder, p
reference, readonly, rows, searchbutton, size, spellcheck, tabindex, timeout, type, value, wrap, wraparound properties accessibletype, clickselectsall, decimalplaces, decimalsymbol, defaultvalue, disabled, editor, emptytext, increment, inputfield, label, max, maxlength, min, placeholder, readonly, searchbutton, selectionend, selectionstart, size, spinbuttons, tabindex, textlength, timeout, type, value...
... p
reference type: id connects the element to a corresponding p
reference.
...And 5 more matches
Index - Learn web development
you can have a look at all of the different types on the css values and units
reference page; you will encounter many of these in use as you work through these lessons.
...to find way more html elements, you can take a look at our html element
reference (the inline text semantics section would be a great place to start.) in the next article we will look at the html elements you'd use to structure the different parts of an html document.
... 235 getting started with html attribute, beginner, codingscripting, comment, element, guide, html, entity
reference, whitespace you made it to the end of the article!
...And 5 more matches
A first splash into JavaScript - Learn web development
in this case, we are using constants to store
references to parts of our user interface; the text inside some of them might change, but the html elements
referenced stay the same.
... the first three constants are each made to store a
reference to the results paragraphs in our html, and are used to insert values into the paragraphs later on in the code (note how they are inside a <div> element, which is itself used to select all three later on for resetting, when we restart the game): <div class="resultparas"> <p class="guesses"></p> <p class="lastresult"></p> <p class="loworhi"></p> </div> the next two constants store
references to the form text input and submit button and are used to control submit...
... <label for="guessfield">enter a guess: </label><input type="text" id="guessfield" class="guessfield"> <input type="submit" value="submit guess" class="guesssubmit"> our final two variables store a guess count of 1 (used to keep track of how many guesses the player has had), and a
reference to a reset button that doesn't exist yet (but will later).
...And 5 more matches
What went wrong? Troubleshooting JavaScript - Learn web development
note: see our typeerror: "x" is not a function
reference page for more details about this error.
...the earliest instance you'll find in the javascript is on line 48: const loworhi = document.queryselector('loworhi'); at this point we are trying to make the variable contain a
reference to an element in the document's html.
...line 48 is using a document.queryselector() method to get a
reference to an element by selecting it with a css selector.
...And 5 more matches
Internationalized Domain Names (IDN) Support in Mozilla Browsers
this will list all the p
references for your current profile.
... these p
references can be modified or new ones can be created without quitting the browser using the steps described below.
... create a new p
reference item using the menu new > string via a right-mouse click.
...And 5 more matches
Assert.jsm
undefined equal( actual, expected, message ); parameters actual test subject to be evaluated as equivalent to expected expected test
reference to evaluate against actual message short explanation of the expected result notequal() the non-equality assertion tests for whether two objects are not equal with !=.
... undefined notequal( actual, expected, message ); parameters actual test subject to be evaluated as not equivalent to expected expected test
reference to evaluate against actual message short explanation of the expected result deepequal() the equivalence assertion tests a deep equality relation.
... undefined deepequal( actual, expected, message ); parameters actual test subject to be evaluated as equivalent to expected, including nested properties expected test
reference to evaluate against actual message short explanation of the expected result notdeepequal() the non-equivalence assertion tests for any deep inequality.
...And 5 more matches
Leak-hunting strategies and tips
strategy for finding leaks when trying to make a particular testcase not leak, i recommend focusing first on the largest object graphs (since these entrain many smaller objects), then on smaller
reference-counted object graphs, and then on any remaining individual objects or small object graphs that don't entrain other objects.
... build with --enable-trace-malloc common leak patterns when trying to find a leak of
reference-counted objects, there are a number of patterns that could cause the leak: ownership cycles.
...--jesse) dropping a
reference on the floor by: forgetting to release (because you weren't using nscomptr when you should have been): see bug 99180 or bug 93087 for an example or bug 28555 for a slightly more interesting one.
...And 5 more matches
NSS_3.12_release_notes.html
libraries: 3.12.0.3 new in nss 3.12 3 new shared library are shipped with nss 3.12: nssutil sqlite nssdbm 1 new include file is shipped with nss3.12: utilrename.h new functions in the nss shared library: cert_checknamespace (see cert.h) cert_encodecertpoliciesextension (see cert.h) cert_encodeinfoaccessextension (see cert.h) cert_encodeinhibitanyextension (see cert.h) cert_encodenotice
reference (see cert.h) cert_encodepolicyconstraintsextension (see cert.h) cert_encodepolicymappingextension (see cert.h) cert_encodesubjectkeyid (see certdb/cert.h) cert_encodeusernotice (see cert.h) cert_findcrlentryreasonexten (see cert.h) cert_findcrlnumberexten (see cert.h) cert_findnameconstraintsexten (see cert.h) cert_getclassicocspdisabledpolicy (see cert.h) cert_getclassicocspenabledhardfailurepol...
...bug 384926: libpkix build problems bug 389411: mingw build error - undefined
reference to `_imp__pkix_errornames' bug 389904: avoid multiple decoding/encoding while creating and using pkix_pl_x500name bug 390209: pkix aia manager tries to get certs using aia url with ocsp access method bug 390233: umbrella bug for libpkix cert validation failures discovered from running vfyserv bug 390499: libpkix does not check cached cert chain for revocation bug 390502: libpkix fails cert valida...
...inderbox bug 158242: pk11_putcrl is very memory inefficient bug 287563: please make cert_comparenamewithconstraints a non-static function bug 301496: nss_shutdown failure in p7sign bug 324878: crlutil -l outputs false crl names bug 337010: oom crash [[@ nsc_digestkey] dereferencing possibly null att bug 343231: certutil issues certs for invalid requests bug 353371: klocwork 91117 - null pointer de
reference in cert_certchainfromcert bug 353374: klocwork 76494 - null ptr derefs in cert_formatname bug 353375: klocwork 76513 - null ptr deref in nsscertificatelist_docallback bug 353413: klocwork 76541 free uninitialized pointer in cert_findcerturlextension bug 353416: klocwork 76593 null ptr deref in nsscryptokiprivatekey_setcertificate bug 353423: klocwork bugs in nss/lib/pk11wrap/dev3hack.c bug 353739...
...And 5 more matches
Garbage collection
(this means if an object has all
references to it dropped during this incremental gc, it will be collected on the next incremental gc.) this is called snapshot-at-the-beginning because it is conceptually equivalent to taking a snapshot of live objects at the beginning of the incremental gc and marking all those objects.
...spidermonkey also needs a read barrier for weak
references (see dictionary).
... this is because weak
references have a similar problem as is solved by the incremental write barrier above, but cannot use the same solution.
...And 5 more matches
JSPrincipals
properties name type description refcount mozilla::atomic<int32_t>
reference count.
...obsolete since jsapi 12 destroy void (*)(jscontext *, jsprincipals *) pointer to the function that decrements the
reference count and possibly frees the principals if they are no longer in use.
... jsprincipals has refcount property that is the
reference count.
...And 5 more matches
Starting WebLock
you can then use the service manager to add the component to the category: nsresult rv; nscomptr<nsiservicemanager> servman = do_queryinterface((nsisupports*)acompmgr, &rv); if (ns_failed(rv)) return rv; do_queryinterface the previous code uses the special nscomptr function do_queryinterface that lets you queryinterface without having to worry about
reference counting, error handling, and other overhead.
... once you have a nsiservicemanager
reference, you can ask it for the service you are interested in.
...if you really want to change the return result type you can use a special flag in your xpidl that denotes this (see the xpidl
reference).
...And 5 more matches
nsIAccessibleText
x x coordinate of the bounding box of the
referenced character.
... y y coordinate of the bounding box of the
referenced character.
... width width of the bounding box of the
referenced character.
...And 5 more matches
nsIWebBrowser
method overview void addwebbrowserlistener(in nsiweak
reference alistener, in nsiidref aiid); void removewebbrowserlistener(in nsiweak
reference alistener, in nsiidref aiid); attributes attribute type description containerwindow nsiwebbrowserchrome the chrome object associated with the browser instance.
...if the implementation does this, it must also implement nsiweak
reference.
...note: nsiinterfacerequestor and nsiweak
reference might also need to be implemented by the chrome object.
...And 5 more matches
Guide to the Fullscreen API - Web APIs
≤79alternate name alternate name uses the non-standard name: webkitisfullscreenfirefox full support 64 full support 64 no support 49 — 65disabled disabled from version 49 until version 65 (exclusive): this feature is behind the full-screen-api.unprefix.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.
... 18alternate name alternate name uses the non-standard name: webkitisfullscreenfirefox android full support 64 full support 64 no support 49 — 65disabled disabled from version 49 until version 65 (exclusive): this feature is behind the full-screen-api.unprefix.enabled p
reference (needs to be set to true).
...And 5 more matches
HTMLSlotElement.name - Web APIs
let slots = this.shadowroot.queryselectorall('slot'); slots[1].addeventlistener('slotchange', function(e) { let nodes = slots[1].assignednodes(); console.log('element in slot "' + slots[1].name + '" changed to "' + nodes[0].outerhtml + '".'); }); here we grab
references to all the slots, then add a slotchange event listener to the 2nd slot in the template — which is the one that keeps having its contents changed in the example.
... 53edge full support 79firefox full support 63 full support 63 no support 59 — 63disabled disabled from version 59 until version 63 (exclusive): this feature is behind the dom.webcomponents.shadowdom.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.
...And 5 more matches
Slottable: assignedSlot - Web APIs
here is one such example: <my-paragraph> <span slot="my-text">let's have some different text!</span> </my-paragraph> in our javascript file we get a
reference to the <span> shown above, then log a
reference to the original <slot> element the <span> was inserted in.
... 53edge full support 79firefox full support 63 full support 63 no support 59 — 63disabled disabled from version 59 until version 63 (exclusive): this feature is behind the dom.webcomponents.shadowdom.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.
...And 5 more matches
WebXR Device API - Web APIs
xr
referencespace a subclass of xrspace which is used to identify a spatial relationship in relation to the user's physical environment.
... the xr
referencespace coordinate system is expected to remain unchanged through the lifespan of the xrsession.the world has no boundaries and extends infinitely in every direction.
... xrbounded
referencespace xrbounded
referencespace extends the xr
referencespace coordinate system to further include support for a finite world with set boundaries.
...And 5 more matches
Window.customElements - Web APIs
the customelements read-only property of the window interface returns a
reference to the customelementregistry object, which can be used to register new custom elements and get information about previously registered custom elements.
... 54edge full support 79firefox full support 63 full support 63 no support 59 — 63disabled disabled from version 59 until version 63 (exclusive): this feature is behind the dom.webcomponents.customelements.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.
...And 5 more matches
CSS Scrollbars - CSS: Cascading Style Sheets
</div> result
reference css properties scrollbar-width scrollbar-color specifications specification status comment css scrollbars level 1 working draft initial definition.
... no support noedge no support nofirefox full support 64 full support 64 full support 63disabled disabled from version 63: this feature is behind the layout.css.scrollbar-width.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera no support nosafari no support nowebview android no support nochrome android no support nofirefox android full support 64 full support 64 full support 63disabled disabled from version 63: this feature is behind the layout.css.scrollbar-width.enabled p
reference (needs to be set to true).
...And 5 more matches
transform-box - CSS: Cascading Style Sheets
values content-box the content box is used as the
reference box.
... the
reference box of a <table> is the border box of its table wrapper box, not its table box.
... border-box the border box is used as the
reference box.
...And 5 more matches
WeakRef - JavaScript
a weakref object lets you hold a weak
reference to another object, without preventing that object from getting garbage-collected.
... description a weakref object contains a weak
reference to an object, which is called its target or referent.
... a weak
reference to an object is a
reference that does not prevent the object from being reclaimed by the garbage collector.
...And 5 more matches
refX - SVG: Scalable Vector Graphics
the refx attribute defines the x coordinate of an element’s
reference point.
... two elements are using this attribute: <marker> and <symbol> marker for <marker>, refx defines the x coordinate of the marker’s
reference point, which is to be placed exactly at the marker’s position on the shape.
... left the
reference point of the marker is placed at the left edge of the shape.
...And 5 more matches
refY - SVG: Scalable Vector Graphics
the refy attribute defines the y coordinate of an element’s
reference point.
... two elements are using this attribute: <marker> and <symbol> marker for <marker>, refy defines the y coordinate of the marker’s
reference point, which is to be placed exactly at the marker’s position on the shape.
... top the
reference point of the marker is placed at the top edge of the shape.
...And 5 more matches
Using templates and slots - Web Components
this element and its contents are not rendered in the dom, but it can still be
referenced using javascript.
... let's look at a trivial quick example: <template id="my-paragraph"> <p>my paragraph</p> </template> this won't appear in your page until you grab a
reference to it with javascript and then append it to the dom, using something like the following: let template = document.getelementbyid('my-paragraph'); let templatecontent = template.content; document.body.appendchild(templatecontent); although trivial, you can already start to see how this could be useful.
...ement-name">template</span> <span slot="description">a mechanism for holding client- side content that is not to be rendered when a page is loaded but may subsequently be instantiated during runtime using javascript.</span> </element-details> about that snippet, notice these points: the snippet has two instances of <element-details> elements which both use the slot attribute to
reference the named slots "element-name" and "description" we put in the <element-details> shadow root .
...And 5 more matches
Using the WebAssembly JavaScript API - WebAssembly
tables a webassembly table is a resizable typed array of
references that can be accessed by both javascript and webassembly code.
... while memory provides a resizable typed array of raw bytes, it is unsafe for
references to be stored in a memory since a
reference is an engine-trusted value whose bytes must not be read or written directly by content for safety, portability, and stability reasons.
... tables have an element type, which limits the types of
reference that can be stored in the table.
...And 5 more matches
URIs and URLs - Archive of obsolete content
identifier an identifier is an object that can act as a
reference to something that has identity.
... noteable differences necko does not support certain deprecated forms of relative urls, based on the following part of rfc 2396: if the scheme component is defined, indicating that the
reference starts with a scheme name, then the
reference is interpreted as an absolute uri and we are done.
... otherwise, the
reference uri's scheme is inherited from the base uri's scheme component.
...And 4 more matches
Learn XPI Installer Scripting by Example - Archive of obsolete content
overview of the install script xpi install scripts are written in javascript using xpinstall engine syntax defined in the xpinstall api
reference.
...in the example above, "netscape seamonkey" is the display name, "browser" is the registry name, and the version is "6.0.0.2000110807." see initinstall in the xpinstall api
reference for more information on the initialization process.
..."program" represents the directory where software itself is installed (e.g., c:\program files\ on win32 systems), as opposed to supporting directories like "components", "chrome", or "temporary" (see getfolder in the xpinstall api
reference for a list of keywords).
...And 4 more matches
XUL element attributes - Archive of obsolete content
« xul
reference home the following attributes are common to all xul elements: align type: one of the values below the align attribute specifies how child elements of the box are aligned, when the size of the box is larger than the total size of the children.
... for xml datasources, only one source is used, either the url of an xml file or an anchor
reference to another element within the same document.
... for instance, the
reference '#data' refers to an element with the id 'data'.
...And 4 more matches
XUL accessibility guidelines - Archive of obsolete content
learn more keyboard shortcuts and accesskeys mozilla keyboard planning faq and cross
reference.
...a short
reference for using the accesskey attribute.
...for example, under the privacy section of p
references there are three groupboxes captioned: history, cookies, and private data.
...And 4 more matches
How to enable locale switching in a XULRunner application - Archive of obsolete content
modify the application p
references first, you need to tell xulrunner that your application wishes to ignore the default os locale and that it will do its own choosing instead.
... edit the application p
references file and set "intl.locale.matchos" to false.
... your application is now going to ignore the os locale, so it would be a good idea to define one to fall back on using the p
reference "general.useragent.locale".
...And 4 more matches
Using the W3C DOM - Archive of obsolete content
the method returns a
reference to the uniquely identified element, which can then be used to script the element.
...lements correctly, javascript best practices, by matt kruse for accessing a group of elements, the dom specification also includes getelementsbytagname, which returns a nodelist of all the elements with the given tag name in the order they appear in the document: var arrcollection_of_pargs = document.getelementsbytagname("p"); var objfirst_parg = arrcollection_of_pargs[0]; // objfirst_parg will
reference the first paragraph in the document objfirst_parg.style.border = "2px solid green"; // and now, the first paragraph in the document // gets a 2px solid green border.
... dom level 2 provides for the assignment of new values to the css properties of an element using the elemref.style object
reference.
...And 4 more matches
LiveConnect Overview - Archive of obsolete content
javaclass a javascript
reference to a java class.
... javapackage a javascript
reference to a java package.
...for example, you can use the following: var mystring = new java.lang.string("hello world"); instead of the longer version: var mystring = new packages.java.lang.string("hello world"); working with java arrays when any java method creates an array and you
reference that array in javascript, you are working with a javaarray.
...And 4 more matches
Choosing the right approach - Learn web development
refer to the
reference documentation for the api you're using for more specific support info.
... further information cooperative asynchronous javascript: timeouts and intervals, in particular settimeout() settimeout()
reference setinterval() setinterval() is a method that allows you to run a function repeatedly with a set interval of time between each execution.
... further information cooperative asynchronous javascript: timeouts and intervals, in particular setinterval() setinterval()
reference requestanimationframe() requestanimationframe() is a method that allows you to run a function repeatedly, and efficiently, at the best framerate available given the current browser/system.
...And 4 more matches
sslcrt.html
this page is part of the ssl
reference that we are migrating into the format described in the mdn style guide.
... upgraded documentation may be found in the current nss
reference certificate functions chapter 5 certificate functions this chapter describes the functions and related types used to work with a certificate database such as the cert7.db database provided with communicator.
... syntax #include <cert.h> secstatus cert_verifycertname( certcertificate *cert, char *hostname); parameters this function has the following parameters: cert a pointer to the certificate against which to check the hostname
referenced by hostname.
...And 4 more matches
nsICookieService
cookie-rejected broadcast whenever the user's p
references cause a cookie to be rejected from being set.
...this parameter may be null, but it is strongly recommended that a non-null value be provided to ensure that the cookie privacy p
references are honored.
... afirsturi the uri that the user originally typed in or clicked on to initiate the load of the document
referenced by auri.
...And 4 more matches
nsIDOMWindowInternal
this interface no longer has any members; it exists solely to prevent add-ons that
reference it from failing completely.
... self nsidomwindowinternal readonly: returns an object
reference to the window object.
... navigator nsidomnavigator readonly: returns a
reference to the navigator object.
...And 4 more matches
Working with windows in chrome code
the window.opendialog function works similarly, but lets you specify optional arguments that can be
referenced from the javascript code.
...diator: var wm = components.classes["@mozilla.org/appshell/window-mediator;1"] .getservice(components.interfaces.nsiwindowmediator); var browserwindow = wm.getmostrecentwindow("navigator:browser"); // read values from |browserwindow| you might be tempted to use a similar technique to apply the changes the user made in the options dialog, but a better way to do that is to use p
references observers.
... storing shared data in p
references if you just need to store a string or a number, writing a whole xpcom component may be an unnecessary complication.
...And 4 more matches
Add to iPhoto
the core foundation api is implemented by the corefoundation object, which consists of two methods to initialize and shut down the library, a
reference to the library, and all the types and methods declared to support core foundation.
... ctypes.void_t, ctypes.voidptr_t); // input: object to release this.cfretain = this.lib.declare("cfretain", ctypes.default_abi, ctypes.void_t, ctypes.voidptr_t); // input: object to retain these methods are used to manage the
reference counting for core foundation objects.
...we use a few of these routines because the launch services routine we'll be using to launch iphoto and pass it the image to import uses cfurl for the file
references.
...And 4 more matches
Debugger - Firefox Developer Tools
onnewpromise(promise) a new promise object,
referenced by the debugger.object instance promise, has been allocated in the scope of the debuggees.
... onpromisesettled(promise) a promise object,
referenced by the debugger.object instance promise that was allocated within a debuggee scope, has settled (either fulfilled or rejected).
... the debugger instance does not hold a strong
reference to its debuggee globals: if a debuggee global is not otherwise reachable, then it is dropped from the debugger’s set of debuggees.
...And 4 more matches
Web Console remoting - Firefox Developer Tools
actor p
references to allow the web console to configure logging options while it is running, we have added the setp
references packet: { "to": "conn0.console9", "type": "setp
references", "p
references": { "networkmonitor.saverequestandresponsebodies": false } } reply: { "updated": [ "networkmonitor.saverequestandresponsebodies" ], "from": "conn0.console10" } for convenience you can use ...
...webconsoleclient.setp
references(prefs, onresponse).
... in firefox 25 we added the getp
references request packet: { "to": "conn0.console34", "type": "getp
references", "p
references": [ "networkmonitor.saverequestandresponsebodies" ] } reply packet: { "p
references": { "networkmonitor.saverequestandresponsebodies": false }, "from": "conn0.console34" } you can also use the webconsoleclient.getp
references(prefs, onresponse).
...And 4 more matches
about:debugging (before Firefox 68) - Firefox Developer Tools
whether or not system add-ons appear in the list on this page depends on the setting of the devtools.aboutdebugging.showsystemaddons p
reference.
... the "enable add-on debugging" button works by turning on the devtools.chrome.enabled and devtools.debugger.remote-enabled p
references.
... both p
references must be true to enable add-on debugging.
...And 4 more matches
GamepadEvent - Web APIs
the gamepadevent interface of the gamepad api contains
references to gamepads connected to the system, which is what the gamepad events window.gamepadconnected and window.gamepaddisconnected are fired in response to.
...d implemented with the vendor prefix: webkitedge full support ≤18firefox full support 29 full support 29 no support 24 — 28disabled disabled from version 24 until version 28 (exclusive): this feature is behind the dom.gamepad.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera full support 22 full support 22 no support 15 — 21prefixed prefixed implemented with the vendor prefix: webkitsafari full support 10.1webview android no support nochrome android full support yesfirefox android full support 32opera android full support 22 full support 22 no support ...
...And 4 more matches
HTMLAnchorElement - Web APIs
htmlhyperlinkelementutils.hash is a usvstring representing the fragment identifier, including the leading hash mark ('#'), if any, in the
referenced url.
... htmlhyperlinkelementutils.host is a usvstring representing the hostname and port (if it's not the default port) in the
referenced url.
... htmlhyperlinkelementutils.hostname is a usvstring representing the hostname in the
referenced url.
...And 4 more matches
HTMLAreaElement - Web APIs
htmlhyperlinkelementutils.hash is a usvstring containing the fragment identifier (including the leading hash mark (#)), if any, in the
referenced url.
... htmlhyperlinkelementutils.host is a usvstring containing the hostname and port (if it's not the default port) in the
referenced url.
... htmlhyperlinkelementutils.hostname is a usvstring containing the hostname in the
referenced url.
...And 4 more matches
PaymentAddress.toJSON() - Web APIs
desktopmobilechromeedgefirefoxinternet exploreroperasafariandroid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internettojson()chrome full support 61disabled full support 61disabled disabled from version 61: this feature is behind the #web-payments p
reference (needs to be set to enabled).
... to change p
references in chrome, visit chrome://flags.edge full support 15firefox full support 62notes disabled full support 62notes disabled notes available only in nightly builds.
... requires the comma-delineated list in dom.payments.request.supportedregions to contain one or more of the supported 2-character iso locales, currently us and ca.disabled from version 62: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
...And 4 more matches
Viewpoints and viewers: Simulating cameras in WebXR - Web APIs
there are a few articles about the fundamental math, geometry, and other concepts behind webgl and webxr which may be useful to read before or while reading this one, including: explaining basic 3d theory matrix math for the web webgl model view projection geometry and
reference spaces in webxr ed.
...fortunately, physicists like galileo, newton, lorentz, and einstein have given us the principle of relativity, which states that the laws of physics have the same form in every frame of
reference.
...for more detail on the subject, see the articles geometry and
reference spaces, webgl model view projection, and matrix math for the web.
...And 4 more matches
XRSessionInit - Web APIs
at this time, all features are identified using strings from the xr
referencespacetype enumeration, but future updates to the webxr standard may add more features.
...these values currently must come from the enumerated type xr
referencespacetype.
... default features immersive sessions all immersive (both immersive-vr and immersive-ar) sessions support both the viewer and local
reference spaces.
...And 4 more matches
Using the application cache - HTML: Hypertext Markup Language
how the application cache works enabling the application cache to enable the application cache for an application, include the manifest attribute in the <html> element: <html manifest="/example.appcache"> … </html> the manifest attribute
references a url for a cache manifest file: a text file that lists urls that browsers should cache for your application.
... storage location and clearing the offline cache in chrome you can clear the offline cache by selecting "clear browsing data..." in the p
references or by visiting chrome://appcache-internals/.
... safari has a similar "empty cache" setting in its p
references but a browser restart may also be required.
...And 4 more matches
CSS Houdini
the houdini apis below you can find links to the main
reference pages covering the apis that fall under the houdini umbrella, along with links to guides to help you if you need guidance in learning how to use them.
... no guide or
reference has currently been written for this api.
... css properties and values api
reference css properties and values api guide css typed om converting cssom value strings into meaningfully typed javascript representations and back can incur a significant performance overhead.
...And 4 more matches
Grammar and types - JavaScript
(for more information, see the detailed
reference about javascript's lexical grammar.) it is considered best practice, however, to always write a semicolon after a statement, even when it is not strictly needed.
... an attempt to access an undeclared variable results in a
referenceerror exception being thrown: var a; console.log('the value of a is ' + a); // the value of a is undefined console.log('the value of b is ' + b); // the value of b is undefined var b; // this one may puzzle you until you read 'variable hoisting' below console.log('the value of c is ' + c); // uncaught
referenceerror: c is not defined let x; console.log('the value of x is ' + x); // the value o...
...f x is undefined console.log('the value of y is ' + y); // uncaught
referenceerror: y is not defined let y; you can use undefined to determine whether a variable has a value.
...And 4 more matches
WebAssembly.Table.prototype.set() - JavaScript
the set() prototype method of the webassembly.table object mutates a
reference stored at a given index to a different value.
... syntax table.set(index, value); parameters index the index of the function
reference you want to mutate.
... value the value you want to mutate the
reference to.
...And 4 more matches
this - JavaScript
syntax this value a property of an execution context (global, function or eval) that, in non–strict mode, is always a
reference to an object and in strict mode can be any value.
... class base {} class good extends base {} class alsogood extends base { constructor() { return {a: 5}; } } class bad extends base { constructor() {} } new good(); new alsogood(); new bad(); //
referenceerror examples this in function contexts // an object can be passed as the first argument to call or apply and this will be bound to it.
...var obj = { bar: function() { var x = (() => this); return x; } }; // call bar as a method of obj, setting its this to obj // assign a
reference to the returned function to fn var fn = obj.bar(); // call fn without setting this, would normally default // to the global object or undefined in strict mode console.log(fn() === obj); // true // but caution if you
reference the method of obj without calling it var fn2 = obj.bar; // calling the arrow function's this from inside the bar method() // will now return window, because it follows the...
...And 4 more matches
var - JavaScript
'use strict'; function foo() { var x = 1; function bar() { var y = 2; console.log(x); // 1 (function `bar` closes over `x`) console.log(y); // 2 (`y` is in scope) } bar(); console.log(x); // 1 (`x` is in scope) console.log(y); //
referenceerror in strict mode, `y` is scoped to `bar` } foo(); variables declared using var are created before any code is executed in a process known as hoisting.
... 'use strict'; console.log(x); // undefined (note: not
referenceerror) console.log('still going...'); // still going...
...assignment to an unqualified identifier in strict mode will result in a
referenceerror, to avoid the accidental creation of properties on the global object.
...And 4 more matches
with - JavaScript
otherwise a
referenceerror is thrown.
... performance pro & contra pro: the with statement can help reduce file size by reducing the need to repeat a lengthy object
reference without performance penalty.
...use of 'with' will relieve the interpreter of parsing repeated object
references.
...And 4 more matches
context-menu - Archive of obsolete content
if the total number of menu items in the main context menu from all add-ons exceeds a certain number (normally 10 but configurable with the extensions.addon-sdk.context-menu.overflowthreshold p
reference) all of the menu items will instead appear in an overflow menu to avoid making the context menu too large.
... var selection = require("sdk/selection"); and within the contentscript,
reference the selected text as selection.text private windows if your add-on has not opted into private browsing, then any menus or menu items that you add will not appear in context menus belonging to private browser windows.
...the url can be remote, a
reference to an image in the add-on's data directory, or a data uri.
...And 3 more matches
console - Archive of obsolete content
there are two system p
references that can be used to override this default: extensions.sdk.console.loglevel: if set, this determines the logging level for all installed sdk-based add-ons.
...this overrides the global p
reference if both p
references are set.
... both these p
references can be set programmatically using the p
references/service api, or manually using about:config.
...And 3 more matches
jpm - Archive of obsolete content
this is the
reference page for jpm.
... command
reference jpm supports the following commands: jpm init create a skeleton add-on as a starting point for your add-on.
... --no-copy use with caution because jpm run|test changes many p
references, never use with your main profile.
...And 3 more matches
JavaScript Client API - Archive of obsolete content
the best, and most up-to-date,
reference to sync's internal apis is the source code.
...there is an engine for bookmarks, tabs, history, p
references, etc.
...the tabs and p
references engines work that way.
...And 3 more matches
Adding Methods to XBL-defined Elements - Archive of obsolete content
you can call the method by using code such as element.getmaximum(5, 10) where element is a
reference to an element defined by the xbl containing the getmaximum method.
...instead, you must call the document's getanonymousnodes() method: var value=document.getanonymousnodes(element); here, 'element' should be set to a
reference to the element that you want to get the anonymous content of.
... the following example creates a row of buttons: <binding id="buttonrow"> <content> <button label="yes"/> <button label="no"/> <button label="sort of"/> </content> </binding> to refer to each button, you can use the getanonymousnodes() function, passing it a
reference to the element the binding is bound to as the parameter.
...And 3 more matches
Modifying a XUL Interface - Archive of obsolete content
the button element has two attributes "label" and "oncommand" a javascript function named "addbutton()" this script first gets a
reference to the box with getelementbyid(), which is the container to add a new button to.
... the function getelementbyid() does not know that the box it is looking for happens to be containing the tag that has the oncommand attribute that
referenced it.
...the syntax of these functions is as follows: parent.appendchild(child); parent.insertbefore(child,
referencechild); parent.replacechild(newchild, oldchild); parent.removechild(child); it should be fairly straightforward from the function names what these functions do.
...And 3 more matches
XUL Structure - Archive of obsolete content
by accessing a file using a chrome url, the files receive elevated privileges to access local files, access p
references and bookmarks and perform other privileged operations.
...to disable this mechanism, it is necessary to change the p
reference nglayout.debug.disable_xul_cache.
... in firefox, this p
reference may be added to the user p
references by typing "about:config" in the address field, and setting this value to true.
...And 3 more matches
The Implementation of the Application Object Model - Archive of obsolete content
the second section describes the xul/rdf architecture itself and outlines enhancements to the xul language in order to allow the markup language to
reference local data and to indicate how and when it would like to be annotatable with local data.
... the first reason to have local/remote merging is that a remote file must be able to
reference local data and have it merged in with the information that it specified.
... referencing local data: the localdata attribute a tag that
references local rdf data does so by using the localdata attribute, which gives the uri of the local data that should be merged in with the xul content tree.
...And 3 more matches
Extentsions FAQ - Archive of obsolete content
why does his extension not able to read the contents of a folder and then produce a segmentation fault after his extension reads p
references in thunderbird?
... does firefox clean up the p
references set by extension?
... firefox will clean all those p
references which are still "default", that is not changed by the user or the application/extension.
...And 3 more matches
NPObject - Archive of obsolete content
« gecko plugin api
reference « scripting plugins summary npobject is a structure that holds a pointer to an npclass and an integer
reference count, and possibly also implementation specific (i.e.
...npobjects are
reference counted objects, so callers need to be careful to properly release acquired
references to them.
... to aid with the
reference counting and ownership management in general, the functions npn_createobject(), npn_retainobject(), npn_releaseobject(), and npn_releasevariantvalue() are provided as part of this api.
...And 3 more matches
Introduction to events - Learn web development
you can gather from this (and from glancing at the mdn event
reference) that there are a lot of events that can be responded to.
...tton>change color</button> button { margin: 10px }; the javascript looks like so: const btn = document.queryselector('button'); function random(number) { return math.floor(math.random() * (number+1)); } btn.onclick = function() { const rndcol = 'rgb(' + random(255) + ',' + random(255) + ',' + random(255) + ')'; document.body.style.backgroundcolor = rndcol; } in this code, we store a
reference to the button inside a constant called btn, using the document.queryselector() function.
...these are a little out of scope for this article, but if you want to read them, visit the addeventlistener() and removeeventlistener()
reference pages.
...And 3 more matches
Embedding API for Accessibility
there are many other pieces, such as p
references to allow the user to change foreground and background colors, and font sizes.
...for double-sized text, use nsidomwindow::settextzoom(2.0); using accessibility p
references there are a number of prefs related to accessibility.
...scomptr<nsipref> prefs(do_getservice(ns_pref_contractid, &rv)); prefs->setboolpref("bool.pref.name", pr_true /* or pr_false */); prefs->setintpref("int.pref.name", newvalue); prefs->setcharpref("string.pref.name", newcharstarvalue); to manually add a pref to your settings, add a line like the following to your prefs.js: user_pref("accessibility.browsewithcaret", true); accessibility prefs
reference the following is a description of what accessibility prefs give us (or will give us), for accessibility: functionality implementation works as of images setintpref("network.image.imagebehavior", behavior); /* behavior: 0=accept, 1=accept images from originating server on...
...And 3 more matches
Multiprocess on Windows
as you should already know, you can't directly touch a com object's
reference count unless you're already inside the apartment which contains that object.
...the mscom library provides a set of smart pointers that are aware of com apartments: mscom smart pointer types pointer type release semantics stauniqueptr<t> forces
reference to be released on the main thread.
... mtauniqueptr<t> forces
reference to be released on an mta thread.
...And 3 more matches
Creating reftest-based unit tests
to run all the reftests, go to the directory where you save firefox's source code and run: ./mach reftest if you want to run a particular set of reftests, pass the path as an argument: ./mach reftest path/from/sourcedir/reftest.list and to run a single reftest just pass the path to the test file (not the
reference file): ./mach reftest path/from/sourcedir/reftest-name.html there is no reftest equivalent to mach mochitest --keep-open, but temporarily adding the reftest-wait class to a test (or disabling the script that removes it) will keep it open longer.
...more information on this file can be found in the readme.txt
referenced below, which was written by the creator of the reftest tool.
...one should be able to "snap a picture" of the glyph as it should be displayed and then the
reference page would include that graphic in an <img> element.
...And 3 more matches
Eclipse CDT Manual Setup
below.) initial workspace p
references when you open eclipse, it will ask you to "select a workspace" (a directory where eclipse will store files that it generates during indexing, and so on.) it's recommended that you have a separate workspace containing only a single project for each mozilla source tree [rational], and that you choose a directory outside the mozilla source.
... to avoid confusion in this and the following sections, note that "workspace p
references" and "project properties" are different things (we'll get to the details below).
... whenever you create a new workspace for a mozilla source tree, you should be sure to turn off the following two settings in the workspace p
references (window > p
references, or eclipse > p
references) before creating a project in that workspace: in "general > workspace", disable "build automatically" in "c/c++ > indexer", disable "automatically update the index" turning off automatic indexing prevents the cpu intensive indexer from running at various stages during the steps below before we're ready.
...And 3 more matches
IME handling guide
it depends on the result of nsiwidget::getimeupdatep
reference() what is observed.
...note that some of them are notified only when nsiwidget::getimeupdatep
reference() returns flags which request the notifications.
... when widget wants notifications during deactive, widget includes notify_during_deactive to the result of nsiwidget::getimeupdatep
reference().
...And 3 more matches
Introduction to NSPR
setting thread priorities preempting threads interrupting threads for
reference information on the nspr api used for thread scheduling, see threads.
...at best they are intended to specify a p
reference with respect to the amount of cpu time that a higher-priority thread might expect relative to a lower-priority thread.
... this p
reference is still subject to resource availability, and must not be used in place of proper synchronization.
...And 3 more matches
ssltyp.html
this page is part of the ssl
reference that we are migrating into the format described in the mdn style guide.
... upgraded documentation may be found in the current nss
reference selected ssl types and structures chapter 3 selected ssl types and structures this chapter describes some of the most important types and structures used with the functions described in the rest of this document, and how to manage the memory used for them.
...some of these functions also use types defined by nspr and described in the nspr
reference.
...And 3 more matches
Rhino serialization
upon deserialization the initial object and the objects it refers to are all created and the
references between the objects are resolved.
...javascript objects contain
references to prototypes and to parent scopes.
...we want to be able to serialize a javascript object and then deserialize it into a new scope and have all of the
references from the deserialized object to prototypes and parent scopes resolved correctly to refer to objects in the new scope.
...And 3 more matches
JS::CompileOptions
source belongs to a dom element in the following cases: source belongs to a <script> element if it is the element's text content (that is, it is written out as the body of the <script> element in the markup text), or is the source document
referenced by its src attribute.
... description in the most common use case, a compileoptions instance is allocated on the stack, and holds non-owning
references to non-pod option values: strings; principals; objects; and so on.
... the code declaring the instance guarantees that such option values will outlive the compileoptions itself: objects are otherwise rooted; principals have had their
reference counts bumped; strings will not be freed until the compileoptions goes out of scope.
...And 3 more matches
Split object
suppose a script in page a, in tab ta, has a
reference to the window object of page b in another tab tb.
... (the problem is even a bit subtler than this, since the
reference may be direct or indirect.
... the script in a might have opened tb by calling window.open, which returns a direct
reference to tb's window.
...And 3 more matches
TPS Tests
the python test runner will read a test file (in javascript format), setup one or more firefox profiles with the necessary extensions and p
references, then launch firefox and pass the test file to the extension.
...in particular, it will set p
references from the "p
references" property, and so you can set the "identity.fxaccounts.autoconfig.uri" p
reference to point to any fxa server you want.
... "fx_account": { "username": "foobar@restmail.net", "password": "hunter2" }, "p
references": { // use "https://stable.dev.lcip.org" for dev instead of stage "identity.fxaccounts.autoconfig.uri": "https://accounts.stage.mozaws.net" // possibly more p
references...
...And 3 more matches
Mork
mid ( metatable | row | '-' | row
reference)* '}' row = '[' '-'?
... mid ( cell | metarow | '-' )* ']' group = '@$${' hex '{@' (dictionary|table|row)* ('@$$}' hex '}@' | '@$$}~~}@') metadictionary = '<' cell* '>' metatable = '{' ( cell | row | row
reference )* '}' metarow = '[' cell* ']' row
reference = hex ( '!' hex )?
...the presence of a row or row
reference in the meta-table indicates that said row is the meta-row of the table: it contains arbitrary properties for the entire table just like a normal row.
...And 3 more matches
nsIMsgDBHdr
nt32property(in string propertyname, in unsigned long propertyval); void markread(in boolean read); void markflagged(in boolean flagged); void markhasattachments(in boolean hasattachments); void setprioritystring(in string priority); unsigned long orflags(in unsigned long flags); unsigned long andflags(in unsigned long flags); void set
references(in string
references); acstring getstring
reference(in long refnum); void setrecipientsarray(in string names, in string addresses,in unsigned long numaddresses); void setcclistarray(in string names, in string addresses,in unsigned long numaddresses); void setbcclistarray(in string names, in string addresses,in unsigned long numaddresses);new in thunderbird 3.1 ...
... num
references unsigned short readonly: indicates the number of
references this header has.
... set
references() void set
references(in string
references); parameters
references sets the list of
references for a news message.
...And 3 more matches
nsIMutableArray
weak whether or not to store the element using a weak
reference.
... exceptions thrown ns_error_failure when a weak
reference is requested, but the element does not support nsiweak
reference.
... weak whether or not to store the element using a weak
reference.
...And 3 more matches
nsISessionStore
1.0 66 introduced gecko 1.8 inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) in versions of firefox prior to 3.5, the user p
reference browser.sessionstore.enabled must be true for these calls to be successful.
... starting in firefox 3.5, this p
reference is no longer used.
... if the p
reference browser.sessionstate.enabled is false when this method is called, then you will get an exception about "awindows[i] has no properties".
...And 3 more matches
Dominators view - Firefox Developer Tools
this is useful for understanding the "retained size" of objects allocated by your site: that is, the size of the objects themselves plus the size of the objects that they keep alive through
references.
... any other node that's
referenced from two different roots (since in this case, neither root dominates it).
...if you suspect that an object is being leaked, this will show you exactly which objects are holding a
reference to it.
...And 3 more matches
Settings - Firefox Developer Tools
there's a light theme, which is the default: a dark theme: common p
references settings that apply to more than one tool.
... if common p
references is not included in the settings, web console logs can be persisted by using the 'about:config' url in browser address bar, searching for: 'devtools.webconsole.persistlog' then toggling this value to true inspector show browser styles a setting to control whether styles applied by the browser (user-agent styles) should be displayed in the inspector's rules view.
...this setting works by toggling the about:config p
reference "devtools.markup.collapseattributes".
...And 3 more matches
Node.insertBefore() - Web APIs
the node.insertbefore() method inserts a node before a
reference node as a child of a specified parent node.
... syntax let insertednode = parentnode.insertbefore(newnode,
referencenode) insertednode the node being inserted (the same as newnode) parentnode the parent of the newly inserted node.
...
referencenode the node before which newnode is inserted.
...And 3 more matches
NodeIterator - Web APIs
nodefilter.show_entity_
reference 16 shows entity
reference nodes.
... nodeiterator.expandentity
references read only is a boolean indicating if, when discarding an entity
reference its whole sub-tree must be discarded at the same time.
... nodeiterator.
referencenode read only returns the node to which the iterator is anchored.
...And 3 more matches
Taking still photos with WebRTC - Web APIs
video this will be a
reference to the <video> element after the page is done loading.
... canvas this will be a
reference to the <canvas> element after the page is done loading.
... photo this will be a
reference to the <img> element after the page is done loading.
...And 3 more matches
Rendering and the WebXR frame animation callback - Web APIs
this begins with getting the
reference space in which you want to draw, with its origin and orientation set at the viewer's starting position and viewing direction.
... kicking off the renderer thus looks like this: let worldrefspace; async function runxr(xrsession) { worldrefspace = await xrsession.request
referencespace("immersive-vr"); if (worldrefspace) { viewerrefspace = worldrefspace.getoffset
referencespace( new xrrigidtransform(viewerstartposition, viewerstartorientation)); animationframerequestid = xrsession.requestanimationframe(mydrawframe); } } after getting a
reference space for the immersive world, this creates an offset
reference space representing the position and orientation of the viewer by creating an xrrigidtransf...
...orm representing that position and orientation, then calling the xr
referencespace method getoffset
referencespace().
...And 3 more matches
XRRigidTransform.position - Web APIs
example to create a
reference space which can be used to place an object at eye level (assuming eye level is 1.5 meters): function onsessionstarted(xrsession) { xrsession.addeventlistener("end", onsessionended); gl = initgraphics(xrsession); let gllayer = new xrwebgllayer(xrsession, gl); xrsession.updaterenderstate({ baselayer: gllayer }); if (immersivesession) { xrsession.request
referencespace("bounded-floo...
...r").then((refspace) => { refspacecreated(refspace); }).catch(() => { session.request
referencespace("local-floor").then(refspacecreated); }); } else { session.request
referencespace("viewer").then(refspacecreated); } } function refspacecreated(refspace) { if (immersivesession) { xr
referencespace = refspace; } else { xr
referencespace = refspace.getoffset
referencespace( new xrrigidtransform({y: -1.5}); ); } xrsession.requestanimationframe(onframe); } after setting up the graphics context for webxr use, this begins by looking to see if a variable immersivesession is true; if so, we first request a bounded-floor
reference space.
... if that fails (probably because bounded-floor isn't supported), we try requesting a local-floor
reference space.
...And 3 more matches
prefers-reduced-motion - CSS: Cascading Style Sheets
syntax no-p
reference indicates that the user has made no p
reference known to the system.
... user p
references for firefox, the reduce request is honoured if: in gtk/gnome: gnome tweaks > general tab (or appearance, depending on version) > animations is turned off.
... in macos: system p
references > accessibility > display > reduce motion.
...And 3 more matches
Introduction to Web development - Developer guides
html elements
reference guide — a comprehensive guide to html elements with details on how browsers support them css getting started with css — an absolute beginners guide to css covers basic concepts and fundamentals css
reference guide — a complete guide to css with details on the level of gecko/firefox support for each.
... javascript
reference guide — a comprehensive, regularly updated guide to javascript for all levels of learning from beginner to advanced.
... sitepoint a reliable
reference site for learning html, css and javascript which also mentions feature support across different browsers and known browser bugs.
...And 3 more matches
Keyed collections - JavaScript
see also the map
reference page for more examples and the complete api.
...the object
references in the keys are held weakly, meaning that they are a target of garbage collection (gc) if there is no other
reference to the object anymore.
... for more information and example code, see also "why weakmap?" on the weakmap
reference page.
...And 3 more matches
TypeError: cyclic object value - JavaScript
the javascript exception "cyclic object value" occurs when object
references were found in json.
... message typeerror: cyclic object value (firefox) typeerror: converting circular structure to json (chrome and opera) typeerror: circular
reference in value argument not supported (edge) error type typeerror what went wrong?
... the json format per se doesn't support object
references (although an ietf draft exists), hence json.stringify() doesn't try to solve them and fails accordingly.
...And 3 more matches
Install Manifests - Archive of obsolete content
required property
reference your install manifest must specify these properties correctly otherwise your add-on may not install.
... optional property
reference you may need to supply these properties, depending on the capabilities of your add-on.
... note: if you want to restore the old behavior of strict compatibility checking of all add-ons, regardless of the value of this setting in their manifests, you can set the extensions.strictcompatibility p
reference to true.
...And 2 more matches
Appendix B: Install and Uninstall Scripts - Archive of obsolete content
the best approach in this case is to use a p
reference, as explained in the handling p
references section.
... } } in this case you would need to declare the first run p
reference in your default p
references file, with a default value of false.
... you should also change the p
reference value before you run any other first run code.
...And 2 more matches
Making it into a static overlay - Archive of obsolete content
static overlays are added to a xul file via a
reference at the top of the file (much like stylesheets and javascript scripts).
... dynamic overlays are added to a xul file via a
reference in the chrome registry.
...its next line is the stylesheet
reference we previously added to navigator.xul.
...And 2 more matches
Getting Started - Archive of obsolete content
on every line that
references <code>classic.jar we need to make some changes (there are about 5 lines).
...open the p
references dialog box and take a look at all of the buttons in there.
...creating the install script getting it ready for the installation before we can package everything up for installation, we need to remove all
references to classic.
...And 2 more matches
Tuning Pageload - Archive of obsolete content
this document explains which p
references to tweak to affect your pageload time.
...to best understand what the following p
references affect, there are a few things you should know.
... nglayout.initialpaint.delay this is a p
reference that specifies a delay, in milliseconds, after the data from the server has started coming in.
...And 2 more matches
Elements - Archive of obsolete content
css: div { -moz-binding: url(mybinding.xml#default); } dom: element
reference.style.mozbinding = "url(mybinding.xml#default)"; in both cases above we are using binding with id="default" contained in file mybinding.xml starting with firefox 3, you can also use a data: url to embed the binding inline: div { -moz-binding: url(data:text/xml;charset=utf-8,%3c%3fxml%20version%3d%221.0%22%3f%3e%0a%3cbindings%20id%3d%22xbltestbindings%22%20xmlns%3d%22http%3a//www.mozilla.or...
...this name can then be used to
reference the implementation.
...if no name attribute is specified then the binding's document uri and id are used to uniquely
reference the binding's implementation.
...And 2 more matches
browser - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a xul <browser> element represents a frame which is expected to contain a view of a web document.
...eteenabled, autocompletepopup, autoscroll, disablehistory, disableglobalhistory, disablesecurity, droppedlinkhandler, homepage, showcaret, src, type properties accessibletype, cangoback, cangoforward, contentdocument, contentprincipal, contenttitle, contentvieweredit, contentviewerfile, contentwindow, currenturi, docshell, documentcharsetinfo, homepage, markupdocumentviewer, messagemanager, p
references, securityui, sessionhistory, webbrowserfind, webnavigation, webprogress methods addprogresslistener, goback, goforward, gohome, gotoindex, loaduri, loaduriwithflags, reload, reloadwithflags, removeprogresslistener, stop, swapdocshells examples <!-- shows mozilla homepage inside a groupbox --> <groupbox flex="1"> <caption label="mozilla homepage"/> <browser type="content" src="http:...
...if this attribute is set to true or omitted, autoscroll will be enabled or depending on the user p
reference general.autoscroll.
...And 2 more matches
Getting started with XULRunner - Archive of obsolete content
here is the subfolder structure: + myapp/ | +-+ chrome/ | | | +-+ content/ | | | | | +-- main.xul | | | | | +-- main.js | | | +-- chrome.manifest | +-+ defaults/ | | | +-+ p
references/ | | | +-- prefs.js | +-- application.ini | +-- chrome.manifest notice that there are 5 files in the folder structure: application.ini, chrome.manifest (2), prefs.js, and main.xul.
...here is the application root chrome.manifest: manifest chrome/chrome.manifest step 6: set up p
references the prefs.js file tells xulrunner the name of the xul file to use as the main window.
...*/ 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 p
references include: toolkit.defaultchromeuri specifies the default window to open when the application is launched.
...And 2 more matches
MacFAQ - Archive of obsolete content
to do this, type: xulrunner-bin --install-app /path/to/appdir note the path to your application must end with the directory containing application.ini; you should not
reference application.ini in this command.
...to enable the mac "about" menu make sure that you use "aboutname" as the id for your menu item to enable the mac "p
references" menu make sure that you use "menu_p
references" as the id for your options/p
references menu item toolbars mac windows have a small "jelly bean" button in the top right corner.
... taking advantage of the core code "openurl" from "nscommandlineservicemac.cpp", you'll see that it looks for "browser.chromeurl" before defaulting to navigator.xul, and this is called when an xulrunner app is already running, so: create a default p
reference of "browser.chromeurl" that points to your new "hiddenwindow" as such: "chrome://myxul/content/hiddenwindow.xul" next take the code below and drop it in, to create the hiddenwindow.xul (note: the debug function and nsicommandline try/catch can be removed, all you need is the window.arguments[0]) <?xml version="1.0"?> <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul...
...And 2 more matches
Specifying Startup Chrome Window - Archive of obsolete content
main chrome window in order to specify the main chrome window of your xulrunner application, you'll need to add a p
references file to your application directory structure and add a p
reference named toolkit.defaultchromeuri to that file.
...it's directory structure is as follows: xulmine ├───chrome ├───components └───defaults └───p
references in defaults/p
references, there is a file named xulmine.js.
... its contents are: pref("toolkit.defaultchromeuri", "chrome://xulmine/content/xulmine.xul"); the toolkit.defaultchromeuri p
reference specifies that the xul window at chrome://xulmine/content/xulmine.xul is the main application window.
...And 2 more matches
Archived Mozilla and build documentation - Archive of obsolete content
see the
references section for information on creating extension in earlier browsers.
...web pages can
reference generators via <link rel="microsummary"> elements in their <head> elements.
... download manager p
references there are several p
references used by the download manager.
...And 2 more matches
Gecko Compatibility Handbook - Archive of obsolete content
** notes ** - the solution quick
reference needs more attention.
... solution quick
reference as discussed in mozilla's using web standards in your web pages, coding for cross-browser compatibility requires you write standard markup that gecko-based browsers, netscape 4, and ie browsers can render properly.
...(related article) stylesheet is not being recognized the presence of the title attribute in a link element that
references an external stylesheet can cause the stylesheet may be causing the external stylesheet to be ignored.
...And 2 more matches
Common Firefox theme issues and solutions - Archive of obsolete content
in order to work around this issue, you need to either rename any of the following files that are in your chrome://browser/skin/ folder and fix any
references to those files, or copy them to the folder chrome://browser/skin/lion/: keyhole-circle.png toolbar.png toolbarbutton-dropmarker.png tabbrowser/alltabs-box-bkgnd-icon.png tabview/tabview.png places/toolbar.png linux linux select box fields are showing both drop arrow and spinner arrows on linux: the styling of drop down select box fields may show both a drop arrow and up/down spinner ...
...the fix is to make sure any style rule that
references #appmenu-button also has a comparable
reference to #appmenu-toolbar-button in chrome://browser/skin/browser.css.
...the common cause of this is style rules that
reference [iconsize="small"] without excluding [mode="text"].
...And 2 more matches
Browser Feature Detection - Archive of obsolete content
et explorer 6 / 7 dom core 1 100% 100% 100% 75% / 91% 75% / 75% dom core 2 100% 100% 100% 70% / 94% 58% / 58% dom 1 html 100% 100% 100% 100% / 100% 100% / 100% dom css 1 100% 100% 100% 100% / 100% 96% / 96% dom css 2 100% 98% 67% 71% / 83% 38% / 42% test results cross
reference dom core level 1 support for properties/methods in document name firefox 1.5 ie 6 & 7 opera 8.54 - 9.01 document.doctype true true true document.implementation true true true document.documentelement true true true document.createelement() true true true document.createdocumentfragment() true ...
... true true document.createtextnode() true true true document.createcomment() true true true document.createcdatasection() true false true document.createprocessinginstruction() true false true document.createattribute() true true true document.createentity
reference()obsolete since gecko 7 (method present but only returns null: bug 9850) false false document.getelementsbytagname() true true true dom core level 2 support for properties/methods in document name firefox 1.5 ie 6 & 7 opera 8.54 - 9.01 document.doctype true true true document.implementation true true true document.documentelement true ...
...cument.createdocumentfragment() true true true document.createtextnode() true true true document.createcomment() true true true document.createcdatasection() true false true document.createprocessinginstruction() true false true document.createattribute() true true true document.createentity
reference()obsolete since gecko 7 true false false document.getelementsbytagname() true true true document.importnode() true false true document.createelementns() true false true document.createattributens() true false true document.getelementsbytagnamens() true false true document.getelementbyid() ...
...And 2 more matches
JavaPackage - Archive of obsolete content
summary core object a javascript
reference to a java package.
... created by a
reference to the package name used with the packages keyword: packages.javapackage javapackageis the name of the object's java package.
... in javascript, a javapackage is a
reference to a java package.
...And 2 more matches
Sharp variables in JavaScript - Archive of obsolete content
a sharp variable is a syntax in object initializers that allows serialization of objects that have cyclic
references or multiple
references to the same object.
... #1 = {}; // this doesn't do much since the sharp variable is out of scope immediately after a = #2 = {}; // slightly more useful since we retain a
reference to the new object to
reference the sharp variable, simply append another sharp (#) to the end of the variable name.
... this acts as a
reference to initial variable.
...And 2 more matches
Archive of obsolete content
it's here for historical
reference only.
... adding p
references to an extension this article takes the creating a dynamic status bar extension sample to the next level, adding a popup menu that lets you quickly switch between multiple stocks to watch.
... it also adds a p
reference dialog that lets you switch to a stock other than one of the ones included in the popup menu.
...And 2 more matches
Styling lists - Learn web development
the unstyled example is available on github (check out the source code too.) the html for our list example looks like so: <h2>shopping (unordered) list</h2> <p>paragraph for
reference, paragraph for
reference, paragraph for
reference, paragraph for
reference, paragraph for
reference, paragraph for
reference.</p> <ul> <li>hummus</li> <li>pita</li> <li>green salad</li> <li>halloumi</li> </ul> <h2>recipe (ordered) list</h2> <p>paragraph for
reference, paragraph for
reference, paragraph for
reference, paragraph for
reference, paragraph for
reference, paragraph for refer...
...ence.</p> <ol> <li>toast pita, leave to cool, then slice down the edge.</li> <li>fry the halloumi in a shallow, non-stick pan, until browned on both sides.</li> <li>wash and chop the salad.</li> <li>fill pita with salad, hummus, and fried halloumi.</li> </ol> <h2>ingredient description list</h2> <p>paragraph for
reference, paragraph for
reference, paragraph for
reference, paragraph for
reference, paragraph for
reference, paragraph for
reference.</p> <dl> <dt>hummus</dt> <dd>a thick dip/sauce generally made from chick peas blended with tahini, lemon juice, salt, garlic, and other ingredients.</dd> <dt>pita</dt> <dd>a soft, slightly leavened flatbread.</dd> <dt>halloumi</dt> <dd>a semi-hard, unripened, brined cheese with a higher-than-usual melting point, usually made from goa...
... the <dd> elements have margin-left of 40px (2.5em.) the <p> elements we've included for
reference have a top and bottom margin of 16px (1em), the same as the different list types.
...And 2 more matches
Drawing graphics - Learn web development
now add the following lines of javascript inside the <script> element: const canvas = document.queryselector('.mycanvas'); const width = canvas.width = window.innerwidth; const height = canvas.height = window.innerheight; here we have stored a
reference to the canvas in the canvas constant.
...to draw onto the canvas we need to get a special
reference to the drawing area called a context.
...the simplest version takes three parameters — a
reference to the image you want to render, and the x and y coordinates of the image's top left corner.
...And 2 more matches
Setting up your own test automation environment - Learn web development
you can feel free to change the
references to some of the other browsers we added, remove them, etc., depending on what browsers you have available to test on your operating system.
...in terms of what string to use inside the .forbrowser() method for other browsers, see the browser enum
reference page.
...for more complete details, you should consult the selenium-webdriver javascript api
reference for a detailed
reference, and the selenium main documentation's selenium webdriver and webdriver: advanced usage pages, which contain multiple examples to learn from written in different languages.
...And 2 more matches
Adding phishing protection data providers
installing a new data provider to install a data provider for phishing protection, it's necessary to set a series of p
references to provide details about the provider.
... you can find examples of how to read and write p
references in the article adding p
references to an extension.
... required p
references browser.safebrowsing.provider.idnum.name a human-readable name for the data provider.
...And 2 more matches
Chrome registration
if more than one locale is registered for a package, the chrome registry will select the best-fit locale using the user's p
references.
...if more than one skin is registered for a package, the chrome registry will select the best-fit skin using the user's p
references.
... contentaccessible chrome resources can no longer be
referenced from within <img>, <script>, or other elements contained in, or added to, content that was loaded from an untrusted source.
...And 2 more matches
Eclipse CDT
in principle, you can set the index to rebuild automatically by opening the workspace p
references, selecting "c/c++ > indexer", and reenabling "automatically update the index".
...you can change the key bindings by opening the workspace p
references (eclipse > p
references, or window > p
references) and selecting "general > keys".
...isn't library_path for compile time, not runtime, linking?) in the workspace p
references, you may want to go to "c/c++ > debug > gdb" and deselect "stop on startup at", so that eclipse won't automatically break in main() when it launches firefox for debugging.
...And 2 more matches
Storage access policy: Block cookies from trackers
we’ve added a p
reference that allows you to add custom domains to the tracking protection url classifier.
...if you are presented with a page that warns you "this may void your warranty!", click "i accept the risk!" search for the p
reference name "urlclassifier.trackingannotationtable.testentries".
... if the p
reference already exists, edit the p
reference value.
...And 2 more matches
HTML parser threading
references to dom nodes in tree ops are of type nsicontent** and are called content handles.
...the tree builder never de
references a content handle.
...for any given content handle, the node creation tree op is always the first tree op in queue that uses that handle, so subsequent non-creation tree ops can safely de
reference the handle to obtain a real node.
...And 2 more matches
Interfacing with the Add-on Repository
enabling the recommendation feature in current builds of firefox 4, the recommendation api doesn't work because the p
reference for the url to query to get recommended add-ons is not included by default; see bug 628785.
... to make the service work for the time being, you can use code like this when your extension starts up: var prefsservice = components.classes["@mozilla.org/p
references-service;1"] .getservice(components.interfaces.nsiprefservice); var prefbranch = prefsservice.getbranch("extensions."); var recurl = ""; try { recurl = prefbranch.getcharpref("getaddons.recommended.url"); } catch(e) { recurl = ""; } if (recurl == "") { prefbranch.setcharpref("getaddons.recommended.url", "https://services.addons.mozilla.org/%locale%/%app%/api/%api_version%/list/recommended/all/%max_results%/%os%/%version%?src=firefox"); prefsservice.savepreffile(null); } this fetches the value of the extensions.getaddons.recommended.url p
reference, and, if the p
reference doesn't...
... exist or has no value, sets the value of the p
reference to the correct one for the amo site.
...And 2 more matches
Promise
a
reference to an existing promise may be received by different means, for example as the return value of a call into an asynchronous api.
... once you have a
reference to a promise, you can call its then() method to execute an action when the value becomes available, or when an error occurs.
...you don't need to import the promise.jsm module to use a promise object to which you already have a
reference.
...And 2 more matches
source-editor.jsm
constants p
reference name constants these constants define the names of p
references used by the source editor.
...that object may contain any combination of the following properties: constant type description contextmenu string | element a
reference to the context menu to display when the user right-clicks in the editor.
...this value is overridden by the user p
reference named by sourceeditor.prefs.expand_tab.
...And 2 more matches
Localization content best practices
it's important to consider this when adding strings, and especially localization comments for strings that contain
references, or obscure technical details.
...privacy-link = privacy terms file-wide comments should use the same format, they should be at the top of the file (after the license header) and just drop the (entity name/key)
reference.
...the pair should be used to surround statements and
references to user input.
...And 2 more matches
Localizing extension descriptions
the localization information provided by the em:localized property can be overriden using a set of localized p
references as detailed below.
... if there is more than one locale with the same number of matching parts, then use the most general one (e.g., en in p
reference to en-gb when searching for en-us).
... if a p
reference isn't set and there isn't a matching em:localized property for the current locale or en-us, then the properties specified directly on the install manifest are used as a last resort, as they were always used before gecko 1.9.
...And 2 more matches
Leak And Bloat Tests
results printed on tinderbox output, these consist of: mail rlk
reference count leaks mail lk total bytes malloc'ed and not free'd mail mh maximum heap size mail a allocations - number of calls to malloc and friends.
...bloat testing are be stored in: http://mxr.mozilla.org/comm-central/source/mailnews/test/performance these files consist of: overlays (used to provide the hooks for the javascript): bloat/bloataddroverlay.xul bloat/bloatcomposeoverlay.xul bloat/bloatmainoverlay.xul javascript files (used to drive the tests): bloat/bloataddroverlay.js bloat/bloatcomposeoverlay.js bloat/bloatmainoverlay.js p
reference settings (used to provide a defined profile, see below): common/mailnewstestprefs.js python scripts (used to set up the profile and run the test): bloat/setupbloattest.py bloat/runtest.py common/setupcommonmailnews.py pre-defined profile initial setup: one pop3 account (mails tbd) one identity one smtp server defined (not used) future requirements/possibilities: one address book where...
... 08/04/2008: prefs.js created via tb with the above settings, the first section is for p
references included in tinderbox, the second section is ones which don't currently get set.
...And 2 more matches
NSS PKCS11 Functions
back to the nss
reference main page.
...caller owns the
reference if unsuccessful, null.
...this function will return a
reference to a slot.
...And 2 more matches
sslintro.html
this page is part of the ssl
reference that we are migrating into the format described in the mdn style guide.
... upgraded documentation may be found in the current nss
reference overview of an ssl application chapter 1 overview of an ssl application ssl and related apis allow compliant applications to configure sockets for authenticated, tamper-proof, and encrypted communications.
...you should use only the ssl apis (and related certificate, key, and pkcs #11 apis) that are described in this document, the ssl
reference.
...And 2 more matches
sslkey.html
this page is part of the ssl
reference that we are migrating into the format described in the mdn style guide.
... upgraded documentation may be found in the current nss
reference key functions chapter 6 key functions this chapter describes two functions used to manipulate private keys and key databases such as the key3.db database provided with communicator.
...when an application makes a copy of a particular certificate or key structure that already exists in memory, ssl makes a shallow copy--that is, it increments the
reference count for that object rather than making a whole new copy.
...And 2 more matches
GC Rooting Guide
within spidermonkey, it is suggested that these are used in p
reference to the template class (gecko uses the template versions): template class typedef js::rooted<js::value> js::rootedvalue js::rooted<jsobject*> js::rootedobject js::rooted<jsstring*> js::rootedstring js::rooted<jsscript*> js::rootedscript js::rooted<jsid> js::rootedid for example, instead of this: jsobject* localobj...
...a js::handle<t> is a
reference to a js::rooted<t>, and is created implicitly by referencing a js::rooted<t>: it is not valid to create a js::handle<t> manually (the whole point of a handle is that it only
reference pointers that the gc knows about so it can update them when they move).
...thus, it makes more sense to only root the gc thing once and reuse it through an indirect
reference.
...And 2 more matches
JSPRINCIPALS_HOLD
increment or decrement the
reference count of a jsprincipals object.
...they are
reference counted, not garbage collected.
...jsprincipals_hold(cx, principals) increments the
reference count of principals by 1.
...And 2 more matches
JS_SetCallReturnValue2
causes a native to return a
reference value (as allowed by ecma 262-3 §11.2.3).
... v jsval the id of the property of the
reference value to be returned from the native.
... description calling js_setcallreturnvalue2 indicates to the runtime that the native will return a value of type
reference.
...And 2 more matches
XPCOM changes in Gecko 2.0
documentation will be updated as time allows to remove
references to interfaces being "frozen" or "unfrozen." component registration the way xpcom components are registered changed in gecko 2.
...
references to nsigenericfactory.h should be replaced with mozilla/moduleutils.h.
... the os and abi chrome registration directives to achieve the same effect: binary-component components/windows/mycomponent.dll abi=winnt_x86-msvc binary-component components/mac/mycomponent.dylib abi=darwin_x86-gcc3 binary-component components/mac/mycomponent64.dylib abi=darwin_x86_64-gcc3 binary-component components/linux/mycomponent.so abi=linux_x86-gcc3 this also means that platform-specific p
references are no longer possible.
...And 2 more matches
operator+=
« xpcom api
reference summary this operator+= is a shortcut for the append family of functions.
... return values this operator returns a
reference back to the object being modified to allow operator chaining.
... return values this operator returns a
reference back to the object being modified to allow operator chaining.
...And 2 more matches
operator=
« xpcom api
reference summary this operator is a shortcut for the inherited nsacstring::assign family of functions.
... return values this operator returns a
reference back to the object being modified to allow operator chaining.
... return values this operator returns a
reference back to the object being modified to allow operator chaining.
...And 2 more matches
operator=
« xpcom api
reference summary this operator is a shortcut for the inherited nsastring::assign family of functions.
... return values this operator returns a
reference back to the object being modified to allow operator chaining.
... return values this operator returns a
reference back to the object being modified to allow operator chaining.
...And 2 more matches
IAccessibleHyperlink
the anchors would all
reference the image object.
... the anchortargets would
reference the second level accessible hyperlink objects.
...their anchors would also
reference the image object and their anchortargets would
reference urls or the objects that would be activated.
...And 2 more matches
nsIAccessibleRetrieval
inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) method overview nsiaccessible getaccessiblefor(in nsidomnode anode); nsiaccessible getaccessibleinshell(in nsidomnode anode, in nsipresshell apresshell); nsiaccessible getaccessibleinweakshell(in nsidomnode anode, in nsiweak
reference apresshell); obsolete since gecko 2.0 nsiaccessible getaccessibleinwindow(in nsidomnode anode, in nsidomwindow adomwin); obsolete since gecko 2.0 nsiaccessible getapplicationaccessible(); nsiaccessible getattachedaccessiblefor(in nsidomnode anode); nsiaccessible getcachedaccessible(in nsidomnode anode, in nsiweak
reference ashell); obsolete since gecko 2.0 ...
... nsiaccessnode getcachedaccessnode(in nsidomnode anode, in nsiweak
reference ashell); obsolete since gecko 2.0 nsidomnode getrelevantcontentnodefor(in nsidomnode anode); astring getstringeventtype(in unsigned long aeventtype); astring getstringrelationtype(in unsigned long arelationtype); astring getstringrole(in unsigned long arole); nsidomdomstringlist getstringstates(in unsigned long astates, in unsigned long aextrastates); methods getaccessiblefor() return an nsiaccessible for a dom node in pres shell 0.
...nsiaccessible getaccessibleinweakshell( in nsidomnode anode, in nsiweak
reference apresshell ); parameters anode the dom node to get an accessible for.
...And 2 more matches
nsILocaleService
silocale getapplicationlocale(); astring getlocalecomponentforuseragent(); nsilocale getlocalefromacceptlanguage(in string acceptlanguage); nsilocale getsystemlocale(); nsilocale newlocale(in astring alocale); nsilocale newlocaleobject(in nsilocaledefinition localedefinition); obsolete since gecko 1.9 methods getapplicationlocale() gets the user p
reference for locale from the operating system.
...getlocalecomponentforuseragent() gets the user p
reference for locale from the operating system.
...getlocalefromacceptlanguage() gets the most preferred locale from a list of locale p
references.
...And 2 more matches
nsINavBookmarksService
if ownsweak is false, the bookmark service will keep an owning
reference to the observer.
... if ownsweak is true, then aobserver must implement nsisupportsweak
reference, and the bookmark service will keep a weak
reference to the observer.
... ownsweak the owning
reference state (boolean).
...And 2 more matches
nsIPrincipal
void getp
references(out string prefbranch, out string id, out string subjectname, out string grantedlist, out string deniedlist, out boolean istrusted); boolean iscapabilityenabled(in string capability, in voidptr annotation); native code only!
...jsprincipals getjsprincipals( in jscontext cx ); parameters cx missing description return value missing description getp
references() returns the security p
references associated with this principal.
... void getp
references( out string prefbranch, out string id, out string subjectname, out string grantedlist, out string deniedlist, out boolean istrusted ); parameters prefbranch on return, contains the p
reference branch to which the p
references pertain.
...And 2 more matches
Frequently Asked Questions
this section will help you if you're fixing a broken build, or have what you think is a quick obvious question, and you don't have time to read the
reference manual.
...in most cases, the answer will just refer back into the
reference manual, above.
... ns_precondition "you can't de
reference a null nscomptr with operator->()" ns_precondition "you can't de
reference a null nscomptr with operator*()" other issues printf("%x\n", mynscomptr); can cause the program to crash on sigill (illegal instruction), and not on the line with the printf, which can make it tricky to figure out.
...And 2 more matches
Mozilla
these articles provide important guides and
references to ensuring the code you write is secure, including both design recommendations and testing guidelines.
... cookies p
references in mozilla these p
references apply to most mozilla products (including firefox and seamonkey), however they are application-specific, so not all of them may apply to you.
... p
references the p
reference system makes it possible to store data for mozilla applications using a key/value pairing system.
...And 2 more matches
Plug-in Basics - Plugins
the enabledplugin property is a
reference to a plugin object that represents the plug-in that is configured for the specified mime type.
...where this varies, the
reference entry for the function in the
reference section describes the difference.
... see the mozilla activex project page in the plug-in
references section below for more information about embedding activex controls in plug-ins or embedding plug-ins in activex applications.
...And 2 more matches
Dominators - Firefox Developer Tools
these concepts matter in memory analysis, because often an object may itself be small, but may hold
references to other much larger objects, and by doing this will prevent the garbage collector from freeing that extra memory.
...each node in the graph represents an object, and each connection between nodes (edge) represents a
reference from one object to another.
... so when an object becomes unreachable (for example, because it is only
referenced by a single local variable which goes out of scope) then any objects it
references also become unreachable, as long as no other objects
reference them: conversely, this means that objects are kept alive as long as some other reachable object is holding a
reference to them.
...And 2 more matches
CSS Typed Object Model API - Web APIs
cssunparsedvalue the cssunparsedvalue interface of the css typed object model api represents property values that
reference custom properties.
... it consists of a list of string fragments and variable
references.
... cssunparsedvalue.cssunparsedvalue() constructor creates a new cssunparsedvalue object which represents property values that
reference custom properties.
...And 2 more matches
How whitespace is handled by HTML, CSS, and in the DOM - Web APIs
for example, if you have a
reference to a parent node and want to affect its first element child using node.firstchild, if there is a rogue whitespace node just after the opening parent tag you will not get the result you are expecting.
... (normally |previoussibling| is a property * of all dom nodes that gives the sibling node, the node that is * a child of the same parent, that occurs immediately before the *
reference node.) * * @param sib the
reference node.
... * * @param sib the
reference node.
...And 2 more matches
IDBIndexSync - Web APIs
storename readonly domstring this index's
referenced object store.
... constraint_err if a record exists in this index with a key corresponding to the key parameter or the index is auto-populated, or if no record exists with a key corresponding to the value parameter in the index's
referenced object store.
... getobject() retrieves and returns the value from this index's
referenced object store that corresponds to the given key.
...And 2 more matches
Using IndexedDB - Web APIs
for the
reference documentation on the indexeddb api, see the indexeddb article and its subpages.
...// moreover, you may need
references to some window.idb* objects: window.idbtransaction = window.idbtransaction || window.webkitidbtransaction || window.msidbtransaction || {read_write: "readwrite"}; // this line should only be needed if it is needed to support the object's constants for older browsers window.idbkeyrange = window.idbkeyrange || window.webkitidbkeyrange || window.msidbkeyrange; // (mozilla has never prefixed these o...
...more on this later in updating the version of the database below, and the idbfactory.open
reference page.
...And 2 more matches
Capabilities, constraints, and settings - Web APIs
finally, the track's applyconstraints() method is called to configure the api as desired by specifying the values or ranges of values it wishes to use for any of the constrainable properties about which it has a p
reference.
... you can also change the constraints of an existing mediastreamtrack on the fly, by calling the track's applyconstraints() method, passing into it an object representing the constraints you wish to apply to the track: videotrack.applyconstraints({ width: 1920, height: 1080 }); in this snippet, the video track
referenced by videotrack is updated so that its resolution as closely as possible matches 1920x1080 pixels (1080p high definition).
... then we initialize the variables which will hold the mediatrackconstraints objects for the video and audio tracks, as well as the variables which will hold
references to the video and audio tracks themselves, to null.
...And 2 more matches
Node - Web APIs
these include attr, characterdata (which text, comment, and cdatasection are all based on), processinginstruction, documenttype, notation, entity, and entity
reference.
...possible values are: name value element_node 1 attribute_node 2 text_node 3 cdata_section_node 4 entity_
reference_node 5 entity_node 6 processing_instruction_node 7 comment_node 8 document_node 9 document_type_node 10 document_fragment_node 11 notation_node 12 node.nodevalue returns / sets the value of the current node.
... if the argument
referenced an existing node on the dom tree, the node will be detached from its current position and attached at the new position.
...And 2 more matches
Range.comparePoint() - Web APIs
the range.comparepoint() method returns -1, 0, or 1 depending on whether the
referencenode is before, the same as, or after the range.
... if the
reference node is a node of type text, comment, or cdatasection, then offset is the number of characters from the start of
reference node.
... for other node types, offset is the number of child nodes between the start of the
reference node.
...And 2 more matches
Using Web Workers - Web APIs
note: see the web workers api landing page for
reference documentation on workers and additional guides.
...worker('my_task.js'); myworker.onmessage = function(oevent) { console.log('worker said : ' + oevent.data); }; myworker.postmessage('ali'); my_task.js (the worker): postmessage("i\'m working before postmessage(\'ali\')."); onmessage = function(oevent) { postmessage('hi ' + oevent.data); }; the structured cloning algorithm can accept json and a few things that json can't — like circular
references.
...think of it as pass-by-
reference if you're from the c/c++ world.
...And 2 more matches
window.dump() - Web APIs
however, this use of dump is not affected by the p
reference mentioned below -- it will always be shown.
... it is therefore advisable to either check this p
reference yourself or use a debugging p
reference of your own to make sure you don't send lots of debugging content to a user's console when they might not be interested in it at all.
...to see the dump output you have to enable it by setting the p
reference browser.dom.window.dump.enabled to true.
...And 2 more matches
window.postMessage() - Web APIs
broadly, one window may obtain a
reference to another (e.g., via targetwindow = window.opener), and then dispatch a messageevent on it with targetwindow.postmessage().
... syntax targetwindow.postmessage(message, targetorigin, [transfer]); targetwindow a
reference to the window that will receive the message.
... methods for obtaining such a
reference include: window.open (to spawn a new window and then
reference it), window.opener (to
reference the window that spawned this one), htmliframeelement.contentwindow (to
reference an embedded <iframe> from its parent window), window.parent (to
reference the parent window from within an embedded <iframe>), or window.frames + an index value (named or numeric).
...And 2 more matches
XRSpace - Web APIs
at this time, those are xr
referencespace and xrbounded
referencespace.
... xrbounded
referencespace represents a
reference space which may move within a region of space whose borders are defined by an array of points laid out in clockwise order along the floor to define the passable region of the space.
... the origin of an xrbounded
referencespace is always at floor level, with its x and z coordinates typically defaulting to a location near the room's center.
...And 2 more matches
Web Accessibility: Understanding Colors and Luminance - Accessibility
newer technologies, such as opengl and direct3d incorporate support for the srgb gamma curve, although some articles for opengl
reference use of rgba rather than srgb.
... here is the definition of relative luminance as defined by the w3c: "the relative brightness of any point in a colorspace, normalized to 0 for darkest black and 1 for lightest white" this statement is of course accurate, but may be confusing when used in
reference to the rgb color space, which is an integer between 0 and 255.
...there are also different ways to refrence rgb: rgb decimal
reference: 153, 0, 0 and an rgb percent
reference: 60, 0, 0.
...And 2 more matches
:scope - CSS: Cascading Style Sheets
the :scope css pseudo-class represents elements that are a
reference point for selectors to match against.
... no support 20 — 32disabled disabled from version 20 until version 32 (exclusive): this feature is behind the layout.css.scope-pseudo.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera full support 15safari full support 7webview android full support ≤37chrome android full support 27firefox android full support 32notes full support 32notes notes firefox 55 removes support for <style scoped> but not for the :scope pseudo-class, which is still supported.
...And 2 more matches
@supports - CSS: Cascading Style Sheets
rt 28edge full support 12firefox full support 22 full support 22 no support 17 — 22disabled disabled from version 17 until version 22 (exclusive): this feature is behind the layout.css.supports-rule.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera full support 12.1safari full support 9webview android full support ≤37chrome android full support 28firefox android full support 22 full support 22 no support 17 — 22disabled disabled from version 17 until version 22 (exclusive): this feature is behind the layout.css.supports-rule.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android full support 12.1safari ios full support 9samsung internet android full support 1.5selector()chrome full support 83edge full support 83firefox full support 69 full support 69 full support 64disabled disabled from version 64: this feature is behind the layout.css.supports-selector.enabled p
reference (needs to be set to true).
...And 2 more matches
<color> - CSS: Cascading Style Sheets
mozilla color p
reference extensions -moz-activehyperlinktext user's p
reference for text color of active links.
... -moz-default-background-color user's p
reference for the document background color.
... -moz-default-color user's p
reference for the text color.
...And 2 more matches
Setting up adaptive streaming media sources - Developer guides
tation id="4" bandwidth="250000" width="480" height="360"> <baseurl>elephantsdream_h264bpl30_0250.264.dash</baseurl> </representation> <representation id="5" bandwidth="500000" width="480" height="360"> <baseurl>elephantsdream_h264bpl30_0500.264.dash</baseurl> </representation> </adaptationset> </period> </mpd> once you have generated your mpd file you can
reference it from within the video tag.
... once you have generated your mpd file you can
reference as expected it from within the <video> element: <video src="my.mpd" type="application/dash+xml"></video> it might be wise to provide a fallback: <video> <source src="my.mpd" type="application/dash+xml"> <!-- fallback --> <source src="my.mp4" type="video/mp4"> <source src="my.webm" type="video/webm"> </video> note: mpeg-dash playback relies on dash.js and browser support for media sou...
...rce extensions, see the latest dash.js
reference player.
...And 2 more matches
<img>: The Image Embed element - HTML: Hypertext Markup Language
auto default: no p
reference for the decoding mode.
...priority hints allow the values: auto: no p
reference.
...this provides them with significant leeway to tailor their selection based on things like user p
references or bandwidth conditions.
...And 2 more matches
X-DNS-Prefetch-Control - HTTP
the x-dns-prefetch-control http response header controls dns prefetching, a feature by which browsers proactively perform domain name resolution on both links that the user may choose to follow as well as urls for items
referenced by the document, including images, css, javascript, and so forth.
... this prefetching is performed in the background, so that the dns is likely to have been resolved by the time the
referenced items are needed.
...on firefox, this can be done by setting the network.dns.disableprefetch p
reference to true.
...And 2 more matches
HTTP headers - HTTP
save-data a boolean that indicates the user agent's p
reference for reduced data usage.
... do not track dnt expresses the user's tracking p
reference.
...see also the firefox user agent string
reference.
...And 2 more matches
Functions - JavaScript
see also the exhaustive
reference chapter about javascript functions to get to know the details.
...a closure must preserve the arguments and variables in all scopes it
references.
... this is not different from storing
references in other objects, but is often less obvious because one does not set the
references directly and cannot inspect them.
...And 2 more matches
Working with objects - JavaScript
car.prototype.color = null; car1.color = 'black'; see the prototype property of the function object in the javascript
reference for more information.
...so, the full definition of car would now look like function car(make, model, year, owner) { this.make = make; this.model = model; this.year = year; this.owner = owner; this.displaycar = displaycar; } then you can call the displaycar method for each of the objects as follows: car1.displaycar(); car2.displaycar(); using this for object
references javascript has a special keyword, this, that you can use within a method to refer to the current object.
...delete myobj.a; console.log ('a' in myobj); // output: "false" you can also use delete to delete a global variable if the var keyword was not used to declare the variable: g = 17; delete g; comparing objects in javascript, objects are a
reference type.
...And 2 more matches
Array.prototype.slice() - JavaScript
elements of the original array are copied into the returned array as follows: for object
references (and not the actual object), slice copies object
references into the new array.
...if a
referenced object changes, the changes are visible to both the new and original arrays.
...both include a
reference to the object myhonda.
...And 2 more matches
String.prototype.localeCompare() - JavaScript
the localecompare() method returns a number indicating whether a
reference string comes before, or after, or is the same as the given string in sort order.
... syntax
referencestr.localecompare(comparestring[, locales[, options]]) parameters comparestring the string against which the
referencestr is compared.
... return value a negative number if
referencestr occurs before comparestring; positive if the
referencestr occurs after comparestring; 0 if they are equivalent.
...And 2 more matches
WeakMap - JavaScript
the weakmap object is a collection of key/value pairs in which the keys are weakly
referenced.
... the second inconvenience is a memory leak because the arrays ensure that
references to each key and each value are maintained indefinitely.
... these
references prevent the keys from being garbage collected, even if there are no other
references to the object.
...And 2 more matches
WeakSet - JavaScript
the weakset is weak, meaning
references to objects in a weakset are held weakly.
... if no other
references to an object stored in the weakset exist, those objects can be garbage collected.
... use case: detecting circular
references functions that call themselves recursively need a way of guarding against circular data structures by tracking which objects have already been processed.
...And 2 more matches
WebAssembly.Table.prototype.get() - JavaScript
the get() prototype method of the webassembly.table() object retrieves a function
reference stored at a given index.
... syntax table.get(index); parameters index the index of the function
reference you want to retrieve.
... return value a function
reference — this is an exported webassembly function, a javascript wrapper for an underlying wasm function.
...And 2 more matches
Optional chaining (?.) - JavaScript
the optional chaining operator (?.) permits reading the value of a property located deep within a chain of connected objects without having to expressly validate that each
reference in the chain is valid.
...chaining operator, except that instead of causing an error if a
reference is nullish (null or undefined), the expression short-circuits with a return value of undefined.
... this results in shorter and simpler expressions when accessing chained properties when the possibility exists that a
reference may be missing.
...And 2 more matches
<use> - SVG: Scalable Vector Graphics
most attributes on use do not override those already on the element
referenced by use.
...only the attributes x, y, width, height and href on the use element will override those set on the
referenced element.
... however, any other attributes not set on the
referenced element will be applied to the use element.
...And 2 more matches
SVG and CSS - SVG: Scalable Vector Graphics
note: elements
referenced by <use> elements inherit the styles from that element.
... */ #outer-petals { opacity: .75; --segment-fill-fill: azure; --segment-fill-stroke: lightsteelblue; --segment-fill-stroke-width: 1; --segment-edge-fill: none; --segment-edge-stroke: deepskyblue; --segment-edge-stroke-width: 3; --segment-fill-fill-hover: plum; --segment-fill-stroke-hover: none; --segment-edge-stroke-hover: slateblue; } /* non-standard way of styling elements
referenced via <use> elements, supported by some older browsers */ #outer-petals .segment-fill { fill: azure; stroke: lightsteelblue; stroke-width: 1; } #outer-petals .segment-edge { fill: none; stroke: deepskyblue; stroke-width: 3; } #outer-petals .segment:hover > .segment-fill { fill: plum; stroke: none; } #outer-petals .segment:hover > .segment-edge { stroke: slateblue; } /* inner...
... petals */ #inner-petals { --segment-fill-fill: yellow; --segment-fill-stroke: yellow; --segment-fill-stroke-width: 1; --segment-edge-fill: none; --segment-edge-stroke: yellowgreen; --segment-edge-stroke-width: 9; --segment-fill-fill-hover: darkseagreen; --segment-fill-stroke-hover: none; --segment-edge-stroke-hover: green; } /* non-standard way of styling elements
referenced via <use> elements, supported by some older browsers */ #inner-petals .segment-fill { fill: yellow; stroke: yellow; stroke-width: 1; } #inner-petals .segment-edge { fill: none; stroke: yellowgreen; stroke-width: 9; } #inner-petals .segment:hover > .segment-fill { fill: darkseagreen; stroke: none; } #inner-petals .segment:hover > .segment-edge { stroke: green; } open the document in y...
...And 2 more matches
Private Properties - Archive of obsolete content
the second problem is more severe: the thumbnail cache maintains a strong
reference to each thumbnail object, so they will never be freed, even when their corresponding image has gone out of scope.
...a weakmap is very similar to an ordinary hash map, but differs from it in two crucial ways: it can use ordinary objects as keys it does not maintain a strong
reference to its values to understand how weakmaps are used in practice, the following rewrites the thumbnail cache using a weakmap: let thumbnails = new weakmap(); function getthumbnail(image) { let thumbnail = thumbnails.get(image); if (!thumbnail) { thumbnail = createthumbnail(image); thumbnails.set(image, thumbnail); } return thumbnail; } this version suffers from none of the problems we mentioned earlier.
...nal(this).x = x; internal(this).y = y; } point.prototype.getx = function () { return internal(this).x; }; point.prototype.setx = function (x) { internal(this).x = x; }; point.prototype.gety = function () { return internal(this).y; }; point.prototype.sety = function (y) { internal(this).y = y; }; the only way for a function to access the properties x and y, is if it has a
reference to an instance of point and its internal namespace.
...moreover, because members of point have a
reference to the internal namespace, they can access private properties on other instances of point.
system/events - Archive of obsolete content
this object has three attributes: type: the event type name subject: the event subject object data: the event data string strong : boolean default is false, a weak
reference, which means it can be garbage collected at any time if there are no other
references to it.
... determines if we should keep a strong or weak
reference to the listener method.
... strong : boolean default is false, a weak
reference, which means it can be garbage collected at any time if there are no other
references to it.
... determines if we should keep a strong or weak
reference to the listener method.
Bootstrapped extensions - Archive of obsolete content
similarly, when its shutdown() function is called, it must remove anything that it has added to the application, as well as all
references to any of its objects.
...you can test different locale by going to about:config and changing p
reference of general.useragent.locale to en-us and then to en-gb and disabling then re-enabling the add-on.
...you can go to about:config and change the value of the p
reference general.useragent.locale to en-us and then to en-gb and then reload the open pages to see the localization change.
... 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 p
references without a default/p
references/prefs.js file.
Progress Listeners - Archive of obsolete content
example create an object which implements nsiwebprogresslistener: const state_start = ci.nsiwebprogresslistener.state_start; const state_stop = ci.nsiwebprogresslistener.state_stop; var mylistener = { queryinterface: xpcomutils.generateqi(["nsiwebprogresslistener", "nsisupportsweak
reference"]), onstatechange: function(awebprogress, arequest, aflag, astatus) { // if you use mylistener for more than one tab/window, use // awebprogress.domwindow to obtain the tab/window which triggers the state change if (aflag & state_start) { // this fires when the load event is initiated } if (aflag & state_stop) { // this fires wh...
...note that the browser uses a weak
reference to your listener object, so make sure to keep an external
reference to your object to ensure that it stays in memory.
...the tabbrowser uses a strong
reference to your listener object.
... alert(auri.spec); this.oldurl = auri.spec; }, // nsiwebprogresslistener queryinterface: xpcomutils.generateqi(["nsiwebprogresslistener", "nsisupportsweak
reference"]), onlocationchange: function(aprogress, arequest, auri) { this.processnewurl(auri); }, onstatechange: function() {}, onprogresschange: function() {}, onstatuschange: function() {}, onsecuritychange: function() {} }; window.addeventlistener("load", function() { myextension.init() }, false); window.addeventlistener("unload", function() { myextension.uninit() }, ...
Delayed Execution - Archive of obsolete content
a
reference to the timer objects must be explicitly kept alive until that point.
... some example usages include: const timer = components.constructor("@mozilla.org/timer;1", "nsitimer", "initwithcallback"); function delay(timeout, func) { let timer = new timer(function () { // remove the
reference so that it can be reaped.
... delete delay.timers[idx]; func(); }, timeout, ci.nsitimer.type_one_shot); // store a
reference to the timer so that it's not reaped before it fires.
... let idx = delay.timers.push(timer) - 1; return idx; } delay.timers = []; function repeat(timeout, func) { let timer = new timer(function () { func(); }, timeout, ci.nsitimer.type_repeating_slack); // store a
reference to the timer so that it's not reaped before it fires.
Enhanced Extension Installation - Archive of obsolete content
<location>/extensions.ini - an ini manifest listing the directories for all the extensions and themes at the location (used by the component manager, p
references system, chrome registry etc to locate files during the startup process).
... finalization for themes, the item is immediately installed fully, rather than awaiting the next restart, since themes do not supply xpcom components, p
references defaults etc.
...at this time a new extensions.ini file is written locating the extension so that the component manager, p
references system and chrome registry can locate additional files on the next start.
...directories to extensions that are enabled only), to be used by the xredirprovider during startup to locate components, p
references and chrome manifests.
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 p
references (for options and p
references, see the add-on manager).
...don't hesitate to give long descriptions for each p
reference, as long as they are easy to understand, even for non-computer-savvy users.
... however, please make sure the default set of p
references is adequate — don't require people to tweak options in order to get your extension's core functionality.
... p
references' internal names internal firefox p
reference names for extensions or to be clear, the name of the p
reference as it appears in the about:config, should start with "extensions.," then the name of the extension, with a dot, then the name of the p
reference.
JavaScript Object Management - Archive of obsolete content
notice the way we send callback functions as parameters, and the use of an alternate
reference for this which we always name that.
...the consequence of doing this wrong is to have a this
reference that doesn't do what you expected it to do.
...if you have to use a
reference to this inside the function, declare a variable called that that equals this, and use that in the anonymous function.
...p
references is one of them, and they are covered in another section of this tutorial.
Add-ons - Archive of obsolete content
so there may be still some
reference to the xuldev website (we want to host source code on mdc, not on xuldev), and to japanese things (like some specific locales, which have been translated to french since non-latin characters are not well supported).
...well, xul overlays and windows, jsm files, chrome & resource mappings with localization, default p
references, but no xpcom components of your own.
... inline options firefox 7 supports a new syntax for defining extensions' p
references for both bootstrapped and traditional extensions.
... the user interface for the p
references defined with this new syntax appears in the extension's detail view in the add-on manager.
Source code directories overview - Archive of obsolete content
this code originated as the
reference implementation for the jpeg specification from the independent jpeg group.
...this code is also known by the names, "nglayout" and "gecko." lib contains c code used for
reference by developers in programming the mac.
...leaky can help detect memory leaks and xpcom
reference counting problems.
... components contains firefox specific components like history, bookmarks, p
references, migration, sidebar..
Structure of an installable bundle - Archive of obsolete content
(>=2.0) /chrome.manifest chrome registration manifest (>=1.8) /components/* xpcom components (*.js, *.dll), and interface files from *.xpt (>=1.7) /defaults/p
references/*.js default p
references (>=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 dis...
... for example: binary-component components/windows/mycomponent.dll abi=winnt_x86-msvc binary-component components/mac/mycomponent.dylib abi=darwin_x86-gcc3 binary-component components/mac/mycomponent64.dylib abi=darwin_x86_64-gcc3 binary-component components/linux/mycomponent.so abi=linux_x86-gcc3 this also means you can no longer have platform-specific p
reference files in your bundle.
...when default p
references are defined in several directories, the ones loaded later overwrite the earlier ones.
... official
references for toolkit api structure of an installable bundle: describes the common structure of installable bundles, including extensions, themes, and xulrunner applications extension packaging: specific information about how to package extensions theme packaging: specific information about how to package themes multiple-item extension packaging: specific information about multiple-item extension xpis xul application packaging: specific information about how to package xulrunner applications chrome registration printing in xul apps ...
Layout System Overview - Archive of obsolete content
the style context is associated with the frame via a
reference because it is needed for many other computations during the formatting of the frames.
...the presentation shell currently owns a controlling
reference to the presentation context.
... further
references to the presentation shell and presentation context will be made by using the term presentation shell.
...the frame is able to provide a
reference to its parent and to its children upon request.
Dynamically modifying XUL-based user interface - Archive of obsolete content
you may also want to read some introductory documents about dom, like the about the document object model article or the introduction page of the gecko dom
reference.
...(read more about this in working with windows in chrome code.) when your script is included using a <script> tag, the document property
references the dom document that includes the script.
... appendchild() appends the node after all other nodes, while insertbefore() inserts the node before the node
referenced by its second parameter.
...for example: // gets the first anonymous child of the given node document.getanonymousnodes(node)[0]; // returns a nodelist of anonymous elements with anonid attribute equals el1 document.getanonymouselementbyattribute(node, "anonid", "el1"); see getanonymousnodes and getanonymouselementbyattribute in the xbl
reference for more information.
Special per-platform menu considerations - Archive of obsolete content
for instance, this is the proper place to put the menu items which open the application p
references and which quit the application.
... menu_prefsseparator the separator just before the p
references/options item.
... menu_p
references the item which opens the application p
references.
... here is an example: <menubar> <menu label="tools"> <menupopup> <menuitem label="spell check"/> <menuitem id="menu_p
references" label="p
references" 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 Recursive Templates - Archive of obsolete content
after the data is generated, each result is used as the new
reference point for a nested iteration of the template.
...<groupbox type="menu" datasources="people.xml" ref="*" querytype="xml"> <template> <query expr="*"/> <action> <vbox uri="?" class="indent"> <label value="?name"/> </vbox> </action> </template> </groupbox> in this simplified example, the xpath expression just gets the list of child elements of the
reference node.
...since the initial
reference node is the root of the xml source document, the results are two elements, one for each group element.
...as each group has children itself, each result (in this case, each group) becomes the
reference point for a futher iteration.
Complete - Archive of obsolete content
install.js installation script for seamonkey chrome directory containing the extension code chrome/allcustom.jar the extension jar defaults/p
references directory containing a p
references file inside the jar there are three directories: content xul, javascript and other content that does not depend on the locale or theme locale files for each locale skin files for each theme version checks firefox etc.
...languages extensions can be installed by users who have different language and regional p
references.
... a combination of language and regional p
references is known as a locale.
...a p
reference setting in defaults/p
references/allcustom.js makes the connection between the description and the properties file, specifying the url: chrome://allcustom/locale/install.properties again, the application's chrome registry converts this url to the correct file for the locale you are using.
Manifest Files - Archive of obsolete content
packages may be installed into mozilla and
referenced with chrome urls.
...note that the
reference should always be a directory, not a file.
...you should find
references to your application id in there.
... the error message "xml parsing error: undefined entity" in your xul file can be caused by an error in the manifest or in the jar file
referenced by the manifest.
XPCOM Interfaces - Archive of obsolete content
after learning this section, you can search suitable interfaces using xulplanet xpcom
reference about xpcom mozilla is constructed from a collection of components, each of which performs a certain task.
... however, at this point, we only have a
reference to the file component itself.
...the result is that afile will be a
reference to the part of the component that implements the nsilocalfile interface.
...instead of calling createinstance(), you call getservice() to get a
reference to the service component.
binding - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] should be contained within a bindings element.
...) attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties object type: string the object of the element.
... it can be a variable
reference, an rdf resource uri, or an rdf literal value.
...it can be a variable
reference or an rdf resource uri.
bindings - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] used to specify a set of variable bindings for a rule.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width object type: string the object of the element.
... it can be a variable
reference, an rdf resource uri, or an rdf literal value.
...it can be a variable
reference or an rdf resource uri.
checkbox - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] an element that can be turned on and off.
... attributes accesskey, checked, command, crop, disabled, src, label, p
reference, tabindex properties accesskey, accessibletype, checked, command, crop, disabled, src, label, tabindex examples <checkbox label="enable javascript" checked="true"/> <checkbox label="enable java" checked="false"/> attributes accesskey type: character this should be set to a character that is used as a shortcut key.
... p
reference type: id connects the element to a corresponding p
reference.
...more information is available in the p
references system article.
colorpicker - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a palette of colors from which a user may select by clicking on one of the grid cells.
... attributes disabled, color, onchange, p
reference, tabindex, type properties accessibletype, color, disabled, open, tabindex, value examples <colorpicker/> attributes disabled type: boolean indicates whether the element is disabled or not.
... id="findfile-window" title="find files" orient="horizontal" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <script type="text/javascript"> function myfunction(e){ /* do something cool here or just say the below */ alert(e.target.nodename); } </script> <textbox id="find-text" onchange="return myfunction(event);"/> </window> p
reference type: id connects the element to a corresponding p
reference.
...more information is available in the p
references system article.
dialog - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] this element should be used in place of the window element for dialog boxes.
...screen, 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 p
references"/> <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 active (foreground).
... warning: if the accept and cancel buttons are actually shown is system dependent and is mainly controlled by the value of the boolean p
reference browser.p
references.instantapply.
...the default setting of browser.p
references.instantapply currently is true on linux and mac os and false on windows (which however might or might not change soon, see bug 738797 and bug 1037225).
listbox - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] this element is used to create a list of items where one or more of the items may be selected.
... attributes disabled, disablekeynavigation, p
reference, rows, seltype, suppressonselect, tabindex, value properties accessibletype, currentindex, currentitem, disabled, disablekeynavigation, itemcount, listboxobject, selectedcount, selectedindex, selecteditem, selecteditems, seltype, suppressonselect, tabindex, value methods additemtoselection, appenditem, clearselection, ensureelementisvisible, ensureindexisvisible, getindexoffirstvisibler...
... p
reference type: id connects the element to a corresponding p
reference.
...more information is available in the p
references system article.
listitem - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a single row in a listbox.
... attributes accesskey, checked, command, crop, current, disabled, image, label, p
reference, selected, tabindex, type, value properties accesskey, accessible, checked, control, crop, current, disabled, image, label, selected, tabindex, value style classes listitem-iconic examples <listbox id="thelist"> <listitem label="ruby"/> <listitem label="emerald"/> <listitem label="sapphire" selected="true"/> <listitem label="diamond"/> </listbox> attributes accesskey type: character t...
... p
reference type: id connects the element to a corresponding p
reference.
...more information is available in the p
references system article.
member - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] used within a rule's conditions element to match elements that are containers or are contained within another element.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties child type: ?
... a variable
reference to a node that is expected to be a child of the element that is referred to by the container element.
... a variable
reference to a node that is expected to be a container.
radiogroup - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a group of radio buttons.
... attributes disabled, focused, p
reference, tabindex, value properties accessibletype, disabled, focuseditem, itemcount, selectedindex, selecteditem, tabindex, value methods appenditem, checkadjacentelement, getindexofitem, getitematindex, insertitemat, removeitemat examples <radiogroup> <radio id="orange" label="red"/> <radio id="violet" label="green" selected="true"/> <radio id="yellow" label="blue"/> </radiogroup> attributes disabl...
... p
reference type: id connects the element to a corresponding p
reference.
...more information is available in the p
references system article.
richlistbox - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] this element is used to create a list of listitems (richlistitems), similar to a listbox, but is designed to be used when the items do not contain simple text content.
... attributes disabled, disablekeynavigation, p
reference, seltype, suppressonselect, tabindex, value properties accessibletype, currentindex, currentitem, disabled, disablekeynavigation, itemcount, scrollboxobject, selectedcount, selectedindex, selecteditem, selecteditems, seltype, suppressonselect, tabindex, value methods additemtoselection, appenditem, clearselection, ensureelementisvisible, ensureindexisvisible, getindexoffirstvisiblerow, getindexofitem, getitematindex, getnumberofvisiblerows, getrowcount, getselecteditem, insertitemat, invertselection, movebyoffset, removeitemat, removeitemfromselection, scrolltoindex, selectall...
... p
reference type: id connects the element to a corresponding p
reference.
...more information is available in the p
references system article.
tree - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a container which can be used to hold a tabular or hierarchical set of rows of elements.
... builderview type: nsixultreebuilder a
reference to the tree builder which constructed the tree data.
... contentview type: nsitreecontentview for trees built with a content builder - that is, those that do not have flags set -- the contentview will be a
reference to the nsitreecontentview for the tree.
... firstordinalcolumn type: treecol element a
reference to the first treecol element, which or may not be the first column displayed in the tree.
triple - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a triple can be included inside a rule's conditions element.
...it can be a variable
reference, an rdf resource uri, or an rdf literal value.
...it can be a variable
reference or an rdf resource uri.
... inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, men...
window - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] describes the structure of a top-level window.
...note: this has no effect if the tabs on top p
reference is turned off.
...you can use this as a parameter to getelementbyid() and other dom functions and to
reference the element in style sheets.
...ector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata see also: dom window object methods note the error message "xml parsing error: undefined entity...<window" can be caused by a missing or unreachable dtd file
referenced in the xul file.
Creating XULRunner Apps with the Mozilla Build System - Archive of obsolete content
default-prefs.js - these are the default mozilla p
references used by xulrunner when running your app.
...you can add other p
references for things like debugging, as mccoy does (e.g.
...if you've never done this before, you should consult creating xpcom components or another xpcom
reference.
... the public/ and src/ directories that you put in the components/ directory will look the same as for an extension that includes c++ components, so you can use the relevant sections of creating custom firefox extensions with the mozilla build system as a
reference.
Debugging a XULRunner Application - Archive of obsolete content
there are two different consoles available and various p
references which will ensure that the information you need to know is displayed on them.
... p
references should be in a .js file in the directory %appname%/defaults/p
references/.
... /* 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 p
references back to their defaults when you've finished debugging; leaving them as-is can significantly harm performance and usability.
... see: p
reference reference for more information about these p
references.
Mozprofile - Archive of obsolete content
in addition to creating profiles, mozprofile can install addons and set p
references.
...command line usage mozprofile may be used to create profiles, set p
references in profiles, or install addons into profiles.
...in addition, subclasses firefoxprofile and thundebirdprofile are available with preset p
references for those applications.
...example: from mozprofile import firefoxprofile # create new profile to pass to mozmill/mozrunner profile = firefoxprofile(addons=["adblock.xpi"]) setting p
references p
references can be set in several ways: using the api: you can pass p
references in to the profile class's constructor: obj = firefoxprofile(p
references=[("accessibility.typeaheadfind.flashbar", 0)]) using a json blob file: mozprofile --p
references myprefs.json using a .ini file: mozprofile --p
references myprefs.ini via the command line: mozprofile --pref key:value --pref key:value [...] when setting p
references from an .ini file or the --pref switch, the value will be interpolated as an integer or a boolean (true/false) if possible.
JavaClass - Archive of obsolete content
summary core object a javascript
reference to a java class.
... created by a
reference to the class name used with the packages object: packages.javaclass javaclassis the fully-specified name of the object's java class.
... description a javaclass object is a
reference to one of the classes in a java package, such as netscape.javascript.jsobject.
... a javapackage object is a
reference to a java package, such as netscape.javascript.
RDF in Mozilla FAQ - Archive of obsolete content
the datasource will remain "cached" until the last
reference to the datasource is released.
... for example, rdf:foo would load: @mozilla.org/rdf/datasource;1?name=foo as with rdf/xml datasources, a datasource that is retrieved this way is "cached" by the rdf service until the last
reference is dropped.
...to do this, add the following line to your p
references file.
... (shut down mozilla first since it overwrites your p
references file when you quit.) user_pref("signed.applets.codebase_principal_support", true); mozilla will ask you if you want to grant the scripts in duplicates.xul permission to access xpconnect; respond in the affirmative.
Windows Media in Netscape - Archive of obsolete content
activexobject both geckoactivexobject and activexobject work very similarly, with one key difference: both take a programmatic id (progid) and use it to create a
reference to the windows media player.
...unlike using the progid as an argument, using wmplayer.ocx.7 as an argument to both these apis creates a fully usable
reference to the windows media player 7 or 9 control, with all the methods and properties exposed to javascript.
... <object id="playerex2" classid="clsid:6bf52a52-394a-11d3-b153-00c04f79faa6" height="200" width="200"> <param name="uimode" value="full" /> <param name="autostart" value="true" /> <param name="url" value="preludesteel.wma" /> your browser does not support the activex windows media player </object> the classid attribute
references the clsid of windows media player 7 and above -- windows media player versions before 7 used a different clsid.
...qualifying
references with document.
How CSS is structured - Learn web development
you
reference an external css stylesheet from an html <link> element: <!doctype html> <html> <head> <meta charset="utf-8"> <title>my css experiment</title> <link rel="stylesheet" href="styles.css"> </head> <body> <h1>hello world!</h1> <p>this is my first css example</p> </body> </html> the css stylesheet file might look like this: h1 { color: blue; background-color: yellow; ...
... border: 1px solid black; } p { color: red; } the href attribute of the <link> element needs to
reference a file on your file system.
...mdn's css
reference is a good resource for more information about any shorthand property.
... body {font: 1em/150% helvetica, arial, sans-serif; padding: 1em; margin: 0 auto; max-width: 33em;} @media (min-width: 70em) { body {font-size: 130%;} } h1 {font-size: 1.5em;} div p, #id:first-line {background-color: red; border-radius: 3px;} div p {margin: 0; padding: 1em;} div p + p {padding-top: 0;} for your own projects, you will format your code according to personal p
reference.
The HTML5 input types - Learn web development
if you want more detail on browser support, you should consult our html forms element
reference, and in particular our extensive <input> types
reference.
... to actually display the current value, and update it as it changed, you must use javascript, but this is relatively easy to do: const price = document.queryselector('#price'); const output = document.queryselector('.price-output'); output.textcontent = price.value; price.addeventlistener('input', function() { output.textcontent = price.value; }); here we store
references to the range input and the output in two variables.
...note that the usage of these types is quite complex, especially considering browser support (see below); to find out the full details, follow the links below to the
reference pages for each type, including detailed examples.
... the
reference pages linked to above provide suggestions on how to program fallbacks for non-supporting browsers; another option is to consider using a javascript library to provide a date picker.
JavaScript basics - Learn web development
you did this by using a function called queryselector() to grab a
reference to your heading, and then store it in a variable called myheading.
... let myvariable = true; array this is a structure that allows you to store multiple values in a single
reference.
...you stored a
reference to your <img> element in the myimage variable.
...this takes
references to the new button and the heading, storing each inside variables: let mybutton = document.queryselector('button'); let myheading = document.queryselector('h1'); add the function below to set the personalized greeting.
Responsive images - Learn web development
load the image
referenced in the srcset list that has the same size as the slot or, if there isn't one, the first image that is bigger than the chosen slot size.
...instead, those browsers will go ahead and load the image
referenced in the src attribute as normal.
... src="elva-fairy-640w.jpg" alt="elva dressed as a fairy"> in this example, the following css is applied to the image so that it will have a width of 320 pixels on the screen (also called css pixels): img { width: 320px; } in this case, sizes is not needed — the browser simply works out what resolution the display is that it is being shown on, and serves the most appropriate image
referenced in the srcset.
...just as we saw with <img> above, <source> can take a srcset attribute with multiple images
referenced, as well as a sizes attribute.
Functions — reusable blocks of code - Learn web development
now try entering the following in your console output(y); output(z); both of these should return an error along the lines of "
referenceerror: y is not defined".
... finally, try updating your code like this: function a() { let y = 2; output(z); } function b() { let z = 3; output(y); } save and reload again, and try this again in your javascript console: a(); b(); this time the a() and b() calls will both return an annoying
referenceerror: variable name is not defined error — this is because the output() calls and the variables they are trying to print are not in the same function scopes — the variables are effectively invisible to those function calls.
... note: the
referenceerror: "x" is not defined error is one of the most common you'll encounter.
...the example above would throw an error
referenceerror: myvalue is not defined, because although the myvalue variable is defined in the same scope as the function calls, it is not defined inside the function definitions — the actual code that is run when the functions are called.
Introduction to web APIs - Learn web development
we start by creating an audiocontext instance inside which to manipulate our track: const audiocontext = window.audiocontext || window.webkitaudiocontext; const audioctx = new audiocontext(); next, we create constants that store
references to our <audio>, <button>, and <input> elements, and use the audiocontext.createmediaelementsource() method to create a mediaelementaudiosourcenode representing the source of our audio — the <audio> element will be played from: const audioelement = document.queryselector('audio'); const playbtn = document.queryselector('button'); const volumeslider = document.queryselector('.volume'); const a...
... the document object model (dom) api also has a simple entry point — its features tend to be found hanging off the document object, or an instance of an html element that you want to affect in some way, for example: const em = document.createelement('em'); // create a new em element const para = document.queryselector('p'); //
reference an existing p element em.textcontent = 'hello there!'; // give em some text content para.appendchild(em); // embed em inside para the canvas api also relies on getting a context object to use to manipulate things, although in this case, it's a graphical context rather than an audio context.
... its context object is created by getting a
reference to the <canvas> element you want to draw on, and then calling its htmlcanvaselement.getcontext() method: const canvas = document.queryselector('canvas'); const ctx = canvas.getcontext('2d'); anything that we want to do to the canvas is then achieved by calling properties and methods of the context object (which is an instance of canvasrenderingcontext2d), for example: ball.prototype.draw = function() { ctx.beginpath(); ctx.fillstyle = this.color; ctx.arc(this.x, this.y, this.size, 0, 2 * math.pi); ctx.fill(); }; note: you can see this code in action in our bouncing balls demo (see it running live also).
...the handler properties that allow us to run functions when events fire are generally listed in our
reference material in separate "event handlers" sections.
Inheritance in JavaScript - Learn web development
setting teacher()'s prototype and constructor
reference all is good so far, but we have a problem.
... we have defined a new constructor, and it has a prototype property, which by default just contains an object with a
reference to the constructor function itself.
...after adding the last line, teacher.prototype's constructor property is now equal to person(), because we just set teacher.prototype to
reference an object that inherits its properties from person.prototype!
... therefore running the above code will give an error: uncaught
referenceerror: must call super constructor in derived class before accessing 'this' or returning from derived constructor for sub-classes, the this intialization to a newly allocated object is always dependant on the parent class constructor, i.e the constructor function of the class from which you're extending.
Aprender y obtener ayuda - Learn web development
some of the articles will be tutorials, to teach you a certain technique or important concept (such as "learn how to create a video player" or "learn the css box model"), and some of the articles will be
reference material, to allow you to look up details you may have forgotten (such as "what is the syntax of the css background property"?) mdn web docs is very good for both types — the area you are currently in is great for learning techniques and concepts, and we also have several giant
reference sections allowing you to look up any syntax you can't remember.
...many people prefer textual articles for more in-depth learning and
reference material, and videos for quick explanations of concepts and new features, but it is really up to you what you prefer to learn from.
... many mdn web docs
reference pages provide interactive examples too, where you can alter the code and see how the live result changes.
... using mdn the site you are already on has a wealth of information available to you — both
reference material for looking up code syntax, and guides/tutorials for learning techniques.
Introduction to the server side - Learn web development
dynamic sites can highlight content that is more relevant based on user p
references and habits.
... it can also make sites easier to use by storing personal p
references and information — for example reusing stored credit card details to streamline subsequent payments.
... a dynamic site can return different data for a url based on information provided by the user or stored p
references and can perform other operations as part of returning a response (e.g.
... companies like amazon use server-side programming to construct search results for products, make targeted product suggestions based on client p
references and previous buying habits, simplify purchases, etc.
Handling common accessibility problems - Learn web development
safari: select develop > disable styles from the main menu (to enable the develop menu, choose safari > p
references > advanced > show develop menu in menu bar).
...to turn it on, you have to go to p
references > advanced > general, then uncheck "always use the cursor keys to navigate within pages".
... next, you have to open your mac's system p
references app, then go to keyboard > shortcuts, then select the all controls radio button.
... safari doesn't allow you to tab through links by default; to enable this, you need to open safari's p
references, go to advanced, and check the press tab to highlight each item on a webpage checkbox.
How Mozilla's build system works
config.status starts with the main moz.build file and then recurses into all
referenced files and directories.
...
reference many of python's built-in or global functions (they are not made available to the execution environment).
...to view the variables and functions available in your checkout of the tree, run the following: mach mozbuild-
reference or, you can view the raw file at /python/mozbuild/mozbuild/frontend/context.py.
...variables are defined by the syntax variable = value, and the value of a variable is
referenced by writing $(variable).
IPDL Tutorial
the parameters of the recv* methods (const nscstring& pluginpath in the example) are
references to temporary objects, so copy them if you need to keep their data around.
... struct namevaluepair { nscstring name; nscstring value; }; in implementation code, these structs can be created and used like so: namevaluepair entry(astring, anotherstring); foo(entry.name(), entry.value()); // named accessor functions return
references to the members arrays ipdl has simple syntax for arrays: invokemethod(nscstring[] args); in c++ this is translated into a nstarray
reference: virtual bool recvinvokemethod(nstarray<nscstring>& args); ipdl's generated data structures can be used in several protocols if they are defined in a separate .ipdlh file.
...otherfunction above) the parameter is, for both resolve and success callbacks, the returns value itself (as a const
reference); if the message returns multiple values (e.g.
...}; in some cases, however, external code may hold
references to actor implementations which require refcounting or other lifetime strategies.
Services.jsm
the services.jsm javascript code module offers a wide assortment of lazy getters that simplify the process of obtaining
references to commonly used services.
... to use it, you first need to import the code module into your javascript scope: const {services} = chromeutils.import("resource://gre/modules/services.jsm"); then you can obtain
references to services by simply accessing them from the services object exported by the code module.
... for example, to obtain a
reference to the p
references service: var prefsservice = services.prefs; provided service getters service accessor service interface service name androidbridge nsiandroidbridge 1 appinfo nsixulappinfo nsixulruntime application information service appshell nsiappshellservice application shell service blocklist nsiblocklistservice blocklist service cache nsicacheservice cache service cache2 nsicachestorageservice cache storage service clipboard nsiclipboard clipboard console nsiconsoleservice error console service contentprefs nsicontentprefservice content p
references service cookies nsicookiemanager2 co...
... mm nsimessagebroadcaster nsiframescriptloader global frame message manager3 obs nsiobserverservice observer service perms nsipermissionmanager permission manager service ppmm nsimessagebroadcaster nsiprocessscriptloader global parent process message manager3 prefs nsiprefbranch nsiprefbranch2 nsiprefservice p
references service prompt nsipromptservice prompt service scriptloader mozijssubscriptloader javascript subscript loader service scriptsecuritymanager nsiscriptsecuritymanager script security manager search nsibrowsersearchservice browser search service startup nsiappstartup application startup service storage mozistorag...
Mozilla Content Localized in Your Language
reference material can be find here calendar calendar view: which date is considered the first day of the week, sunday or monday?
...
reference material on other languages can be found here.
...include a note to look for,
reference, and adhere to a national standard for the language, where possible.
... add style :: register, variants/slang, awkward, company style (branding guidelines), inconsistent style, third-party style, unidiomatic (steps to define your approach to culture-specific & locale-specific
references) ...
Mozilla DOM Hacking Guide
since i am myself still learning how it works, don't expect this to be a complete
reference quite yet.
... #define _dom_classinfo_map_begin(_class, _ifptr, _has_class_if) { nsdomclassinfodata &d = sclassinfodata[edomclassinfo_##_class##_id]; d.mprotochaininterface = _ifptr; d.mhasclassinterface = _has_class_if; static const nsiid *interface_list[] = { in this macro, |d| is a
reference to the entry of the sclassinfodata array that corresponds to the class passed as an argument to the macro.
...we initialize "data" to be a
reference to the nsdomclassinfodata object that corresponds to the dom class we want to "help".
... resources of interest the xpidl
reference mapping dom objects to their c++ class modularization techniques scriptable helper flags this chapter has not been written yet.
Mozilla Port Blocking
modifying mozilla's port blocking at run time users can modify the default port blocking through the addition of p
references containing comma delimited lists of port numbers to the user.js file (for single users with the user_pref(…) command) in the user's profile directory.
...things to do allow user p
reference to override default port blocking.
... currently you need to add p
references to either user.js or all.js.
... per protocol port blocking/enabling p
references.
Mozilla Web Developer FAQ
if you are using a legacy encoding that cannot represent that character, you can use a numeric character
reference: α.
... externally defined character entities other than the five pre-defined ones (<, >, &, " and ') are only supported if the document
references a public identifier for which there is a mapping in mozilla’s pseudo-dtd catalog and the document has not been declared standalone.
...(numeric character
references are safe, too.) document.write() is not supported.
... style sheets can be
references using processing instructions.
Refcount tracing and balancing
however, having an nscomptr log and using it in the creation of the balance tree allows addref and release calls that we know are matched to be eliminated from the tree, so it makes it much easier to debug
reference count leaks of objects that have a large amount of
reference counting traffic.
... you may use an object's serial number with the following variable to further restrict the
reference count tracing: xpcom_mem_log_objects set this variable to a comma-separated list of object serial number or ranges of serial number, e.g., 1,37-42,73,165 (serial numbers start from 1, not 0).
...what we'd hope to see is a tree that looks like: .root: bal=0 main: bal=0 dosomethingwithfooandreturnittoo: bal=1 ns_newfoo: bal=1 that is, ns_newfoo() "leaks" a single
reference count; this leak is "inherited" by dosomethingwithfooandreturnittoo(); but is finally balanced by a release() in main().
...if you've checked (see above) that the leak wasn't from a smart pointer, you can ignore the
references that came from smart pointers (where we can use the pointer identity of the smart pointer to match the addref and the release).
Midas
see: more about security p
references note: the shortcut key will automatically trigger this command (typically accel-c) with or without the signed js or any code on the page to handle it.
...see: more about security p
references note: the shortcut key will automatically trigger this command (typically accel-x) with or without the signed js or any code on the page to handle it.
... this command will insert an image (
referenced by the given url) at the insertion point.
...user_pref("capability.policy.policynames", "allowclipboard"); user_pref("capability.policy.allowclipboard.clipboard.paste", "allaccess"); see: more about security p
references note: the shortcut key will automatically trigger this command (typically accel-v) with or without the signed js or any code on the page to handle it.
PR_LoadLibrary
loads a
referenced library.
... returns if successful, returns a
reference to an opaque prlibrary object.
... description this function loads and returns a
reference to the specified library.
... the returned
reference becomes the library's identity.
An overview of NSS Internals
those handles are
reference counted.
...the application should always call the appropriate de
reference (destroy) functions once a handle is no longer needed.
...such an operation might fail at runtime if data elements are still being
referenced.
...you can find more details in the nspr
reference documents.
nss tech note7
unlike seckeypublickey and seckeyprivatekey, pk11symkey objects are
reference counted.
... use pk11_
referencesymkey() to acquire a
reference to a symmetric key (pk11symkey *).
... use pk11_freesymkey() to release a
reference to a symmetric key (pk11symkey *); the symmetric key is destroyed when its
reference count becomes zero.
... sample code sample code 4: pki encryption
references rsa labs pkcs #1 web site rfc 3447: rsa pkcs #1 v2.1 poupou's blog: common question: how to encrypt using rsa ...
NSS Tools sslstrength
the letter in the first column of the output is used to identify the cipher p
references in the ciphers= command.
... restricting ciphers by default, sslstrength assumes that all the p
references are on, so it will use any p
references in your policy.
...for example, ciphers=bfi will turn on these cipher p
references and turn off all others.
... other for
references, here is a table of well-known ssl port numbers: https 443 imaps 993 nntps 563 ...
Python binding for NSS
nspr
reference.
... nss/nspr objects whose collection elements can be
referenced by name support associative indexing.
... certificate_new_from_certcertificate now takes add_
reference parameter to properly
reference count certs, should fix shutdown busy problems.
... fix
reference counting bug in pk11_password_callback() which contributed to nss not being able to shutdown due to resources still in use.
NSS Key Functions
back to the nss
reference main page.
...when an application makes a copy of a particular certificate or key structure that already exists in memory, ssl makes a shallow copy--that is, it increments the
reference count for that object rather than making a whole new copy.
... when you call cert_destroycertificate or seckey_destroyprivatekey, the function decrements the
reference count and, if the
reference count reaches zero as a result, both frees the memory and sets all the bits to zero.
... the use of the word "destroy" in function names or in the description of a function implies
reference counting.
NSS Tools sslstrength
the letter in the first column of the output is used to identify the cipher p
references in the ciphers= command.
...restricting ciphers by default, sslstrength assumes that all the p
references are on, so it will use any p
references in your policy.
...for example, ciphers=bfi will turn on these cipher p
references and turn off all others.
... other for
references, here is a table of well-known ssl port numbers: https 443 imaps 993 nntps 563 ...
GCIntegration - SpiderMonkey Redirect 1
before the pointer is modified (except initializing writes, which don't need a barrier), you should call incremental
referencebarrier() or incrementalvaluebarrier(), passing it the value the pointer held before the write.
...now let's assume, between the left and right frames, that some code has read the weak pointer to c and then created a regular (strong)
reference from b to c.
... the solution to this problem is to require a read barrier on every weak
reference.
...the main difference is that every
reference will need to be rooted.
JSAPI User Guide
for more details, see the jsapi
reference.
...a js::value can be a number, a string, a boolean value, a
reference to an object (like an object, array, date, or function), or one of the special values null or undefined.
...how can a malicious script get a
reference to an object from another sandbox?
...once a malicious script gets a
reference to a single object in a sandbox, it can use that object to get a
reference to the sandbox's global object, and from there, almost any other object or function in that sandbox.
XPCOM hashtable guide
data type hashtable class none (for a hash set) nsthashtable simple types (numbers, booleans, etc) nsdatahashtable structs or classes (nsstring, custom defined structs or classes that are not
reference-counted) nsclasshashtable
reference-counted concrete classes nsrefptrhashtable interface pointers nsinterfacehashtable each of these classes is a template with two parameters.
... key type hashkey class strings nsstringhashkey/nscstringhashkey integers nsuint32hashkey/nsuint64hashkey pointers nsptrhashkey<t> owned interface pointers nsisupportshashkey
reference-counted concrete classes nsrefptrhashkey there are a number of more esoteric hashkey classes in nshashkeys.h, and you can always roll your own if none of these fit your needs (make sure you're not duplicating an existing hashkey class though!) once you've determined what hashtable and hashkey classes you need, you can put it all together.
... a few examples: a hashtable that maps utf-8 origin names to a dom window - nsinterfacehashtable<nscstringhashkey, nsidomwindow> a hashtable that maps 32 bit integers to floats - nsdatahashtable<nsuint32hashkey, float> a hashtable that maps nsisupports pointers to
reference counted cacheentrys - nsrefptrhashtable<nsisupportshashkey, cacheentry> a hashtable that maps jscontext pointers to a contextinfo struct - nsclasshashtable<nsptrhashkey<jscontext>, contextinfo> a hashset of strings - nsthashtable<nsstringhashkey> hashtable api the hashtable classes all expose the same basic api.
... the hashtables that hold
references to pointers (nsrefptrhashtable and nsinterfacehashtable) also have getweak methods that return non-addrefed pointers.
Interfacing with the XPCOM cycle collector
if the collector finds a group of objects that all refer back to one another, and establishes that the objects'
reference counts are all accounted for by internal pointers within the group, it considers that group cyclical garbage, which it then attempts to free.
...it will not crash if there are extra owning pointers, but it will find itself unable to account for the
reference counts it finds in the owned objects, so may fail to collect cycles.
... the main macro for traverse is ns_impl_cycle_collection_traverse: ns_impl_cycle_collection_traverse(msomemember) unlink works similarly: ns_impl_cycle_collection_unlink(msomemember) these macros should handle a variety of cases, such as
reference counted pointers to cycle collected nsisupports or non-nsisupports objects, as well as arrays of these pointers.
... handling js::value fields recall (or see here) that a js::value may
reference a string or object and is subject to gc.
Observer Notifications
if your component requires access to the user profile, or any services which require access to the profile (p
references, bookmarks, and so on) then a common pattern is to register with the nsicategorymanager for the app-startup topic which can be done in the component's registration code, and then in that notification register with the observer service for the profile-after-change notification.
...you will not be able to access user p
references, bookmarks, or anything that uses the profile folder until this event occurs.
...when this is sent, it is possible that other windows may still be open, such as the download manager or p
references.
... topic description cookie-changed called upon a cookie change (added, changed, cleared, or deleted) cookie-rejected called when the setting of a cookie was rejected by the browser (per the user's p
references) http-on-response-set-cookie this is fired only when a cookie is created due to the presence of set-cookie header in the response header of any network request.
NS_NewLocalFile
« xpcom api
reference summary the ns_newlocalfile function creates an instance of nsilocalfile that provides a platform independent representation of a file path.
...this path does not need to
reference an existing file.
... aresult [out] a
reference to the newly created nsilocalfile instance.
... example code // create a local file that
references c:\foo.txt nsresult rv; nscomptr<nsilocalfile> file; rv = ns_newlocalfile(nsembedstring(l"c:\\foo.txt"), pr_false, getter_addrefs(file)); if (ns_failed(rv)) return rv; note: gcc requires the -fshort-wchar option to compile this example since prunichar is an unsigned short.
NS_NewNativeLocalFile
« xpcom api
reference summary the ns_newnativelocalfile function creates an instance of nsilocalfile that provides a platform independent representation of a file path.
...this path does not need to
reference an existing file.
... aresult [out] a
reference to the newly created nsilocalfile instance.
... example code // create a local file that
references c:\foo.txt nsresult rv; nscomptr<nsilocalfile> file; rv = ns_newnativelocalfile(nsembedcstring("c:\\foo.txt"), pr_false, getter_addrefs(file)); if (ns_failed(rv)) return rv; here, nsembedcstring is used to convert the ascii string literal to an object that can be passed as a const nsacstring& parameter.
operator=
« xpcom api
reference summary this operator is a shortcut for the assign family of functions.
... return values this operator returns a
reference back to the object being modified to allow operator chaining.
... return values this operator returns a
reference back to the object being modified to allow operator chaining.
... return values this operator returns a
reference back to the object being modified to allow operator chaining.
operator+=
« xpcom api
reference summary this operator+= is a shortcut for the append family of functions.
... return values this operator returns a
reference back to the object being modified to allow operator chaining.
... return values this operator returns a
reference back to the object being modified to allow operator chaining.
... return values this operator returns a
reference back to the object being modified to allow operator chaining.
operator=
« xpcom api
reference summary this operator= is a shortcut for the append family of functions.
... return values this operator returns a
reference back to the object being modified to allow operator chaining.
... return values this operator returns a
reference back to the object being modified to allow operator chaining.
... return values this operator returns a
reference back to the object being modified to allow operator chaining.
XPCOM glue classes
ed, typically on destruction of the object.</t>nsautoreftraitsnsautoreftraits<t> is a template class describing traits of resources held by objects of class nsautoref<t> and/or nscountedref<t>.</t>nsautostringclass declarationnsautostring (external)class declarationnscautostringclass declarationnscautostring (external)class declarationnscomptrthis utility class simplifies managing xpcom interface
references from c++ code.nscountedrefnscountedref<t> is a template class implementing an object that takes a strong
reference to a
reference-counted resource that must be released, typically on destruction of the object.</t>nscstringclass declarationnscstring externalclass declarationnscstringcontainer (external)class declaration nscstringencodingthe nscstringencoding enumeration describes the set of c...
...these routines allow easy access to xpcom's global nsimemory implementation without having to go through the service manager to get it.nspromiseflatcstringclass declarationnspromiseflatstringclass declarationnsrefptrrefptr (formerly known as nsrefptr, see bug 1207245) is a general class to implement
reference counting pointers for objects.
... like with nscomptr, it is the responsibility of the object itself to implement
reference counting.
... this is done using the functions addref() and release(), which respectively modify a variable of type nsautorefcnt, which basically is a wrapper around a count of the number of
references refering to the class.nsstringclass declarationnsstring externalclass declarationnsstringcontainer (external)class declarationnssupportsweak
referenceinherit from this c++ class to add canonical support for nsisupportsweak
reference.nsxpidlcstringclass declarationnsxpidlstringclass declarationpromiseflatcstring (external)class declarationpromiseflatstring (external)class declaration ...
IAccessibleTableCell
[propget] hresult columnheadercells( [out, size_is(, ncolumnheadercells,)] iunknown cellaccessibles, [out] long ncolumnheadercells ); parameters cellaccessibles pointer to an array of
references to cell accessibles.
...[propget] hresult rowheadercells( [out, size_is(, nrowheadercells,)] iunknown cellaccessibles, [out] long nrowheadercells ); parameters cellaccessibles pointer to an array of
references to cell accessibles.
...table() returns a
reference to the accessbile of the containing table.
... [propget] hresult table( [out] iunknown table ); parameters table returns a
reference to the iunknown of the containing table.
IAccessibleText
x x coordinate of the top left corner of the bounding box of the
referenced character.
... y y coordinate of the top left corner of the bounding box of the
referenced character.
... width width of the bounding box of the
referenced character.
... height height of the bounding box of the
referenced character.
nsIFaviconService
if you pass an icon uri that we've never seen, you'll get back a uri that
references an invalid icon.
...if you pass an icon uri that we've never seen, you'll get back a uri that
references an invalid icon.
...you should
reference the chrome image yourself.
...you should
reference the chrome image yourself.
nsINavHistoryQuery
ze_is(count)] out unsigned long transitions); void setfolders([const,array, size_is(foldercount)] in long long folders, in unsigned long foldercount); void settransitions([const,array, size_is(count)] in unsigned long transitions, in unsigned long count); attributes attribute type description absolutebegintime prtime read only: retrieves the begin time value that the currently loaded
reference points + offset resolve to.
... absoluteendtime prtime read only: retrieves the end time value that the currently loaded
reference points + offset resolve to.
... begintime
reference long one of the constants time_relative_* which indicates how to interpret the corresponding begin time value.
... endtime
reference long one of the constants time_relative_* which indicates how to interpret the corresponding end time value.
nsIScrollable
inherits from: nsiscrollable last changed in gecko 29.0 (firefox 29.0 / thunderbird 29.0 / seamonkey 2.26) method overview long getcurscrollpos(in long scrollorientation); obsolete since gecko 29.0 long getdefaultscrollbarp
references(in long scrollorientation); void getscrollbarvisibility(out boolean verticalvisible, out boolean horizontalvisible); void getscrollrange(in long scrollorientation, out long minpos, out long maxpos); obsolete since gecko 29.0 void setcurscrollpos(in long scrollorientation, in long curpos); obsolete since gecko 29.0 void setcurscrollposex(in long curhorizontalpo...
...s, in long curverticalpos); obsolete since gecko 29.0 void setdefaultscrollbarp
references(in long scrollorientation, in long scrollbarpref); void setscrollrange(in long scrollorientation, in long minpos, in long maxpos); obsolete since gecko 29.0 void setscrollrangeex(in long minhorizontalpos, in long maxhorizontalpos, in long minverticalpos, in long maxverticalpos); obsolete since gecko 29.0 constants scroll orientations scroll orientations a scrollbar can be in.
... return value getdefaultscrollbarp
references() long getdefaultscrollbarp
references( in long scrollorientation ); parameters scrollorientation an integer representing the orientation of the scrollbar.
... setdefaultscrollbarp
references() void setdefaultscrollbarp
references( in long scrollorientation, in long scrollbarpref ); parameters scrollorientation an integer representing the orientation of the scrollbar.
nsIServiceManager
aiid, [iid_is(aiid),retval] out nsqiresult result); void getservicebycontractid(in string acontractid, in nsiidref aiid, [iid_is(aiid),retval] out nsqiresult result); boolean isserviceinstantiated(in nscidref aclass, in nsiidref aiid); boolean isserviceinstantiatedbycontractid(in string acontractid, in nsiidref aiid); methods getservice() this method returns a
reference to a particular xpcom service given the classid of the service.
... getservicebycontractid() this method returns a
reference to a particular xpcom service given the contractid of the service.
...and, moreover such languages typically offer more convenient mechanisms to acquire
references to xpcom services and components.
... a user of a service may keep
references to services until application shutdown.
nsIUpdatePrompt
if the app.update.silent p
reference is true or the user interface is already displayed the call will be a no-op.
...if background is true (for example the download was not user initiated) and the app.update.silent p
reference is true the call will be a no-op.
...if the app.update.silent p
reference is true the call will be a no-op.
...if the app.update.silent p
reference is true, the app.update.showinstalledui p
reference is false, or the user interface is already displayed the call will be a no-op.
XUL Overlays
in the base file, the html image element points to a netscape gif icon: <html:img id="foo" src="netscapeimage.gif"/> in the overlay, an element with the same id attribute specifies a different image, and that image is superimposed on top of the original netscape image as part of the merge process: <html:img id="foo" src="mozillaimage.gif"/> when the base file
references an overlay file which contains the html image element above, the new src attribute is superimposed over the original, and the mozilla icon replaces the netscape icon.
...using the id attribute on an otherwise empty node in the base file, you can essentially
reference a subtree defined in an overlay file and merge it in wherever it's needed.
...the following snippet shows a dialog with custom ui elements at the top and a
reference to the overlay's ok and cancel buttons at the bottom: <box align="horizontal" id="bx1" flex="100%" style="margin-bottom: 1em; width: 100%;"> <html:input type="checkbox" id="dialog.newwindow"/> <html:label for="dialog.newwindow">&openwin.label;</html:label> <spring flex="100%"/> </box> <box id="okcancelbuttons"/> for more detail, see the ok and cancel button definitions being
referenced here i...
...toolbars, submenus, boxes, and any other subtrees that appear in multiple places can be defined in overlays files in this way and
referenced for reuse wherever necessary.
Filelink Providers
saving custom settings in p
references custom settings for a provider are saved using the p
references api.
... saving the p
references is handled automatically by the dialog code.
... once this is done, the field is accessible from within the implementation via the p
references api using the key mail.cloud_files.accounts.account_key.username where account_key is the value passed into the implementations init function.
... management interface once an account has been created, it is manageable from within the p
references dialog, in the attachment pane, in the outgoing tab.
Memory Management
pointers to that memory must be carefully managed to make sure the underlying memory is still
referenced.
... keeping objects alive the following js-ctypes objects will hold
references to objects, keeping them alive.
...be sure to hold an explicit
reference so that the referent object doesn't get into garbage collection, before you're done using it.
... closures you also need to be sure to retain
references to any javascript code that native code may call back into.
Standard OS Libraries
documentation for gdk functions are found here: gnome developer :: gdk 2
reference manual.
... for gdk3 documentation is found here: gnome developer :: gdk 3
reference manual.
...the list of the exposed symbols/functions can be found here: gnome developer :: gtk+
reference manual.
...this article links to a fully funcitonal demo that can be copied and pasted into scratchpad, as a quick
reference here is the link to that demo: following the android toasts tutorial from a jni prespective.
Browser Console - Firefox Developer Tools
to enable it set the devtools.chrome.enabled p
reference to true in about:config, or set the "enable browser chrome and add-on debugging toolboxes" (firefox 40 and later) option in the developer tool settings.
... components.utils.import("resource://gre/modules/console.jsm"); console.log("hello from firefox code"); //output messages to the console learn more: console api
reference console.jsm source code in the mozilla dxr hudservice there is also the hudservice which allows access to the browse console.
...by default, only error messages are logged to the console, although you can change this in the browser's p
references.
...to enable it set the devtools.chrome.enabled p
reference to true in about:config, or set the "enable chrome debugging" option in the developer tool settings.
Index - Firefox Developer Tools
this is useful for understanding the "retained size" of objects allocated by your site: that is, the size of the objects themselves plus the size of the objects that they keep alive through
references.
... 70 use the inspector api inspector,
reference, référence(2), tools firefox add-ons may access the following objects from the chrome://browser/content/devtools/inspector/inspector.xul context: 71 use the inspector from the web console guide, inspector, tools the element that's currently selected in the page inspector can be
referenced in the web console using the variable $0.
... 137 source map errors debugger, debugging, dev tools,
reference, source maps, tools source maps are json files providing a way to associate transformed sources, as seen by the browser, with their original sources, as written by the developer.
... 154 web console remoting debugging,
reference, référence(2), web console this document describes the way web console remoting works.
Examine and edit CSS - Firefox Developer Tools
you can: toggle pseudo-classes; toggle classes; add a new rule; change the display based on the color scheme p
reference (as of firefox 72, you must set devtools.inspector.color-scheme-simulation.enabled to true in the configuration editor to enable this feature); change the display based on print media rules.
... view @media rules for color-scheme-p
reference as of firefox 72, you must set devtools.inspector.color-scheme-simulation.enabled to true in the configuration editor to enable this feature.
... if you have set privacy.resistfingerprinting to true, prefers-color-scheme p
reference is overridden to light.
...(this calculated value is exactly the same as what getcomputedstyle would return.) you can tab through the styles to select them, and you can find more information about each property — pressing f1 on a selected property will open up its mdn
reference page.
BasicCardRequest.supportedNetworks - Web APIs
chrome no support noedge no support ≤18 — 79firefox full support 56notes disabled full support 56notes disabled notes available only in nightly builds.disabled from version 56: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera no support nosafari ?
...port nochrome android full support 57firefox android full support 56notes disabled full support 56notes disabled notes available only in nightly builds.disabled from version 56: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android no support nosafari ios ?
BasicCardResponse.billingAddress - Web APIs
chrome no support noedge no support ≤18 — 79firefox full support 56notes disabled full support 56notes disabled notes available only in nightly builds.disabled from version 56: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera no support nosafari ?
...port nochrome android full support 57firefox android full support 56notes disabled full support 56notes disabled notes available only in nightly builds.disabled from version 56: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android no support nosafari ios ?
BasicCardResponse.cardNumber - Web APIs
chrome no support noedge no support ≤18 — 79firefox full support 56notes disabled full support 56notes disabled notes available only in nightly builds.disabled from version 56: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera no support nosafari ?
...port nochrome android full support 57firefox android full support 56notes disabled full support 56notes disabled notes available only in nightly builds.disabled from version 56: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android no support nosafari ios ?
BasicCardResponse.cardSecurityCode - Web APIs
chrome no support noedge no support ≤18 — 79firefox full support 56notes disabled full support 56notes disabled notes available only in nightly builds.disabled from version 56: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera no support nosafari ?
...port nochrome android full support 57firefox android full support 56notes disabled full support 56notes disabled notes available only in nightly builds.disabled from version 56: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android no support nosafari ios ?
BasicCardResponse.cardholderName - Web APIs
chrome no support noedge no support ≤18 — 79firefox full support 56notes disabled full support 56notes disabled notes available only in nightly builds.disabled from version 56: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera no support nosafari ?
...port nochrome android full support 57firefox android full support 56notes disabled full support 56notes disabled notes available only in nightly builds.disabled from version 56: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android no support nosafari ios ?
BasicCardResponse.expiryMonth - Web APIs
chrome no support noedge no support ≤18 — 79firefox full support 56notes disabled full support 56notes disabled notes available only in nightly builds.disabled from version 56: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera no support nosafari ?
...port nochrome android full support 57firefox android full support 56notes disabled full support 56notes disabled notes available only in nightly builds.disabled from version 56: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android no support nosafari ios ?
BasicCardResponse.expiryYear - Web APIs
chrome no support noedge no support ≤18 — 79firefox full support 56notes disabled full support 56notes disabled notes available only in nightly builds.disabled from version 56: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera no support nosafari ?
...port nochrome android full support 57firefox android full support 56notes disabled full support 56notes disabled notes available only in nightly builds.disabled from version 56: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android no support nosafari ios ?
characteristic - Web APIs
full support 57notes disabled notes linux and versions of windows earlier than 10.disabled from version 57: this feature is behind the #enable-experimental-web-platform-features p
reference (needs to be set to enabled).
... to change p
references in chrome, visit chrome://flags.
... full support ≤79notes disabled notes linux and versions of windows earlier than 10.disabled from version ≤79: this feature is behind the #enable-experimental-web-platform-features p
reference (needs to be set to enabled).
... full support 44notes disabled notes linux and versions of windows earlier than 10.disabled from version 44: this feature is behind the #enable-experimental-web-platform-features p
reference (needs to be set to enabled).
readValue() - Web APIs
full support 57notes disabled notes linux and versions of windows earlier than 10.disabled from version 57: this feature is behind the #enable-experimental-web-platform-features p
reference (needs to be set to enabled).
... to change p
references in chrome, visit chrome://flags.
... full support ≤79notes disabled notes linux and versions of windows earlier than 10.disabled from version ≤79: this feature is behind the #enable-experimental-web-platform-features p
reference (needs to be set to enabled).
... full support 44notes disabled notes linux and versions of windows earlier than 10.disabled from version 44: this feature is behind the #enable-experimental-web-platform-features p
reference (needs to be set to enabled).
uuid - Web APIs
full support 57notes disabled notes linux and versions of windows earlier than 10.disabled from version 57: this feature is behind the #enable-experimental-web-platform-features p
reference (needs to be set to enabled).
... to change p
references in chrome, visit chrome://flags.
... full support ≤79notes disabled notes linux and versions of windows earlier than 10.disabled from version ≤79: this feature is behind the #enable-experimental-web-platform-features p
reference (needs to be set to enabled).
... full support 44notes disabled notes linux and versions of windows earlier than 10.disabled from version 44: this feature is behind the #enable-experimental-web-platform-features p
reference (needs to be set to enabled).
value - Web APIs
full support 57notes disabled notes linux and versions of windows earlier than 10.disabled from version 57: this feature is behind the #enable-experimental-web-platform-features p
reference (needs to be set to enabled).
... to change p
references in chrome, visit chrome://flags.
... full support ≤79notes disabled notes linux and versions of windows earlier than 10.disabled from version ≤79: this feature is behind the #enable-experimental-web-platform-features p
reference (needs to be set to enabled).
... full support 44notes disabled notes linux and versions of windows earlier than 10.disabled from version 44: this feature is behind the #enable-experimental-web-platform-features p
reference (needs to be set to enabled).
writeValue() - Web APIs
full support 57notes disabled notes linux and versions of windows earlier than 10.disabled from version 57: this feature is behind the #enable-experimental-web-platform-features p
reference (needs to be set to enabled).
... to change p
references in chrome, visit chrome://flags.
... full support ≤79notes disabled notes linux and versions of windows earlier than 10.disabled from version ≤79: this feature is behind the #enable-experimental-web-platform-features p
reference (needs to be set to enabled).
... full support 44notes disabled notes linux and versions of windows earlier than 10.disabled from version 44: this feature is behind the #enable-experimental-web-platform-features p
reference (needs to be set to enabled).
Content Index API - Web APIs
serviceworkerregistration.index read only returns a
reference to the contentindex interface for indexing cached pages.
... feature detection and interface access here we get a
reference to the serviceworkerregistration, then check for the index property, which gives us access to the content index interface.
... //
reference registration const registration = await navigator.serviceworker.ready; // feature detection if ('index' in registration) { // content index api functionality const contentindex = registration.index; } adding to the content index here we're declaring an item in the correct format and creating an asynchronous function which uses the add() method to register it with the content index.
... async function unregistercontent(article) { //
reference registration const registration = await navigator.serviceworker.ready; // feature detect content index if (!registration.index) return; // unregister content from index await registration.index.delete(article.id); } all the above methods are available within the scope of the service worker.
Document.createTreeWalker() - Web APIs
syntax document.createtreewalker(root, whattoshow[, filter[, entity
referenceexpansion]]); parameters root a root node of this treewalker traversal.
... nodefilter.show_entity_
reference 16 shows entity
reference nodes.
... entity
referenceexpansion optional a boolean flag indicating if when discarding an entity
reference its whole sub-tree must be discarded at the same time.
... living standard removed the expandentity
references parameter.
Document - Web APIs
document.scrollingelementread only returns a
reference to the element that scrolls the document.
... document.defaultviewread only returns a
reference to the window object.
... document.createentity
reference() creates a new entity
reference object and returns it.
... the document interface is extended with the parentnode interface: document.getelementbyid(string id) returns an object
reference to the identified element.
HTMLFormElement - Web APIs
the
reference form.elements will now refer to the individual element.
...gi-bin/test" method="post"> <p>press "info" for form details, or "set" to change those details.</p> <p> <button type="button" onclick="getforminfo();">info</button> <button type="button" onclick="setforminfo(this.form);">set</button> <button type="reset">reset</button> </p> <textarea id="form-info" rows="15" cols="20"></textarea> </form> <script> function getforminfo(){ // get a
reference to the form via its name var f = document.forms["forma"]; // the form properties we're interested in var properties = [ 'elements', 'length', 'name', 'charset', 'action', 'acceptcharset', 'action', 'enctype', 'method', 'target' ]; // iterate over the properties, turning them into a string that we can display to the user var info = properties.map(function(property) { return pro...
...perty + ": " + f[property] }).join("\n"); // set the form's <textarea> to display the form's properties document.forms["forma"].elements['form-info'].value = info; // document.forms["forma"]['form-info'].value would also work } function setforminfo(f){ // argument should be a form element
reference.
...ndow: <!doctype html> <html> <head> <meta charset="utf-8"> <title>example new-window form submission</title> </head> <body> <form action="test.php" target="_blank"> <p><label>first name: <input type="text" name="firstname"></label></p> <p><label>last name: <input type="text" name="lastname"></label></p> <p><label><input type="password" name="pwd"></label></p> <fieldset> <legend>pet p
reference</legend> <p><label><input type="radio" name="pet" value="cat"> cat</label></p> <p><label><input type="radio" name="pet" value="dog"> dog</label></p> </fieldset> <fieldset> <legend>owned vehicles</legend> <p><label><input type="checkbox" name="vehicle" value="bike">i have a bike</label></p> <p><label><input type="checkbox" name="vehicle" value="car">i have a car</label><...
HTMLIFrameElement.allowPaymentRequest - Web APIs
sktopmobilechromeedgefirefoxinternet exploreroperasafariandroid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetallowpaymentrequest experimentalchrome full support 60disabled full support 60disabled disabled from version 60: this feature is behind the #web-payments p
reference (needs to be set to enabled).
... to change p
references in chrome, visit chrome://flags.edge full support 15firefox full support 56ie ?
... webview android no support nochrome android full support 61disabled full support 61disabled disabled from version 61: this feature is behind the #web-payments p
reference (needs to be set to enabled).
... to change p
references in chrome, visit chrome://flags.firefox android full support yesopera android no support nosafari ios ?
HTMLImageElement.srcset - Web APIs
the specified width must be a positive, non-zero, integer, and must match the intrinsic width of the
referenced image.
...ll support 34edge full support 12firefox full support 38 full support 38 no support 32 — 52disabled disabled from version 32 until version 52 (exclusive): this feature is behind the dom.image.srcset.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera full support 21safari full support 8webview android full support 37chrome android full support 34firefox android full support 38 full support 38 no support 32 — 52disabled disabled from version 32 until version 52 (exclusive): this feature is behind the dom.image.srcset.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android no support nosafari ios full support 8samsung internet android full support 2.0legend full support full support no support no supportexperimental.
HTMLTableElement.insertRow() - Web APIs
the htmltableelement.insertrow() method inserts a new row (<tr>) in a given <table>, and returns a
reference to the new row.
... syntax var newrow = htmltableelement.insertrow(index); htmltableelement is a
reference to an html <table> element.
... return value newrow is an htmltablerowelement that
references the new row.
... html <table id="my-table"> <tr><td>row 1</td></tr> <tr><td>row 2</td></tr> <tr><td>row 3</td></tr> </table> javascript function addrow(tableid) { // get a
reference to the table let tableref = document.getelementbyid(tableid); // insert a row at the end of the table let newrow = tableref.insertrow(-1); // insert a cell in the row at index 0 let newcell = newrow.insertcell(0); // append a text node to the cell let newtext = document.createtextnode('new bottom row'); newcell.appendchild(newtext); } // call addrow() with the table's id addro...
HTMLTableRowElement.insertCell() - Web APIs
the htmltablerowelement.insertcell() method inserts a new cell (<td>) into a table row (<tr>) and returns a
reference to the cell.
... syntax var newcell = htmltablerowelement.insertcell(index); htmltablerowelement is a
reference to an html <tr> element.
... return value newcell is an htmltablecellelement that
references the new cell.
... html <table id="my-table"> <tr><td>row 1</td></tr> <tr><td>row 2</td></tr> <tr><td>row 3</td></tr> </table> javascript function addrow(tableid) { // get a
reference to the table let tableref = document.getelementbyid(tableid); // insert a row at the end of the table let newrow = tableref.insertrow(-1); // insert a cell in the row at index 0 let newcell = newrow.insertcell(0); // append a text node to the cell let newtext = document.createtextnode('new bottom row'); newcell.appendchild(newtext); } // call addrow() with the table's id addro...
PaymentResponse.complete() - Web APIs
full support 61edge full support 15firefox full support 56notes disabled full support 56notes disabled notes available only in nightly builds.disabled from version 56: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera no support nosafari full support yeswebview android no support nochrome android full support 56 full support 56 no support 53 — 56disabled disabled from version 53 until version 56 (exclusive): this feature is behind the #web-payments p
reference (needs to be set to enabled).
... to change p
references in chrome, visit chrome://flags.firefox android full support 56notes disabled full support 56notes disabled notes available only in nightly builds.disabled from version 56: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android no support nosafari ios full support yessamsung internet android full support 6.0legend full support full support no support no supportsee implementation notes.see implementation notes.user must explicitly enable this feature.user must explicitly enable this feature.
PaymentResponse.details - Web APIs
full support 61edge full support 15firefox full support 56notes disabled full support 56notes disabled notes available only in nightly builds.disabled from version 56: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera no support nosafari full support yeswebview android no support nochrome android full support 56 full support 56 no support 53 — 56disabled disabled from version 53 until version 56 (exclusive): this feature is behind the #web-payments p
reference (needs to be set to enabled).
... to change p
references in chrome, visit chrome://flags.firefox android full support 56notes disabled full support 56notes disabled notes available only in nightly builds.disabled from version 56: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android no support nosafari ios full support yessamsung internet android full support 6.0legend full support full support no support no supportsee implementation notes.see implementation notes.user must explicitly enable this feature.user must explicitly enable this feature.
PaymentResponse.payerEmail - Web APIs
full support 61edge full support 15firefox full support 56notes disabled full support 56notes disabled notes available only in nightly builds.disabled from version 56: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera no support nosafari full support yeswebview android no support nochrome android full support 56 full support 56 no support 53 — 56disabled disabled from version 53 until version 56 (exclusive): this feature is behind the #web-payments p
reference (needs to be set to enabled).
... to change p
references in chrome, visit chrome://flags.firefox android full support 56notes disabled full support 56notes disabled notes available only in nightly builds.disabled from version 56: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android no support nosafari ios full support yessamsung internet android full support 6.0legend full support full support no support no supportsee implementation notes.see implementation notes.user must explicitly enable this feature.user must explicitly enable this feature.
PaymentResponse.shippingAddress - Web APIs
full support 61edge full support 15firefox full support 56notes disabled full support 56notes disabled notes available only in nightly builds.disabled from version 56: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera no support nosafari full support yeswebview android no support nochrome android full support 56 full support 56 no support 53 — 56disabled disabled from version 53 until version 56 (exclusive): this feature is behind the #web-payments p
reference (needs to be set to enabled).
... to change p
references in chrome, visit chrome://flags.firefox android full support 56notes disabled full support 56notes disabled notes available only in nightly builds.disabled from version 56: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android no support nosafari ios full support yessamsung internet android full support 6.0legend full support full support no support no supportsee implementation notes.see implementation notes.user must explicitly enable this feature.user must explicitly enable this feature.
PaymentResponse.shippingOption - Web APIs
full support 61edge full support 15firefox full support 56notes disabled full support 56notes disabled notes available only in nightly builds.disabled from version 56: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera no support nosafari full support yeswebview android no support nochrome android full support 56 full support 56 no support 53 — 56disabled disabled from version 53 until version 56 (exclusive): this feature is behind the #web-payments p
reference (needs to be set to enabled).
... to change p
references in chrome, visit chrome://flags.firefox android full support 56notes disabled full support 56notes disabled notes available only in nightly builds.disabled from version 56: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android no support nosafari ios full support yessamsung internet android full support 6.0legend full support full support no support no supportsee implementation notes.see implementation notes.user must explicitly enable this feature.user must explicitly enable this feature.
Permissions - Web APIs
5.0revoke experimentalnon-standardchrome full support 46edge full support 79firefox full support 51disabled full support 51disabled disabled from version 51: this feature is behind the dom.permissions.revoke.enable p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.
... nowebview android full support 46chrome android full support 46firefox android full support 51disabled full support 51disabled disabled from version 51: this feature is behind the dom.permissions.revoke.enable p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.
PushEvent - Web APIs
additional properties: pushevent.data read only returns a
reference to a pushmessagedata object containing data sent to the pushsubscription.
...webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetpushevent experimentalchrome full support 42edge full support 16disabled full support 16disabled disabled from version 16: this feature is behind the enable service workers p
reference.
...ternet android full support 4.0pushevent() constructor experimentalchrome full support 42edge full support 16disabled full support 16disabled disabled from version 16: this feature is behind the enable service workers p
reference.
... nosamsung internet android full support 4.0data experimentalchrome full support 57edge full support 16disabled full support 16disabled disabled from version 16: this feature is behind the enable service workers p
reference.
RTCRtpContributingSource.source - Web APIs
samsung internetsourcechrome full support 59edge full support ≤79firefox full support 59disabled full support 59disabled disabled from version 59: this feature is behind the media.peerconnection.rtpsourcesapi.enable p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera no support nosafari ?
...bview android full support 59chrome android full support 59firefox android full support 59disabled full support 59disabled disabled from version 59: this feature is behind the media.peerconnection.rtpsourcesapi.enable p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android no support nosafari ios ?
Range.selectNodeContents() - Web APIs
the parent node of the start and end of the range will be the
reference node.
... the startoffset is 0, and the endoffset is the number of child nodes or number of characters contained in the
reference node.
... syntax range.selectnodecontents(
referencenode); parameters
referencenode the node whose contents will be selected within a range.
... example range = document.createrange();
referencenode = document.getelementsbytagname("div")[0]; range.selectnodecontents(
referencenode); live sample this example lets the user select and deselect a paragraph with buttons.
Screen Wake Lock API - Web APIs
it is good practice to store a
reference to the sentinel object to control release later and also to reacquire the lock if need be.
... wakelocksentinel provides a handle to the underlying platform wake lock and if
referenced can be manually released and reacquired.
... // create a
reference for the wake lock let wakelock = null; // create an async function to request a wake lock const requestwakelock = async () => { try { wakelock = await navigator.wakelock.request('screen'); // change up our interface to reflect wake lock active statuselem.textcontent = 'wake lock is active!'; } catch (err) { // if wake lock request fails - usually system related, such as ba...
...refer to using feature policy for
reference how to use it.
Sensor APIs - Web APIs
let accelerometer = null; try { accelerometer = new accelerometer({
referenceframe: 'device' }); accelerometer.addeventlistener('error', event => { // handle runtime errors.
... console.log('sensor construction was blocked by a feature policy.'); } else if (error.name === '
referenceerror') { console.log('sensor is not supported by the user agent.'); } else { throw error; } } permissions and feature policy sensor readings may not be taken unless the user grants permission to a specific sensor type.
...+ magsensor.x); console.log("magnetic field along the y-axis " + magsensor.y); console.log("magnetic field along the z-axis " + magsensor.z); }) magsensor.addeventlistener('error', event => { console.log(event.error.name, event.error.message); }) magsensor.start(); interfaces absoluteorientationsensorsecure context describes the device's physical orientation in relation to the earth's
reference coordinate system.
... relativeorientationsensorsecure context describes the device's physical orientation without regard to the earth's
reference coordinate system.
ServiceWorkerRegistration - Web APIs
serviceworkerregistration.pushmanager read only returns a
reference to the pushmanager interface for managing push subscriptions including subscribing, getting an active subscription, and accessing push permission status.
... serviceworkerregistration.sync read only returns a
reference to the syncmanager interface, which manages background synchronization processes.
... serviceworkerregistration.index read only returns a
reference to the contentindex interface, for managing indexed content for offline viewing.
... unimplemented properties serviceworkerregistration.periodicsync read only returns a
reference to the periodicsyncmanager interface, which manages periodic background synchronization processes.
ShadowRoot - Web APIs
you can retrieve a
reference to an element's shadow root using its element.shadowroot property, provided it was created using element.attachshadow() with the mode option set to open.
... shadowroot.host read only returns a
reference to the dom element the shadowroot is attached to.
... shadowroot.innerhtml sets or returns a
reference to the dom tree inside the shadowroot.
... connectedcallback() { console.log('custom square element added to page.'); updatestyle(this); } attributechangedcallback(name, oldvalue, newvalue) { console.log('custom square element attributes changed.'); updatestyle(this); } in the updatestyle() function itself, we get a
reference to the shadow dom using element.shadowroot.
WebGLRenderingContext.stencilFunc() - Web APIs
the webglrenderingcontext.stencilfunc() method of the webgl api sets the front and back function and
reference value for stencil testing.
... ref a glint specifying the
reference value for the stencil test.
... mask a gluint specifying a bit-wise mask that is used to and the
reference value and the stored stencil value when the test is done.
... gl.enable(gl.stencil_test); gl.stencilfunc(gl.less, 0, 0b1110011); to get the current stencil function,
reference value, or other stencil information, query the following constants with getparameter().
WebGLRenderingContext.stencilFuncSeparate() - Web APIs
the webglrenderingcontext.stencilfuncseparate() method of the webgl api sets the front and/or back function and
reference value for stencil testing.
... ref a glint specifying the
reference value for the stencil test.
... mask a gluint specifying a bit-wise mask that is used to and the
reference value and the stored stencil value when the test is done.
... gl.enable(gl.stencil_test); gl.stencilfuncseparate(gl.front, gl.less, 0.2, 1110011); to get the current stencil function,
reference value, or other stencil information, query the following constants with getparameter().
XRFrame.getViewerPose() - Web APIs
the getviewerpose() method, a member of the xrframe interface, returns a xrviewerpose object which describes the viewer's pose (position and orientation) relative to the specified
reference space.
... syntax var xrviewerpose = xrframe.getviewerpose(
referencespace); parameters
referencespace an xr
referencespace object specifying the space to use as the
reference point or base for the computation of the viewer's current pose.
... return value a xrviewerpose describing the viewer's position and orientation relative to the specified
reference space.
... viewerpose = xrframe.getviewerpose(xr
referencespace); if (viewerpose) { /* render the pose's views */ } to see a complete example, take a look at movement, orientation, and motion.
XRRigidTransform - Web APIs
xrrigidtransform is used to specify transforms throughout the webxr apis, including: the offset and orientation relative to the parent
reference space to use when creating a new
reference space with getoffset
referencespace().
... the xr
referencespaceevent event's transform property, as found in the reset event received by an xr
referencespace.
... example this code snippet creates an xrrigidtransform to specify the offset and orientation in relation to the current
reference space to use when creating a new
reference space.
... xrsession.request
referencespace(refspacetype) .then((refspace) => { xr
referencespace = refspace; xr
referencespace = xr
referencespace.getoffset
referencespace( new xrrigidtransform(viewerstartposition, cubeorientation)); animationframerequestid = xrsession.requestanimationframe(drawframe); specifications specification status comment webxr device apithe definition of 'xrrigidtransform' in that specification.
XRViewerPose - Web APIs
an xrviewerpose is always obtained and
referenced relative to an existing xr
referencespace.
... the viewer's pose for the animation frame represented by xrframe can be obtained by calling the frame's getviewerpose() method, specifying the
reference space in which the origin's position should be computed.
... examples in this example—part of the code to render an xrframe, getviewerpose() is called to get an xrviewerpose using the same
reference space the code is using as its base
reference space.
... let pose = frame.getviewerpose(xr
referencespace); if (pose) { let gllayer = xrsession.renderstate.baselayer; gl.bindframebuffer(gl.framebuffer, gllayer.framebuffer); gl.clearcolor(0, 0, 0, 1); gl.cleardepth(1); gl.clear(gl.color_buffer_bit, gl.depth_buffer_bit); for (let view of pose.views) { let viewport = gllayer.getviewport(view); gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); /* render the scene for the eye view.eye */ } } passing each view to getviewport() returns the webgl viewport to apply in order to cause the rendered output to be positioned correc...
:host() - CSS: Cascading Style Sheets
54edge full support 79firefox full support 63 full support 63 no support 61 — 63disabled disabled from version 61 until version 63 (exclusive): this feature is behind the dom.webcomponents.shadowdom.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera full support 41safari full support 10notes full support 10notes notes certain css selectors do not work (:host > .local-child) and styling slotted content (::slotted) is buggy.webview android full support 54chrome android full support 54firefox android full support 63 full support 63 no support 61 — 63disabled disabled from version 61 until v...
...ersion 63 (exclusive): this feature is behind the dom.webcomponents.shadowdom.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android full support 41safari ios full support 10notes full support 10notes notes certain css selectors do not work (:host > .local-child) and styling slotted content (::slotted) is buggy.samsung internet android full support 6.0legend full support full support no support no supportsee implementation notes.see implementation notes.user must explicitly enable this feature.user must explicitly enable this feature.
:where() - CSS: Cascading Style Sheets
mobilechromeedgefirefoxinternet exploreroperasafariandroid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internet:where()chrome full support 72disabled full support 72disabled disabled from version 72: this feature is behind the #enable-experimental-web-platform-features p
reference (needs to be set to enabled).
... to change p
references in chrome, visit chrome://flags.edge no support nofirefox full support 78 full support 78 full support 77notes disabled notes enabled by default in firefox nightly.disabled from version 77: this feature is behind the layout.css.is-where-selectors.enabled p
reference (needs to be set to enabled).
... to change p
references in firefox, visit about:config.ie no support noopera no support nosafari no support nowebview android no support nochrome android full support 72disabled full support 72disabled disabled from version 72: this feature is behind the #enable-experimental-web-platform-features p
reference (needs to be set to enabled).
... to change p
references in chrome, visit chrome://flags.firefox android no support noopera android no support nosafari ios no support nosamsung internet android no support nolegend full support full support no support no supportsee implementation notes.see implementation notes.user must explicitly enable this feature.user must explicitly enable this feature.
src - CSS: Cascading Style Sheets
specifies an external
reference consisting of a <url>, followed by an optional hint using the format() function to describe the format of the font resource
referenced by that url.
... description the value of this descriptor is a prioritized, comma-separated list of external
references or locally-installed font face names.
... when a font is needed the user agent iterates over the set of
references listed using the first one it can successfully activate.
...if the element
reference is omitted, a
reference to the first defined font is implied.
prefers-color-scheme - CSS: Cascading Style Sheets
if you have set privacy.resistfingerprinting to true, prefers-color-scheme p
reference is overridden to light.
... alternately, users can create the numeric p
reference ui.systemusesdarktheme to override the default behavior and return light (value: 0), dark (value: 1), or no-p
reference (value: 2).
... syntax light indicates that user has notified the system that they prefer an interface that has a light theme, or has not expressed an active p
reference.
...they can be further themed according to the user's color scheme p
reference.
prefers-reduced-data - CSS: Cascading Style Sheets
syntax no-p
reference indicates that the user has made no p
reference known to the system.
... reduce indicates that user has expressed the p
reference for lightweight alternate content.
... user p
references currently no user agent implements this feature, although various operating systems do support such p
references and if this media query is ever implemented user agents will likely rely on the settings provided by the operating system.
... in this example the montserrat-regular.woff2 font file will neither be preloaded nor downloaded if the user prefers reduced data, in this case the "system font stack" will serve as the fallback font: html <head> <link rel="preload" href="fonts/montserrat-regular.woff2" as="font" media="(prefers-reduced-data: no-p
reference)" crossorigin> <link rel="stylesheet" href="style.css"> </head> css @media (prefers-reduced-data: no-p
reference) { @font-face { font-family: montserrat; font-style: normal; font-weight: 400; font-display: swap; /* latin */ src: local('montserrat regular'), local('montserrat-regular'), url('fonts/montserrat-regular.woff2') format('woff2'); ...
animation-delay - CSS: Cascading Style Sheets
full support 49prefixed prefixed implemented with the vendor prefix: -webkit- full support 44prefixed disabled prefixed implemented with the vendor prefix: -webkit-disabled from version 44: this feature is behind the layout.css.prefixes.webkit p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.
... 16 full support 16 full support 49prefixed prefixed implemented with the vendor prefix: -webkit- full support 44prefixed disabled prefixed implemented with the vendor prefix: -webkit-disabled from version 44: this feature is behind the layout.css.prefixes.webkit p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.
animation-direction - CSS: Cascading Style Sheets
16 full support 16 full support 49prefixed prefixed implemented with the vendor prefix: -webkit- full support 44prefixed disabled prefixed implemented with the vendor prefix: -webkit-disabled from version 44: this feature is behind the layout.css.prefixes.webkit p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.
... 16 full support 16 full support 49prefixed prefixed implemented with the vendor prefix: -webkit- full support 44prefixed disabled prefixed implemented with the vendor prefix: -webkit-disabled from version 44: this feature is behind the layout.css.prefixes.webkit p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.
aspect-ratio - CSS: Cascading Style Sheets
pport 71notes partial support 71notes notes firefox 71 adds internal support only for mapped values no support 69 — 71notes disabled notes firefox 69 adds internal support only for mapped valuesdisabled from version 69 until version 71 (exclusive): this feature is behind the layout.css.width-and-height-map-to-aspect-ratio.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera no support nosafari no support nowebview android partial support 79notes partial support 79notes notes webview 79 adds internal support only for mapped valueschrome android partial support 79notes partial support 79notes notes chrome 79 adds internal support only for mapped valuesfirefox android no support noopera android no support nosafari ios no support ...
... 79edge full support 79firefox full support 71 full support 71 no support 69 — 71disabled disabled from version 69 until version 71 (exclusive): this feature is behind the layout.css.width-and-height-map-to-aspect-ratio.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera no support nosafari no support nowebview android full support 79chrome android full support 79firefox android no support noopera android no support nosafari ios no support nosamsung internet android no support nolegend full support full support ...
box-direction - CSS: Cascading Style Sheets
1prefixed prefixed implemented with the vendor prefix: -moz- full support 49prefixed prefixed implemented with the vendor prefix: -webkit- full support 48prefixed disabled prefixed implemented with the vendor prefix: -webkit-disabled from version 48: this feature is behind the layout.css.prefixes.webkit p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera full support 15prefixed full support 15prefixed prefixed implemented with the vendor prefix: -webkit-safari full support 3prefixed full support 3prefixed prefixed implemented with the vendor prefix: -webkit- no support 1.1 — 3prefixed prefixed implemented with the vendor prefix: -khtml-webview android full support ≤37prefixed full support ≤37prefixed prefixed implemented with the ...
... 4prefixed prefixed implemented with the vendor prefix: -moz- full support 49prefixed prefixed implemented with the vendor prefix: -webkit- full support 48prefixed disabled prefixed implemented with the vendor prefix: -webkit-disabled from version 48: this feature is behind the layout.css.prefixes.webkit p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android full support 14prefixed full support 14prefixed prefixed implemented with the vendor prefix: -webkit-safari ios full support 1prefixed full support 1prefixed prefixed implemented with the vendor prefix: -webkit-samsung internet android full support 1.0prefixed full support 1.0prefixed prefixed implemented with the vendor prefix: -webkit-legend full support full support no support ...
font-size-adjust - CSS: Cascading Style Sheets
hromeedgefirefoxinternet exploreroperasafariandroid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetfont-size-adjustchrome full support 43disabled full support 43disabled disabled from version 43: this feature is behind the enable experimental web platform features p
reference.
... to change p
references in chrome, visit chrome://flags.edge full support 79disabled full support 79disabled disabled from version 79: this feature is behind the enable experimental web platform features p
reference.firefox full support 40 full support 40 full support 3notes notes before firefox 40, font-size-adjust: 0 was incorrectly interpreted as font-size-adjust: none (bug 1144885).
... 1notes notes before firefox 3, font-size-adjust was supported on windows only.ie no support noopera full support 30disabled full support 30disabled disabled from version 30: this feature is behind the enable experimental web platform features p
reference.safari no support nowebview android no support nochrome android full support 43disabled full support 43disabled disabled from version 43: this feature is behind the enable experimental web platform features p
reference.
... to change p
references in chrome, visit chrome://flags.firefox android full support 4opera android full support 30disabled full support 30disabled disabled from version 30: this feature is behind the enable experimental web platform features p
reference.safari ios no support nosamsung internet android no support nolegend full support full support no support no supportsee implementation notes.see implementation notes.user must explicitly enabl...
position - CSS: Cascading Style Sheets
l support 56edge full support 16firefox full support 32 full support 32 no support 26 — 48disabled disabled from version 26 until version 48 (exclusive): this feature is behind the layout.css.sticky.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera full support 43safari full support 6.1prefixed full support 6.1prefixed prefixed implemented with the vendor prefix: -webkit-webview android full support 56chrome android full support 56firefox android full support 32 full support 32 no support 26 — 48disabled disabled from version 26 until version 48 (exclusive): this feature is behind the l...
...ayout.css.sticky.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android full support 43safari ios full support 6.1prefixed full support 6.1prefixed prefixed implemented with the vendor prefix: -webkit-samsung internet android full support 6.0legend full support full support no support no supportsee implementation notes.see implementation notes.user must explicitly enable this feature.user must explicitly enable this feature.requires a vendor prefix or different name for use.requires a vend...
Localizations and character encodings - Developer guides
specifying the fallback encoding as of firefox 28, this section is obsolete, since the p
reference intl.charset.default no longer exists.
... the fallback encoding is specified by the p
reference intl.charset.default in intl.properties.
... specifying the heuristic detection mode the heuristic detection mode is specified by the p
reference intl.charset.detector in intl.properties.
... setting some encodings to be more easily selectable from the character encoding menu the p
reference intl.charsetmenu.browser.static in intl.properties makes some character encodings more easily available in the character encoding menu in the browser.
User input and controls - Developer guides
note: have a look at the events
reference and keyboardevent guide to find out more about keyboard events.
...the list of all events using the mouse event interface is provided in the events
reference.
... this is the code to request pointer lock on an element: element.requestpointerlock(); note: for a full tutorial and
reference, read our pointer_lock_api page.
... tutorials touch events guide managing screen orientation using fullscreen mode dragging and dropping multiple items drag operations guide
reference mouseevent keyboardevent touch events pointer_lock_api screen orientation api fullscreen api drag & drop content editable ...
<cite>: The Citation element - HTML: Hypertext Markup Language
the html citation element (<cite>) is used to describe a
reference to a cited creative work, and must include the title of that work.
... the
reference may be in an abbreviated form according to context-appropriate conventions related to citation metadata.
... it's worth noting that the w3c specification says that a
reference to a creative work, as included within a <cite> element, may include the name of the work’s author.
... to include a
reference to the source of quoted material which is contained within a <blockquote> or <q> element, use the cite attribute on the element.
HTML: Hypertext Markup Language
html
reference in our extensive html
reference section, you'll find the details about every element and attribute in html.
...
references html
reference html consists of elements, each of which may be modified by some number of attributes.
... html element
reference browse a list of all html elements.
... html attribute
reference elements in html have attributes.
Resource URLs - HTTP
threats because some of the information shared by resource: urls is available to websites, a web page could run internal scripts and inspect internal resources of firefox, including the default p
references, which could be a serious security and privacy issue.
... the file firefox.js passes p
reference names and values to the pref() function.
... for example: http://searchfox.org/mozilla-central/rev/48ea452803907f2575d81021e8678634e8067fc2/browser/app/profile/firefox.js#575 web sites can easily collect firefox default p
references by overriding this pref() function and using the script resource:///defaults/p
references/firefox.js.
... furthermore, some default values of p
references differ between build configurations, such as platform and locale, which means web sites could identify individual users using this information.
Link prefetching FAQ - HTTP
is there a p
reference to disable link prefetching?
... yes, there is a hidden p
reference that you can set to disable link prefetching.
...we would rather improve the implementation if it does not work correctly, than expect users to locate and tweak some obscure p
reference.
...the user p
reference to disable <link> tag prefetching may simply encourage websites to stick with js/dom hacks, and that would not be good for users.
Protocol upgrade mechanism - HTTP
upgrading http/1.1 connections the upgrade header field is used by clients to invite the server to switch to one of the listed protocols, in descending p
reference order.
... sec-websocket-protocol the sec-websocket-protocol header specifies one or more websocket protocols that you wish to use, in order of p
reference.
... sec-websocket-protocol: subprotocols subprotocols a comma-separated list of subprotocol names, in the order of p
reference.
...
references websocket api http specifications and rfcs: rfc 7230 rfc 6455 rfc 7540 ...
Closures - JavaScript
a closure is the combination of a function bundled together (enclosed) with
references to its surrounding state (the lexical environment).
...in this case, myfunc is a
reference to the instance of the function displayname created when makefunc is run.
... the instance of displayname maintains a
reference to its lexical environment, within which the variable name exists.
...each closure
references a different version of the privatecounter variable through its own closure.
JavaScript data types and data structures - JavaScript
objects in computer science, an object is a value in memory which is possibly
referenced by an identifier.
... unrestricted double double bigint64array -263 to 263-1 8 64-bit two's complement signed integer bigint int64_t (signed long long) biguint64array 0 to 264-1 8 64-bit unsigned integer bigint uint64_t (unsigned long long) keyed collections: maps, sets, weakmaps, weaksets these data structures, introduced in ecmascript edition 6, take object
references as keys.
... please have a look at the
reference to find out about more objects.
... please read the
reference page for more details and edge cases.
Control flow and error handling - JavaScript
the javascript
reference contains exhaustive details about the statements in this chapter.
...see the let and const
reference pages for more information.
...you can then
reference the object's properties in the catch block.
... for more information, see nested try-blocks on the try...catch
reference page.
TypeError: can't access dead object - JavaScript
the javascript exception "can't access dead object" occurs when firefox disallows add-ons to keep strong
references to dom objects after their parent document has been destroyed to improve in memory usage and to prevent memory leaks.
... to improve in memory usage and to prevent memory leaks, firefox disallows add-ons to keep strong
references to dom objects after their parent document has been destroyed.
... a dead object, is holding a strong (keep alive)
reference to a dom element that persists even after it was destroyed in the dom.
... to avoid these issues,
references to dom nodes in foreign document should instead be stored in an object which is specific to that document, and cleaned up when the document is unloaded, or stored as weak
references.
Array.prototype.concat() - JavaScript
elements of the original arrays are copied into the new array as follows: object
references (and not the actual object): concat copies object
references into the new array.
...that is, if a
referenced object is modified, the changes are visible to both the new and original arrays.
...furthermore, any operation on the new array (except operations on elements which are object
references) will have no effect on the original arrays, and vice versa.
...bers); // results in [1, 2, 3, 4, 5, 6, 7, 8, 9] concatenating values to an array the following code concatenates three values to an array: const letters = ['a', 'b', 'c']; const alphanumeric = letters.concat(1, [2, 3]); console.log(alphanumeric); // results in ['a', 'b', 'c', 1, 2, 3] concatenating nested arrays the following code concatenates nested arrays and demonstrates retention of
references: const num1 = [[1]]; const num2 = [2, [3]]; const numbers = num1.concat(num2); console.log(numbers); // results in [[1], 2, [3]] // modify the first element of num1 num1[0].push(4); console.log(numbers); // results in [[1, 4], 2, [3]] specifications specification ecmascript (ecma-262)the definition of 'array.prototype.concat' in that specification.
FinalizationRegistry - JavaScript
}); then you register any objects you want a cleanup callback for by calling the `register` method, passing in the object and a *held value* for it: registry.register(theobject, "some value"); the registry does not keep a strong
reference to the object, as that would defeat the purpose (if the registry held it strongly, the object would never be reclaimed).
...if the held value is an object, the registry keeps a strong
reference to it (so it can pass it to your cleanup callback later).
...the registry only keeps a weak
reference to the unregister token.
... the javascript engine may hold
references to things which look like they are unreachable (e.g., in closures, or inline caches).
JSON.stringify() - JavaScript
exceptions throws a typeerror ("cyclic object value") exception when a circular
reference is found.
...// '{"obj":"now i am a nested object under key 'obj'"}' json.stringify([ obj ]); // '["now i am a nested object under key '0'"]' issue with json.stringify() when serializing circular
references note that since the json format doesn't support object
references (although an ietf draft exists), a typeerror will be thrown if one attempts to encode an object with circular
references.
... const circular
reference = {}; circular
reference.myself = circular
reference; // serializing circular
references throws "typeerror: cyclic object value" json.stringify(circular
reference); to serialize circular
references you can use a library that supports them (e.g.
... cycle.js by douglas crockford) or implement a solution by yourself, which will require finding and replacing (or removing) the cyclic
references by serializable values.
delete operator - JavaScript
the javascript delete operator removes a property from an object; if no more
references to the same property are held, it is eventually released automatically.
... syntax delete expression where expression should evaluate to a property
reference, e.g.: delete object.property delete object['property'] parameters object the name of an object, or an expression evaluating to an object.
...memory management is done indirectly via breaking
references.
...non-strict mode when in strict mode, if delete is used on a direct
reference to a variable, a function argument or a function name, it will throw a syntaxerror.
super - JavaScript
class rectangle { constructor(height, width) { this.name = 'rectangle'; this.height = height; this.width = width; } sayname() { console.log('hi, i am a ', this.name + '.'); } get area() { return this.height * this.width; } set area(value) { this._area = value; } } class square extends rectangle { constructor(length) { this.height; //
referenceerror, super needs to be called first!
...leaving this out will cause a
reference error.
...n 'i have 4 sides'; } } class square extends rectangle { constructor() {} static logdescription() { return super.lognbsides() + ' which are all equal'; } } square.logdescription(); // 'i have 4 sides which are all equal' deleting super properties will throw an error you cannot use the delete operator and super.prop or super[expr] to delete a parent class' property, it will throw a
referenceerror.
... class base { constructor() {} foo() {} } class derived extends base { constructor() {} delete() { delete super.foo; // this is bad } } new derived().delete(); //
referenceerror: invalid delete involving 'super'.
break - JavaScript
the break statement needs to be nested within the
referenced label.
...a break statement must be nested within any label it
references.
... outer_block: { inner_block: { console.log('1'); break outer_block; // breaks out of both inner_block and outer_block console.log(':-('); // skipped } console.log('2'); // skipped } break in labeled blocks that throw the following code also uses break statements with labeled blocks, but generates a syntaxerror because its break statement is within block_1 but
references block_2.
... a break statement must always be nested within any label it
references.
let - JavaScript
accessing the variable before the initialization results in a
referenceerror.
... function do_something() { console.log(bar); // undefined console.log(foo); //
referenceerror var bar = 1; let foo = 2; } the temporal dead zone and typeof unlike with simply undeclared variables and variables that hold a value of undefined, using the typeof operator to check for the type of a variable in that variable's temporal dead zone will throw a
referenceerror: // prints out 'undefined' console.log(typeof undeclaredvariable); // results in a '
referenceerror' console.log(typeof i); let i = 10; another example of temporal dead zone combined with lexical scoping due to lexical scoping, the identifier foo inside the expression (foo + 55) evaluates to the if block's foo, and...
... function test(){ var foo = 33; if(foo) { let foo = (foo + 55); //
referenceerror } } test(); this phenomenon may confuse you in a situation like the following.
... console.log(n); // object {a: [1,2,3]} for (let n of n.a) { //
referenceerror console.log(n); } } go({a: [1, 2, 3]}); other situations when used inside a block, let limits the variable's scope to that block.
Codecs used by WebRTC - Web media technologies
customizing the codec list once you have a list of the available codecs, you can alter it and then send the revised list to rtcrtptransceiver.setcodecp
references() to rearrange the codec list.
... this changes the order of p
reference of the codecs, letting you tell webrtc to prefer a different codec over all others.
...vers = peerconnection.gettransceivers(); transceivers.foreach(transceiver => { const kind = transceiver.sender.track.kind; let sendcodecs = rtcrtpsender.getcapabilities(kind).codecs; let recvcodecs = rtcrtpreceiver.getcapabilities(kind).codecs; if (kind === "video") { sendcodecs = prefercodec(mimetype); recvcodecs = prefercodec(mimetype); transceiver.setcodecp
references([...sendcodecs, ...recvcodecs]); } }); peerconnection.onnegotiationneeded(); } in this sample, the function changevideocodec() takes as input the mime type of the codec you wish to use.
... finally, we call the rtcrtptransceiver's setcodecp
references() method to specify that the given send and receive codecs are allowed, in the newly rearranged order.
Applying SVG effects to HTML content - SVG: Scalable Vector Graphics
note:
references to svg in external files must be to the same origin as the referencing document.
... using embedded svg to apply an svg effect using css styles, you first need to create the css style that
references the svg to apply.
...th-1" clippathunits="objectboundingbox"> <circle cx="0.25" cy="0.25" r="0.25" id="circle"/> <rect x="0.5" y="0.2" width="0.5" height="0.8"/> </clippath> </svg> .target { clip-path: url(#clipping-path-1); } p { width: 300px; border: 1px solid #000; display: inline-block; } this establishes a clipping area made of a circle and rectangle, assigns it the id #clipping-path-1, then
references it in the css.
...you can rotate the text: <svg height="60" width="200"> <text x="0" y="15" fill="blue" transform="rotate(30 20,50)">example text</text> </svg> using external
references svg used for clipping, masking, and filtering can be loaded from an external source, as long as that source comes from the same origin as the html document to which it's applied.
in - SVG: Scalable Vector Graphics
if the value for result appears multiple times within a given <filter> element, then a
reference to that result will use the closest preceding filter primitive with the given value for attribute result.
...using this attribute: <feblend>, <fecolormatrix>, <fecomponenttransfer>, <fecomposite>, <feconvolvematrix>, <fediffuselighting>, <fedisplacementmap>, <fedropshadow>, <fegaussianblur>, <femergenode>, <femorphology>, <feoffset>, <fespecularlighting>, <fetile> usage notes value sourcegraphic | sourcealpha | backgroundimage | backgroundalpha | fillpaint | strokepaint | <filter-primitive-
reference> default value sourcegraphic for first filter primitive, otherwise result of previous filter primitive animatable yes sourcegraphic this keyword represents the graphics elements that were the original input into the <filter> element.
... <filter-primitive-
reference> this value is an assigned name for the filter primitive in the form of a <custom-ident>.
... if supplied, then graphics that result from processing this filter primitive can be
referenced by an in attribute on a subsequent filter primitive within the same filter element.
preserveAspectRatio - SVG: Scalable Vector Graphics
"> <use href="#smiley" /> </svg> </svg> path { fill: yellow; stroke: black; stroke-width: 8px; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; } rect:hover, rect:active { outline: 1px solid red; } syntax preserveaspectratio="<align> [<meetorslice>]" its value is made of one or two keywords: a required alignment value and an optional "meet or slice"
reference as described below: alignment value the alignment value indicates whether to force uniform scaling and, if so, the alignment method to use in case the aspect ratio of the viewbox doesn't match the aspect ratio of the viewport.
... meet or slice
reference the meet or slice
reference is optional and, if provided, must be one of the following keywords: meet (the default) - scale the graphic such that: aspect ratio is preserved the entire viewbox is visible within the viewport the viewbox is scaled up as much as possible, while still meeting the other criteria in this case, if the aspect ratio of the graphic does not match...
... feimage for <feimage>, preserveaspectratio defines how the
referenced image should fit in the rectangle define by the <feimage> element.
... default value xmidymid meet animatable yes image for <image>, preserveaspectratio defines how the
referenced image should fit in the rectangle define by the <image> element.
requiredExtensions - SVG: Scalable Vector Graphics
each extension is identified by an url
reference.
... usage notes value <list-of-extensions> default value none animatable no <list-of-extensions> the value is a list of
references (iri
references in svg 1, url
references in svg 2) which identify the required extensions, with the individual values separated by white space.
... note: if a given extension
reference contains white space within itself, that white space must be escaped.
... note: if several extension
reference objects are enclosed in a <switch> and none of them matches, this may lead to situations where no content is displayed.
result - SVG: Scalable Vector Graphics
if supplied, then graphics that result from processing this filter primitive can be
referenced by an in attribute on a subsequent filter primitive within the same <filter> element.
...placementfilter"> <feturbulence type="turbulence" basefrequency="0.05" numoctaves="2" result="turbulence"/> <fedisplacementmap in2="turbulence" in="sourcegraphic" scale="50" xchannelselector="r" ychannelselector="g"/> </filter> <circle cx="100" cy="100" r="100" style="filter: url(#displacementfilter)"/> </svg> usage notes value <filter-primitive-
reference> default value none animatable yes <filter-primitive-
reference> this value is a <custom-ident> and defines the name for the filter primitive.
...it is legal for the same <filter-primitive-
reference> to appear multiple times within the same <filter> element.
... when
referenced, this value will use the closest preceding filter primitive with the given result.
Gradients in SVG - SVG: Scalable Vector Graphics
you must give the gradient an id attribute; otherwise it can't be
referenced by other elements inside the file.
... <stop offset="100%" stop-color="yellow" stop-opacity="0.5"/> to use a gradient, we have to
reference it from an object's fill or stroke attributes.
... this is done the same way you
reference elements in css, using a url.
... in this case, the url is just a
reference to our gradient, which i've given the creative id, "gradient".
SVG fonts - SVG: Scalable Vector Graphics
this bears an id attribute, to enable it to be
referenced via a uri (see below).
...in the example above the first and most important to be defined is font-family, the value of which can then be
referenced in css and svg font-family properties.
...each carries
references to at least two characters (attributes u1 and u2) and an attribute k that determines how much the distance between those characters should be decreased.
... option: use css @font-face you can use @font-face to
reference remote (and not so remote) fonts: <font id="super_sans"> <!-- and so on --> </font> <style type="text/css"> @font-face { font-family: "super sans"; src: url(#super_sans); } </style> <text font-family="super sans">my text uses super sans</text> option:
reference a remote font the above mentioned font-face-uri element allows you to
reference an external font, hence allowing greater re-us...
widget - Archive of obsolete content
just save the file in your add-on's data directory, and
reference it using the data.url() method of the self module: var data = require("sdk/self").data; require("sdk/widget").widget({ id: "my-widget", label: "my widget", contenturl: data.url("my-content.html") }); this widget contains an entire web page: require("sdk/widget").widget({ id: "hello-display", label: "my hello widget", content: "hello!", width: 50 }); widgets are quite small by d...
...this html file, and the icon files it
references, are saved in the add-on's data directory.
...ent.getelementbyid("play-button"); play_button.onclick = function() { addon.port.emit("play"); } var pause_button = document.getelementbyid("pause-button"); pause_button.onclick = function() { addon.port.emit("pause"); } var stop_button = document.getelementbyid("stop-button"); stop_button.onclick = function() { addon.port.emit("stop"); } } next, add a script tag to
reference "button-script.js", and call its init() function on load: <html> <head> <script src="button-script.js"></script> </head> <body onload="init()"> <img src="play.png" id="play-button"> <img src="pause.png" id="pause-button"> <img src="stop.png" id="stop-button"> </body> </html> finally, remove the line attaching the content script from "main.js": const widgets = require("...
jpm-mobile - Archive of obsolete content
this article is the
reference for jpm-mobile.
... command
reference there are currently two jpm commands: jpm-mobile run launch an instance of firefox with your add-on installed.
... jpm-mobile test jpm-mobile test see the tutorial on unit testing and the
reference documentation for the assert module for more details on this.
Getting Started (jpm) - Archive of obsolete content
for more information on jpm init, see the jpm command
reference.
...there's comprehensive
reference documentation covering all the commands you can use and all the options they take.
...there's
reference documentation for all the high-level and low-level apis in the sdk.
Add-on SDK - Archive of obsolete content
reference high-level apis
reference documentation for the high-level sdk apis.
... tools
reference reference documentation for the jpm tool used to develop, test and package add-ons, the console global used for logging, and the package.json file.
... low-level apis
reference documentation for the low-level sdk apis.
Bookmarks - Archive of obsolete content
ces.nsiioservice); var uri = ios.newuri("http://google.com/", null, null); var newbkmkid = bmsvc.insertbookmark(newfolderid, uri, bmsvc.default_index, ""); this example instantiates the nsiioservice and uses it to create an nsiuri referring to the google web site, then calls nsinavbookmarksservice.insertbookmark() to create a new bookmark to google, placing it at the end of the bookmarks folder
referenced by newbkmkid.
... bmsvc.setitemtitle(newbkmkid, "new title"); this sets the title of the item
referenced by the id newbkmkid to "new title".
... you can fetch the current title of an item using the nsinavbookmarksservice.getitemtitle() method: var thistitle = bmsvc.getitemtitle(newbkmkid); this code will display an alert containing the title of the item
referenced by the id newbkmkid.
Appendix: What you should know about open-source software licenses - Archive of obsolete content
applying an oss license oss licensing today and in the future
references what is an oss license?
...japanese versions, for example, are mentioned only as
reference translations.
...
references the open source definition http://www.opensource.org/docs/definition.html the freebsd copyright http://www.freebsd.org/copyright/freebsd-license.html mozilla public license http://www.mozilla.org/mpl/mpl-1.1.html mpl faq http://www.mozilla.org/mpl/mpl-faq.html common public license http://opensource.org/licenses/cpl1.0.php gnu general public license (gpl) http://www.gnu.org/licenses/...
Adding Toolbars and Toolbar Buttons - Archive of obsolete content
this is a matter of personal p
reference, but the mac os theme seems to be designed so that the bookmarks toolbar is always the last one (it has a lighter color than the rest).
...it's also a good idea to set a p
reference that indicates that you added your button already, so that it can be removed permanently if the user chooses to.
... another option is to use fuel's firstrun property, which also relies on a p
reference.
Appendix C: Avoiding using eval in Add-ons - Archive of obsolete content
settimeout("dosomething();", 100); addeventlistener("load", "myaddon.init(); myaddon.onload();", true); setinterval(am_i_a_string_or_function_
reference_qmark, 100); that in itself is certainly not elegant, but it may also become a security issue if you pass code that was externally retrieved (or at least contains bits of externally retrieved data): // do not use!
... alternative: replace + function.apply() you may replace the original function with a new function, keeping a
reference to the original function which you then call from the new one.
...(function() { // keep a
reference to the original function.
Custom XUL Elements with XBL - Archive of obsolete content
in order to work around this problem, the anonid attribute is used instead: <xul:label anonid="xulshoolhello-name-label" xbl:inherits="value=name" /> and then, in order to get a
reference to the node from the js code in your binding, we use the getanonymouselementbyattribute dom method: let namelabel = document.getanonymouselementbyattribute( this, "anonid", "xulshoolhello-name-label"); implementation the implementation section defines most of the scripting side of your element.
... <field name="fieldname">defaultvalue</field> from inside your binding methods, you can access fields with: this.fieldname you can also access them from outside of the element, if you have a
reference to it: elementref.fieldname just like with js objects, all fields are publicly accessible, and we use a "_" to indicate a field is "private".
... just like fields and properties, methods are easy to invoke if you have a
reference to the object that corresponds to the node.
Local Storage - Archive of obsolete content
here's what we usually do: we have a function that returns a
reference to our root directory and creates it if necessary.
... getservice(ci.nsiproperties); // this is a
reference to the profile dir (profd) now.
...whether this is necessary or not is a matter of p
reference.
The Essentials of an Extension - Archive of obsolete content
users can disable version checks through p
references or installing add-ons like the add-on compatibility reporter.
...first we get a
reference of the stringbundle element in the document.
... once you're done, you can look at this
reference solution: hello world 2.
Tabbed browser - Archive of obsolete content
if you need to work with tabs from a non-browser window, you need to obtain a
reference to one first, see working with windows in chrome code for details.
... enumerating browsers to go through all browser in a tabbrowser, first get a
reference to a browser's window.
...s.length; for (var i = 0; i < num; i++) { var b = gbrowser.getbrowseratindex(i); try { dump(b.currenturi.spec); // dump urls of all open tabs to console } catch(e) { components.utils.reporterror(e); } } to learn what methods are available for <browser/> and <tabbrowser/> elements, use dom inspector or look in browser.xml for corresponding xbl bindings (or just look at the current
reference pages on browser and tabbrowser.
Inner-browsing extending the browser navigation paradigm - Archive of obsolete content
it's here for
reference.
...extending traditional hypertext navigation the hypertext approach to developing web pages, in which developers format text layouts into pages and link those pages to related content, is analogous to a book or a magazine: readers view pages, go to other pages for more information, and view resources listed as
references on that page.
...note the following piece of code: function iframecallback(doc) { /* copies the data in the iframe to the main page */ mydata = doc.getelementbyid("mydata"); tickerdiv.innerhtml = mydata.innerhtml; } the callback is called with the parameter doc, which is a
reference to the iframe's document).
List of Mozilla-Based Applications - Archive of obsolete content
name description additional information 389 directory server ldap server uses nss a380 seatback entertainment system media software this blog post mentions a
reference to mozilla being used but i couldn't find more information about it.
...feel free to supply
references.
... yoono desktop social networking app standalone version of yoono firefox add-on zap sip client status update from august 2008 zimbra desktop email and calendar application uses prism zinc video browser according to faq the standalone version is based on firefox zk web application framework makes use of xul zotero
reference manager firefox extension and xulrunner application note: this page was previously hosted on mozpad.org and the history for that page can be found on that site.
No Proxy For configuration - Archive of obsolete content
entry points: p
references | advanced | proxies control-click menu for off line-online icon (network plug) configuration the no proxy list is composed of either domain elements or ipv4 address elements.
...or 10.0.* ip addresses with wildcards in quads 10.*.*.* p
references name network.proxy.no_proxies_on default value localhost, 127.0.0.1 by default "localhost" and "127.0.0.1" are excluded, since most people assume these should connect to the local system.
... nsprotocolproxyservice::prefschanged - loads p
references nsprotocolproxyservice::loadfilters - parses filters nsprotocolproxyservice::examineforproxy - decides to check filters if configuration is "manual" nsprotocolproxyservice::canuseproxy - performs url vs.
Autodial for Windows NT - Archive of obsolete content
if this service is running, and control panel | network connections | advanced | dialup p
references is set to enable autodial, then any application trying to access the internet will trigger the autodial feature whenever an internet address cannot be reached.
...these conditions are as follows: the autodial service is running control panel | network connections | advanced | dialup p
references | enable autodial by location is set for some location a dialup connection has been configured there is no lan connected or the dialup connection has been used to access the internet address in question.
...then enable autodial for a dialup connection: control panel | network connections | advanced | dialup p
references.
Documentation for BiDi Mozilla - Archive of obsolete content
details of rendering are dependent on user p
references and system capabilities.
... other bidi functionality clipboard: based on bidi options in p
references, the text mode of the clipboard may be "logical", "visual" or "as source".
...form controls: based on bidi options in p
references, the text mode of form controls may be "logical", "visual" or "like containing document".
Creating a Help Content Pack - Archive of obsolete content
nc:base contains the base url relative to which the help content
referenced in the descriptor file is located.
... nc:datasources is a space-separated list of rdf datasources used in construction of the structure of
referenced topics.
... nc:platform (added in mozilla 1.8b2/firefox 1.1) when present specifies the platforms to which the information stored in the
referenced data sources applies.
Microsummary topics - Archive of obsolete content
warning: microsummary support was removed in gecko 6.0 (firefox 6.0 / thunderbird 6.0 / seamonkey 2.3) programmatically installing a microsummary generator to programmatically install a microsummary generator -- for example, in an extension that helps users create custom generators for their favorite sites -- obtain a
reference to the nsimicrosummaryservice interface implemented by the nsimicrosummaryservice component, then call its installgenerator() method, passing it an xml document containing the generator.
...it does not generally download related content like embedded images and javascript scripts
referenced by the page.
... however, because of a technical limitation (bug 340746), it does download css stylesheets
referenced by the page.
Mozilla Crypto FAQ - Archive of obsolete content
see the open directory
references for general pgp information, including contact information for companies and independent developers producing pgp implementations.
... however, in an advisory opinion issued in
reference to the bernstein case, the bureau of export administration (bxa) has stated the following: "concerning the posting onto a mirror or archive site of already-posted source code, notification is required only for the initial posting." bxa and nsa have already been notified of the posting of encryption-related source code on the mozilla site, and in light of this opinion we have therefore decidednot ...
...export control of encryption software and related topics, see the following online
references: the itar, ear and encryption export archive maintained by the electronic freedom foundation (eff).
Frequently Asked Questions - Archive of obsolete content
this is done by toggling a hidden user configuration p
reference (pref).
...as of 2004-11-11, builds with native svg support will use the native support to render svg documents that are embeded by
reference into an html document using the <embed> tag.
...the <object> tag should be used in p
reference to the <embed> tag in new content whenever possible.
buttons - Archive of obsolete content
« xul
reference home buttons type: comma-separated list of the values below a comma-separated list of buttons to appear in the dialog box.
...warning: if the accept and cancel buttons are actually shown is system dependent and is mainly controlled by the value of the boolean p
reference browser.p
references.instantapply.
... the default setting of browser.p
references.instantapply currently is true on linux and mac os and false on windows (which however might or might not change soon, see bug 738797 and bug 1037225).
datasources - Archive of obsolete content
« xul
reference home datasources type: space separated list of datasource uris a space-separated list of datasources that an element's template will use for content generation.
... for xml datasources, only one source is used, either the url of an xml file or an anchor
reference to another element within the same document.
... for instance, the
reference '#data' refers to an element with the id 'data'.
Working With Directories - Archive of obsolete content
a
reference to a directory may be created in the same way as with a file by using nsiscriptableio.getfile().
...for instance: var dir2 = io.getfile("desktop", "myfiles"); dir2.append("pictures"); dir2.append("vacations"); in this example, a subdirectory several levels down is
referenced.
...for each item, nsifile.isfile() is called to check if an item is a file and lastmodifiedtime (nsifile.attributes) attribute is compared with the time of the lastmod
reference.
Introduction to XUL - Archive of obsolete content
<html:script type="application/javascript"> // dialog initialization code function initwindow() { var checkbox = document.getelementbyid("remember"); if (checkbox) checkbox.checked = true; } </html:script> javascript can be
referenced as in html documents: as onclick handlers and the like.
... see individual widget documentation
referenced at the index for a list of attributes accepting javascript values.
...each widget will define a unique xml syntax for describing itself; see the widget documentation
referenced at the index for details.
loadGroup - Archive of obsolete content
« xul
reference home loadgroup( group ) not in firefox return type: the first tab loads a group of pages into multiple tabs.
... they are either appended or replaced depending on the state of the p
reference browser.tabs.loadgroup.
...this function returns a
reference to the first tab loaded.
OpenClose - Archive of obsolete content
a simple example: somemenu.open = true; this single line of code will open a menu
referenced by the variable 'somemenu'.
...s defined as follows: void openpopup(in domelement anchorelement, in string position, in long x, in long y, in boolean iscontextmenu, in boolean attributesoverride); first an example: somepopup.openpopup(anchor, "after_start", 0, 0, false, false); this example will open a popup located just underneath another element
referenced by 'anchor'.
...for instance, to have a popup appear next to a button, pass a
reference to this button as the first argument to the openpopup method.
Result Generation - Archive of obsolete content
in xul template terminology, the starting point is called the container or
reference point and the endpoint is called the member.
...we will use a's uri (http://www.xulplanet.com/rdf/a) as the
reference starting point.
...here is an example: <vbox datasources="http://www.xulplanet.com/ds/sample.rdf" ref="http://www.xulplanet.com/rdf/a" flex="1"> this is an indicator that we want to construct a xul template using the
reference point with the uri 'http://www.xulplanet.com/rdf/a'.
Box Objects - Archive of obsolete content
x, y the x and y coordinates are
referenced from the top left corner of the document in the window (that portion which excludes the window border and title bar) and refer to the top left corner of the element, including css padding.
... the top left corner of the document is that which is obtained from screen.mozinnerscreenx, screen.mozinnerscreeny screenx, screeny the screenx and screeny coordinates are
referenced from the absolute top left corner of the screen (screen.top,screen.left) and refer to the top left corner of the element, including css padding and borders.
... *note that x, y refers to the portion of the element that is just inside any borders, which is inconsistent with the other four boxobject position and size
references, which include borders as part of the element.
Creating a Skin - Archive of obsolete content
modify the
references in the manifest file to a custom name for your skin.
... for example, change
references of 'classic/1.0' to 'blueswayedshoes/1.0'.
... our find files example with this skin: source view stylesheet see also mozilla css extensions css
reference the next section discusses how to make a xul application localizable.
Features of a Window - Archive of obsolete content
this function will return a
reference to the newly opened window.
... you can use this
reference to call functions of the other window.
...you can also use any of the pre-existing flags, which you should find in a javascript
reference.
The Chrome URL - Archive of obsolete content
the chrome url xul files can be
referenced with a regular http url (or any type of url) just like html files.
... however, packages that are installed into mozilla's chrome system can be
referenced with special chrome urls.
...this type of
reference will automatically select an appropriate file from that right directory.
Using the Editor from XUL - Archive of obsolete content
the nseditorboxobject creates an nseditorshell, and holds the owning
reference to it.
... through the magic of xbl, the xul bindings, and the nsieditorboxobject interface, you can get a javascript
reference to the editorshell from the editor element with element.editorshell.
...when the last
reference to the nseditorshell goes away (as a result of nseditorboxobject releasing its
reference) it releases the owning
reference on the editor.
XUL Changes for Firefox 1.5 - Archive of obsolete content
p
references system several elements have been added which may be used for creating p
reference windows.
...along with the new p
reference elements and some additional attributes for existing elements, they make it easy to set p
references without having to use code.
... for more information, see p
references system.
XUL FAQ - Archive of obsolete content
troubleshooting prefwindow-based options windows this ought to be on a separate page, p
references system troubleshooting.
... does each prefpane contains a <p
references></p
references> block, even if empty?
...(the animation effect when you open the p
reference window will not stop, if a script outside <prefpane> refers any element inside <prefpane>, while initializing the window.
action - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] used to specify the content that should be generated for each matching result from a query.
...for a matched rule, each variable will be a
reference to data within the datasource, determined from the query.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxw...
arrowscrollbox - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a box which provides scroll arrows along its edges for scrolling through the contents of the box.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width clicktoscroll type: boolean clicktoscroll, if true, the arrows must be clicked to scroll the scrollbox content.
...if not set explicitly, it will fall back to the smoothscroll attribute and then to the toolkit.scrollbox.smoothscroll p
reference.
assign - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] for xml templates, specifies an additional variable to assign a value to.
... var type: string for the xul assign attribute, this is the variable to assign the value to; otherwise it's a
reference to a template variable such as "?name".
... inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, men...
deck - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] an element that displays only one of its children at a time.
... inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties selectedindex type: integer returns the index of the currently selected item.
... selectedpanel type: element holds a
reference to the currently selected panel within a deck element.
tabbox - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a container used to display a set of tabbed pages of elements.
...returns -1 if no items are selected selectedpanel type: element holds a
reference to the currently selected panel within a <tabbox> element.
... selectedtab type: tab element a
reference to the currently selected tab, which will always be one of the tab elements in the tabs element.
tabpanels - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a container to hold the set of pages in a tabbox.
... inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties accessible type: nsiaccessible returns the accessibility object for the element.
...returns -1 if no items are selected selectedpanel type: element holds a
reference to the currently selected panel within a <tabbox> element.
template - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] used to declare a template for rule-based construction of elements.
... attributes container, member examples (example needed) attributes container type: string may optionally be set to the variable to use as the container or
reference variable.
... inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
Make your xulrunner app match the system locale - Archive of obsolete content
then set the locale p
reference.
... the following is python code to set this p
reference.
... from xpcom import components ps_cls = components.classes["@mozilla.org/p
references-service;1"] ps = ps_cls.getservice(components.interfaces.nsiprefservice) branch = ps.getbranch("general.useragent.") branch.setcharpref("locale", lang) i also set the language environment variable to match the system locale so that python's gettext functionality will work (it pulls straight from language instead of using setlocale): os.environ["language"] = lang ...
XULRunner tips - Archive of obsolete content
save the dom_inspector-*.xpi package to a temporary directory unzip the package copy the following files: chrome/inspector.jar to the chrome directory of your xulrunner application components/inspector-cmdline.js to your components directory defaults/p
references/inspector.js to your p
references directory open your chrome.manifest file and add these lines: content inspector jar:inspector.jar!/content/inspector/ xpcnativewrappers=no locale inspector en-us jar:inspector.jar!/locale/inspector/ skin inspector modern/1.0 jar:inspector.jar!/skin/modern/inspector/ skin inspector classic/1.
... p
references needed for file download dialogs to use the unknown-content-type and file-downloads dialogs from a <browser> element, you need to add the following prefs: pref("browser.download.usedownloaddir", true); pref("browser.download.folderlist", 0); pref("browser.download.manager.showalertoncomplete", true); pref("browser.download.manager.showalertinterval", 2000); pref("browser.download.manager.reten...
...oad.manager.usewindow", true); pref("browser.download.manager.closewhendone", true); pref("browser.download.manager.opendelay", 0); pref("browser.download.manager.focuswhenstarting", false); pref("browser.download.manager.flashcount", 2); // pref("alerts.slideincrement", 1); pref("alerts.slideincrementtime", 10); pref("alerts.totalopentime", 4000); pref("alerts.height", 50); if you are missing p
references that a dialog requires, you will get the following errors: component returned failure code: 0x8000ffff (ns_error_unexpected) [nsiprefbranch.getboolpref] error: dialog has no properties source file: chrome://mozapps/content/downloads/u...ontenttype.xul line: 1 enabling password manager these p
references seem to be the default in firefox, however, they are missing in xulrunner.
Windows and menus in XULRunner - Archive of obsolete content
</window> notice the
references to css and dtd files.
...the dtd is used to create entity
references so strings for titles and labels are not stored directly in the xul file; this makes updating the text -- and localization of the application -- much easier.
...</window> notice that i used entity-
references for the menu and toolbar labels.
NPN_ReleaseObject - Archive of obsolete content
« gecko plugin api
reference « scripting plugins summary decrements the
reference count of the given npobject.
... if the
reference count reaches 0, the npobject is deallocated by calling its deallocate function if one is provided; if one is not provided, free() is used.
... syntax #include <npruntime.h> void npn_releaseobject(npobject *npobj); parameters the function has the following parameter: <tt>npobj</tt> the npobject whose
reference count should be decremented.
Plugins - Archive of obsolete content
the main source of documentation for npapi is the gecko plugin api
reference.
... gecko plugin api
reference (npapi) this
reference describes the application programming interfaces for npapi plugins and provides information about how to use these interfaces.
... scripting plugins (npruntime) this
reference describes the new cross-browser npapi extensions that let plugins be scriptable and also let them access the script objects in the browser.
Using Web Standards in your Web Pages - Archive of obsolete content
how to upgrade a webpage markup code to pass validation and how to implement css are addressed by providing recommendations, tutorials and
references.
...the last section offers excellent and best
references for those wishing to learn more about upgrading techniques presented in this article and more for those wishing to perfect their web pages.
... contents benefits of using web standards making your page using web standards - how to using the w3c dom developing cross browser and cross platform pages using xmlhttprequest summary of changes
references original document information author(s): mike cowperthwaite, marcio galli, jim ley, ian oeschger, simon paquet, gérard talbot last updated date: may 29, 2008 copyright information: portions of this content are © 1998–2008 by individual mozilla.org contributors; content available under a creative commons license | details.
Using workers in extensions - Archive of obsolete content
if you haven't already created an extension, or would like to refresh your memory, take a look at the previous articles in this series: creating a status bar extension creating a dynamic status bar extension adding p
references to an extension localizing an extension updating an extension to support multiple mozilla applications download the sample you may download the complete example: download the example.
...let's take a look: startup: function() { // register to receive notifications of p
reference changes this.prefs = components.classes["@mozilla.org/p
references-service;1"] .getservice(components.interfaces.nsiprefservice) .getbranch("stockwatcher2."); this.prefs.queryinterface(components.interfaces.nsiprefbranch2); this.prefs.addobserver("", this, false); this.tickersymbol = this.prefs.getcharpref("symbol").touppercase(); this.worker = new worker("ch...
... the observe() method this method's job is to update which stock is being monitored when the user changes the p
references.
Processing XML with E4X - Archive of obsolete content
this chapter provides a practical overview of the language; it is not a complete
reference.
... while one can interpolate attribute names as well as attribute values: var a = 'att'; var b = <b {a}='value'/>; alert(b); // gives: <b att="value"/> ...one cannot interpolate a whole expression at once (e.g., <b {a}>.) after executing the above example, the variable languages
references an xml object corresponding to the <languages> node in the xml document.
... objects representing xml elements provide a number of useful methods, some of which are illustrated below: todo: add all of the methods to the javascript
reference, link from here alert(person.name.text()) // bob smith var xml = person.name.toxmlstring(); // a string containing xml var personcopy = person.copy(); // a deep copy of the xml object var child = person.child(1); // the second child node; in this case the <likes> element working with xmllists in addition to the xml object, e4x introduces an xmllist object.
Examples - Archive of obsolete content
</p> <p> this document
references css rules contained in an external stylesheet via <code>link</code>.
... </p> <p> this document
references css rules contained in an external stylesheet via <code>link</code>.
... </p> <p> this document
references css rules contained in an external stylesheet via <code>link</code>.
background-size - Archive of obsolete content
remember you have to test yourself, don't trust online
references, don't trust webkit | apple | google homepage, they are wrong.
...given the fact that this
reference has serious shortcomings in many places and few contributors, i think spending much time here is not effective.
... if so, feel free to change the en/css_
reference/property_template and all css property pages ; ) start with -webkit-background-size and investigate support of contain and cover keywords and "omitted second value" behavior.
Implementation Status - Archive of obsolete content
4.6.6 sequence: selection without value change supported 4.6.7 sequence: value change with focus change supported 4.6.8 sequence: activating a trigger supported 4.6.9 sequence: submission supported 4.7 resolving id
references in xforms unsupported 4.7.1
references to elements within a repeat element unsupported 4.7.2
references to elements within a bind element unsupported 4.8 dom interface for access to instance data supported 4.8.1 getinstanc...
...xpath expressions in xforms section title status notes bugs 7.1 xpath datatypes supported 7.2 evaluation context partial 7.3
references, dependencies, and dynamic dependencies partial we probably already do most of it due to our 1.0 work, but we haven't verified we meet the 1.1 standards, yet 7.4 expression categories supported 7.4.2 model binding expressions and computed expressions supported 7.4.3 e...
...but the user can choose to remove this restriction on a site by site basis via a p
reference.
XForms - Archive of obsolete content
xforms user p
references a description of the about:config variables that xforms uses.
... xforms api
reference xforms interfaces documentation.
... xforms ui elements
reference xforms user interface elements documentation.
Archived open Web documentation - Archive of obsolete content
talk:array.foreach() ok, in the end i didn't remove the old code as it isn't hosted anywhere (i thought the github
reference contained the code) but inserted a faster implementation above while retaining the rest of the document.
... talk:javascript
reference the guide section links to an interesting document discussing how to create and use private variables in objects, which is great if you want to protect the various properties within an object from being poked at accidentally.
... sharp variables in javascript a sharp variable is a syntax in object initializers that allows serialization of objects that have cyclic
references or multiple
references to the same object.
Create the Canvas and draw on it - Game development
the <canvas> element has an id of mycanvas to allow us to easily grab a
reference to it, and it is 480 pixels wide and 320 pixels high.
... canvas basics to actually be able to render graphics on the <canvas> element, first we have to grab a
reference to it in javascript.
... var canvas = document.getelementbyid("mycanvas"); var ctx = canvas.getcontext("2d"); here we're storing a
reference to the <canvas> element to the canvas variable.
Entity - MDN Web Docs Glossary: Definitions of Web-related terms
for less memorable characters, such as — or —, you can use a
reference chart or decoder tool.
... character entity note & & interpreted as the beginning of an entity or character
reference.
... learn more technical
reference official list of character entities ...
Hoisting - MDN Web Docs Glossary: Definitions of Web-related terms
no hoisting happens so trying to read the variable results in
referenceerror exception.
... console.log(num); // throws
referenceerror exception num = 6; // initialization below are more examples demonstrating hoisting.
... a = 'cran'; // initialize a b = 'berry'; // initialize b console.log(a + "" + b); // 'cranberry' technical
reference var statement — mdn function statement — mdn ...
Property (JavaScript) - MDN Web Docs Glossary: Definitions of Web-related terms
a property has a name (a string) and a value (primitive, method, or object
reference).
... note that when we say that "a property holds an object", that is shorthand for "a property holds an object
reference".
... this distinction matters because the original
referenced object remains unchanged when you change the property's value.
Pseudo-classes and pseudo-elements - Learn web development
reference section there are a large number of pseudo-classes and pseudo-elements, and it is useful to have a list to refer to.
... below are tables listing them, with links to their
reference pages on mdn.
... use this as a
reference to see the kind of things that are available for you to target.
CSS selectors - Learn web development
the following for example selects paragraphs that are direct children of <article> elements using the child combinator (>): article > p { } next steps you can take a look at the
reference table of selectors below for direct links to the various types of selectors in this learn section or on mdn in general, or continue on to start your journey by finding out about type, class, and id selectors.
... previous overview: building blocks next
reference table of selectors the below table gives you an overview of the selectors you have available to use, along with links to the pages in this guide which will show you how to use each type of selector.
...you can use this as a
reference to come back to when you need to look up selectors later in the material, or as you experiment with css generally.
CSS values and units - Learn web development
when you see the value <color> as valid for a particular property, that means you can use any valid color as a value for that property, as listed on the <color>
reference page.
...you can see which values are accepted on the mdn property
reference pages.
...you can have a look at all of the different types on the css values and units
reference page; you will encounter many of these in use as you work through these lessons.
What is CSS? - Learn web development
note: you can find links to all the css property pages (along with other css features) listed on the mdn css
reference.
...you'll see
reference to these modules as you explore mdn and many of the documentation pages are organized around a particular module.
... for example, you could take a look at the mdn
reference to the backgrounds and borders module to find out what its purpose is, and what different properties and other features it contains.
Advanced form styling - Learn web development
if you look at the
reference page you'll see a lot of different possible values listed for -webkit-appearance, however by far the most helpful value, and probably the only one you'll use, is none.
...hrome 77 (macos), safari 13, opera chrome 63 (windows 10) internet explorer 11 (windows 10) edge 16 (windows 10) using appearence: none on radios/checkboxes as we showed before, you can remove the default appearance of a checkbox or radio button altogether with appearance:none; let's take this example html: <form> <fieldset> <legend>fruit p
references</legend> <p> <label> <input type="checkbox" name="fruit-1" value="cherry"> i like cherry </label> </p> <p> <label> <input type="checkbox" name="fruit-2" value="banana" disabled> i can't like banana </label> </p> <p> <label> <input type="checkbox" name="fruit-3" value="strawberry"> i like strawberry...
...this is a simplified version of the example found on the <input type="file">
reference page.
Client-side form validation - Learn web development
you can find full details of all the available properties in the validitystate
reference page; below is listed a few of the more common ones: patternmismatch: returns true if the value does not match the specified pattern, and false if it does match.
...> <input type="email" id="mail" name="mail"> <button>submit</button> </form> and add the following javascript to the page: const email = document.getelementbyid("mail"); email.addeventlistener("input", function (event) { if (email.validity.typemismatch) { email.setcustomvalidity("i am expecting an e-mail address!"); } else { email.setcustomvalidity(""); } }); here we store a
reference to the email input, then add an event listener to it that runs the contained code each time the value inside the input is changed.
... note: for further information, see our constraint validation guide, and the constraint validation api
reference.
Tips for authoring fast-loading HTML pages - Learn web development
minimize the number of files reducing the number of files
referenced in a web page lowers the number of http connections required to download a page, thereby reducing the time for these requests to be sent, and for their responses to be received.
... depending on a browser's cache settings, it may send a request with the if-modified-since header for each
referenced file, asking whether the file has been modified since the last time it was downloaded.
... too much time spent querying the last modified time of the
referenced files can delay the initial display of the web page, since the browser must check the modification time for each of these files, before rendering the page.
Creating hyperlinks - Learn web development
anatomy of a link a basic link is created by wrapping the text or other content, see block level links, inside an <a> element and using the href attribute, also known as a hypertext
reference, or target, that contains the web address.
...if you have an image you want to make into a link, use the <a> element and
reference the image file with the <img> element.
...use our <a href="contacts.html#mailing_address">mailing address</a>.</p> you can even use the document fragment
reference on its own to link to another part of the same document: <p>the <a href="#mailing_address">company mailing address</a> can be found at the bottom of this page.</p> absolute versus relative urls two terms you'll come across on the web are absolute url and relative url: absolute url: points to a location defined by its absolute location on the web, including protocol and domain name.
Adding vector graphics to the Web - Learn web development
the quick way: <img> to embed an svg via an <img> element, you just need to
reference it in the src attribute as you'd expect.
... troubleshooting and cross-browser support for browsers that don't support svg (ie 8 and below, android 2.3 and below), you could
reference a png or jpg from your src attribute and use a srcset attribute (which only recent browsers recognize) to
reference the svg.
...you can also go to the svg element
reference, find out more details about other toys you can use in svg, and try those out too.
Introducing asynchronous JavaScript - Learn web development
let's look at a simple example (see it live here, and see the source): const btn = document.queryselector('button'); btn.addeventlistener('click', () => { alert('you clicked me!'); let pelem = document.createelement('p'); pelem.textcontent = 'this is a newly-added paragraph.'; document.body.appendchild(pelem); }); in this block, the lines are executed one after the other: we grab a
reference to a <button> element that is already available in the dom.
... when we pass a callback function as an argument to another function, we are only passing the function's
reference as an argument, i.e, the callback function is not executed immediately.
...the expected parameter of foreach() is a callback function, which itself takes two parameters, a
reference to the array name and index values.
Function return values - Learn web development
if you look at the replace() function mdn
reference page, you'll see a section called return value.
...(in these cases, our
reference pages list the return value as void or undefined.) for example, in the displaymessage() function we built in the previous article, no specific value is returned when the function is invoked.
...there's also a <script> element, in which we have stored a
reference to both html elements in two variables.
Fetching data from the server - Learn web development
this stores a
reference to the <select> and <pre> elements in constants and defines an onchange event handler function so that when the select's value is changed, its value is passed to an invoked function updatedisplay() as a parameter.
...this returns a temporary internal url that points to an object
referenced inside the browser.
... some helpful hints: you might find the xmlhttprequest
reference material useful.
Object prototypes - Learn web development
if you look at the object
reference page, you'll see listed in the left hand side a large number of properties and methods — many more than the number of inherited members we saw available on the person1 object.
...see the function() constructor
reference if you don't believe us.
...you won't need to use it often, but it can be really useful when you want to create a new instance and don't have a
reference to the original constructor easily available for some reason.
Properly configuring server MIME types - Learn web development
search for the file extension in filext or file extensions
reference to see what mime types are associated with that extension.
...if you're using the cgi module, you can use the line print $cgi->header('text/html'); instead, where $cgi is your
reference to the cgi instance.
... for a java servlet, you should have the line response.setcontenttype("text/html"); at the top of your doget or dopost method, where response is a
reference to the httpservletresponse.
TypeScript support in Svelte - Learn web development
next, import the filter enum — add the following import statement below your existing ones: import { filter } from '../types/filter.enum' now we will use it whenever we
reference the current filter.
...mport todo from './todo.svelte' import moreactions from './moreactions.svelte' import newtodo from './newtodo.svelte' import todosstatus from './todosstatus.svelte' import { alert } from '../stores' import { filter } from '../types/filter.enum' import type { todotype } from '../types/todo.type' export let todos: todotype[] = [] let todosstatus: todosstatus //
reference to todosstatus instance $: newtodoid = todos.length > 0 ?
...set its type to htmlelement like this: let nameel: htmlelement //
reference to the name input dom node last for this file, we need to specify the correct type for our autofocus variable; update its definition like this: export let autofocus: boolean = false todo.svelte now the only warnings that npm run validate emits are triggered by calling the todo.svelte component; let's fix them.
omni.ja (formerly omni.jar)
/chrome/ user interface files for the application /chrome/localized.manifest manifest of localized content;
referenced by the main chrome manifest file.
... /chrome/nonlocalized.manifest manifest of non-localized content;
referenced by the main chrome manifest file.
... /defaults/ default p
reference files.
Adding a new CSS property
if you're adding a p
reference-controlled property to a non-p
reference-controlled shorthand, you need to call appendvalue for that property if and only if its p
reference is enabled (and see next point) if you need to check a p
reference in custom parsing code (e.g., because you're adding a new property to a shorthand, but only conditionally on that property's p
reference), call nscssprops::isenabled(), which is faster than call...
...ing into the p
references code for further understanding of how the parsing code works, you should read and understand the code in nscssparser.cpp.
... (we should also make this part of adding properties much more automated and make the code smaller.) animation if the existing animation behaviors in nsstyleanimation aren't sufficient for how this new property is interpolated (as its specification should describe), then you'll need to implement a new behavior type in nsstyleanimation and
reference it from nscssproplist.h.
A bird's-eye view of the Mozilla framework
thehelp viewer files
referenced in the article are located in /seamonkey/extensions/help/ this article also assumes you are familiar with the javascript and c++ programming languages, object-oriented programming (oop) terminology and design concepts, the microsoft® component object model (com), and the corba omg interface definition language (idl).
... the xpcom component keeps track of all interface pointers currently held by its clients using an internal
reference count it increments via client calls to addref().
...release() decrements the
reference count and then the object becomes a candidate for destruction.
Command line options
-p
references open options/p
references window.
... thunderbird -news news://server/group -options open options/p
references window.
... other options need to be documented -print-xpcom-dir -print-xpcom-dirlist -kill -killall -f -ftimeout -fwait -unsetdefaultmail gtk options -no-deelevate (running windows as administrator with launcher process enabled causes drag and drop errors - how to fix)
references chrome: command line test documentation for command-line features (mozilla.org) toolkit/xre/nsapprunner.cpp browser/components/nsbrowsercontenthandler.js suite/browser/nsbrowsercontenthandler.js mail/components/nsmaildefaulthandler.js installer command line options original document information author(s): ben goodger, steffen wilberg, seth spitzer, daniel wang copyright informati...
Firefox and the "about" protocol
the most useful is the url about:config, which displays p
references and settings that can be inspected and changed.
...t:addons add-ons manager about:buildconfig displays the configuration and platform used to build firefox about:cache displays information about the memory, disk, and appcache about:checkerboard switches to the checkerboarding measurement page, which allows to detect checkerboarding issues about:config provides a way to inspect and change firefox p
references and settings about:compat lists overriding site compatability fixes, linked to specific bug issues.
...illa" about:networking displays networking information 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:p
references 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 ar...
CSS -moz-bool-pref() @supports function
the -moz-bool-pref() @supports condition is available to gecko chrome and ua stylesheets to check if a boolean p
reference is enabled.
... syntax -moz-bool-pref( <string> ) parameters <string> the p
reference name returns evaluates to true if the p
reference is enabled, false otherwise.
... html <div id="pref-test"> this will have a green background if the <code>test</code> p
reference is enabled.
IPDL Best Practices
implement (preferably
reference counted) classes to wrap the shared data instead of letting several objects
reference surfacedescriptors or their content directly.
...
reference counting protocol actors is tricky here is the easiest way to get it right the first time (lessons learned from the http channel and geolocation protocols): allocpprotocol calls addref deallocpprotocol calls release this ensures that the actor will not disappear from under ipdl, and that you won't get bizarre crashes at other times if ipdl deletes the protocol tree.
...calling ipdl functions willy-nilly let's say you have an object that implements an ipdl interface, but it also outlives it (case in point:
reference-counted).
AddonManager
corresponds to the extensions.autoupdatedefault p
reference.
... note: the extensions.enabledscopes p
reference lets you configure which of these scopes are enabled; however, you can't turn off the profile scope.
... starting in firefox 8, you can also set the value of the p
reference extensions.autodisabledscopes to prevent firefox from automatically installing add-ons from the specified scopes.
DownloadLastDir.jsm
or later, use getfileasync: downloadlastdir.getfileasync(uri, function (file) { // file is an nsifile console.log(file); }); deprecated since gecko 26.0 to retrieve the path in firefox 25 or earlier, use getfile: // file is an nsifile var file = gdownloadlastdir.getfile(uri); console.log(file); private browsing mode when browsing normally, the browser uses the browser.download.lastdir p
reference to store the last download directory path.
... however, when private browsing mode is enabled, the last download directory path is instead maintained in memory, and the p
reference is not changed.
... when the user exits private browsing mode, the last download directory value is reverted to the p
reference's value.
Downloads.jsm
for that, you should obtain a
reference to a download object using the createdownload() function.
...there is one download list for each type, and this method always retrieves a
reference to the same download list when called with the same argument.
...there is one download summary for each type, and this method always retrieves a
reference to the same download summary when called with the same argument.
Using JavaScript code modules
if you're writing an extension for firefox 4 and already have a chrome.manifest with a content instruction in it, you can put the code module in your content folder and
reference it like your other content files via chrome://<yourextension>/content/<yourmodule>.jsm.
...changes to the symbol's value will not propagate to other scopes (though an object's properties will be manipulated by
reference).
...once this method has been called,
references to the module will continue to work but any subsequent import of the module will reload it and give a new
reference.
Index
28 mozilla l10n style guide localization cultural
references, idioms, and slang require a full understanding of these
references between the cultures of your source and target languages.
... an example of a cultural
reference in english would be the phrase, "kick-off meeting." this is a
reference that uses an american football term.
...to translate it, you can follow one of two approaches: 29 mozilla content localized in your language localization, mdn, mozilla,
reference, style guide no summary!
Localizing with Koala
to make sure you're always translating the most recent en-us
reference, you should update the source repository before you start working.
...koala will re-run the comparison of your local localization files with the newest en-us
reference and display the results in the sidebar on the left.
... strings: +5 means that there are 5 missing strings in the locale's file compared to the en-us
reference.
about:memory
for example: 585 (100.0%) -- p
reference-service └──585 (100.0%) -- referent ├──493 (84.27%) ── strong └───92 (15.73%) -- weak ├──92 (15.73%) ── alive └───0 (00.00%) ── dead leaf nodes represent actual measurements; the value of each internal node is the sum of all its children.
...for example, p
reference/referent/weak/dead represents the path to the final leaf node in the example tree above.
... mb (20.89%) -- dom │ ├──3.39 mb (12.66%) ── element-nodes │ ├──1.56 mb (05.84%) ── text-nodes │ ├──0.54 mb (02.03%) ── other │ └──0.10 mb (00.36%) ++ (4 tiny) └───0.06 mb (00.21%) ── property-tables some of the trees in this section measure things that do not cross-cut the measurements in the "explicit" tree, such as those in the "p
reference-service" example above.
PR_CreateThread
scope specifies your p
reference for making the thread local (pr_local_thread), global (pr_global_thread) or global bound (pr_global_bound_thread).
... however, nspr may override this p
reference if necessary.
... stacksize specifies your p
reference for the size of the stack, in bytes, associated with the newly created thread.
PR_FindSymbol
pr_findsymbol() will return an untyped
reference to a symbol in a particular library given the identity of the library and a textual representation of the symbol in question.
... syntax #include <prlink.h> void* pr_findsymbol ( prlibrary *lib, const char *name); parameters the function has these parameters: lib a valid
reference to a loaded library, as returned by pr_loadlibrary, or null.
... description this function finds and returns an untyped
reference to the specified symbol in the specified library.
PR_Wait
syntax #include <prmon.h> prstatus pr_wait( prmonitor *mon, printervaltime ticks); parameters the function has the following parameter: mon a
reference to an existing structure of type prmonitor.
... the monitor object
referenced must be one for which the calling thread currently holds the lock.
... pr_failure means pr_wait encountered a system error (such as an invalid monitor
reference) or the thread was interrupted by another thread.
Certificate functions
if documentation is available for a function listed below, the function name is linked to either its mdc wiki page or its entry in the old ssl
reference.
... the mozilla cross
reference (mxr) link for each function provides access to the function definition, prototype definition, and source code
references.
...ert_encodebasicconstraintvalue mxr 3.5 and later cert_encodecertpoliciesextension mxr 3.12 and later cert_encodecrldistributionpoints mxr 3.5 and later cert_encodegeneralname mxr 3.4 and later cert_encodeinfoaccessextension mxr 3.12 and later cert_encodeinhibitanyextension mxr 3.12 and later cert_encodenotice
reference mxr 3.12 and later cert_encodeocsprequest mxr 3.6 and later cert_encodepolicyconstraintsextension mxr 3.12 and later cert_encodepolicymappingextension mxr 3.12 and later cert_encodesubjectkeyid mxr 3.12 and later cert_encodeusernotice mxr 3.12 and later cert_extractpublickey mxr 3.2 and later ...
Cryptography functions
if documentation is available for a function listed below, the function name is linked to either its mdc wiki page or its entry in the old ssl
reference.
... the mozilla cross
reference (mxr) link for each function provides access to the function definition, prototype definition, and source code
references.
...mxr 3.2 and later pk11_pubunwrapsymkeywithflags mxr 3.6 and later pk11_pubunwrapsymkeywithflagsperm mxr 3.9 and later pk11_pubwrapsymkey mxr 3.2 and later pk11_randomupdate mxr 3.2 and later pk11_readrawattribute mxr 3.9.2 and later pk11_
referencesymkey mxr 3.2 and later pk11_resettoken mxr 3.4 and later pk11_restorecontext mxr 3.2 and later pk11_savecontext mxr 3.2 and later pk11_savecontextalloc mxr 3.6 and later pk11_setfortezzahack mxr 3.2 and later pk11_setpasswordfunc ...
Notes on TLS - SSL 3.0 Intolerant Servers
you can also avoid such a problem by editing an existing profile -- check the p
reference option setting at: edit | p
references | privacy and security | ssl | enable tls, and turn it off if it is on for these earlier browsers.
... post a note on your site instructing users of old versions of browsers like netscape 6.0/6.01/6.1 preview release 1 and mozilla 0.9.1 and earlier to turn off the tls option at: edit | p
references | privacy and security | ssl | enable tls.
... when you find a secure site which simply does not display any page content or drops the connection, check to see if the p
reference option edit | p
references | privacy and security | ssl | enable tls is turned on.
NSS tools : modutil
this name is used to
reference the module by servers and by the modutil tool.
... filepermissions sets permissions on any
referenced files in a string of octal digits, according to the standard unix format.
...
references 1.
SSL functions
other sources of information: the nss_
reference documents the functions most commonly used by applications to support ssl.
... if documentation is available for a function listed below, the function name is linked to either its mdc wiki page or its entry in the old ssl
reference.
... the mozilla cross
reference (dxr) link for each function provides access to the function definition, prototype definition, and source code
references.
certutil
for example, this creates a self-signed certificate: $ certutil -s -s "cn=example ca" -n my-ca-cert -x -t "c,c,c" -1 -2 -5 -m 3650 from there, new certificates can
reference the self-signed certificate: $ certutil -s -s "cn=my server cert" -n my-server-cert -c "my-ca-cert" -t "u,u,u" -1 -5 -6 -8 -m 730 generating a certificate from a certificate request when a certificate request is created, a certificate can be generated by using the request and then referencing a certificate authority signing certificate (the issuer specified in the -c argument).
...this operation is performed on the device which stores the data, not directly on the security databases, so the location must be
referenced through the token name (-h) as well as any directory path.
...
references visible links 1.
NSS tools : modutil
this name is used to
reference the module by servers and by the modutil tool.
... filepermissions sets permissions on any
referenced files in a string of octal digits, according to the standard unix format.
...
references visible links 1.
Statistics API
the browser p
reference javascript.options.mem.log controls dumping of human-readable gc stats messages to the developer console.
... the browser p
reference javascript.options.mem.notify controls emission of json encoded gc stats to an observer interface.
... var prefs = require("api-utils/p
references-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::MutableHandle
this article covers features introduced in spidermonkey 17
reference to a t that has been rooted elsewhere.
... description js::mutablehandle<t> is a non-const
reference to js::rooted<t>.
... it is used in the same way as js::handle<t> and includes a |set(const t &v)| method to allow updating the value of the
referenced js::rooted<t>.
JS_SET_TRACING_DETAILS
the callback stores a string describing the
reference traced in buf.
... description set debugging information about a
reference to a traceable thing to prepare for the following call to js_calltracer.
... when printer is null, arg must be const char * or char * c string naming the
reference and index must be either (size_t)-1 indicating that the name alone describes the
reference or it must be an index into some array vector that stores the
reference.
SpiderMonkey: The Mozilla JavaScript runtime
reference jsapi
reference spidermonkey api
reference.
... js debugger api
reference api
reference for the debugger object introduced in spidermonkey 1.8.6, which corresponds to gecko 8.0 (firefox 8.0 / thunderbird 8.0 / seamonkey 2.5).
... bytecode
reference spidermonkey bytecode
reference.
TPS Pref Lists
a prefs asset list is an array of objects with name and value keys, representing browser p
references.
... for example: var prefs1 = [ { name: "browser.startup.homepage", value: "http://www.getfirefox.com" }, { name: "browser.urlbar.maxrichresults", value: 20 }, { name: "browser.tabs.autohide", value: true } ]; pref lists and phase actions the only actions supported for p
reference asset lists are modify and verify: prefs.modify prefs.verify sync only syncs certain p
references.
... to find the list of valid p
references, go to about:config on a browser that has weave installed, and search for services.sync.prefs.sync.
Secure Development Guidelines
the following content will likely see significant revision, though can be used as a
reference for security best practices to follow when developing code for mozilla.
... memory leaks example: void *p; size_t new_size; p = realloc(p, new_size); if (p == null) { /* handle error */ } memory leaks: prevention tools like valgrind can help detect memory leaks writing secure code: object management
reference counting issues real-life example (bug 440230) void addref() { ++mrefcnt; ns_log_addref(this, mrefcnt, "nscssvalue::array", sizeof(*this)); } void release() { --mrefcnt; ns_log_release(this, mrefcnt, "nscssvalue::array"); if (mrefcnt == 0) delete this; }
reference counting issues: prevention use the largest data type available on your platform for y...
...our
reference counter use a hard limit constructor/destructor issues if a constructor fails the destructor never gets called this can lead to memory leaks constructor/destructor issues example class foo { private: char *ptr; public: foo() {} ~foo() { if (ptr) free(ptr); } }; constructor/destructor issues: prevention initialize the data members of an object in the constructor writing secure code: miscellaneous file i/o a lot can go wrong because a lot can be done with file input and output filenames permissions file handles and descriptors file i/o: filename divided in directories, subdirectories, and the file itself ‘/’ is separator; in windows ‘\’ would work too int op...
AT Development
references at apis implementation
references shows how gecko handles atk, iaccessible2, msaa and universal access api accessible web specifications
references provides the map of reflecting web specification to at apis.
... this page includes: aria
references - w3c specification reflecting aria mapping into at apis.
... xforms
references - gecko documentation showing how xforms controls are mapped to at apis.
Manipulating bookmarks using Places
ces.nsiioservice); var uri = ios.newuri("http://google.com/", null, null); var newbkmkid = bmsvc.insertbookmark(newfolderid, uri, bmsvc.default_index, ""); this example instantiates the nsiioservice and uses it to create an nsiuri referring to the google web site, then calls nsinavbookmarksservice.insertbookmark() to create a new bookmark to google, placing it at the end of the bookmarks folder
referenced by newbkmkid.
... bmsvc.setitemtitle(newbkmkid, "new title"); this sets the title of the item
referenced by the id newbkmkid to "new title".
... you can fetch the current title of an item using the nsinavbookmarksservice.getitemtitle() method: var thistitle = bmsvc.getitemtitle(newbkmkid); this code will display an alert containing the title of the item
referenced by the id newbkmkid.
Places Expiration
p
references usually there is no need to tweak or set any p
reference, since adaptive behavior should satisfy each need, though in case of unexpected issues it's possible to act on some hidden p
references: places.history.expiration.interval_seconds: minimum number of seconds between expiration steps.
...default value is calculated on startup and put into the places.history.expiration.transient_current_max_pages p
reference.
... this transient version of the p
reference is just mirroring the current value used by expiration, setting it won't have any effect.
Querying Places
basic query search parameters const unsigned long time_relative_epoch = 0 const unsigned long time_relative_today = 1 const unsigned long time_relative_now = 2 attribute prtime begintime attribute unsigned long begintime
reference readonly attribute boolean hasbegintime readonly attribute prtime absolutebegintime attribute prtime endtime attribute unsigned long endtime
reference readonly attribute boolean hasendtime readonly attribute prtime absoluteendtime attribute astring searchterms readonly attribute boolean hassearchterms attribute long minvisits attribute long maxvisits attribute boolean onlybookmarked at...
... // first query object searches for "firefox" in title/url var query1 = placesutils.history.getnewquery(); query1.searchterms = "firefox"; // second query object searches for visited in past 24 hours and from mozilla.org var query2 = placesutils.history.getnewquery(); query2.begintime
reference = query2.time_relative_now; query2.begintime = -24 * 60 * 60 * 1000000; // 24 hours ago in microseconds query2.endtime
reference = query2.time_relative_now; query2.endtime = 0; // now query2.domain = "mozilla.org"; var result = placesutils.history.executequeries([query1, query2], 2, options); note: keyword searching doesn't work correctly across or queries.
... note: be careful when accessing nodes and do not keep
references to them around.
extIExtension
firstrun readonly attribute boolean indicates whether this is the extension's first run after install prefs readonly attribute extip
referencebranch the p
references object for the extension.
...a p
reference "install-event-fired" under your extensions p
references branch (e.g.
...you may need to reset this p
reference in about:config during testing.
Using XPCOM Components
component examples you can find out more about how you can use the particular components described here in the xpcom api
reference.
...the xpcom api
reference provides a full
reference of the xpcom components available in mozilla.
...it's divided into three subsections: one about actually finding all these binary components in mozilla and two others corresponding to the two main ways that clients typically access xpcom components: finding mozilla components this book attempts to provide
reference information for xpcom components and their interfaces that are frozen as of the time of this writing.
Language bindings
it returns a
reference to the clone:components.utils.createobjectincomponents.utils.createobjectin creates a new javascript object in the scope of the specified object's compartment.components.utils.evalinsandboxthe evalinsandbox() function enables you to evaluate javascript code inside a sandbox you've previously created using the components.utils.sandbox constructor.components.utils.evalinwindowthis function enables ...
...this is the global object in place at the time the object was created, which is to say the global object used when executing the script that created the object.components.utils.getweak
referencethis method was introduced in firefox 3 and is used for obtaining a weak
reference for an object.
... to obtain the object
reference, you have to call get() on the resulting object.components.utils.importcomponents.utils.import was introduced in firefox 3 and is used for sharing code between different scopes easily.
nsCountedRef
nscountedref<t> is a template class implementing an object that takes a strong
reference to a
reference-counted resource that must be released, typically on destruction of the object.
...nscountedref is therefore useful for managing
references to foreign objects.
...nscountedref differs from nsautoref in that nscountedref constructors add a
reference to the resource, and in that nscountedref provides copy construction< and assignment operators enabling more than one concurrent
reference to the same resource.
RefPtr
refptr (formerly known as nsrefptr, see bug 1207245) is a general class to implement
reference counting pointers for objects.
... like with nscomptr, it is the responsibility of the object itself to implement
reference counting.
... this is done using the functions addref() and release(), which respectively modify a variable of type nsautorefcnt, which basically is a wrapper around a count of the number of
references refering to the class.
IAccessibleTable2
[propget] hresult caption( [out] iunknown accessible ); parameters accessible if the table has a caption then a
reference to it is returned, else a null pointer is returned.
...[propget] hresult selectedcells( [out, size_is(, nselectedcells,)] iunknown cells, [out] long nselectedcells ); parameters cells pointer to an array of
references to selected accessibles.
...[propget] hresult summary( [out] iunknown accessible ); parameters accessible returns a
reference to an implementation dependent accessible object representing the table's summary or a null pointer if the table does not support a summary.
nsIAccessibilityService
ible(in nsipresshell ashell, in nsidocument adocument); nsiaccessible createhtml4buttonaccessible(in nsisupports aframe); nsiaccessible createhypertextaccessible(in nsisupports aframe); nsiaccessible createhtmlbraccessible(in nsisupports aframe); nsiaccessible createhtmlbuttonaccessible(in nsisupports aframe); nsiaccessible createhtmlaccessiblebymarkup(in nsiframe aframe, in nsiweak
reference aweakshell, in nsidomnode adomnode); nsiaccessible createhtmlliaccessible(in nsisupports aframe, in nsisupports abulletframe, in astring abullettext); nsiaccessible createhtmlcheckboxaccessible(in nsisupports aframe); nsiaccessible createhtmlcomboboxaccessible(in nsidomnode anode, in nsiweak
reference apresshell); nsiaccessible createhtmlgenericaccessible(in nsisupports aframe); nsi...
...accessible createhtmlgenericaccessible(in nsisupports aframe); nsiaccessible createhtmlhraccessible(in nsisupports aframe); nsiaccessible createhtmlimageaccessible(in nsisupports aframe); nsiaccessible createhtmllabelaccessible(in nsisupports aframe); nsiaccessible createhtmllabelaccessible(in nsidomnode anode, in nsiweak
reference apresshell); nsiaccessible createhtmlobjectframeaccessible(in nsobjectframe aframe); nsiaccessible createhtmlradiobuttonaccessible(in nsisupports aframe); nsiaccessible createhtmlselectoptionaccessible(in nsidomnode anode, in nsiaccessible aaccparent, in nsiweak
reference apresshell); nsiaccessible createhtmltableaccessible(in nsisupports aframe); nsiaccessible createhtmltablecellaccessible(in nsisupports aframe); nsiaccessible createhtmltable...
...headaccessible(in nsidomnode adomnode); nsiaccessible createhtmltextaccessible(in nsisupports aframe); nsiaccessible createhtmltextfieldaccessible(in nsisupports aframe); nsiaccessible createhtmlcaptionaccessible(in nsisupports aframe); nsiaccessible getaccessible(in nsidomnode anode, in nsipresshell apresshell, in nsiweak
reference aweakshell, inout nsiframe framehint, out boolean aishidden); nsiaccessible addnativerootaccessible(in voidptr aatkaccessible); void removenativerootaccessible(in nsiaccessible arootaccessible); void invalidatesubtreefor(in nsipresshell apresshell, in nsicontent achangedcontent, in pruint32 aevent); methods removenativerootaccessible() void removenativerootaccessible( in nsiaccessible arootaccessible ); invalidatesubtreefor() invalida...
nsICachingChannel
this is valid for as long as a
reference to the cache token is held.
...holding a
reference to this key does not prevent the cached data from being removed.
...holding a
reference to this token prevents the cached data from being removed.
nsIDownloadManager
the path is dependent on two user configurable prefs set in p
references: browser.download.folderlist defines the default download location for files: 0: files are downloaded to the desktop by default.
... 2: files are downloaded to the local path specified by the browser.download.dir p
reference.
... if this p
reference is invalid, the download directory falls back to the default.
nsIHttpChannel
the initial value for this attribute may be a configurable p
reference (depending on the implementation).
... note: starting from firefox 49, empty headers will be returned in case the p
reference network.http.keep_empty_response_headers_as_empty_string is set to true.
... since firefox 50 the p
reference defaults to true.
nsIMsgCompFields
« xpcom api
reference summary the nsimsgcompfields interface provides properties for an composition of an outgoing message.
...(bug 249530) newsgroups astring newshost char * newsposturl char * organization astring otherrandomheaders astring no longer exists - see https://groups.google.com/forum/#!topic/mozilla.dev.apps.thunderbird/s4ofmm8_b28 priority char * receiptheadertype print32
references char * replyto astring securityinfo nsisupports subject astring templatename astring temporaryfiles char * obsolete temporaryfiles obsolete, do not use anymore to astring usemultipartalternative prbool uuencodeattachments prbool methods ...
...recipients ( in prunichar * recipients, in prbool emailaddressonly ); void convertbodytoplaintext ( ); attachment handling methods void addattachment ( in nsimsgattachment attachment ); void removeattachment ( in nsimsgattachment attachment ); void removeattachments ( ); header methods void setheader(char* name, char* value);
references this interface is the type of the following properties: nsimsgcompose.compfields, nsimsgcomposeparams.composefields this interface is passed as an argument to the following methods: nsimsgcomposesecure.begincryptoencapsulation, nsimsgcomposesecure.requirescryptoencapsulation, nsimsgsend.createandsendmessage, nsimsgsend.sendmessagefile, nsismimejshelper.getnocertaddresses, nsismimejshelper.ge...
nsINavHistoryService
if ownsweak is false, the history service will keep an owning
reference to the observer.
... if ownsweak is true, then aobserver must implement nsisupportsweak
reference, and the history service will keep a weak
reference to the observer.
... ownsweak the owning
reference state (boolean).
nsIURLFormatter
formaturlpref() formats a string url stored in a p
reference.
... if the p
reference value cannot be retrieved, a fatal error is reported and the "about:blank" url is returned.
... astring formaturlpref( in astring apref ); parameters apref a string representing the name of the p
reference from which to fetch the url to format.
nsIVariant
(
reference counted elements are not cloned, but their
reference count is increased.) return value native code only!getasastring astring getasastring(); parameters none.
...(the
reference count of the object is incremented.) native code only!getasisupports nsisupports getasisupports(); parameters none.
...(the
reference count of the object is incremented.) native code only!getasjsval jsval getasjsval(); parameters none.
nsIWebContentHandlerRegistrar
can bypass this by opening about:config and setting p
reference of gecko.handlerservice.allowregisterfromdifferenthost to true.
.../mail.live.com/secure/start?action=compose&to=%s as a content or protocol handler'permission denied to add http://mail.live.com/secure/start?action=compose&to=%s as a content or protocol handler' when calling method: [nsiwebcontenthandlerregistrar::registerprotocolhandler] if the host names do match then a confirmation like this will be seen: this domain check can be bypassed by setting the p
reference of gecko.handlerservice.allowregisterfromdifferenthost to true as in this code here: var {classes: cc, interfaces: ci, utils: cu} = components; cu.import("resource://gre/modules/services.jsm"); var nsiwchr = cc["@mozilla.org/embeddor.implemented/web-content-handler-registrar;1"] .getservice(ci.nsiwebcontenthandlerregistrar); var allowregisterfromdifferenthost = services.prefs.ge...
...tboolpref('gecko.handlerservice.allowregisterfromdifferenthost'); if (!allowregisterfromdifferenthost) { services.prefs.setboolpref('gecko.handlerservice.allowregisterfromdifferenthost', true); } var htmlcontentwindow = services.wm.getmostrecentwindow('navigator:browser'); //because we set the p
reference to true above, we need any window that has a browser, just pass the domwindow and the registerprotocolhandler will get the contentwindow from it nsiwchr.registerprotocolhandler("mailto", "http://mail.live.com/secure/start?action=compose&to=%s", "outlook.com live mail", htmlcontentwindow); if (!allowregisterfromdifferenthost) { //it this variable is false, than we had set the pref to true obviously.
NS_CStringContainerInit2
« xpcom api
reference summary the ns_cstringcontainerinit2 function initializes a nscstringcontainer instance for use as a nsacstring.
...if this value is zero, then the array
referenced by adata (if any) will be copied.
...instead, the string
references the passed in data pointer directly.
NS_CStringGetMutableData
« xpcom api
reference summary the ns_cstringgetmutabledata function gives the caller write access to the string's internal buffer.
...adata [out] upon return, if the function was successful, then *adata
references the string's internal buffer.
...if astring is a
reference to a nscstringcontainer, then its data will be null-terminated by this function.
Status, Recent Changes, and Plans
you may want to skip directly to the getting started guide, the
reference manual, or the faq.
... added do_queryreferent to make using nsiweak
references easier.
... added an entire section to the getting started guide on nscomptrs in function signatures added
references to recent bugs influencing the use of nscomptr machinery: bug 59212, and bug 59414 fixed comparisons 1 and 3, as per comments by morten welinder updated examples to prefer direct initialization over copy initialization.
XPCOM
this implementation will allow you to get(), set(), define(), and undefine() nsifile.using nsipasswordmanagertechnical review completed.using nsisimpleenumeratorusing the clipboardthis section provides information about cutting, copying, and pasting to and from the clipboard.using the gecko sdkweak
referencein xpcom, a weak
reference is a special object that contains a pointer to an xpcom object, but doesnot keep that object alive.
... if the referent object is destroyed before the weak
reference, the pointer inside the weak
reference is set to nsnull.working with multiple versions of interfacesin this short note we illustrate how one can update an xpcom module in order for it to work in both firefox 2 and firefox 3, even if the interfaces have changed in the interim.working with out parameterswrappedjsobjectwrappedjsobject is a property sometimes available on xpconnect wrappers.
...if you create an object with a longer lifespan, you will own it until you give ownership away.xpcom
referencethis
reference describes the interfaces and functions provided by the xpcom library.
Account Provisioner
to have logs dumped to the terminal, create a string p
reference called mail.provider.logging.dump and set its value to all.
... to have logs dumped to the error console, create a string p
reference called mail.provider.logging.console and set its value to all.
... a mozillazine article on how to set p
references in thunderbird.
Address Book examples
note: thunderbird and seamonkey user interfaces now
reference 'contacts' not 'cards' however, as the backend still uses the 'cards' terminology, that is what is used here this article provides examples on accessing and manipulating thunderbird address books.
...p
references, in address book trees etc).
...for example, in order to register a load listener for a contact, the following should take place within the scope of the contact editor dialog: /* an example load listener for a contact * acard the nsiabcard being loaded * adocument a
reference to the contact editor document */ function foo(acard, adocument) { // do something useful, like disabling // input fields that cards for this // address book type do not support.
LDAP Support
it assumes you are already familiar with configuring p
references for deployed builds in addition to setting up thunderbird to use an ldap directory.
...this can be accomplished by setting the following p
references: user_pref("mail.autocomplete.commentcolumn", 2); user_pref("ldap_2.servers.directoryname.autocomplete.commentformat", "[ou]"); the first p
reference tells us to use a comment column in the type down (the default value is 0 for no comment), and that the value for the comment is a custom string unique to each directory.
... the commentformat p
reference is set on each directory.
Building a Thunderbird extension 5: XUL
example xul overlay document create a new file called myhelloworld.xul within the content folder you created earlier with the following content: <?xml version="1.0"?> <overlay id="sample" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <script type="application/javascript" src="chrome://myfirstext/content/overlay.js"/><!-- a
reference to your javascript file --> <statusbar id="status-bar"> <statusbarpanel id="my-panel" label="date"/> </statusbar> </overlay> the <statusbar> widget named status-bar specifies the merge point within the application window that we want to attach to.
... we have also added a <script> tag that contains a
reference to the javascript file overlay.js.
...for now you can ignore this line, but remember that this is how you
reference a javascript file.
Toolkit version format
this document is a
reference for the version format, as used in firefox 1.5 (xulrunner 1.8) and later.
... the following p
references: app.extensions.version, extensions.lastappversion versions returned by nsixulappinfo.
...== 1.0 == 1.0.0 < 1.1a < 1.1aa < 1.1ab < 1.1b < 1.1c < 1.1pre == 1.1pre0 == 1.0+ < 1.1pre1a < 1.1pre1aa < 1.1pre1b < 1.1pre1 < 1.1pre2 < 1.1pre10 < 1.1.-1 < 1.1 == 1.1.0 == 1.1.00 < 1.10 < 1.* < 1.*.1 < 2.0 technical
reference for those interested in seeing the implementation of toolkit version comparison, see nsversioncomparator.cpp.
Working with data
for example: const point = new ctypes.structtype("point", [{x: ctypes.int32_t}, {y: ctypes.int32_t}]); const rect = new ctypes.structtype("rect", [{topleft: point}, {bottomright: point}]); var r = rect(); var p = r.topleft; r.topleft.x = 100; at this point, p is a
reference to the topleft field in the rect named r.
... working with pointers reading data
referenced by pointer this example creates a pointer to an integer, then looks at the pointed-to data using the pointertype object's contents property.
... var i = ctypes.int32_t(9); // create a c integer whose value is 9 var p = i.address(); // create a pointer to the integer variable i if (p.contents == 9) { // look at the contents of the pointer // the value is 9 } else { // the value isn't 9 } setting data
referenced by pointer you can also use the contents property to set the value pointed to by a variable.
Plug-in Development Overview - Plugins
the data can come from either an object element in an html file (where the object or embed element either specifies the mime type directly or
references a file of that type), from a separate non-html file of that mime type, or from the server.
...it determines which plug-ins are installed and which types they support through a combination of user p
references that are private to the browser, the contents of the plug-ins directory, or the registry on windows.
... see the scripting plugins section of this
reference for the details.
Debugger.Environment - Firefox Developer Tools
when true, getvariable returns an ordinary javascript object whose optimizedout property is true on all bindings, and setvariable throws a
referenceerror.
... if this environment binds no variable namedname, throw a
referenceerror.
... find(name) return a
reference to the innermost environment, starting with this environment, that bindsname.
Debugger.Object - Firefox Developer Tools
unsafede
reference() return the referent of this debugger.object instance.
...this makes unsafede
reference more useful in producing values appropriate for direct use by debuggee code, without using invocation functions.
...this method makes it easier to gradually adapt large code bases to this debugger api: adapted portions of the code can use debugger.object instances, but use this method to pass direct object
references to code that has not yet been updated.
Debugger.Object - Firefox Developer Tools
unsafede
reference() return the referent of this debugger.object instance.
...this makes unsafede
reference more useful in producing values appropriate for direct use by debuggee code, without using invocation functions.
...this method makes it easier to gradually adapt large code bases to this debugger api: adapted portions of the code can use debugger.object instances, but use this method to pass direct object
references to code that has not yet been updated.
All keyboard shortcuts - Firefox Developer Tools
in the editor p
references section of the developer tools settings, you can choose to use vim, emacs, or sublime text key bindings instead.
... from firefox 33 onwards, the key binding p
reference is exposed in the editor p
references section of the developer tools settings, and you can set it there instead of about:config.
... show/hide more information about current property (computed view only, when a property is selected) enter or space return or space enter or space open mdn
reference page about current property (computed view only, when a property is selected) f1 f1 f1 open current css file in style editor (computed view only, when more information is shown for a property and a css file
reference is focused).
about:debugging - Firefox Developer Tools
whether internal extensions appear in the list on this page depends on the setting of the devtools.aboutdebugging.showhiddenaddons p
reference.
... if you need to see these extensions, navigate to about:config and make sure that the p
reference is set to true.
... service workers can be unavailable if the dom.serviceworkers.enable p
reference is set to false in about:config.
AudioWorkletProcessor.process - Web APIs
a processor implementing such a node should return false from the process method to allow the presence of active input nodes and
references to the node to determine whether it can be garbage-collected.
...as soon as there are no inputs connected and
references retained, gain can no longer be applied to anything, so it can be safely garbage-collected.
...parameters['customgain'][i] : parameters['customgain'][0]) } }) // as this is a source node which generates its own output, // we return true so it won't accidentally get garbage-collected // if we don't have any
references to it in the main thread return true } // define the customgain parameter used in process method static get parameterdescriptors () { return [{ name: 'customgain', defaultvalue: 1, minvalue: 0, maxvalue: 1, automationrate: 'a-rate' }] } } specifications specification status comment web audio apithe definition of 'proces...
CSSUnparsedValue - Web APIs
the cssunparsedvalue interface of the css typed object model api represents property values that
reference custom properties.
... it consists of a list of string fragments and variable
references.
... custom properties are represented by cssunparsedvalue and var()
references are represented using cssvariable
referencevalue.
Using images - Web APIs
importing images into a canvas is basically a two step process: get a
reference to an htmlimageelement object or to another canvas element as a source.
... using images from the same page we can obtain a
reference to images on the same page as the canvas by using one of: the document.images collection the document.getelementsbytagname() method if you know the id of the specific image you wish to use, you can use document.getelementbyid() to retrieve that specific image using images from other domains using the crossorigin attribute of an <img> element (reflected by the htmlimageelement.crossorigin ...
... drawing images once we have a
reference to our source image object we can use the drawimage() method to render it to the canvas.
Canvas API - Web APIs
html <canvas id="canvas"></canvas> javascript the document.getelementbyid() method gets a
reference to the html <canvas> element.
... const canvas = document.getelementbyid('canvas'); const ctx = canvas.getcontext('2d'); ctx.fillstyle = 'green'; ctx.fillrect(10, 10, 150, 100); result
reference htmlcanvaselement canvasrenderingcontext2d canvasgradient canvasimagesource canvaspattern imagebitmap imagedata renderingcontext textmetrics offscreencanvas path2d imagebitmaprenderingcontext note: the interfaces related to the webglrenderingcontext are
referenced under webgl.
... canvas handbook a handy
reference for the canvas api.
ContentIndex - Web APIs
examples feature detection and interface access here we get a
reference to the serviceworkerregistration, then check for the index property, which gives us access to the content index interface.
... //
reference registration const registration = await navigator.serviceworker.ready; // feature detection if ('index' in registration) { // content index api functionality const contentindex = registration.index; } adding to the content index here we're declaring an item in the correct format and creating an asynchronous function which uses the add() method to register it with the content index.
... async function unregistercontent(article) { //
reference registration const registration = await navigator.serviceworker.ready; // feature detect content index if (!registration.index) return; // unregister content from index await registration.index.delete(article.id); } all the above methods are available within the scope of the service worker.
Document.createNodeIterator() - Web APIs
nodefilter.show_entity_
reference 16 shows entity
reference nodes.
... note: prior to gecko 12.0 (firefox 12.0 / thunderbird 12.0 / seamonkey 2.9), this method accepted an optional fourth parameter (entity
referenceexpansion) that is not part of the dom4 specification, and has therefore been removed.
... this parameter indicated whether or not the children of entity
reference nodes were visible to the iterator.
Traversing an HTML table with JavaScript and DOM Interfaces - Web APIs
example: creating an html table dynamically (sample1.html) html <input type="button" value="generate a table." onclick="generate_table()"> javascript function generate_table() { // get the
reference for the body var body = document.getelementsbytagname("body")[0]; // creates a <table> element and a <tbody> element var tbl = document.createelement("table"); var tblbody = document.createelement("tbody"); // creating all cells for (var i = 0; i < 2; i++) { // creates a table row var row = document.createelement("tr"); for (var j = 0; j < 2; j++) { // create a <t...
... mytextnode = document.createtextnode("world"); this means that you have created a node of the type text_node (a piece of text) whose text data is "world", and mytextnode is your
reference to this node object.
... <head> <title>sample code - traversing an html table with javascript and dom interfaces</title> <script> function start() { // get the
reference for the body var mybody = document.getelementsbytagname("body")[0]; // creates <table> and <tbody> elements mytable = document.createelement("table"); mytablebody = document.createelement("tbody"); // creating all cells for(var j = 0; j < 3; j++) { // creates a <tr> element mycurrent_row = document.createelement("tr"); ...
Event - Web APIs
interfaces based on event below is a list of interfaces which are based on the main event interface, with links to their respective documentation in the mdn api
reference.
... event.currenttarget read only a
reference to the currently registered target for the event.
... event.target read only a
reference to the target to which the event was originally dispatched.
Using files from web applications - Web APIs
using object urls the dom url.createobjecturl() and url.revokeobjecturl() methods let you create simple url strings that can be used to
reference any data that can be referred to using a dom file object, including local files on the user's computer.
... when you have a file object you'd like to
reference by url from html, you can create an object url for it like this: const objecturl = window.url.createobjecturl(fileobj); the object url is a string identifying the file object.
... in firefox, to have the pdf appear embedded in the iframe (rather than proposed as a downloaded file), the p
reference pdfjs.disabled must be set to false .
Introduction to the File and Directory Entries API - Web APIs
for the
reference documentation on the file and directory entries api, see the
reference landing page and its subpages.
...it is a general-purpose way to
reference binary data in web applications.
... blob blob—with a capital b—is a data structure that is immutable, which means that binary data
referenced by a blob cannot be modified directly.
GeolocationCoordinates.longitude - Web APIs
note: the zero meridian (also known as the prime meridian or the
reference meridian) is not precisely the same as the greenwhich meridian that most people think of.
... it is, instead, the iers
reference meridian, which is located 5.3 arcseconds (102 meters / 335 feet) east of the greenwich meridian.
...latitude"); let longtext = document.getelementbyid("longitude"); button.addeventlistener("click", function() { navigator.geolocation.getcurrentposition(function(position) { let lat = position.coords.latitude; let long = position.coords.longitude; lattext.innertext = lat.tofixed(2); longtext.innertext = long.tofixed(2); }); }); after setting up variables to more conveniently
reference the button element and the two elements into which the latitude and logitude will be drawn, the event listener is established by calling addeventlistener() on the <button> element.
HTMLImageElement.currentSrc - Web APIs
ll support 45edge full support 13firefox full support 38 full support 38 no support 32 — 52disabled disabled from version 32 until version 52 (exclusive): this feature is behind the dom.image.srcset.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera full support yessafari full support 10.1webview android full support 45chrome android full support 45firefox android full support 38 full support 38 no support 32 — 52disabled disabled from version 32 until version 52 (exclusive): this feature is behind the dom.image.srcset.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android no support nosafari ios full support 10.3samsung internet android full support 5.0legend full support full support no support no supportexperimental.
HTMLImageElement.sizes - Web APIs
l support 45edge full support 13firefox full support 38 full support 38 no support 33 — 52disabled disabled from version 33 until version 52 (exclusive): this feature is behind the dom.image.picture.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera full support yessafari no support nowebview android full support 45chrome android full support 45firefox android full support 38 full support 38 no support 33 — 52disabled disabled from version 33 until version 52 (exclusive): this feature is behind the dom.image.picture.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android no support nosafari ios no support nosamsung internet android full support 5.0legend full support full support no support no supportexperimental.
Navigator - Web APIs
navigatorlanguage.languages read only returns an array of domstring representing the languages known to the user, by order of p
reference.
... navigator.donottrack reports the value of the user's do-not-track p
reference.
... navigator.mediadevices returns a
reference to a mediadevices object which can then be used to get information about available media devices (mediadevices.enumeratedevices()), find out what constrainable properties are supported for media on the user's computer and user agent (mediadevices.getsupportedconstraints()), and to request access to media using mediadevices.getusermedia().
Node.childNodes - Web APIs
syntax let nodelist = elementnode
reference.childnodes; examples simple usage // parg is an object
reference to a <p> element // first check that the element has child nodes if (parg.haschildnodes()) { let children = parg.childnodes; for (let i = 0; i < children.length; i++) { // do something with each child as children[i] // note: list is live!
... adding or removing children will change the list's `length` } } remove all children from a node // this is one way to remove all children from a node // box is an object
reference to an element while (box.firstchild) { //the list is live so it will re-index each call box.removechild(box.firstchild); } notes the items in the collection of nodes are objects, not strings.
...(for example, to get the name of the first childnode: elementnode
reference.childnodes[1].nodename.) the document object itself has 2 children: the doctype declaration and the root element, typically referred to as documentelement.
Node.removeChild() - Web APIs
oldchild holds a
reference to the removed child node, i.e., oldchild === child.
...with the first syntax form shown, you may reuse the removed node later in your code, via the oldchild object
reference.
... in the second syntax form, however, there is no oldchild
reference kept, so assuming your code has not kept any other
reference to the node elsewhere, it will immediately become unusable and irretrievable, and will usually be automatically deleted from memory after a short time.
PaymentRequest.abort() - Web APIs
full support 61edge full support 15firefox full support 55notes disabled full support 55notes disabled notes available only in nightly builds.disabled from version 55: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera no support nosafari full support 11.1webview android no support nochrome android full support 53firefox android full support 55notes disabled full support 55notes disabled notes available only in nightly builds.disabled from version 55: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android no support nosafari ios full support 11.3samsung internet android full support 6.0legend full support full support no support no supportsee implementation notes.see implementation notes.user must explicitly enable this feature.user must explicitly enable this feature.
PaymentRequest.canMakePayment() - Web APIs
full support 61edge full support 16firefox full support 55notes disabled full support 55notes disabled notes available only in nightly builds.disabled from version 55: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera no support nosafari full support 11.1webview android no support nochrome android full support 53firefox android full support 55notes disabled full support 55notes disabled notes available only in nightly builds.disabled from version 55: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android no support nosafari ios full support 11.3samsung internet android full support 6.0legend full support full support no support no supportsee implementation notes.see implementation notes.user must explicitly enable this feature.user must explicitly enable this feature.
PaymentRequest.prototype.id - Web APIs
full support 61edge full support 16firefox full support 55notes disabled full support 55notes disabled notes available only in nightly builds.disabled from version 55: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera no support nosafari full support 11.1webview android no support nochrome android full support 60firefox android full support 55notes disabled full support 55notes disabled notes available only in nightly builds.disabled from version 55: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android no support nosafari ios full support 11.3samsung internet android full support 8.0legend full support full support no support no supportsee implementation notes.see implementation notes.user must explicitly enable this feature.user must explicitly enable this feature.
PaymentRequest.onshippingaddresschange - Web APIs
full support 61edge full support 15firefox full support 55notes disabled full support 55notes disabled notes available only in nightly builds.disabled from version 55: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera no support nosafari full support 11.1webview android no support nochrome android full support 53firefox android full support 55notes disabled full support 55notes disabled notes available only in nightly builds.disabled from version 55: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android no support nosafari ios full support 11.3samsung internet android full support 6.0legend full support full support no support no supportsee implementation notes.see implementation notes.user must explicitly enable this feature.user must explicitly enable this feature.
PaymentRequest.onshippingoptionchange - Web APIs
full support 61edge full support 15firefox full support 55notes disabled full support 55notes disabled notes available only in nightly builds.disabled from version 55: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera no support nosafari full support 11.1webview android no support nochrome android full support 53firefox android full support 55notes disabled full support 55notes disabled notes available only in nightly builds.disabled from version 55: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android no support nosafari ios full support 11.3samsung internet android full support 6.0legend full support full support no support no supportsee implementation notes.see implementation notes.user must explicitly enable this feature.user must explicitly enable this feature.
PaymentRequest.shippingOption - Web APIs
full support 61edge full support 15firefox full support 55notes disabled full support 55notes disabled notes available only in nightly builds.disabled from version 55: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera no support nosafari full support 11.1webview android no support nochrome android full support 53firefox android full support 55notes disabled full support 55notes disabled notes available only in nightly builds.disabled from version 55: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android no support nosafari ios full support 11.3samsung internet android full support 6.0legend full support full support no support no supportsee implementation notes.see implementation notes.user must explicitly enable this feature.user must explicitly enable this feature.
PaymentRequest.shippingType - Web APIs
full support 61edge full support 15firefox full support 55notes disabled full support 55notes disabled notes available only in nightly builds.disabled from version 55: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera no support nosafari full support 11.1webview android no support nochrome android full support 55firefox android full support 55notes disabled full support 55notes disabled notes available only in nightly builds.disabled from version 55: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android no support nosafari ios full support 11.3samsung internet android full support 6.0legend full support full support no support no supportsee implementation notes.see implementation notes.user must explicitly enable this feature.user must explicitly enable this feature.
PaymentRequest.payerName - Web APIs
full support 61edge full support 15firefox full support 56notes disabled full support 56notes disabled notes available only in nightly builds.disabled from version 56: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera no support nosafari full support yeswebview android no support nochrome android full support 58firefox android full support 56notes disabled full support 56notes disabled notes available only in nightly builds.disabled from version 56: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android no support nosafari ios full support yessamsung internet android full support 7.0legend full support full support no support no supportsee implementation notes.see implementation notes.user must explicitly enable this feature.user must explicitly enable this feature.
PaymentResponse.requestId - Web APIs
full support 61edge full support 16firefox full support 56notes disabled full support 56notes disabled notes available only in nightly builds.disabled from version 56: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera no support nosafari full support yeswebview android no support nochrome android full support 60firefox android full support 56notes disabled full support 56notes disabled notes available only in nightly builds.disabled from version 56: this feature is behind the dom.payments.request.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android no support nosafari ios full support yessamsung internet android full support 8.0legend full support full support no support no supportsee implementation notes.see implementation notes.user must explicitly enable this feature.user must explicitly enable this feature.
Range.selectNode() - Web APIs
the parent node of the start and end of the range will be the same as the parent of the
referencenode.
... syntax range.selectnode(
referencenode); parameters
referencenode the node to select within a range.
... example let range = document.createrange(); let
referencenode = document.getelementsbytagname('div').item(0); range.selectnode(
referencenode); specifications specification status comment domthe definition of 'range.selectnode()' in that specification.
Range.setEndAfter() - Web APIs
the parent node of end of the range will be the same as that for the
referencenode.
... syntax range.setendafter(
referencenode); parameters
referencenode the node to end the range after.
... example var range = document.createrange(); var
referencenode = document.getelementsbytagname('div').item(0); range.setendafter(
referencenode); specifications specification status comment domthe definition of 'range.setendafter()' in that specification.
Range.setEndBefore() - Web APIs
the parent node of end of the range will be the same as that for the
referencenode.
... syntax range.setendbefore(
referencenode); parameters
referencenode the node to end the range before.
... example var range = document.createrange(); var
referencenode = document.getelementsbytagname("div").item(0); range.setendbefore(
referencenode); specifications specification status comment domthe definition of 'range.setendbefore()' in that specification.
Range.setStartAfter() - Web APIs
the parent node of the start of the range will be the same as that for the
referencenode.
... syntax range.setstartafter(
referencenode); parameters
referencenode the node to start the range after.
... example var range = document.createrange(); var
referencenode = document.getelementsbytagname("div").item(0); range.setstartafter(
referencenode); specifications specification status comment domthe definition of 'range.setstartafter()' in that specification.
Range.setStartBefore() - Web APIs
the parent node of the start of the range will be the same as that for the
referencenode.
... syntax range.setstartbefore(
referencenode); parameters
referencenode the node before which the range should start.
... example var range = document.createrange(); var
referencenode = document.getelementsbytagname("div").item(0); range.setstartbefore(
referencenode); specifications specification status comment domthe definition of 'range.setstartbefore()' in that specification.
SVGForeignObjectElement - Web APIs
th="2px" /><text x="146" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgforeignobjectelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent, svggraphicselement and implements properties from svguri
reference.
... methods this interface has no methods but inherits methods from its parent, svggraphicselement and implements methods from svguri
reference.
... candidate recommendation replaced the inheritance from svgelement, svgtests, svglangspace, svgexternalresourcesrequired, svgstylable, and svgtransformable by svggraphicselement and svguri
reference scalable vector graphics (svg) 1.1 (second edition)the definition of 'svgforeignobjectelement' in that specification.
TreeWalker - Web APIs
nodefilter.show_entity_
reference 16 shows entity
reference nodes.
... treewalker.expandentity
references read only is a boolean indicating, when discarding an entity
reference its whole sub-tree must be discarded at the same time.
... living standard removed the expandentity
references property.
WebGLRenderingContext - Web APIs
the webgl context the following properties and methods provide general information and functionality to deal with the webgl context: webglrenderingcontext.canvas a read-only back-
reference to the htmlcanvaselement.
... webglrenderingcontext.stencilfunc() sets the both front and back function and
reference value for stencil testing.
... webglrenderingcontext.stencilfuncseparate() sets the front and/or back function and
reference value for stencil testing.
WebGL constants - Web APIs
stencil_ref 0x0b97 passed to getparameter to get the
reference value used for stencil tests.
...cw 0x0900 passed to frontface to specify the front face of a polygon is drawn in the clockwise direction ccw 0x0901 passed to frontface to specify the front face of a polygon is drawn in the counter clockwise direction hints constants passed to webglrenderingcontext.hint() constant name value description dont_care 0x1100 there is no p
reference for this behavior.
... uniform_offset 0x8a3b uniform_array_stride 0x8a3c uniform_matrix_stride 0x8a3d uniform_is_row_major 0x8a3e uniform_block_binding 0x8a3f uniform_block_data_size 0x8a40 uniform_block_active_uniforms 0x8a42 uniform_block_active_uniform_indices 0x8a43 uniform_block_
referenced_by_vertex_shader 0x8a44 uniform_block_
referenced_by_fragment_shader 0x8a46 sync objects constant name value description object_type 0x9112 sync_condition 0x9113 sync_status 0x9114 sync_flags 0x9115 sync_fence 0x9116 sync_gpu_commands_complete 0x9117...
A simple RTCDataChannel sample - Web APIs
we grab
references to all the page elements we'll need to access, then set event listeners on the three buttons.
...nel; this invokes our receivechannelcallback() method, which looks like this: function receivechannelcallback(event) { receivechannel = event.channel; receivechannel.onmessage = handlereceivemessage; receivechannel.onopen = handlereceivechannelstatuschange; receivechannel.onclose = handlereceivechannelstatuschange; } the datachannel event includes, in its channel property, a
reference to a rtcdatachannel representing the remote peer's end of the channel.
...then all the saved
references to these objects are set to null to avoid accidental reuse, and the user interface is updated to reflect the fact that the connection has been closed.
Controlling multiple parameters with ConstantSourceNode - Web APIs
playbutton and volumecontrol
references to the play button and volume control elements.
...e; constantnode = context.createconstantsource(); constantnode.connect(gainnode2.gain); constantnode.connect(gainnode3.gain); constantnode.start(); gainnode1.connect(context.destination); gainnode2.connect(context.destination); gainnode3.connect(context.destination); } window.addeventlistener("load", setup, false); first, we get access to the window's audiocontext, stashing the
reference in context.
... then we get
references to the control widgets, setting playbutton to
reference the play button and volumecontrol to
reference the slider control that the user will use to adjust the gain on the linked pair of oscillators.
Example and tutorial: Simple synth keyboard - Web APIs
let audiocontext = new (window.audiocontext || window.webkitaudiocontext)(); let osclist = []; let mastergainnode = null; audiocontext is set to
reference the global audiocontext object (or webkitaudiocontext if necessary).
... let keyboard = document.queryselector(".keyboard"); let wavepicker = document.queryselector("select[name='waveform']"); let volumecontrol = document.queryselector("input[name='volume']");
references to elements we'll need access to are obtained: keyboard is the container element into which the keys will be placed.
...the returned oscillator is stored into osclist for future
reference, and data-pressed is set to yes to indicate that the note is playing so we don't start it again next time this is called.
Web audio spatialization basics - Web APIs
we can keep it as this: const maxdistance = 10000; there's also a
reference distance (refdistance), which is used by the distance models.
...first, we'll get
references to the elements we want to move, then we'll store
references to the values we'll change when we set up css transforms to actually do the movement.
...is with positive angle increment z = panner.orientationz.value*math.cos(q) - panner.orientationy.value*math.sin(q); y = panner.orientationz.value*math.sin(q) + panner.orientationy.value*math.cos(q); x = panner.orientationx.value; panner.orientationx.value = x; panner.orientationy.value = y; panner.orientationz.value = z; break; one last thing — we need to update the css and keep a
reference of the last move for the mouse event.
window.cancelIdleCallback() - Web APIs
full support 47edge full support 79firefox full support 55 full support 55 full support 53disabled disabled from version 53: this feature is behind the dom.requestidlecallback.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera full support yessafari no support nowebview android full support 47chrome android full support 47firefox android full support 55 full support 55 full support 53disabled disabled from version 53: this feature is behind the dom.requestidlecallback.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android full support yessafari ios no support nosamsung internet android full support 5.0legend full support full support no support no supportexperimental.
Window.event - Web APIs
12firefox full support 63notes disabled full support 63notes disabled notes this was briefly enabled by default in 65, then removed again while related compatibility issues are sorted out (see bug 1520756).disabled from version 63: this feature is behind the dom.window.event.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie full support 4opera full support 7safari full support 1.1webview android full support 1chrome android full support 18firefox android full support 63notes disabled full support 63notes disabled notes this was briefly enabled by default in 65, then removed again while related compatibility issues are sorted out (see bug 1520756).disabled from version 63: this feature is behind the dom.window.event.enabled p
reference (needs to be set t...
...to change p
references in firefox, visit about:config.opera android full support 10.1safari ios full support 1samsung internet android full support 1.0legend full support full supportsee implementation notes.see implementation notes.user must explicitly enable this feature.user must explicitly enable this feature.
WindowOrWorkerGlobalScope.setTimeout() - Web APIs
this issue is explained in detail in the javascript
reference.
... note: the minimum delay, dom_min_timeout_value, is 4 ms (stored in a p
reference in firefox: dom.min_timeout_value), with a dom_clamp_timeout_nesting_level of 5.
... firefox implements this behavior since version 5 (see bug 633421, the 1000ms constant can be tweaked through the dom.min_background_timeout_value p
reference).
XRFrame - Web APIs
events which communicate the tracking state of objects also provide an xrframe
reference as part of their structure.
... in addition to providing a
reference to the xrsession for which this frame is to be rendered, the getviewerpose() method is provided to obtain the xrviewerpose describing the viewer's position and orientation in space, and getpose() can be used to create an xrpose describing the relative position of one xrspace relative to another.
... getviewerpose() returns an xrviewerpose describing the viewer's position and orientation in a given xr
referencespace.
XRInputSource.targetRaySpace - Web APIs
the read-only xrinputsource property targetrayspace returns an xrspace (typically an xr
referencespace) representing the position and orientation of the target ray in the virtual space.
... syntax let targetrayspace = xrinputsource.targetrayspace; value an xrspace object—typically an xr
referencespace or xrbounded
referencespace—which represents the position and orientation of the input controller's target ray in virtual space.
...this shared space represents the same location as the space returned by the xrsession method request
referencespace(), but is maintained as a different object to allow for future enhancements to the api.
XRRigidTransform() - Web APIs
examples in this example, the beginning of the animation of a scene is shown, starting with a request for a
reference space of a given type, then shifting the coordinate system based on a transform before requesting the first animation frame.
... let animationframerequestid = 0; xrsession.request
referencespace("local-floor") .then((refspace) => { xr
referencespace = refspace.getoffset
referencespace( new xrrigidtransform(viewerposition, viewerorientation)); animationframerequestid = xrsession.requestanimationframe(drawframe); }); after requesting a
reference space of type local-floor, the returned promise is eventually resolved, at which time we receive a new
reference space object, refspace.
... after creating an xrrigidtransform from the viewer's initial position and orientation, we pass the new transform into getoffset
referencespace() to create another
reference space, now offset so that its origin is located at the same place in space as the coordinates given by viewerposition, with the orientation also revised in the same fashion.
XRSession - Web APIs
request
referencespace() requests that a new xr
referencespace of the specified type be created.
... returns a promise which resolves with the xr
referencespace or xrbounded
referencespace which was requested, or throws a notsupportederror if the requested space type isn't supported by the device.
... const xr = navigator.xr; if (xr) { xr.requestsession("inline").then((xrsession) => { xrsession.request
referencespace("local").then((xr
referencespace) => { xrsession.requestanimationframe((time, xrframe) => { let viewer = xrframe.getviewerpose(xr
referencespace); gl.bindframebuffer(xrwebgllayer.framebuffer); for (xrview of viewer.views) { let xrviewport = xrwebgllayer.getviewport(xrview); gl.viewport(xrviewport.x, xrviewport.y, xrviewp...
Web APIs
csskeyframerule csskeyframesrule csskeywordvalue cssmathproduct cssmathsum cssmathvalue cssmediarule cssnamespacerule cssnumericvalue cssomstring csspagerule csspositionvalue cssprimitivevalue csspseudoelement cssrule cssrulelist cssstyledeclaration cssstylerule cssstylesheet cssstylevalue csssupportsrule cssunitvalue cssunparsedvalue cssvalue cssvaluelist cssvariable
referencevalue cache cachestorage canvascapturemediastreamtrack canvasgradient canvasimagesource canvaspattern canvasrenderingcontext2d caretposition channelmergernode channelsplitternode characterdata childnode client clients clipboard clipboardevent clipboarditem closeevent comment compositionevent constantsourcenode constrainboolean constraindomstring constraindouble constrainulong con...
...ent svgrect svgrectelement svgrenderingintent svgsvgelement svgscriptelement svgsetelement svgsolidcolorelement svgstopelement svgstringlist svgstylable svgstyleelement svgswitchelement svgsymbolelement svgtrefelement svgtspanelement svgtests svgtextcontentelement svgtextelement svgtextpathelement svgtextpositioningelement svgtitleelement svgtransform svgtransformlist svgtransformable svguri
reference svgunittypes svguseelement svgvkernelement svgviewelement svgzoomandpan screen screenorientation scriptprocessornode scrolltooptions securitypolicyviolationevent selection sensor sensorerrorevent serviceworker serviceworkercontainer serviceworkerglobalscope serviceworkermessageevent serviceworkerregistration serviceworkerstate shadowroot sharedworker sharedworkerglobalscope slottable ...
...wclient windoweventhandlers windoworworkerglobalscope worker workerglobalscope workerlocation workernavigator worklet writablestream writablestreamdefaultcontroller writablestreamdefaultwriter x xdomainrequest xmldocument xmlhttprequest xmlhttprequesteventtarget xmlhttprequestresponsetype xmlserializer xpathevaluator xpathexception xpathexpression xpathnsresolver xpathresult xrbounded
referencespace xrenvironmentblendmode xreye xrframe xrframerequestcallback xrhandedness xrinputsource xrinputsourcearray xrinputsourceevent xrinputsourceeventinit xrinputsourceschangeevent xrinputsourceschangeeventinit xrpermissiondescriptor xrpermissionstatus xrpose xr
referencespace xr
referencespaceevent xr
referencespaceeventinit xr
referencespacetype xrrenderstate xrrenderstateinit xrrigidtransform xr...
ARIA: figure role - Accessibility
you could add an id to an element containing content that describes the figure, and then
reference that id inside an appropriate attribute on the figure to associate the figure with the label: <div role="figure" aria-labelledby="figure-1"> ...
...</figure> generally, you should
reference the figure from the main text, but the figure need not be displayed at the same location as the referencing element.
... associated wai-aria roles, states, and properties aria-describedby the id of an element containing
reference text serving as a caption.
ARIA: checkbox role - Accessibility
<span role="checkbox" aria-checked="false" tabindex="0" aria-labelledby="chk1-label"> </span> <label id="chk1-label">remember my p
references</label> the first rule of aria is if a native html element or attribute has the semantics and behavior you require, use it instead of re-purposing an element and adding aria.
... instead use the native html checkbox of <input type="checkbox">, which natively provides all the functionality required: <input type="checkbox" id="chk1-label"> <label for="chk1-label">remember my p
references</label> description the native html checkbox form control can only have two checked states ("checked" or "not checked"), with an indeterminate state settable via javascript.
... html <span role="checkbox" id="chkpref" aria-checked="false" onclick="changecheckbox()" onkeypress="changecheckbox()" tabindex="0" aria-labelledby="chk1-label"></span> <label id="chk1-label" onclick="changecheckbox()" onkeypress="changecheckbox()">remember my p
references</label> css [role="checkbox"] { padding:5px; } [aria-checked="true"]::before { content: "[x]"; } [aria-checked="false"]::before { content: "[ ]"; } javascript function changecheckbox(event) { let item = document.getelementbyid('chkpref'); switch(item.getattribute('aria-checked')) { case "true": item.setattribute('aria-checked', "false"); ...
Web accessibility for seizures and physical reactions - Accessibility
an author might choose to adjust the visuals and/or layout of the page depending on the display technology to increase the appeal or improve legibility." user p
reference media features (planned in media queries level 5) user p
reference media features in w3c editor's draft media queries level 5 are especially promising in providing user control over media.
... here are some highlights: inverted-colors according to the section, user p
reference media features , "the inverted-colors media feature indicates whether the content is displayed normally, or whether colors have been inverted." forced-colors in forced-colors-mode, the user agent enforces the user's preferred color palette on the page, overriding the author's chosen colors.
...working draft personalization tools 1.0 working draft three flashes or below threshhold understanding sc 2.3.1 understanding wcag 2.0 (older, but contains some explanations of
references made in the wcag 2.1 criteria) three flashes or below threshold understanding success criterion 2.3.1 understanding wcag 2.1 understanding success criteria 1.4.3: contrast (minimum) web accessibility initiative (wai) web animations model w3c working draft web content accessibility guidelines (wcag) 2.0 definition of relative luminance web content accessibility guidelines (wcag) 2.1 contr...
Text labels and names - Accessibility
select an area for more information on that area." /> <map id="map1" name="map1"> <area shape="rect" coords="0,0,30,30" href="
reference.html" alt="
reference" /> <area shape="rect" coords="34,34,100,100" href="media.html" alt="audio visual lab" /> </map> see the <area> element
reference page for a live interactive example.
... examples the title for the
reference article about the <title> element is as follows: <title><title>: the document title element - html: hypertext markup language</title> another example might look like so: <title>fill in your details to register — mygov services</title> to help the user, you can update the page title value to reflect significant page state changes (such as form validation problems): <title>2 errors —...
...end> <input type="radio" id="kraken" name="monster"> <label for="kraken">kraken</label><br/> <input type="radio" id="sasquatch" name="monster"> <label for="sasquatch">sasquatch</label><br/> <input type="radio" id="mothman" name="monster"> <label for="mothman">mothman</label> </fieldset> </form> you can see a live, interactive version of this example on the <fieldset>
reference page.
::slotted() - CSS: Cascading Style Sheets
50edge full support 79firefox full support 63 full support 63 no support 59 — 63disabled disabled from version 59 until version 63 (exclusive): this feature is behind the dom.webcomponents.shadowdom.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera full support 37safari full support 10webview android full support 50chrome android full support 50firefox android full support 63 full support 63 no support 59 — 63disabled disabled from version 59 until version 63 (exclusive): this feature is behind the dom.webcomponents.shadowdom.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android full support 37safari ios full support 10samsung internet android full support 5.0legend full support full support no support no supportuser must explicitly enable this feature.user must explicitly enable this feature.
:host - CSS: Cascading Style Sheets
54edge full support 79firefox full support 63 full support 63 no support 61 — 63disabled disabled from version 61 until version 63 (exclusive): this feature is behind the dom.webcomponents.shadowdom.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera full support 41safari full support 10webview android full support 54chrome android full support 54firefox android full support 63 full support 63 no support 61 — 63disabled disabled from version 61 until version 63 (exclusive): this feature is behind the dom.webcomponents.shadowdom.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android full support 41safari ios full support 10samsung internet android full support 6.0legend full support full support no support no supportuser must explicitly enable this feature.user must explicitly enable this feature.
Using Media Queries for Accessibility - CSS: Cascading Style Sheets
also, this method of switching animation off according to the user's p
reference can also benefit users with low battery or low-end phones or computers.
... syntax no-p
reference indicates that the user has made no p
reference known to the system.
... example this example has an annoying animation unless you turn on reduce motion in your accessibility p
references.
font-variant-caps - CSS: Cascading Style Sheets
rt 52edge full support 79firefox full support 34 full support 34 no support 24 — 34disabled disabled from version 24 until version 34 (exclusive): this feature is behind the layout.css.font-features.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera full support 39safari no support nowebview android full support 52chrome android full support 52firefox android full support 34 full support 34 no support 24 — 34disabled disabled from version 24 until version 34 (exclusive): this feature is behind the layout.css.font-features.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android full support 41safari ios no support nosamsung internet android full support 6.0legend full support full support no support no supportuser must explicitly enable this feature.user must explicitly enable this feature.
font-variant-position - CSS: Cascading Style Sheets
port noedge no support nofirefox full support 34 full support 34 no support 24 — 34disabled disabled from version 24 until version 34 (exclusive): this feature is behind the layout.css.font-features.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera no support nosafari no support nowebview android no support nochrome android no support nofirefox android full support 34 full support 34 no support 24 — 34disabled disabled from version 24 until version 34 (exclusive): this feature is behind the layout.css.font-features.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android no support nosafari ios no support nosamsung internet android no support nolegend full support full support no support no supportuser must explicitly enable this feature.user must explicitly enable this feature.
font-variant - CSS: Cascading Style Sheets
rt 52edge full support 79firefox full support 34 full support 34 no support 33 — 34disabled disabled from version 33 until version 34 (exclusive): this feature is behind the layout.css.font-features.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera full support 39safari full support 9.1webview android full support 52chrome android full support 52firefox android full support 34 full support 34 no support 33 — 34disabled disabled from version 33 until version 34 (exclusive): this feature is behind the layout.css.font-features.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android full support 41safari ios full support 9.3samsung internet android full support 6.0greek accented characterschrome no support nonotes no support nonotes notes some operating systems may correctly omit accents in all-uppercase greek text.edge no support nonotes no support nonotes notes some operating systems may correctly omit accents in all-uppercase greek text.firefox no support ...
mask - CSS: Cascading Style Sheets
s */ /* global values */ mask: inherit; mask: initial; mask: unset; /* multiple masks */ mask: url(masks.svg#star) left / 16px repeat-y, /* element within svg graphic is used as a mask on the left-hand side with a width of 16px */ url(masks.svg#circle) right / 16px repeat-y; /* element within svg graphic is used as a mask on the right-hand side with a width of 16px */ values <mask-
reference> sets the mask image source.
...eas each of the properties of the shorthand:mask-image: discretemask-mode: discretemask-repeat: discretemask-position: repeatable list of simple list of length, percentage, or calcmask-clip: discretemask-origin: discretemask-size: repeatable list of simple list of length, percentage, or calcmask-composite: discretecreates stacking contextyes formal syntax <mask-layer>#where <mask-layer> = <mask-
reference> | <position> [ / <bg-size> ]?
... | <repeat-style> | <geometry-box> | [ <geometry-box> | no-clip ] | <compositing-operator> | <masking-mode>where <mask-
reference> = none | <image> | <mask-source><position> = [ [ left | center | right ] | [ top | center | bottom ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ]?
shape-outside - CSS: Cascading Style Sheets
if a <shape-box> is also supplied, it defines the
reference box for the <basic-shape> function.
... otherwise, the
reference box defaults to margin-box.
... both shapes must use the same
reference box.
<content>: The Shadow DOM Content Placeholder element (obsolete) - HTML: Hypertext Markup Language
g internetcontent deprecatednon-standardchrome full support 35edge full support 79firefox no support 33 — 59disabled no support 33 — 59disabled disabled from version 33 until version 59 (exclusive): this feature is behind the dom.webcomponents.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.ie no support noopera full support 26safari no support nowebview android full support 37chrome android full support 37firefox android no support 33 — 59disabled no support 33 — 59disabled disabled from version 33 until version 59 (exclusive): this feature is behind the dom.webcomponents.enabled p
reference (needs to be set to true).
... to change p
references in firefox, visit about:config.opera android ?
<link>: The External Resource Link element - HTML: Hypertext Markup Language
as you'll see from our link types
reference, there are many different kinds of relationship.
...priority hints are delegated using the values: auto: indicates no p
reference.
...the common use of this attribute is to define the type of stylesheet being
referenced (such as text/css), but given that css is the only stylesheet language used on the web, not only is it possible to omit the type attribute, but is actually now recommended practice.
Content negotiation - HTTP
it is comma-separated lists of mime types, each combined with a quality factor, a parameter indicating the relative degree of p
reference between the different mime types.
... the accept-language header the accept-language header is used to indicate the language p
reference of the user.
...a default value is often set according the language of the graphical interface of the user agent, but most browsers allow to set different language p
references.
Using HTTP cookies - HTTP
cookies are mainly used for three purposes: session management logins, shopping carts, game scores, or anything else the server should remember personalization user p
references, themes, and other settings tracking recording and analyzing user behavior cookies were once used for general client-side storage.
...for details about the header attributes mentioned below, refer to the set-cookie
reference article.
... for more information about cookie prefixes and the current state of browser support, see the prefixes section of the set-cookie
reference article.
Cross-Origin-Opener-Policy - HTTP
if a cross-origin document with coop is opened in a new window, the opening document will not have a
reference to it, and the window.opener property of the new window will be null.
... this allows you to have more control over
references to a window than rel=noopener, which only affects outgoing navigations.
... same-origin-allow-popups retains
references to newly opened windows or tabs which either don't set coop or which opt out of isolation by setting a coop of unsafe-none.
DNT - HTTP
the dnt (do not track) request header indicates the user's tracking p
reference.
... null the user has not specified a p
reference about tracking.
... examples reading do not track status from javascript the user's dnt p
reference can also be read from javascript using the navigator.donottrack property: navigator.donottrack; // "0" or "1" specifications specification status comment tracking p
reference expression (dnt)the definition of 'dnt header field for http requests' in that specification.
Upgrade - HTTP
header type request header, response header forbidden header name yes overview the upgrade header field may be used by clients to invite a server to switch to one (or more) of the listed protocols, in descending p
reference order.
... protocols are listed, comma-separated, in order of descending p
reference.
...the protocols are listed in order of descending p
reference.
A re-introduction to JavaScript (JS tutorial) - JavaScript
function personfullname() { return this.first + ' ' + this.last; } function personfullnamereversed() { return this.last + ', ' + this.first; } function person(first, last) { this.first = first; this.last = last; this.fullname = personfullname; this.fullnamereversed = personfullnamereversed; } that's better: we are creating the method functions only once, and assigning
references to them inside the constructor.
...normally javascript's garbage collector would clean up the scope object created for makeadder() at this point, but the returned function maintains a
reference back to that scope object.
... as a result, the scope object will not be garbage-collected until there are no more
references to the function object that makeadder() returned.
Indexed collections - JavaScript
it returns a
reference to the array.
... let myarray = new array('1', '2', '3') myarray.reverse() // transposes the array so that myarray = ["3", "2", "1"] sort() sorts the elements of an array in place, and returns a
reference to the array.
...loating point number (16 significant digits e.g., 1.123...15) unrestricted double double bigint64array -263 to 263-1 8 64-bit two's complement signed integer bigint int64_t (signed long long) biguint64array 0 to 264-1 8 64-bit unsigned integer bigint uint64_t (unsigned long long) for more information, see javascript typed arrays and the
reference documentation for the different typedarray objects.
Introduction - JavaScript
javascript
reference provides detailed
reference material for javascript.
...once you have a firm grasp of the fundamentals, you can use the javascript
reference to get more details on individual objects and statements.
...type safety means, for instance, that you can't cast a java integer into an object
reference or access private memory by corrupting java bytecodes.
Regular expression syntax cheatsheet - JavaScript
a back
reference to the last substring matching the n parenthetical in the regular expression (counting left parentheses).
... \k<name> a back
reference to the last substring matching the named capture group specified by <name>.
... \k is used literally here to indicate the beginning of a back
reference to a named capture group.
Groups and ranges - JavaScript
a back
reference to the last substring matching the n parenthetical in the regular expression (counting left parentheses).
... \k<name> a back
reference to the last substring matching the named capture group specified by <name>.
... \k is used literally here to indicate the beginning of a back
reference to a named capture group.
Arrow function expressions - JavaScript
this code sample using chrome 81 demonstrates that arrow functions allow the creation of global variables in such situations (both for a concise body and for a normal function body): > f1 = x => { y = x; console.log(`x: ${x}, y: ${y}`); return x + 1; } x => { y = x; console.log(`x: ${x}, y: ${y}`); return x + 1; } > y vm51587:1 uncaught
referenceerror: y is not defined at <anonymous>:1:1 (anonymous) @ vm51587:1 > f1(3) vm51533:1 x: 3, y: 3 4 > y 3 > f2 = x => { 'use strict'; z = x; console.log(`x: ${x}, z: ${z}`); return x + 1; } x => { 'use strict'; z = x; console.log(`x: ${x}, z: ${z}`); return x + 1; } > z vm51757:1 uncaught
referenceerror: z is not defined at <anonymous>:1:1 (anonymous) @ vm51757:1 > f2(4) vm51712:1 uncau...
...ght
referenceerror: z is not defined at f2 (<anonymous>:1:29) at <anonymous>:1:1 f2 @ vm51712:1 (anonymous) @ vm51800:1 > f3 = x => (z1 = x + 1) x => (z1 = x + 1) > z1 vm51891:1 uncaught
referenceerror: z1 is not defined at <anonymous>:1:1 (anonymous) @ vm51891:1 > f3(10) 11 > z1 11 f2 illustrates that when explicitly setting the arrow function to apply strict mode, it does throw an error when attempting to assign an undeclared variable.
...thus, in this example, arguments is simply a
reference to the arguments of the enclosing scope: var arguments = [1, 2, 3]; var arr = () => arguments[0]; arr(); // 1 function foo(n) { var f = () => arguments[0] + n; // foo's implicit arguments binding.
Functions - JavaScript
however, object
references are values, too, and they are special: if the function changes the referred object's properties, that change is visible outside the function, as shown in the following example: /* declare the function 'myfunc' */ function myfunc(theobject) { theobject.brand = "toyota"; } /* * declare variable 'mycar'; * create and initialize a new object; * assign
reference to it to 'mycar' */ var mycar ...
...= { brand: "honda", model: "accord", year: 1998 }; /* logs 'honda' */ console.log(mycar.brand); /* pass object
reference to the function */ myfunc(mycar); /* * logs 'toyota' as the value of the 'brand' property * of the object, as changed to by the function.
... if ('function' === typeof window.nofunc) { // use nofunc() } else { // do something else } note that in the if test, a
reference to nofunc is used—there are no brackets "()" after the function name so the actual function is not called.
Array.prototype.reverse() - JavaScript
description the reverse method transposes the elements of the calling array object in place, mutating the array, and returning a
reference to the array.
...the call to reverse() returns a
reference to the reversed array a.
...the call to reverse() returns a
reference to the reversed array-like object a.
Function.name - JavaScript
= function() {}; let object = { somemethod: function() {} }; console.log(f.name); // "f" console.log(object.somemethod.name); // "somemethod" you can define a function with a name in a function expression: let object = { somemethod: function object_somemethod() {} }; console.log(object.somemethod.name); // logs "object_somemethod" try { object_somemethod } catch(e) { console.log(e); } //
referenceerror: object_somemethod is not defined the name property is read-only and cannot be changed by the assigment operator: example below contradicts with what is said at the beginning of this section and doesn't work as described.
... therefore we can't obtain the class name for virtually any class with a static method property name(): class foo { constructor() {} static name() {} } with a static name() method foo.name no longer holds the actual class name but a
reference to the name() function object.
... above class definition in es2015 syntax will behave in chrome or firefox similar to the following snippet in es5 syntax: function foo() {} object.defineproperty(foo, 'name', { writable: true }); foo.name = function() {}; trying to obtain the class of fooinstance via fooinstance.constructor.name won't give us the class name at all but a
reference to the static class method.
Object.prototype.constructor - JavaScript
the constructor property returns a
reference to the object constructor function that created the instance object.
... note that the value of this property is a
reference to the function itself, not a string containing the function's name.
... 1, // remains unchanged new object(), {}, new regexp(), /(?:)/, new string(), 'test' // remains unchanged ] for (let i = 0; i < types.length; i++) { types[i].constructor = type types[i] = [types[i].constructor, types[i] instanceof type, types[i].tostring()] } console.log(types.join('\n')) this example displays the following output (comments added for
reference): function type() {},false, // new array() function type() {},false, // [] function type() {},false,false // new boolean() function boolean() { [native code] },false,true // true function type() {},false,mon sep 01 2014 16:03:49 gmt+0600 /...
Object.freeze() - JavaScript
obj1 = { internal: {} }; object.freeze(obj1); obj1.internal.a = 'avalue'; obj1.internal.a // 'avalue' to be a constant object, the entire
reference graph (direct and indirect
references to other objects) must
reference only immutable frozen objects.
... the object being frozen is said to be immutable because the entire object state (values and
references to other objects) within the whole object is fixed.
...use the pattern on a case-by-case basis based on your design when you know the object contains no cycles in the
reference graph, otherwise an endless loop will be triggered.
Object.prototype.toSource() - JavaScript
limitations on cyclical objects in the case of objects that contain
references to themselves, e.g.
... a cyclically linked list or a tree that can be traversed both ways, tosource() will not recreate the self-
reference, as of firefox 24.
... for example: var obj1 = {}; var obj2 = { a: obj1 }; obj1.b = obj2; console.log('cyclical: ' + (obj1.b.a == obj1)); var objsource = obj1.tosource(); // returns "({b:{a:{}}})" obj1 = eval(objsource); console.log('cyclical: ' + (obj1.b.a == obj1)); if a cyclical structure is employed and tosource() is needed, the object must provide an override to tosource(), either using a
reference to a constructor or providing an anonymous function.
WebAssembly.Table - JavaScript
the webassembly.table() object is a javascript wrapper object — an array-like structure representing a webassembly table, which stores function
references.
... note: tables can currently only store function
references, but this will likely be expanded in the future.
... webassembly.instantiatestreaming(fetch('table2.wasm'), importobject) .then(function(obj) { console.log(tbl.length); console.log(tbl.get(0)()); console.log(tbl.get(1)()); }); note how you've got to include a second function invocation operator at the end of the accessor to actually invoke the
referenced function and log the value stored inside it (e.g.
typeof - JavaScript
(
reference) a fix was proposed for ecmascript (via an opt-in), but was rejected.
... but with the addition of block-scoped let and statements/const using typeof on let and const variables (or using typeof on a class) in a block before they are declared will throw a
referenceerror.
... typeof undeclaredvariable === 'undefined'; typeof newletvariable; //
referenceerror typeof newconstvariable; //
referenceerror typeof newclass; //
referenceerror let newletvariable; const newconstvariable = 'hello'; class newclass{}; exceptions all current browsers expose a non-standard host object document.all with type undefined.
Strict mode - JavaScript
assignments, which would accidentally create global variables, instead throw an error in strict mode: 'use strict'; // assuming no global variable mistypedvariable exists mistypevariable = 17; // this line throws a
referenceerror due to the // misspelling of variable second, strict mode makes assignments which would otherwise silently fail to throw an exception.
...moreover, arguments.callee substantially hinders optimizations like inlining functions, because it must be made possible to provide a
reference to the un-inlined function if arguments.callee is accessed.
... boxed into an object, and if unspecified, this will be undefined: 'use strict'; function fun() { return this; } console.assert(fun() === undefined); console.assert(fun.call(2) === 2); console.assert(fun.apply(null) === null); console.assert(fun.call(undefined) === undefined); console.assert(fun.bind(true)() === true); that means, among other things, that in browsers it's no longer possible to
reference the window object through this inside a strict mode function.
Web media technologies
references html these articles cover html features for media developers.
... <track> the html <track> element can be placed within an <audio> or <video> element to provide a
reference to a webvtt format subtitle or caption track to be used when playing the media.
... media capture and streams api a
reference for the api which makes it possible to stream, record, and manipulate media both locally and across a network.
Populating the page: how browsers work - Web Performance
however, dns lookups must be done for each unique hostname the requested page
references.
...thanks to the preload scanner, we don't have to wait until the parser finds a
reference to an external resource to request it.
...different devices and different desktop p
references mean an unlimited number of differing viewport sizes.
Progressive loading - Progressive web apps (PWAs)
when you include <img> elements in your html, then every
referenced image will be fetched and downloaded during initial website access.
... placeholder image instead of having all the screenshots of games
referenced in <img> element src attributes, which will force the browser to download them automatically, we can do it selectively via javascript.
... loading via javascript the app.js file processes the data-src attributes like so: let imagestoload = document.queryselectorall('img[data-src]'); const loadimages = (image) => { image.setattribute('src', image.getattribute('data-src')); image.onload = () => { image.removeattribute('data-src'); }; }; the imagestoload variable contains
references to all the images, while the loadimages function moves the path from data-src to src.
cursor - SVG: Scalable Vector Graphics
« svg attribute
reference home the cursor attribute specifies the mouse cursor displayed when the mouse pointer is over an element.
... usage context categories presentation attribute value [[<funciri>,]* [ auto | crosshair | default | pointer | move | e-resize | ne-resize | nw-resize | n-resize | se-resize | sw-resize | s-resize | w-resize| text | wait | help ]] | inherit animatable yes normative document svg 1.1 (2nd edition) <funciri> functional notation for a
reference.
... the syntax for this
reference is the same as the css uri.
externalResourcesRequired - SVG: Scalable Vector Graphics
the externalresourcesrequired attribute specifies whether
referenced resources that are not part of the current document are required for proper rendering of the given container or graphics element.
... this attribute applies to all types of resource
references, including style sheets, color profiles and fonts specified by a
reference using a <font-face> element or a css @font-face specification.
... because setting externalresourcesrequired="true" on a container element will have the effect of disabling progressive display of the contents of that container, if that container includes elements that
reference external resources, authors should avoid simply setting externalresourcesrequired="true" on the outermost <svg> element on a universal basis.
glyph-orientation-horizontal - SVG: Scalable Vector Graphics
when the
reference orientation direction is horizontal and the glyph-orientation-horizontal results in an orientation angle that is a multiple of 180 degrees, then the current text position is incremented according to the horizontal metrics of the glyph.
... a value of 0deg indicates that all glyphs are set with the top of the glyphs oriented towards the
reference orientation.
... a value of 90deg indicates an orientation of 90 degrees clockwise from the
reference orientation.
in2 - SVG: Scalable Vector Graphics
value sourcegraphic | sourcealpha | backgroundimage | backgroundalpha | fillpaint | strokepaint | <filter-primitive-
reference> default value sourcegraphic for first filter primitive, otherwise result of previous filter primitive animatable yes fecomposite for <fecomposite>, in2 defines the second input image to the compositing operation.
... value sourcegraphic | sourcealpha | backgroundimage | backgroundalpha | fillpaint | strokepaint | <filter-primitive-
reference> default value sourcegraphic for first filter primitive, otherwise result of previous filter primitive animatable yes fedisplacementmap for <fedisplacementmap>, in2 defines the second input image, which is used to displace the pixels in the image defined in the in attribute.
... value sourcegraphic | sourcealpha | backgroundimage | backgroundalpha | fillpaint | strokepaint | <filter-primitive-
reference> default value sourcegraphic for first filter primitive, otherwise result of previous filter primitive animatable yes specifications specification status comment filter effects module level 1the definition of 'in2 for <fedisplacementmap>' in that specification.
unicode - SVG: Scalable Vector Graphics
it is often useful to refer to characters using xml character
references expressed in hexadecimal notation or decimal notation.
... for example, unicode="ffl" could be expressed as xml character
references in hexadecimal notation as unicode="ffl" or in decimal notation as unicode="ffl".
...if the attribute is not provided for a given <glyph>, then the only way to use this glyph is via an <altglyph>
reference.
<altGlyph> - SVG: Scalable Vector Graphics
value type: <string> ; default value: none; animatable: no xlink:href an <iri>
reference either to a <glyph> element in an svg document or to an <altglyphdef> element.
... if the
reference is to a <glyph> element and that glyph is available, then that glyph is rendered instead of the character(s) that are inside of the <altglyph> element.
... if the
reference is to an <altglyphdef> element, then if an appropriate set of alternate glyphs is located from processing the <altglyphdef> element, then those alternate glyphs are rendered instead of the character(s) that are inside of the <altglyph> element.
<pattern> - SVG: Scalable Vector Graphics
the <pattern> is
referenced by the fill and/or stroke attributes on other graphics elements to fill or stroke those elements with the
referenced pattern.
... value type: <length>|<percentage>; default value: 0; animatable: yes href this attribute
reference a template pattern that provides default values for the <pattern> attributes.
... value type: <length>|<percentage> ; default value: 0; animatable: yes xlink:href deprecated since svg 2 this attribute
reference a template pattern that provides default values for the <pattern> attributes.
<symbol> - SVG: Scalable Vector Graphics
; default value: xmidymid meet; animatable: yes refx this attribute determines the x coordinate of the
reference point of the symbol.
... value type: <length>|<percentage>|left|center|right ; default value: 0; animatable: yes refy this attribute determines the y coordinate of the
reference point of the symbol.
...only instances of a <symbol> element (i.e., a
reference to a <symbol> by a <use> element) are rendered.
SVG 2 support in Mozilla - SVG: Scalable Vector Graphics
ved 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 p
reference 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 svgelement.xmlspace removed implementation status unknown svgviewspec removed impl...
...ation status unknown defer keyword removed from preserveaspectratio attribute removed (bug 1280425) added non-scaling-size, non-rotation and fixed-position keywords for vector-effect property not implemented yet (bug 1318208) vector-effect has no effect within 3d rendering context implementation status unknown consider clip and overflow on svg document
referenced by <image> implementation status unknown paths change notes b and b path commands implementation status unknown z and z path commands to add path coordinate data to previous command implementation status unknown not render <path>, <polygon> and <polyline> with no data implementation status unknown svgpathseg*, svganimatedpat...
... shape-inside property inplementation status unknown shape-subtract property inplementation status unknown white-space implementation status unknown deprecated xml:space attribute implementation status unknown kerning property removed implementation status unknown path attribute for <textpath> implemented (bug 1446617)
reference basic shapes to <textpath> implementation status unknown side attribute for <textpath> implemented (bug 1446650) render characters for one loop of a single closed path, effected by the startoffset attribute and text-anchor property implementation status unknown <tref> removed implementation status unknown <altglyph>, <altglyphdef>, <altglyphitem> an...
SVG: Scalable Vector Graphics
documentation svg element
reference details about each svg element.
... svg attribute
reference details about each svg attribute.
... svg dom interface
reference details about the svg dom api, for interaction with javascript.
Same-origin policy - Web security
you may see this
referenced as the "scheme/host/port tuple", or just "tuple".
... cross-origin script api access javascript apis like iframe.contentwindow, window.parent, window.open, and window.opener allow documents to directly
reference each other.
... when two documents do not have the same origin, these
references provide very limited access to window and location objects, as described in the next two sections.
Web Components
reference custom elements customelementregistry contains functionality related to custom elements, most notably the customelementregistry.define() method used to register new custom elements so they can then be used in your document.
... window.customelements returns a
reference to the customelementregistry object.
...the mixin defines one attribute, slotable.assignedslot, which returns a
reference to the slot the node is inserted in.
Web technology for developers
documentation for web developers web developer
reference a list of all
references for web technologies, including those for html, css, and so on.
... web technology
references web apis
reference material for each of the individual apis that comprise the web's powerful scriptability, including the dom and all of the related apis and interfaces you can use to build web content and apps.
... accessibilitycss houdinicss: cascading style sheetsdemos of open web technologiesdeveloper guidesexsltevent
referencehtml: hypertext markup languagehttpjavascriptmathmlopensearch description formatprivacy, permissions, and information securityprogressive web apps (pwas)svg: scalable vector graphicstutorialsweb apisweb componentsweb performanceweb app manifestsweb media technologiesweb securityweb technology
referencexml: extensible markup languagexpathxslt: extensible stylesheet language transformations ...
Exported WebAssembly functions - WebAssembly
we then get the function exported from the module, retrieve the functions it
references via tbl.get() and log the result of invoking each one to the console.
... next, we use set() to make the othertable table contain
references to the same functions as the tbl table.
... to prove this, we then retrieve these
references back from othertable and print their results to console too, which gives the same results.
Content Scripts - Archive of obsolete content
at this point, content scripts are able to interact with the dom content, but externally-
referenced stylesheets and images may not have finished loading.
...ipt.js") }); worker.port.on("my-script-response", function(response) { console.log(response); }); worker.port.emit("my-addon-message", "message from the add-on"); } // content-script.js self.port.on("my-addon-message", handlemessage); function handlemessage(message) { alert(message); self.port.emit("my-script-response", "response from content script"); } the port api see the
reference page for the port object.
l10n - Archive of obsolete content
if this function can't find the string
referenced by the identifier parameter, it returns the identifier itself.
... returns string : the localized string
referenced by the identifier parameter passed in, or the identifier itself if no referent for the identifier can be found.
ui/sidebar - Archive of obsolete content
if you listen to attach, and in the listener take a
reference to the worker object that's passed into it, so you can send it messages later on, then you should probably listen to detach, and in its handler, remove your
reference to the worker.
... here's an add-on that adds each worker to an array in the attach handler, and makes sure that its
references are cleaned up by listening to detach and removing workers as they are detached: var workerarray = []; function attachworker(worker) { workerarray.push(worker); } function detachworker(worker) { var index = workerarray.indexof(worker); if(index != -1) { workerarray.splice(index, 1); } } var sidebar = require("sdk/ui/sidebar").sidebar({ id: 'my-sidebar', title: 'my sidebar', url: require("sdk/self").data.url("sidebar.html"), onattach: attachworker, ondetach: detachworker }); show this event is emitted when the sidebar is shown, as a result of any of the following: calling the sidebar's show() method, when the sidebar is not shown in the currently active window...
Chrome Authority - Archive of obsolete content
the sdk tools will emit a warning if it sees module code which
references components directly.
...this list is generated by scanning all included modules for require(xyz) statements and recording the particular "xyz" strings that they
reference.
Getting started (cfx) - Archive of obsolete content
there's comprehensive
reference documentation covering all the commands you can use and all the options they take.
...there's
reference documentation for all the high-level and low-level apis in the sdk.
Logging - Archive of obsolete content
see "logging levels" in the console
reference documentation for more information on this.
... learning more for the complete console api, see its api
reference.
Modifying Web Pages Based on URL - Archive of obsolete content
var pagemod = require("sdk/page-mod").pagemod({ include: "*", contentstyle: "body {" + " border: 5px solid green;" + "}" }); as with contentscript, there's a corresponding contentstylefile option that takes the url of a css file in your "data" directory; it's a good practice to use this option in p
reference to contentstyle if the css is even marginally complex.
... var pagemod = require("sdk/page-mod").pagemod({ include: "*", contentstylefile: require("sdk/self").data.url("my-style.css") }); or, from firefox 34, you can use the simpler version: var pagemod = require("sdk/page-mod").pagemod({ include: "*", contentstylefile: "./my-style.css" }); learning more to learn more about page-mod, see its api
reference page.
Canvas code snippets - Archive of obsolete content
this method gets a
reference to the iframe's window and draws this window to a canvas object.
...add a listener to the // frame's onload event iframe.addeventlistener('load', this.remotepageloaded, true); //append to the end of the page window.document.body.appendchild(iframe); return; }; remotecanvas.prototype.remotepageloaded = function() { // look back up the iframe by id var ldrframe = document.getelementbyid('test-iframe'); // get a
reference to the window object you need for the canvas // drawwindow method var remotewindow = ldrframe.contentwindow; //draw canvas var canvas = document.createelement('canvas'); canvas.style.width = remotecanvas.canvas_width + 'px'; canvas.style.height = remotecanvas.canvas_height + 'px'; canvas.width = remotecanvas.canvas_width; canvas.height = remotecanvas.canvas_height...
Finding window handles - Archive of obsolete content
aryname('objc')); // types let id = ctypes.voidptr_t; let sel = ctypes.voidptr_t; // constants let nil = ctypes.voidptr_t(0); //common functions let sel_registername = objc.declare('sel_registername', ctypes.default_abi, sel, ctypes.char.ptr); let objc_msgsend = objc.declare('objc_msgsend', ctypes.default_abi, id, id, sel, '...'); /* https://developer.apple.com/library/mac/documentation/cocoa/
reference/applicationkit/classes/nsapplication_class/index.html#//apple_ref/occ/instp/nsapplication/orderfront: * [nswindowptr orderfront:nil] */ var orderfront = sel_registername('orderfront:'); var nswindowptr = ctypes.voidptr_t(ctypes.uint64(nswindowstring)); var rez_orderfront = objc_msgsend(nswindowptr, orderfront, nil); console.log('rez_orderfront:', rez_orderfront, rez_orderfront.tostring()); ...
...mozilla developers have put the
reference to the gtkwindow* into the gdkwindow* "user data", as a back
reference.
IsDefaultNamespace - Archive of obsolete content
euri); } if (node.attributes.length) { for (var i=0; i < node.attributes.length; i++) { var att = node.attributes[i]; if (att.localname === 'xmlns') { return att.value === namespaceuri; } } } if (node.parentnode) { // entity
references may have to be skipped to get to it return isdefaultnamespace(node.parentnode, namespaceuri); } else { return false; // unknown; } case 9: // document_node return isdefaultnamespace(node.documentelement, namespaceuri); case 6: // entity_node case 12: // notation_node case 10: // docume...
...ype_node case 11: // document_fragment_node return false; // unknown case 2: // attribute_node: if (node.ownerelement ) { return isdefaultnamespace(node.ownerelement , namespaceuri); } else { return false; // unknown } default: if (node.parentnode) { // entity
references may have to be skipped to get to it return isdefaultnamespace(node.parentnode, namespaceuri); } else { return false; // unknown } } } ...
JS XPCOM - Archive of obsolete content
getting an xpcom service var p
references = components.classes["@mozilla.org/p
references-service;1"] .getservice(components.interfaces.nsiprefservice); you can then call any methods in the nsiprefservice interface on the p
references object.
...with the p
references service from the previous example we can do the following: var p
references = p
references.queryinterface(components.interfaces.nsiprefbranch2); this allows you to use the methods in the nsiprefbranch2 interface.
LookupNamespaceURI - Archive of obsolete content
ix == null) { // default namespace if (att.value) { return att.value; } return null; // unknown } } } if (node.parentnode && node.parentnode.nodetype !== 9) { // entity
references may have to be skipped to get to it return lookupnamespaceurihelper(node.parentnode, prefix); } return null; case 9: // document_node return lookupnamespaceurihelper(node.documentelement, prefix); case 6: // entity_node case 12: // notation_node case 10: // document_type_node ...
... case 11: // document_fragment_node return null; // unknown case 2: // attribute_node if (node.ownerelement) { return lookupnamespaceurihelper(node.ownerelement, prefix); } return null; // unknown default: // text_node (3), cdata_section_node (4), entity_
reference_node (5), // processing_instruction_node (7), comment_node (8) if (node.parentnode) { // entity
references may have to be skipped to get to it return lookupnamespaceurihelper(node.parentnode, prefix); } return null; // unknown } }; } }()); ...
LookupPrefix - Archive of obsolete content
de.documentelement); case 6: // node.entity_node case 12: // node.notation_node case 11: // node.document_fragment_node case 10: // node.document_type_node return null; // type is unknown case 2: // node.attribute_node if (node.ownerelement) { return _lookupnamespaceprefix(namespaceuri, node.ownerelement); } return null; default: if (node.parentnode) { // entity
references may have to be skipped to get to it return _lookupnamespaceprefix(namespaceuri, node.parentnode); } return null; } } // private function for lookupprefix only function _lookupnamespaceprefix (namespaceuri, originalelement) { var xmlnspattern = /^xmlns:(.*)$/; if (originalelement.namespaceuri && originalelement.namespaceuri === namespaceuri && originalelement.prefix && originale...
...hich doesn't support localname if (localname.indexof(':') !== -1) { // for firefox when in html mode localname = localname.substr(att.name.indexof(':')+1); } if ( xmlnspattern.test(att.name) && att.value === namespaceuri && lookupnamespaceuri(originalelement, localname) === namespaceuri ) { return localname; } } } if (originalelement.parentnode) { // entity
references may have to be skipped to get to it return _lookupnamespaceprefix(namespaceuri, originalelement.parentnode); } return null; } ...
Templates - Archive of obsolete content
this example and any others that
reference internal rdf datasources will only work if you load them from a chrome url.
...we can of course put more than one element inside a template and add the special rdf
references to the attributes on any of the elements.
Using nsIXULAppInfo - Archive of obsolete content
for example, firefox and thunderbird 1.0 stored their id in the app.id p
reference (and their version in app.version), so you could use code like this to find out what application you're running under: function getappid() { var id; if("@mozilla.org/xre/app-info;1" in components.classes) { // running under mozilla 1.8 or later id = components.classes["@mozilla.org/xre/app-info;1"] .getservice(components.interfaces.nsixulappinfo).id; } else { ...
... try { id = components.classes["@mozilla.org/p
references-service;1"] .getservice(components.interfaces.nsiprefbranch) .getcharpref("app.id"); } catch(e) { // very old version dump(e); } } return id; } alert(getappid()); see also mxr: nsixulappinfo.idl ...
bbox - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a horizontal box that is baseline aligned.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
box - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a container element which can contain any number of child elements.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
broadcaster - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a broadcaster is used when you want multiple elements to share one or more attribute values, or when you want elements to respond to a state change.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
broadcasterset - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a container element for broadcaster elements.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
column - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a single column in a columns element.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
columns - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] defines the columns of a grid.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
conditions - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] this element should appear directly inside a rule element and is used to define conditions for the rule.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
content - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] Éste elemento debería pertenecer a query ("consulta").
...s) atributos inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width propiedades tag type: tag name this may be set to a tag name.
dropmarker - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a dropmarker is a button with an arrow which will reveal more details when pressed.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties accessibletype type: integer a value indicating the type of accessibility object for the element.
grid - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a grid is a layout type that arranges elements in rows and columns.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
grippy - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] an element that may be used inside a splitter which can be used to collapse a sibling element of the splitter.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
groupbox - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] the groupbox is used to group related elements together.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties accessibletype type: integer a value indicating the type of accessibility object for the element.
hbox - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a container element which can contain any number of child elements.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
iframe - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] an inner frame that works much like the html <iframe> element.
... bug 540911 inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties accessibletype type: integer a value indicating the type of accessibility object for the element.
keyset - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a container element for key elements.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width disabled type: boolean indicates whether the element is disabled or not.
listcol - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a column in a listbox.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
listcols - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a container for the columns of a listbox, each of which are created with the listcol element.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
listhead - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a header row of a listbox.
... inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties accessibletype type: integer a value indicating the type of accessibility object for the element.
listheader - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a header for a single column in a listbox.
... inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties accessibletype type: integer a value indicating the type of accessibility object for the element.
menu - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] an element, much like a button, that is placed on a menubar.
... menupopup type: menupopup element a
reference to the menupopup used by the menu or menulist.
notificationbox - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] the notificationbox element is used to display notifications above an element.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties currentnotification type: notification element the currently displayed notification element or null.
observes - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] the observes element can be used to listen to a broadcaster and receive events and attributes from it.
... inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
page - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] similar to a window, except it should be used for xul files that are to be loaded into an iframe.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
popupset - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a container for menupopup, panel and tooltip elements.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
progressmeter - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a meter which can be used to display the progress of a lengthy operation.
... inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties accessibletype type: integer a value indicating the type of accessibility object for the element.
query - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] used to specify the query for a template.
... inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
queryset - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a container for query elements when more than one query is used.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
resizer - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] an element used for window resizing.
... inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
row - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a single row in a rows element.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
rows - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] defines the rows of a grid.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
script - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] much like the html script element, this is used to declare a script to be used by the xul window.
... inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
scrollbox - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a box that has additional functions that can be used to scroll the content.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
scrollcorner - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] this element is used for the small box where the horizontal and vertical scrollbars meet.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
separator - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] creates a small separating gap between elements.
... inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
spacer - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] an element that takes up space but does not display anything.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
spinbuttons - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] spin buttons are two arrows, one to increase a value and one to decrease a value.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
stack - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] an element that renders its children on top of each other.
...attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
statusbar - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] an element used to create a status bar, usually placed along the bottom of a window.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties accessibletype type: integer a value indicating the type of accessibility object for the element.
<statusbarpanel> - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] firefox 4 note the status bar has been removed.
... « xul
reference home statusbarpanel-iconic use this class to have an image appear on the statusbarpanel.
stringbundle - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] an element which can be used to load localized resources from property files.
... inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties applocale obsolete since gecko 1.9.1 type: nsilocale returns the xpcom object which holds information about the user's locale.
stringbundleset - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a container for stringbundle elements.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
tab - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a single tab which should be placed inside a tabs element.
...if the user has turned on the "don't load tabs until selected" p
reference, the pending attribute is set on tabs until they get loaded.
tabpanel - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a individual panel in a tabpanels element.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
textnode - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] normally when substituting rdf resources in template rules, you place the rdf property name inside an attribute value preceded with rdf:.
... inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
titlebar - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] boxes created with the titlebar element behave just like a normal window titlebar: when the element is clicked and dragged, the window moves with it.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width note: the allowevents attribute did not work for title bars prior to firefox 3.
toolbargrippy - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] not in firefox the notch on the side of a toolbar which can be used to collapse and expand it.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties accessible type: nsiaccessible returns the accessibility object for the element.
toolbaritem - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] firefox only an item that appears on a toolbar.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
toolbarpalette - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] firefox only the item is a palette of available toolbar items.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
toolbarseparator - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] creates a separator between groups of toolbar items.
...ttributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties accessibletype type: integer a value indicating the type of accessibility object for the element.
toolbarset - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] firefox only this element is used as a container for custom toolbars, which are added in the custom toolbar dialog.
...) attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwi...
toolbarspacer - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] firefox only a space between toolbar items.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties accessibletype type: integer a value indicating the type of accessibility object for the element.
toolbarspring - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] firefox only a flexible space between toolbar items.
...) attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties accessibletype type: integer a value indicating the type of accessibility object for the element.
toolbox - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a container for toolbars.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties accessible type: nsiaccessible returns the accessibility object for the element.
treechildren - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] this element is the body of the tree.
... inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
treecols - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a group of treecol elements.
... inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties accessibletype type: integer a value indicating the type of accessibility object for the element.
treerow - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a single row in a tree.
... inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
treeseparator - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] used to place a separator row in a tree.
... inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
vbox - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] a container element which can contain any number of child elements.
... attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
where - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] indicate a condition that must match for a template result to be used.
... inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, p
reference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, max...
wizard - Archive of obsolete content
« xul
reference home [ examples | attributes | properties | methods | related ] this element is used to construct a step-by-step wizard found in some applications to guide users through a task.
...schildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata « xul
reference home advance( pageid ) return type: no return value call this method to go to the next page.
Custom app bundles for Mac OS X - Archive of obsolete content
rt files) application.ini (xulrunner-related application settings) example.icns (this is the icon which will be used by your application bundle) chrome/ content/ example.xul (this directory contains your application's chrome) example.manifest defaults/ p
references/ app-prefs.js (this provides some default values for p
references) application bundle contents in addition to the standard directory hierarchy that's required of all mac os x applications, as shown above in application bundle layout, there are some specific rules for what content goes where: the top-lev...
... top-level directory info.plist pkginfo see also xulrunner - tips xulrunner - mac faq external links inside application bundles property list key
reference xrtemplate ...
toolkit.defaultChromeURI - Archive of obsolete content
type: string specified by: default prefs of xulrunner applications default: none example: pref("toolkit.defaultchromeuri", "chrome://myapp/content/"); the toolkit.defaultchromeuri p
reference allows simple xulrunner-based applications to open a new window when the application is launched.
... the p
reference specifies the uri of a chrome window to be opened.
toolkit.singletonWindowType - Archive of obsolete content
p
reference type: string specified by: default prefs of xulrunner applications default: none example: pref("toolkit.singletonwindowtype", "xulmine"); by default, the toolkit.defaultchromeuri p
reference will cause xulrunner to open a new main application window each time an application is invoked.
... the toolkit.singletonwindowtype p
reference causes xulrunner to search for a window with the attribute windowtype as specified in this p
reference (e.g.
reftest opportunities files - Archive of obsolete content
in other cases, the design of the
reference page may take more subtlety.
... for now, create a bug in the core product, testing component in the bugzilla, if you can point to a file in this list and can attach the html
reference that can be used to compare the output.
Mozilla release FAQ - Archive of obsolete content
you can find replacement themes in p
references, under appearance->themes, using the 'get new themes' link there.
...you could tackle: porting mozilla to the os you use work on moving #ifdef platform to #ifdef feature/bug if you're on unix, port mozilla to the toolkit you prefer modularize/clean up apis fix bugs work on the expermental features (mail/news, aurora, nglayout) add new things: make opendoc and ole nglayout controls write new skins (see themes.org) add p
reference interfaces for the hidden features there's plenty to do..
2006-10-20 - Archive of obsolete content
summary: mozilla.dev.builds - october 14th to october 20th 2006 linux
reference platform 1.8.1 october 18th: marcus is wondering about the linux platform that is currently used to compile both public releases of firefox and xulrunner.
... he also points out that there is a wiki page where the standard
reference platform for linux has been defined (for trunk builds).
2006-11-17 - Archive of obsolete content
recycle array objects a user trying to overcome the need of using huge number of arrays (as vectors) asks if its possible to reuse un
referenced array objects instead of create new ones in spidermonkey.
... mike shaver's response was that resurrecting objects is not possible and that objects in spidermonkey are not
reference counted.
NPAPI plugin developer guide - Archive of obsolete content
the main source of documentation for npapi is the npapi plugin api
reference.
...nderstanding the plug-in api plug-ins and platform independence windowed and windowless plug-ins the default plug-in using html to display plug-ins plug-in display modes using the object element for plug-in display nesting rules for html elements using the appropriate attributes using the embed element for plug-in display using custom embed attributes plug-in
references plug-in development overview writing plug-ins registering plug-ins ms windows unix mac os x drawing a plug-in instance handling memory sending and receiving streams working with urls getting version and ui information displaying messages on the status line making plug-ins scriptable building plug-ins building, platforms, and compilers building carbonized p...
NPClass - Archive of obsolete content
« gecko plugin api
reference « scripting plugins summary npclass is a structure that holds a set of pointers to functions that make up the behavior of an instance of an npclass (i.e.
... deallocate called by npn_releaseobject() when an object's
reference count reaches zero.
NPN_UserAgent - Archive of obsolete content
« gecko plugin api
reference « browser side plug-in api summary returns the browser's user agent field.
...see also npn_status() npn_version() gecko user agent string
reference ...
Method - MDN Web Docs Glossary: Definitions of Web-related terms
note: in javascript functions themselves are objects, so, in that context, a method is actually an object
reference to a function.
... learn more learn about it method (computer programming) in wikipedia defining a method in javascript (comparison of the traditional syntax and the new shorthand) technical
reference list of javascript built-in methods ...
Parameter - MDN Web Docs Glossary: Definitions of Web-related terms
depending on programming language, input parameters can be passed several ways (e.g., call-by-value, call-by-address, call-by-
reference).
... output/return parameters primarily return multiple values from a function, but not recommended since they cause confusion learn more general knowledge difference between parameter and argument on wikipedia technical
reference function declaration function expression ...
MDN Web Docs Glossary: Definitions of Web-related terms
n namespace nan nat native navigation directive netscape navigator network throttling nntp node node (dom) node (networking) node.js non-normative normative null nullish value number o object object
reference oop opengl openssl opera browser operand operator origin ota owasp p p2p pac packet page load time page prediction parameter parent object parse parser pdf perceived performance percent-encoding...
...type-based programming proxy server pseudo-class pseudo-element pseudocode public-key cryptography python q quality values quaternion quic r rail random number generator raster image rdf real user monitoring (rum) recursion
reference reflow regular expression rendering engine repo reporting directive request header resource timing response header responsive web design rest rgb ril robots.txt round trip time (rtt) routers rss rtcp (rtp control protocol) rtf r...
Accessible multimedia - Learn web development
we will first need to store
references to each of the controls — add the following to the top of your javascript file: const playpausebtn = document.queryselector('.playpause'); const stopbtn = document.queryselector('.stop'); const rwdbtn = document.queryselector('.rwd'); const fwdbtn = document.queryselector('.fwd'); const timelabel = document.queryselector('.time'); next, we need to grab a
reference to the video/audio player i...
...tself — add this line below the previous lines: const player = document.queryselector('video'); this holds a
reference to a htmlmediaelement object, which has several useful properties and methods available on it that can be used to wire up functionality to our buttons.
Cascade and inheritance - Learn web development
note: on mdn css property
reference pages you can find a technical information box, usually at the bottom of the specifications section, which lists a number of data points about that property, including whether it is inherited or not.
...we've not covered selectors in detail yet, but you can find details of each selector on the mdn selectors
reference.
Practical positioning examples - Learn web development
tab = tabs[i]; settabhandler(tab, i); } function settabhandler(tab, tabpos) { tab.onclick = function() { for(i = 0; i < tabs.length; i++) { tabs[i].classname = ''; } tab.classname = 'active'; for(i = 0; i < panels.length; i++) { panels[i].classname = ''; } panels[tabpos].classname = 'active-panel'; } } this code does the following: first we save a
reference to all the tabs and all the panels in two variables called tabs and panels, so we can easily do things to them later on.
...when run, the function is passed a
reference to the particular tab it is being run for, and an index number i that indentifies the tab's position in the tabs array.
Basic native form controls - Learn web development
if you want a more advanced
reference, you should consult our html forms element
reference, and in particular our extensive <input> types
reference.
...you've met some of these already, but below is a list of those common attributes, for your
reference: attribute name default value description autofocus false this boolean attribute lets you specify that the element should automatically have input focus when the page loads.
Other form controls - Learn web development
block and inline: experimental values that allow resizing in the block or inline direction only (this varies depending on the directionality of your text; read handling different text directions if you want to find out more.) play with the interactive example at the top of the resize
reference page for a demonstration of how these work.
...you can see an implementation example of this on the <input type="range">
reference page.
Sending form data - Learn web development
to get it working again, we have found that you can load up the mamp app, then choose the menu options mamp > p
references > php, and set "standard version:" to "7.2.x" (x will differ depending on what version you have installed).
... from flask import flask, render_template, request app = flask(__name__) @app.route('/', methods=['get', 'post']) def form(): return render_template('form.html') @app.route('/hello', methods=['get', 'post']) def hello(): return render_template('greeting.html', say=request.form['say'], to=request.form['to']) if __name__ == "__main__": app.run() the two templates
referenced in the above code are as follows (these need to be in a subdirectory called templates in the same directory as the python-example.py file, if you try to run the example yourself): form.html: the same form as we saw above in the the post method section but with the action set to {{ url_for('hello') }}.
Dealing with files - Learn web development
to
reference a file in a subdirectory, write the directory name in front of the path, plus a forward slash, e.g.
...so for example, if index.html was inside a subfolder of test-site and my-image.jpg was inside test-site, you could
reference my-image.jpg from index.html using ../my-image.jpg.
What’s in the head? Metadata in HTML - Learn web development
for example: <meta name="twitter:title" content="mozilla developer network"> adding custom icons to your site to further enrich your site design, you can add
references to custom icons in your metadata, and these will be displayed in certain contexts.
... a favicon can be added to your page by: saving it in the same directory as the site's index page, saved in .ico format (most browsers will support favicons in more common formats like .gif or .png, but using the ico format will ensure it works as far back as internet explorer 6.) adding the following line into your html's <head> block to
reference it: <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> here is an example of a favicon in a bookmarks panel: there are lots of other icon types to consider these days as well.
From object to iframe — other embedding technologies - Learn web development
we are not expecting you to understand all of this content perfectly the first time; we just want to make you aware of this concern, and provide a
reference to come back to as you get more experienced and start considering using <iframe>s in your experiments and work.
... 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.
Build your own function - Learn web development
the first line uses a dom api function called document.queryselector() to select the <html> element and store a
reference to it in a constant called html, so we can do things to it later on: const html = document.queryselector('html'); the next section uses another dom api function called document.createelement() to create a <div> element and store a
reference to it in a constant called panel.
... next, we'll select the button and store a
reference to it in a constant.
Browser chrome tests
for instance, if you change a p
reference you want to make sure that the p
reference is always reset so that it doesn't impact other tests after yours.
...if you are adding the first tests in a directory, make sure to also include any head.js you added to support-files, and additionally, ensure that your browser.ini is
referenced by a moz.build file somewhere, such as: browser_chrome_manifests += [ 'test/functional/mochitest/browser.ini' ] support-files once added to support-file section of browser.ini support files may be
referenced as https://example.com/browser/[path_to_file] or chrome://mochitests/content/browser/[path_to_file].
Creating JavaScript callbacks in components
here is an example of how to use the callback system: var wordhandler = { onword : function(word) { alert(word); } }; var stringparser = /* get a
reference to the parser somehow */ stringparser.addobserver(wordhandler); stringparser.parse("pay no attention to the man behind the curtain"); you can find examples of this pattern all over the mozilla codebase.
...now we can create a callback javascript function to handle the onword event: function handleword(word) { alert(word); } var stringparser = /* get a
reference to the parser somehow */ stringparser.addobserver(handleword); stringparser.parse("pay no attention to the man behind the curtain"); yes, you can still use the normal interface-based callback implementation too.
Creating a Language Pack
add the p
reference intl.locale.requested and set it to your language code, in this case, x-testing, or add it in front of the current setting, seperated with a comma.
... before gecko 59 you had to set the p
reference general.useragent.locale to your language code.
Debugging JavaScript
this can be a security risk, especially if you also set the devtools.debugger.force-local p
reference to false.) then, the browser toolbox displays the available tools for debugging.
...extensions you can print the callstack using components.stack like this: function getstackdump() { var lines = []; for (var frame = components.stack; frame; frame = frame.caller) { lines.push(frame.filename + " (" + frame.linenumber + ")"); } return lines.join("\n"); } see also debugging mozilla with gdb setting up an extension development environment (particularly development p
references and development extensions) original document information author(s): ben bucksch created date: september 12, 2005, last updated date: november 10, 2009 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
Makefile - variables
has_extra_exports pref_js_exports javascript p
references file to export[1].
... dist_chrome_files exists in rules.mk but not
referenced by mozilla-central.
SVG Guidelines
enable-background (unsupported by gecko and now deprecated by the filter effects specification) id (id on root element has no effect) xmlns:xlink attribute when there are no xlink:href attributes used throughout the file other unused xml namespace definitions xml:space when there is no text used in the file other empty tags, this may be obvious, but those are sometimes found in svgs un
referenced ids (usually on gradient stops, but also on shapes or paths) clip-rule attribute when the element is not a descendant of a <clippath> fill-rule attribute when the element is a descendant of a <clippath> un
referenced/unused clip paths, masks or defs (example) styling basics privilege short lowercase hex for colors don't use excessive precision for numeric values (usually comes from illu...
... avoid using a <use> tag when that <use> tag is being
referenced only once in the whole file.
Index
8 experimental features in firefox experimental, firefox, p
references, features this page lists features that are in nightly versions of firefox along with information on how to activate them, if necessary.
...the most useful is the url about:config, which displays p
references and settings that can be inspected and changed.
Gecko Chrome
chrome-only api
referencethis page lists apis that only run in gecko chrome code (and sometimes in other privileged circumstances.)chrome-only css
referencethis page lists css properties that are only available in gecko chrome code (and sometimes in other privileged circumstances, eg.
... ua stylesheets.) chrome-only events
referencethis page lists events that are only available in gecko chrome code (and sometimes in other privileged circumstances, eg.
Embedding Tips
normally it provide some functionality that is required from lots of places such as looking up p
reference settings, creating new windows, locating files, displaying prompt or password dialog boxes and so on.
...you can override this default using the "general.useragent.override" p
reference.
Gecko
gecko dom
reference reference to the dom.
... gecko event
reference reference to events used within gecko and mozilla applications; for web-standard dom events, see the dom event
reference.
How Mozilla determines MIME Types
operating system is asked for the type of the file (not quite yet, bug 217723) on macos, the type and creator code will be used to lookup the type of the file from the os a hardcoded list of extensions is checked (containing currently 13 entries, nsexternalhelperappservice.cpp line 463 (this is done for speed – it is faster to find data in the hardcoded list than asking the os or looking in p
references) if the extension is not listed there, it becomes interesting.
...the list in edit/p
references/helper applications) if that failed, a list of "extra" mime types is searched for an extension match.
Extending a Protocol
managing child actors with
reference counting.
...class echochild final : public pechochild { friend class pechochild; // allows us to participate in
reference counting ns_inline_decl_threadsafe_refcounting(echochild, final) public: explicit echochild(); protected: void actordestroy(actordestroyreason awhy) override; // we get sendecho(nscstring& astring) from the superclass.
Integrated Authentication
the p
references are: pref("network.negotiate-auth.trusted-uris", site-list); pref("network.negotiate-auth.delegation-uris", site-list); pref("network.automatic-ntlm-auth.trusted-uris", site-list); where, site-list is a comma-separated list of url prefixes or domains of the form: site-list = "mydomain.com, https://myotherdomain.com" network.negotiate-auth.trusted-uris lists the sites that are permitted to ...
... if you wish to use non-fully-qualified entries of the form mydomain.com in the above p
references for ntlm and spnego authentication, you will also need to set the p
references network.automatic-ntlm-auth.allow-non-fqdn and network.negotiate-auth.allow-non-fqdn (respectively) to true.
JavaScript Tips
however, in javascript this is quite simple even in the case of a weak
reference which in c++ requires a helper class: var weakobserver = { queryinterface: function queryinterface(aiid) { if (aiid.equals(components.interfaces.nsiobserver) || aiid.equals(components.interfaces.nsisupportsweak
reference) || aiid.equals(components.interfaces.nsisupports)) return this; throw components.results.ns_nointerface; }, observe: function observe(asubj...
...
references this was started as a reprint of neil's guide some more current info on this blog post how to remove duplicate objects from an array javascript ...
Following the Android Toasts Tutorial from a JNI Perspective
for instance, we go to android
reference :: context and we see: we see that the signature in dot notation is android.content.context.
...xt(); // charsequence text = 'hello toast!'; var text = 'hello toast!'; // int duration = toast.length_short; var duration = toast.length_short; // toast toast = toast.maketext(context, text, duration); var toast = toast.maketext(context, text, duration); // toast.show(); toast.show(); } finally { if (my_jenv) { jni.unloadclasses(my_jenv); } }
references oracle :: jni types and data structures and determine the signature of a method - these articles are crucial because it tells us how to create our jni signatures.
JNI.jsm
pshell = jni.loadclass(my_jenv, fullyqualifiednameofclass(sig.geckoappshell), { static_methods: [ { name: 'getcontext', sig: '()' + sig.context }] }); var context = jni.loadclass(my_jenv, fullyqualifiednameofclass(sig.context), { methods: [ { /* http://developer.android.com/
reference/android/content/context.html#getsystemservice%28java.lang.class%3ct%3e%29 * public abstract object getsystemservice (string name) */ name: 'getsystemservice', sig: genmethodsig([ sig.string // name ], sig.object // return ) }], s...
...tatic_fields: [ { name: 'window_service', sig: sig.string } // http://developer.android.com/
reference/android/content/context.html#window_service // public static final string window_service ] }); var windowmanager = jni.loadclass(my_jenv, fullyqualifiednameofclass(sig.windowmanager), { methods: [ { name: 'addview', sig: '(' + sig.view + sig.viewgroup_layoutparams + ')' + sig.void }, { name: 'removeview', sig: '(' + sig.view + ')' + sig.void }] }); var acontext = geckoappshell.getcontext(); var wm = acontext.getsystemservice(context.window_service); ...
NetUtil.jsm
d asyncfetch(asource, acallback) nsichannel newchannel(awhattoload, [optional] aorigincharset, [optional] nsiuri abaseuri) nsiuri newuri(atarget, [optional] aorigincharset, [optional] nsiuri abaseuri) string readinputstreamtostring(ainputstream, acount, aoptions) attributes attribute type description ioservice nsiioservice returns a
reference to nsiioservice.
...the callback receives three parameters: the input stream containing the data, if any (implementing nsiinputstream), an nsresult status code for the open operation, and a
reference to the nsirequest object.
PerfMeasurement.jsm
cache_
references uint64 the number of memory accesses that occurred.
... cache_
references 0x00000004 measure the number of cache
references.
PromiseWorker.jsm
aclosure optional an object holding strong
references to value that should not be garbage-collected before the reply has been received.
... supported built-in javascript error are following: evalerror internalerror rangeerror
referenceerror syntaxerror typeerror urierror in addition to them, stopiteration is also supported (note that stopiteration is deprecated).
SourceMap.jsm
get a
reference to the module: let sourcemap = {}; components.utils.import('resource:///modules/devtools/sourcemap.jsm', sourcemap); sourcemapconsumer a sourcemapconsumer instance represents a parsed source map which we can query for information about the original file positions by giving it a file position in the generated source.
... names: an array of identifiers that can be
referenced by individual mappings.
XPCOMUtils.jsm
getfactory(componentsarray); function generateci(classinfo); function generateqi(interfaces); void importrelative(that, path, scope); generator itersimpleenumerator(enumerator, interface); generator iterstringenumerator(enumerator); attributes attribute type description categorymanager nsicategorymanager returns a
reference to nsicategorymanager.
... this will
reference aobject during execution of the function.
L10n Checks
options
reference locale in the source and xpi modes you can change the default
reference locale (en-us) by setting the -r parameter, e.g.: check-l10n-completeness -r pl browser/locales/l10n.ini ../l10n/ de output mode you can change the look and feel of the output by setting the -o parameter to 0 (tree; default), 1 (full tree) or 2 (full relative paths), e.g.: check-l10n-completeness -o 2 browser/locales/l10n.in...
..."seamonkey" with its extensions), e.g.: check-l10n-completeness -f suite/locales/l10n.ini ../l10n/ de test the
reference locale in the source mode you can tell l10n checks to also check the
reference locale, by setting the -e parameter (requires the -a parameter to be set too), e.g.: check-l10n-completeness -a 1 -e suite/locales/l10n.ini ../l10n/ de turbo mode in the source mode you can tell l10n checks to look only for missing and obsolete entities and files, by setting the -t parameter, e.g.: check-l10n-complete...
Writing localizable code
in most cases, you can just as well put the processing into the content code and
reference different key-value pairs in l10n.
... use a good chrome directory structure for a particular module mod, a target path jar:ab-cd.jar!/locale/ab-cd/mod/foo.dtd has been widely tested and is a good place for your files
referenced as chrome://mod/locale/foo.dtd.
Mozilla Framework Based on Templates (MFBT)
rangedptr.h implements rangedptr, a smart pointer template whose value may be manipulated only within a range specified at construction time, and which may be de
referenced only at valid locations in that range.
... refptr.h implements various smart pointer templates to simplify
reference counting of values of particular classes.
Fonts for Mozilla 2.0's MathML engine
reset old p
references if users have previously changed the "font.mathfont-family" p
reference for a previous version of mozilla, then it is best to reset this to the default value.
... to do this, enter the url "about:config", "filter" for "mathfont", and "reset" to the default value through the context menu on the p
reference.
Using the viewport meta tag to control layout on mobile browsers
it is recommended that the pixel unit refer to the whole number of device pixels that best approximates the
reference pixel.
... it is recommended that the
reference pixel be the visual angle of one pixel on a device with a pixel density of 96dpi and a distance from the reader of an arm's length.
mozilla::MonitorAutoEnter
to use mozilla::monitorautoenter, declare and initialize it with a
reference to a mozilla::monitor.
...constructors monitorautoenter( in mozilla::monitor& monitor; ); this parameter is a
reference so as to guarantee that your code has already properly constructed the mozilla::monitor.
mozilla::MutexAutoLock
to use mozilla::mutexautolock, declare and initialize it with a
reference to an mozilla::mutex.
...constructors mutexautolock( in mozilla::mutex& lock; ); this parameter is a
reference so as to guarantee that your code has already properly constructed the mozilla::mutex.
mozilla::MutexAutoUnlock
to use mozilla::mutexautounlock, declare and initialize it with a
reference to a locked mozilla::mutex.
...constructors mutexautounlock( in mozilla::mutex& lock; ); this parameter is a
reference so as to guarantee that your code has already properly constructed the mozilla::mutex.
Redis Tips
if you have not, here is a fantastic on-line, interactive redis tutorial: http://try.redis.io/ for
reference later on, you'll want the source of all things redis: https://redis.io you'll want to run a redis-server on your machine, and use the redis-cli at the command-line for hacking.
... node.js redis client: https://github.com/mranney/node_redis npm install redis python redis client: https://github.com/andymccurdy/redis-py there are some gotchas with the python api: https://github.com/andymccurdy/redis-py#api-
reference select statement not implemented del is 'delete' in python zadd argument order is wrong setex argument order is wrong the default redis port is 6379.
Exploitable crashes
if the address is always zero (or close to zero, such as 0x0000001c), it's probably a null de
reference bug.
...like null de
references, these crashes are not exploitable.
Browser security
these articles provide important guides and
references to ensuring the code you write is secure, including both design recommendations and testing guidelines.
... secure development guidelinesthe following content will likely see significant revision, though can be used as a
reference for security best practices to follow when developing code for mozilla.security and the jar protocolthis article discusses security concerns with the jar: protocol, which only firefox has ever implemented for web content.
Embedded Dialog API
an embedding application must implement the nsiwindowcreator nsiwindowcreator interface and hand off a
reference to the implementation to the windowcreator service during application initialization.
...p
references are the canonical example.
History Service Design
actually pages and visits are expired: on page added (lazily) on idle on shutdown expiration of pages happens when a page is no more
referenced, so there are no more visits, nor bookmarks associated with it.
... visits are expired based on user p
references, there is an hard limit on the minimum number of days that should be retained, visits in that range won't never expire.
Places utilities for JavaScript
for instance, normally in order to get access to the bookmarks service, you have to run something like: components.classes["@mozilla.org/browser/nav-bookmarks-service;1"] .getservice(components.interfaces.nsinavbookmarksservice); with places utils all you need to write is: placesutils.bookmarks this should save on the number of
references to the service that are needed, and can help clean up interfaces that are already fairly cluttered.
...arks nsinavbookmarksservice history nsinavhistoryservice globalhistory nsibrowserhistory livemarks nsilivemarkservice annotations nsiannotationservice favicons nsifaviconservice microsummaries nsimicrosummaryservice tagging nsitaggingservice rdf nsirdfservice ptm nsiplacestransactionsservice clipboard nsiclipboard urifixup nsiurifixup special places these are essentially
references to the id's of special folders within places.
Using the Places history service
a visit contains a
reference to the url table for the page, the visit date, the transition type (typed, click, redirect, bookmark, etc.), a
reference to the referring visit, and the session id.
...this is used when the p
reference is set that causes the last page in new windows.
Aggregating the In-Memory Datasource
because if you did, you'd hold a circular
reference that would never unwind.
...there is some trickery involved on the delegate's part to ensure that
reference counting is done sanely, and that the reflexive, symmetric, and transitive properties of queryinterface() are preserved.
Component Internals
it is possible that xpcom will return an error if you access the nsiservicemanager at that point, for example, so you may have to keep a
reference-counted pointer to the service you are interested in using during this notification.
... the smart pointer class, nscomptr, for example, which makes
reference counting less tedious and error-prone, is not actually frozen, and neither is nsdebug, a class for aiding in tracking down bugs, nor is nsmemory, a class to ensure that everyone uses the same heap, generic factory, and module.
Finishing the Component
* * a user of a service may keep
references to particular services * indefinitely and only must call release when it shuts down.
... weblock interfaces interface name defined by status summary nsisupports xpcom frozen provides interface discovery, and object
reference counting nsiobserver xpcom frozen allows messaging passing between objects nsicontentpolicy content not frozen interface for policy control mechanism iweblock web lock not frozen enables and disables weblock.
Preface
accordingly, the book is arranged so that you can follow along and create your own components or learn about different xpcom topics individually, as in a
reference work.
... link
references to other sections and to figures and tables are links to those sections.
Creating XPCOM components
accordingly, the book is arranged so that you can follow along and create your own components or learn about different xpcom topics individually, as in a
reference work.
...hould read this book organization of the tutorial following along with the examples conventions acknowledgements an overview of xpcom the xpcom solution gecko components interfaces interfaces and encapsulation the nsisupports base interface xpcom identifiers cid contract id factories xpidl and type libraries xpcom services xpcom types method types
reference counting status codes variable mappings common xpcom error codes using xpcom components component examples cookie manager the webbrowserfind component the weblock component component use in mozilla finding mozilla components using xpcom components in your cpp xpconnect: using xpcom components from script component internals creating components in cpp ...
mozilla::services namespace
to use it, you first need to include the header into your c++ file: #include "mozilla/services.h" then you can obtain
references to services by simply accessing them from the mozilla::services namespace.
... for example, to obtain a
reference to the ioservice: nscomptr<nsiioservice> ioservice = mozilla::services::getioservice(); provided service getters service accessor service interface service name getchromeregistryservice nsichromeregistryservice chrome registry service getioservice nsiioservice io service getobserverservice nsiobserverservice observer service getstringbundleservice nsistringbundleservice string bundle service gettoolkitchromeregistryservice nsitoolkitchromeregistry toolkit chrome registry service getxulchromeregistryservice nsixulchromeregistry xul chrome registry service getxuloverlayproviderservice nsixuloverlayprovider xul overlay provider service more services will be added as needed.
Components.utils.Sandbox
generally the javascript garbage collector will take care of this when there are no remaining
references to the sandbox or the code it contains.
... however, in some cases it can be difficult to remove all
references.
Components.utils.cloneInto
it returns a
reference to the clone: var clonedobject = cloneinto(myobject, targetwindow); you can then assign the clone to an object in the target scope as an expando property, and scripts running in that scope can access it: targetwindow.foo = clonedobject; in this way privileged code, such as an add-on, can share an object with less-privileged code like a normal web page script.
... returns a
reference to the cloned object.
gattServer - Web APIs
the bluetoothdevice.gattserver read-only property returns a
reference to the device's gatt server or null if the device is disconnected.
... syntax var gattserver = instanceofbluetoothdevice.gattserver returns a
reference to the device's gatt server or null if the device is disconnected.
BluetoothDevice - Web APIs
bluetoothdevice.gatt read only a
reference to the device's bluetoothremotegattserver.
... bluetoothdevice.gattserver read only a
reference to the device's gatt server or null if the device is disconnected.
CSSStyleDeclaration.setProperty() - Web APIs
we know that the rule we want to alter to do this is contained inside the second stylesheet applied to the page, so we grab a
reference to it using document.stylesheets[1].
... if so, we store a
reference to this cssstylerule object in a variable.
CSSUnparsedValue.CSSUnparsedValue() - Web APIs
the cssunparsedvalue() constructor creates a new cssunparsedvalue object which represents property values that
reference custom properties.
... syntax var cssunparsedvalue = new cssunparsedvalue(members) parameters members an array whose values must be either a usvstring or a cssvariable
referencevalue.
Using dynamic styling information - Web APIs
<html> <head> <title>simple style example</title> <script type="text/javascript"> function alterstyle(elem) { elem.style.background = 'green'; } function resetstyle(elemid) { elem = document.getelementbyid(elemid); elem.style.background = 'white'; } </script> <style type="text/css"> #p1 { border: solid blue 2px; } </style> </head> <body> <!-- passes a
reference to the element's object as parameter 'this'.
... using the setattribute method note that you can also change style of an element by getting a
reference to it and then use its setattribute method to specify the css property and its value.
CSS Object Model (CSSOM) - Web APIs
reference animationevent caretposition css csscharsetrule cssconditionrule csscounterstylerule cssfontfacerule cssfontfeaturevaluesmap cssfontfeaturevaluesrule cssgroupingrule cssimportrule csskeyframerule csskeyframesrule cssmarginrule cssmediarule cssnamespacerule csspagerule cssrule cssrulelist cssstyledeclaration cssstylesheet cssstylerule csssupportsrule cssvariablesmap cssviewportrule elementcssinlinestyle fontface fontfaceset fontfacesetloadevent geometryutils getstyleutils linkstyle medialist mediaquerylist mediaquerylistevent mediaquerylistlist...
...ue cssmathinvert cssmathmax cssmathmin cssmathnegate cssmathproduct cssmathsum cssmathvalue cssmatrixcomponent cssnumericarray cssnumericvalue cssperspective csspositionvalue cssrotate cssscale cssskew cssskewx cssskewy cssstylevalue csstransformcomponent csstransformvalue csstranslate cssunitvalue cssunparsedvalue cssvariable
referencevalue stylepropertymap stylepropertymapreadonly obsolete cssom interfaces cssprimitivevalue cssvalue cssvaluelist tutorials determining the dimensions of elements (it needs some updating as it was made in the dhtml/ajax era).
Using the CSS Painting API - Web APIs
css.paintworklet.addmodule('https://mdn.github.io/houdini-examples/csspaint/intro/01partone/header-highlight.js');
reference the paint worklet in css once we have a registered paint worklet, we can use it in css.
...l> css.paintworklet.addmodule('https://mdn.github.io/houdini-examples/csspaint/intro/worklets/boxbg.js'); li { background-image: paint(boxbg); --boxcolor: hsla(55, 90%, 60%, 1.0); } li:nth-of-type(3n) { --boxcolor: hsla(155, 90%, 60%, 1.0); --widthsubtractor: 20; } li:nth-of-type(3n+1) { --boxcolor: hsla(255, 90%, 60%, 1.0); --widthsubtractor: 40; } in our worklet, we can
reference those custom properties.
CanvasRenderingContext2D.addHitRegion() - Web APIs
id the id for this hit region to
reference it for later use in events, for example.
...(if you don't see the full smiley, check the browser compatibility table to see if your current browser supports hit regions already; you might need to activate a p
reference.) playable code <canvas id="canvas" width="400" height="200" class="playable-canvas"></canvas> <div class="playable-buttons"> <input id="edit" type="button" value="edit" /> <input id="reset" type="button" value="reset" /> </div> <textarea id="code" class="playable-code" style="height:250px"> ctx.beginpath(); ctx.arc(100, 100, 75, 0, 2 * math.pi, false); ctx.linewidth = 5; ctx.stroke(); //...
CanvasRenderingContext2D.canvas - Web APIs
the canvasrenderingcontext2d.canvas property, part of the canvas api, is a read-only
reference to the htmlcanvaselement object that is associated with a given context.
...you can get a
reference to the canvas element within the canvasrenderingcontext2d by using the canvas property: var canvas = document.getelementbyid('canvas'); var ctx = canvas.getcontext('2d'); ctx.canvas // htmlcanvaselement specifications specification status comment html living standardthe definition of 'canvasrenderingcontext2d.canvas' in that specification.
CanvasRenderingContext2D.drawWindow() - Web APIs
top-level browsed documents are usually not transparent because the user's background-color p
reference is applied, but iframes are transparent if the page doesn't set a background.
... ted mielczarek's tab preview extension uses this technique in chrome to provide thumbnails of web pages, and the source is available for
reference.
CanvasRenderingContext2D - Web APIs
this code draws a house: // set line width ctx.linewidth = 10; // wall ctx.strokerect(75, 140, 150, 110); // door ctx.fillrect(130, 190, 40, 60); // roof ctx.beginpath(); ctx.moveto(50, 140); ctx.lineto(150, 60); ctx.lineto(250, 140); ctx.closepath(); ctx.stroke(); the resulting drawing looks like this:
reference drawing rectangles there are three methods that immediately draw rectangles to the canvas.
... canvasrenderingcontext2d.canvas a read-only back-
reference to the htmlcanvaselement.
Manipulating video using canvas - Web APIs
cument.getelementbyid('c1'); this.ctx1 = this.c1.getcontext('2d'); this.c2 = document.getelementbyid('c2'); this.ctx2 = this.c2.getcontext('2d'); let self = this; this.video.addeventlistener('play', function() { self.width = self.video.videowidth / 2; self.height = self.video.videoheight / 2; self.timercallback(); }, false); }, this code grabs
references to the elements in the xhtml document that are of particular interest, namely the video element and the two canvas elements.
... it also fetches
references to the graphics contexts for each of the two canvases.
Applying styles and colors - Web APIs
because canvas coordinates do not directly
reference pixels, special care must be taken to obtain crisp horizontal and vertical lines.
... note: be aware that in our vertical line example, the y position still
referenced an integer gridline position—if it hadn't, we would see pixels with half coverage at the endpoints (but note also that this behavior depends on the current linecap style whose default value is butt; you may want to compute consistent strokes with half-pixel coordinates for odd-width lines, by setting the linecap style to square, so that the outer border of the stroke around the endpoint will b...
console.log() - Web APIs
please be warned that if you log objects in the latest versions of chrome and firefox what you get logged on the console is a
reference to the object, which is not necessarily the 'value' of the object at the moment in time you call console.log(), but it is the value of the object at the moment you open the console.
... there's more information in the chrome console api
reference about this and other functions.
ContentIndex.delete() - Web APIs
we receive a
reference to the current serviceworkerregistration, which allows us to access the index property and thus access the delete method.
... async function unregistercontent(article) { //
reference registration const registration = await navigator.serviceworker.ready; // feature detect content index if (!registration.index) return; // unregister content from index await registration.index.delete(article.id); } the delete method can also be used within the service worker scope.
SVGMeshElement - Web APIs
px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgmeshelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svggeometryelement, and implements the properties of svguri
reference.
... methods this interface doesn't implement any specific methods, but inherits methods from its parent interface, svggeometryelement, and implements the methods of svguri
reference.
SVGPatternElement - Web APIs
2px" /><text x="396" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgpatternelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent, svgelement and implements the ones from svgfittoviewbox and svguri
reference.
... methods this interface doesn't implement any specific methods, but inherits methods from its parent interface, svgelement and implements the ones from svgfittoviewbox and svguri
reference.
SVGTRefElement - Web APIs
xt x="71" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgtrefelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svgtextpositioningelement and implements properties from svguri
reference.
... methods this interface has no methods but inherits methods from its parent, svgtextpositioningelement and implements properties from svguri
reference.
SVGTextPathElement - Web APIs
properties this interface also inherits properties from its parent interface, svgtextcontentelement, and also implements properties of svguri
reference.
... methods this interface does not provide any specific methods, but implements those of its parent, svgtextcontentelement, and also implements methods of svguri
reference.
SVGUseElement - Web APIs
th="2px" /><text x="196" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svguseelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent interface, svggraphicselement and implements properties from svguri
reference.
... methods this interface doesn't implement any specific methods, but inherits methods from its parent interface, svggraphicselement and implements methods from svguri
reference.
ServiceWorkerRegistration.index - Web APIs
the index read-only property of the serviceworkerregistration interface returns a
reference to the contentindex interface, which allows for indexing of offline content.
... here is an example from the main script: //
reference registration const registration = await navigator.serviceworker.ready; // feature detection if ('index' in registration) { // content index api functionality const contentindex = registration.index; } from the service worker: // service worker script const contentindex = self.registration.index; specifications specification status comment unknownthe definition of 'index' in that specification.
Using Service Workers - Web APIs
next, we use the serviceworkercontainer.register() function to register the service worker for this site, which is just a javascript file residing inside our app (note this is the file's url relative to the origin, not the js file that
references it.) the scope parameter is optional, and can be used to specify the subset of your content that you want the service worker to control.
... a fetch event fires every time any resource controlled by a service worker is fetched, which includes the documents inside the specified scope, and any resources
referenced in those documents (for example if index.html makes a cross origin request to embed an image, that still goes through its service worker.) you can attach a fetch event listener to the service worker, then call the respondwith() method on the event to hijack our http responses and update them with your own magic.
SharedWorkerGlobalScope - Web APIs
some additional global functions, namespaces objects, and constructors, not typically associated with the worker global scope, but available on it, are listed in the javascript
reference.
... properties inherited from workerglobalscope workerglobalscope.self returns an object
reference to the dedicatedworkerglobalscope object itself.
SpeechRecognitionError.error - Web APIs
not-allowed the user agent disallowed any speech input from occurring for reasons of security, privacy or user p
reference.
... service-not-allowed the user agent disallowed the requested speech recognition service, either because the user agent doesn't support it or because of reasons of security, privacy or user p
reference.
SpeechRecognitionErrorEvent.error - Web APIs
not-allowed the user agent disallowed any speech input from occurring for reasons of security, privacy or user p
reference.
... service-not-allowed the user agent disallowed the requested speech recognition service, either because the user agent doesn't support it or because of reasons of security, privacy or user p
reference.
WebGL2RenderingContext.getActiveUniformBlockParameter() - Web APIs
gl.uniform_block_
referenced_by_vertex_shader: returns a glboolean indicating whether the uniform block is
referenced by the vertex shader.
... gl.uniform_block_
referenced_by_fragment_shader: returns a glboolean indicating whether the uniform block is
referenced by the fragment shader.
WebGLRenderingContext.canvas - Web APIs
the webglrenderingcontext.canvas property is a read-only
reference to the htmlcanvaselement or offscreencanvas object that is associated with the context.
... examples canvas element given this <canvas> element: <canvas id="canvas"></canvas> you can get back a
reference to it from the webglrenderingcontext using the canvas property: var canvas = document.getelementbyid('canvas'); var gl = canvas.getcontext('webgl'); gl.canvas; // htmlcanvaselement offscreen canvas example using the experimental offscreencanvas object.
Getting started with WebGL - Web APIs
your browser or machine may not support it."); return; } // set clear color to black, fully opaque gl.clearcolor(0.0, 0.0, 0.0, 1.0); // clear the color buffer with specified clear color gl.clear(gl.color_buffer_bit); } window.onload = main; the first thing we do here is obtain a
reference to the canvas, assigning it to a variable named canvas.
... if the context is successfully initialized, the variable gl is our
reference to it.
Using WebGL extensions - Web APIs
canonical extension names, vendor prefixes and p
references extensions may be supported by browser vendors before being officially ratified (but only when they are in draft stage).
... in that case, their name can be prefixed by the vendor prefix (moz_, webkit_, etc.) or the extension is only available once a browser p
reference has been toggled.
Signaling and video calling - Web APIs
ar i; var listelem = document.queryselector(".userlistbox"); while (listelem.firstchild) { listelem.removechild(listelem.firstchild); } msg.users.foreach(function(username) { var item = document.createelement("li"); item.appendchild(document.createtextnode(username)); item.addeventlistener("click", invite, false); listelem.appendchild(item); }); } after getting a
reference to the <ul> which contains the list of user names into the variable listelem, we empty the list by removing each of its child elements.
...alvideo.srcobject.gettracks().foreach(track => track.stop()); } mypeerconnection.close(); mypeerconnection = null; } remotevideo.removeattribute("src"); remotevideo.removeattribute("srcobject"); localvideo.removeattribute("src"); remotevideo.removeattribute("srcobject"); document.getelementbyid("hangup-button").disabled = true; targetusername = null; } after pulling
references to the two <video> elements, we check if a webrtc connection exists; if it does, we proceed to disconnect and close the call: all of the event handlers are removed.
XRViewerPose.views - Web APIs
examples in this example—part of the code to render an xrframe, getviewerpose() is called to get an xrviewerpose using the same
reference space the code is using as its base
reference space.
... let pose = frame.getviewerpose(xr
referencespace); if (pose) { let gllayer = xrsession.renderstate.baselayer; gl.bindframebuffer(gl.framebuffer, gllayer.framebuffer); gl.clearcolor(0, 0, 0, 1); gl.cleardepth(1); gl.clear(gl.color_buffer_bit, gl.depth_buffer_bit); for (let view of pose.views) { let viewport = gllayer.getviewport(view); gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); /* render the scene for the eye view.eye */ } } passing each view to getviewport() returns the webgl viewport to apply in order to cause the rendered output to be positioned correc...
XRWebGLLayerInit.antialias - Web APIs
example in this example, before creating a new xrwebgllayer to use for rendering, the value of a user p
reference from a configuration interface is obtained using a function called getp
referencevalue() to determine whether the user has enabled or disabled anti-aliasing support; this is passed into the constructor.
... let options = { antialias: getp
referencevalue("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.
ARIA annotations - Accessibility
role="mark" — semantically denotes html elements containing text that is marked/highlighted for
reference purposes.
...<mark> is a suitable element for this purpose (a comment is a
reference annotation), so the annotation could look like this: <p>the last half of the song is a slow-rising crescendo that peaks at the <mark aria-details="thread-1">end of the guitar solo</mark>, before fading away sharply.</p> <div role="comment" id="thread-1" data-author="chris"> <h3>chris said</h3> <p class="comment-text">i really think this moment could use more cowbell.</p> <p><time datetime...
WAI-ARIA Roles - Accessibility
this page lists
reference pages covering all the wai-aria roles discussed on mdn.
...the main content area consists of content that is directly related to or expands upon the central topic of a document, or the central functionality of an application.aria: mark rolethe mark landmark role semantically denotes html elements containing text that is marked/highlighted for
reference purposes.
Accessibility Information for Web Authors - Accessibility
the output data report is displayed in a clear and well structured table where each and all checkpoints are identified and described (along with an helpful clickable link to the related
reference guideline) into logical groups and according to measurable results: passed, warning, failed for automated verification, warning for manual verification, not selected, not available, not related, etc.
...two panes are added at the bottom of the view source code window: the left pane contains the errors and warnings (with their correspondent line number) and the right pane identifies the checkpoint along with an example and a clickable link to the
reference/guideline.
prefers-contrast - CSS: Cascading Style Sheets
syntax no-p
reference indicates that the user has made no p
reference known to the system.
... user p
references various operating systems do support such p
references and user agents are likely to rely on the settings provided by the operating system.
prefers-reduced-transparency - CSS: Cascading Style Sheets
syntax no-p
reference indicates that the user has made no p
reference known to the system.
... user p
references currently no user agent implements this feature, although various operating systems do support such p
references and if this media query is ever implemented user agents will likely rely on the settings provided by the operating systems.
Alternative style sheets - CSS: Cascading Style Sheets
specifying alternative style sheets in a web page provides a way for users to see multiple versions of a page, based on their needs or p
references.
... when style sheets are
referenced with a title attribute on the <link rel="stylesheeet"> or <style> element, the title becomes one of the choices offered to the user.
Cross-browser Flexbox mixins - CSS: Cascading Style Sheets
values: see the flex-basis
reference (the default is auto) spec: https://drafts.csswg.org/css-flexbox/#flex-basis-property @mixin flex-basis($value: auto) { -webkit-flex-basis: $value; flex-basis: $value; } flexbox "flex" (shorthand) the flex property specifies the components of a flexible length; flex-grow factor, flex-shrink factor, and the flex-basis.
... values: see the flex
reference for values and default spec: https://drafts.csswg.org/css-flexbox/#flex-property @mixin flex($fg: 1, $fs: 0, $fb: auto) { // set a variable to be used by box-flex properties $fg-boxflex: $fg; // box-flex only supports a flex-grow value so lets grab the // first item in the list and just return that.
CSS Grid Layout - CSS: Cascading Style Sheets
pper { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 10px; grid-auto-rows: minmax(100px, auto); } .one { grid-column: 1 / 3; grid-row: 1; } .two { grid-column: 2 / 4; grid-row: 1 / 3; } .three { grid-column: 1; grid-row: 2 / 5; } .four { grid-column: 3; grid-row: 3; } .five { grid-column: 2; grid-row: 4; } .six { grid-column: 3; grid-row: 4; }
reference css properties grid-template-columns grid-template-rows grid-template-areas grid-template grid-auto-columns grid-auto-rows grid-auto-flow grid grid-row-start grid-column-start grid-row-end grid-column-end grid-row grid-column grid-area row-gap column-gap gap css functions repeat() minmax() fit-content() css data types <flex> glossary entries grid grid...
...auto-placement in css grid layout box alignment in css grid layout css grid, logical values and writing modes css grid layout and accessibility css grid and progressive enhancement realising common layouts using css grid subgrid external resources css grid and ie11 (polyfill) examples from jen simmons grid by example - a collection of usage examples and video tutorials codrops grid
reference firefox devtools css grid inspector css grid playground grid garden - a game for learning css grid specifications specification status comment css grid layout module level 2 working draft added subgrids.
Visual formatting model - CSS: Cascading Style Sheets
when reading specifications you will often find
references to the model as defined in css2, so an understanding of the model and the terms used to describe it in css2 is valuable when reading other layout specifications.
... in addition, the
references for specific values of display explain how these formatting contexts work in terms of box layout.
filter - CSS: Cascading Style Sheets
you can also
reference an svg filter with a url to an svg filter element.
...: grayscale(50%); filter: hue-rotate(90deg); filter: invert(75%); filter: opacity(25%); filter: saturate(30%); filter: sepia(60%); /* multiple filters */ filter: contrast(175%) brightness(3%); /* use no filter */ filter: none; /* global values */ filter: inherit; filter: initial; filter: unset; with a function, use the following: filter: <filter-function> [<filter-function>]* | none for a
reference to an svg <filter> element, use the following: filter: url(file.svg#filter-element-id) interpolation if both the beginning and end filters have a function list of the same length without <url>, each of their filter functions is interpolated according to its specific rules.
<length> - CSS: Cascading Style Sheets
when used within the root element font-size, it represents its initial value (a common browser default is 16px, but user-defined p
references may modify this).
... for low-dpi devices, the unit px represents the physical
reference pixel; other units are defined relative to it.
mask-clip - CSS: Cascading Style Sheets
view-box uses the nearest svg viewport as
reference box.
... if a viewbox attribute is specified for the element creating the svg viewport, the
reference box is positioned at the origin of the coordinate system established by the viewbox attribute and the dimension of the
reference box is set to the width and height values of the viewbox attribute.
Accept-Encoding - HTTP
it doesn't mean that any algorithm is supported; merely that no p
reference is expressed.
... ;q= (qvalues weighting) any value is placed in an order of p
reference expressed using a relative quality value called weight.
Tk - HTTP
the origin server is unable or unwilling to respect a tracking p
reference received from the requesting user agent.
... examples a tk header for a resource that claims not to be tracking would look like: tk: n specifications specification status comment tracking p
reference expression (dnt)the definition of 'tk header field' in that specification.
Network Error Logging - HTTP
the
referenced reporting group should have a lifetime at least as long as the nel policy.
... the reporting group
referenced above is defined in the usual manner within the report-to header, for example: report-to: { "group": "nel", "max_age": 31556952, "endpoints": [ { "url": "https://example.com/csp-reports" } ] } error reports in these examples, the entire reporting api payload is shown.
Expressions and operators - JavaScript
a complete and detailed list of operators and expressions is also available in the
reference.
... != === !== bitwise-and & bitwise-xor ^ bitwise-or | logical-and && logical-or || conditional ?: assignment = += -= *= /= %= <<= >>= >>>= &= ^= |= &&= ||= ??= comma , a more detailed version of this table, complete with links to additional details about each operator, may be found in javascript
reference.
Meta programming - JavaScript
additional examples are available on the proxy
reference page.
...see the
reference pages for detailed explanations and examples.
Regular expressions - JavaScript
these methods are explained in detail in the javascript
reference.
... examples note: several examples are also available in: the
reference pages for exec(), test(), match(), matchall(), search(), replace(), split() this guide articles': character classes, assertions, groups and ranges, quantifiers, unicode property escapes using special characters to verify input in the following example, the user is expected to enter a phone number.
Classes - JavaScript
you first need to declare your class and then access it, otherwise code like the following will throw a
referenceerror: const p = new rectangle(); //
referenceerror class rectangle {} class expressions a class expression is another way to define a class.
... class rectangle { #height = 0; #width; constructor(height, width) { this.#height = height; this.#width = width; } } it's an error to
reference private fields from outside of the class; they can only be read or written within the class body.
Default parameters - JavaScript
this means that functions and variables declared in the function body cannot be referred to from default value parameter initializers; attempting to do so throws a run-time
referenceerror.
... the following function will throw a
referenceerror when invoked, because the default parameter value does not have access to the child scope of the function body: function f(a = go()) { // throws a `
referenceerror` when `f` is invoked.
Array.prototype.fill() - JavaScript
if the first parameter is an object, each slot in the array will
reference that object.
....fill(4, 1, 2) // [1, 4, 3] [1, 2, 3].fill(4, 1, 1) // [1, 2, 3] [1, 2, 3].fill(4, 3, 3) // [1, 2, 3] [1, 2, 3].fill(4, -3, -2) // [4, 2, 3] [1, 2, 3].fill(4, nan, nan) // [1, 2, 3] [1, 2, 3].fill(4, 3, 5) // [1, 2, 3] array(3).fill(4) // [4, 4, 4] [].fill.call({ length: 3 }, 4) // {0: 4, 1: 4, 2: 4, length: 3} // a single object,
referenced by each slot of the array: let arr = array(3).fill({}) // [{}, {}, {}] arr[0].hi = "hi" // [{ hi: "hi" }, { hi: "hi" }, { hi: "hi" }] specifications specification ecmascript (ecma-262)the definition of 'array.prototype.fill' in that specification.
Array - JavaScript
javascript properties that begin with a digit cannot be
referenced with dot notation and must be accessed using bracket notation.
... for example, if you had an object with a property named 3d, it can only be
referenced using bracket notation.
BigInt64Array - JavaScript
once established, you can
reference elements in the array using the object's methods, or by using standard array index syntax (that is, using bracket notation).
... instance properties bigint64array.prototype.buffer returns the arraybuffer
referenced by the bigint64array.
BigUint64Array - JavaScript
once established, you can
reference elements in the array using the object's methods, or by using standard array index syntax (that is, using bracket notation).
... instance properties biguint64array.prototype.buffer returns the arraybuffer
referenced by the biguint64array.
Float32Array - JavaScript
once established, you can
reference elements in the array using the object's methods, or using standard array index syntax (that is, using bracket notation).
... instance properties float32array.prototype.buffer returns the arraybuffer
referenced by the float32array fixed at construction time and thus read only.
Float64Array - JavaScript
once established, you can
reference elements in the array using the object's methods, or using standard array index syntax (that is, using bracket notation).
... instance properties float64array.prototype.buffer returns the arraybuffer
referenced by the float64array fixed at construction time and thus read only.
Int16Array - JavaScript
once established, you can
reference elements in the array using the object's methods, or using standard array index syntax (that is, using bracket notation).
... instance properties int16array.prototype.buffer returns the arraybuffer
referenced by the int16array fixed at construction time and thus read only.