Search completed in 1.65 seconds.
3392 results for "available":
Your results are loading. Please wait...
MediaRecorder.ondataavailable - Web APIs
the mediarecorder.ondataavailable event handler (part of the mediastream recording api) handles the dataavailable event, letting you run code in response to blob data being made available for use.
... the dataavailable event is fired when the mediarecorder delivers media data to your application for its use.
...this occurs in four situations: when the media stream ends, any media data not already delivered to your ondataavailable handler is passed in a single blob.
...And 9 more matches
Functions and classes available to Web Workers - Web APIs
in addition to the standard javascript set of functions (such as string, array, object, json, etc), there are a variety of functions available from the dom to workers.
...by default, methods and properties of window are not available to them, but dedicatedworkerglobalscope, like window, implements windowtimers and windowbase64.
... unknown no postmessage() yes, on dedicatedworkerglobalscope no no unknown no apis available in workers function functionality support in gecko (firefox) support in ie support in blink (chrome and opera) support in webkit (safari) broadcast channel api allows simple communication between browsing contexts (that is windows, tabs, frames, or iframes) with the same origin (usually pages from the same site).
...And 5 more matches
PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable() - Web APIs
isuserverifyingplatformauthenticatoravailable() is a static method of the publickeycredential interface that returns a promise which resolves to true if a user-verifying platform authenticator is available.
... at the time of this writing, this method's result only resolves to true on windows when windows hello capabilities are available (on recent versions of this os).
... note: this method may only be used in top-level contexts and will not be available in an <iframe> for example.
...And 4 more matches
PR_Available
determines the number of bytes (expressed as a 32-bit integer) that are available for reading beyond the current read-write pointer in a specified file or socket.
... syntax #include <prio.h> print32 pr_available(prfiledesc *fd); parameter the function has the following parameter: fd pointer to a prfiledesc object representing a file or socket.
... returns the function returns one of the following values: if the function completes successfully, it returns the number of bytes that are available for reading.
...And 3 more matches
PR_Available64
determines the number of bytes (expressed as a 32-bit integer) that are available for reading beyond the current read-write pointer in a specified file or socket.
... syntax #include <prio.h> print64 pr_available64(prfiledesc *fd); parameter the function has the following parameter: fd pointer to a prfiledesc object representing a file or socket.
... returns the function returns one of the following values: if the function completes successfully, it returns the number of bytes that are available for reading.
...And 3 more matches
MediaRecorder: dataavailable event - Web APIs
the mediarecorder interface's dataavailable event is fired when the mediarecorder delivers media data to your application for its use.
... bubbles no cancelable no interface blobevent event handler property ondataavailable for details of the all the possible reasons this event may raise, see the documentation for the event handler property: ondataavailable.
... examples using addeventlistener to listen for dataavailable events: ...
...And 3 more matches
RTCIceCandidatePairStats.availableIncomingBitrate - Web APIs
the rtcicecandidatepairstats property availableincomingbitrate returns a value indicative of the available inbound capacity of the network connection represented by the candidate pair.
... the higher the value, the more bandwidth you can assume is available for incoming data.
... you can get the incoming outgoing bitrate from availableoutgoingbitrate.
...And 3 more matches
RTCIceCandidatePairStats.availableOutgoingBitrate - Web APIs
the rtcicecandidatepairstats property availableoutgoingbitrate returns a value indicative of the available outbound capacity of the network connection represented by the candidate pair.
... the higher the value, the more bandwidth you can assume is available for outgoing data.
... you can get the incoming available bitrate from availableincomingbitrate.
...And 3 more matches
JS_SetGCParametersBasedOnAvailableMemory
this article covers features introduced in spidermonkey 31 adjust performance parameters related to garbage collection based on available memory.
... syntax void js_setgcparametersbasedonavailablememory(jsruntime *rt, uint32_t availmem); name type description rt jsruntime * the runtime to configure.
... value uint32_t the value of available memory in megabytes.
...And 2 more matches
451 Unavailable For Legal Reasons - HTTP
WebHTTPStatus451
the hypertext transfer protocol (http) 451 unavailable for legal reasons client error response code indicates that the user requested a resource that is not available due to legal reasons, such as a web page for which a legal action has been issued.
... status 451 unavailable for legal reasons example this example response is taken from the ietf rfc (see below) and contains a reference to monty python's life of brian.
... any attempt to identify the entity ultimately responsible for the resource being unavailable belongs in the response body, not in the rel="blocked-by" link.
... http/1.1 451 unavailable for legal reasons link: <https://spqr.example.org/legislatione>; rel="blocked-by" content-type: text/html <html> <head><title>unavailable for legal reasons</title></head> <body> <h1>unavailable for legal reasons</h1> <p>this request may not be serviced in the roman province of judea due to the lex julia majestatis, which disallows access to resources hosted on servers deemed to be operated by the people's front of judea.</p> </body> </html> specifications specification title rfc 7725: 451 unavailable for legal reasons an http status code to report legal obst...
diskSpaceAvailable - Archive of obsolete content
diskspaceavailable returns the amount of disk space available in bytes on the local disk.
... method of file object syntax double diskspaceavailable ( string nativefolderpath ); parameters the diskspaceavailable method has the following parameters: nativefolderpath a string representing the pathname of the partition, a file, or a directory on the partition whose space is being queried.
...example var diskamtneeded = 10000; f = getfolder("program"); diskspace = file.diskspaceavailable(f); g = getfolder(f, "myfile.txt"); if (diskspace > diskamtneeded) { err = addfile(..., ...
Navigator.mozIsLocallyAvailable() - Web APIs
the navigator.mozislocallyavailable() method allows add-ons to determine whether or not a given resource is available.
... syntax navigator.mozislocallyavailable(uri, ifoffline); parameters uri the uri of the resource whose availability is to be checked, as a string.
... example var available = navigator.mozislocallyavailable("my-image-file.png", true); if (available) { /* the offline resource is present */ } else { console.log("certain needed resources are not available offline"); } specifications not part of any specifications.
element-available - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the element-available function determines if an element is available and returns true or false.
... syntax element-available(qname ) arguments qname must evaluate to a valid qname.
...if the expanded-name has a null namespace uri, the element-available function will return false.
What text editors are available? - Learn web development
in particular (if possible in your editor), try to: change syntax highlighting settings and colors play with indentation width, setting it to an appropriate setting for your needs check autosave and session saving settings configure any available plugins and investigate how to get new ones change color schemes adjust view settings and see how you can change the layout of the views check what programming languages/technologies your editor supports while you're learning the default settings of most text editors should be fine to use, but it is important to become familiar with your chosen tools, so you can select the best one for your ...
...however, some editors are only available for certain oss, so if you like switching back and forth, that would narrow down the possibilities.
503 Service Unavailable - HTTP
WebHTTPStatus503
the hypertext transfer protocol (http) 503 service unavailable server error response code indicates that the server is not ready to handle the request.
... status 503 service unavailable specifications specification title rfc 7231, section 6.6.4: 503 service unavailable hypertext transfer protocol (http/1.1): semantics and content ...
function-available - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the function-available function determines if a given function is available and returns boolean true or false.
... syntax function-available(name ) arguments name the name of the function to test.
MozAudioAvailable - Archive of obsolete content
the mozaudioavailable event is fired when the audio buffer is full and the corresponding raw samples are available.
available
this content is now available at nsiinputstream.available().
available
this content is now available at nsiscriptableinputstream.available().
NotifyAudioAvailableEvent - Web APIs
the non-standard, obsolete, notifyaudioavailableevent interface defines the event sent to audio elements when the audio buffer is full.
Index - Web APIs
WebAPIIndex
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.
... 190 audiotrack.label api, audio, audio track, audiotrack, html dom, media, property, read-only, reference, label, metadata, track the read-only audiotrack property label returns a string specifying the audio track's human-readable label, if one is available; otherwise, it returns an empty string.
...each baseaudiocontext has a single audioworklet available under the audioworklet property, which runs its code in a single audioworkletglobalscope.
...And 141 more matches
Index
MozillaTechXPCOMIndex
this article will show you how to use the available interfaces in several mozilla products.
... 62 appshellservice xpcom:language bindings, xpconnect quitting mozilla: 63 nsiprofile interfaces, xpcom, xpcom:language bindings, xpconnect this interface is obsolete; you should use nsitoolkitprofileservice instead; however, reference documentation for nsiprofile is available if you're working with old code.
...it is available to trusted callers, meaning extensions and firefox components only.
...And 50 more matches
Document - Web APIs
WebAPIDocument
html, xml, svg, …), a larger api is available: html documents, served with the "text/html" content type, also implement the htmldocument interface, whereas xml and svg documents implement the xmldocument interface.
... document.pluginsread only returns a list of the available plugins.
... document.stylesheetsetsread only returns a list of the style sheet sets available on the document.
...And 46 more matches
Window - Web APIs
WebAPIWindow
however, the window interface is a suitable place to include these items that need to be globally available.
...since firefox 57 (initially nightly-only), both versions are only available from chrome (privileged) code, and not available to the web anymore.
... also available via the onerror property.
...And 38 more matches
Index - Archive of obsolete content
7 window: deviceproximity event sensors, events the deviceproximity event is fired when fresh data is available from a proximity sensor.
... 22 self this article documents the self object that is available as a global in content scripts.
...the code snippets on this page will let your site work until these new features are more widely available.
...And 37 more matches
Element - Web APIs
WebAPIElement
available only to webextensions.
... also available via the oncancel property.
... also available via the onerror property.
...And 29 more matches
Index
the crmf library, which is used to produce certain kinds of certificate requests, is available as a library for static linking only.
...in order to process data available in the asn.1 format, the usual approach is to parse it and transfer it to a presentation that requires more space but is easier to work with, such as (nested) c data structures.
...a recent development adds support for loading external pem files that contain private keys, in a software library called nss-pem, which is separately available, but should eventually become a core part of nss.
...And 25 more matches
Space Manager Detailed Design - Archive of obsolete content
nsspacemanager the space manager is the central class is a group of classes that manage the occupied and available space that exists in horizontal bands across a canvas.
...here is the class declaration, taken from the source file as of 01.08.02 /** * class for dealing with bands of available space.
...the band data * indicates which parts of the band are available, and which parts * are unavailable * * the band data that is returned is in the coordinate space of the * local coordinate system.
...And 20 more matches
HTMLElement - Web APIs
also available via the oninvalid property.
... also available via the onanimationcancel property.
... also available via the onanimationend property.
...And 17 more matches
Shell global objects
this page lists variables and functions available on spidermonkey 53.
... shell only functions functions always available version([number]) get or force a script compilation version number.
... functions available only in debug build disassemble([fun/code]) return the disassembly for the given function or code.
...And 15 more matches
Index - Learn web development
10 wai-aria basics aria, accessibility, article, beginner, codingscripting, guide, html, javascript, learn, wai-aria, semantics this article has by no means covered all that's available in wai-aria, but it should have given you enough information to understand how to use it, and know some of the most common patterns you will encounter that require it.
...in this article we'll discuss how to do that, using various available options such as sftp clients, rsync and github.
...they provide a human-readable address for any web server available on the internet.
...And 14 more matches
Object prototypes - Learn web development
this is often referred to as a prototype chain, and explains why different objects have properties and methods defined on other objects available to them.
... note: it's important to understand that there is a distinction between an object's prototype (available via object.getprototypeof(obj), or via the deprecated __proto__ property) and the prototype property on constructor functions.
... { 'first': first, 'last' : last }; this.age = age; this.gender = gender; //...see link in summary above for full definition } we have then created an object instance like this: let person1 = new person('bob', 'smith', 32, 'male', ['music', 'skiing']); if you type "person1." into your javascript console, you should see the browser try to auto-complete this with the member names available on this object: in this list, you will see the members defined on person1's constructor — person() — name, age, gender, interests, bio, and greeting.
...And 14 more matches
nsIDOMMozNetworkStatsManager
you can test for the presence of the service as follows, for example: if ("moznetworkstats" in navigator) { /* networkstats is available */ } else { alert("i'm sorry, but networkstats services are not supported."); } method overview nsidomdomrequest getsamples(in nsisupports network, in jsval start, in jsval end, [optional] in jsval options /* networkstatsgetoptions */); nsidomdomrequest addalarm(in nsisupports ne...
... in long threshold, [optional] in jsval options /* networkstatsalarmoptions */); nsidomdomrequest getallalarms([optional] in nsisupports network); nsidomdomrequest removealarms([optional] in long alarmid); nsidomdomrequest clearstats(in nsisupports network); nsidomdomrequest clearallstats(); nsidomdomrequest getavailablenetworks(); nsidomdomrequest getavailableservicetypes(); attributes attribute type description samplerate long minimum time in milliseconds between samples stored in the database.
...to know in advance which kind of origin is available, the moznetworkstatsmanager.getavailablenetworks method returns an array of interfaces.
...And 14 more matches
Fundamental text and font styling - Learn web development
the browser will only apply a font if it is available on the machine the website is being accessed on; if not, it will just use a browser default font.
... web safe fonts speaking of font availability, there are only a certain number of fonts that are generally available across all systems and can therefore be used without much worry.
...the problem is to find a way to know which font is available on the computer used to see our web pages.
...And 13 more matches
RTCPeerConnection - Web APIs
also available through the onconnectionstatechange event handler property.
... also available through the ondatachannel event handler property.
... also available through the onicecandidate event handler property.
...And 13 more matches
Reading from Files - Archive of obsolete content
file and stream guide: [ nsiscriptableio | accessing files | getting file information | reading from files | writing to files | moving, copying and deleting files | uploading and downloading files | working with directories ] important note: the pages from the file and stream guide use the io object (nsiscriptableio), which was not available in any released version of the platform (pending some fixes).
...other documentation on files and i/o not using the unavailable nsiscriptableio apis: code snippets: file i/o, open and save dialogs, reading textual data, writing textual data, list of file-related error codes.
...however, a number of other character encodings are available; see reading other character encodings below for details about reading text in other encodings.
...And 12 more matches
BasicCardResponse - Web APIs
} once the payment flow has been triggered using paymentrequest.show() and the promise resolves successfully, the paymentresponse object available inside the fulfilled promise (instrumentresponse above) will have a paymentresponse.details property that will contain response details.
...iandroid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetbasiccardresponsechrome 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 preference (needs to be set to true) and the dom.payments.request.supportedregions preference (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.).
... webview android no support 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 preference (needs to be set to true) and the dom.payments.request.supportedregions preference (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 12 more matches
Mozilla’s UAAG evaluation report
(p1) nr need to look into this 2.5 make captions, transcripts available.
...(p1) vg the dom is available in-process, but not via an out-of-process (com) interface.
...(p1) g the dom is available in-process, but not via an out-of-process (com) interface.
...And 11 more matches
imgIDecoderObserver
method overview void ondataavailable(in imgirequest arequest, in boolean acurrentframe, [const] in nsintrect arect); native code only!
...in imgirequest arequest); void onstopcontainer(in imgirequest arequest, in imgicontainer acontainer); void onstopdecode(in imgirequest arequest, in nsresult status, in wstring statusarg); void onstopframe(in imgirequest arequest, in unsigned long aframe); void onstoprequest(in imgirequest arequest, in boolean aislastpart); methods native code only!ondataavailable decode notification.
...void ondataavailable( in imgirequest arequest, in boolean acurrentframe, [const] in nsintrect arect ); parameters arequest the request on which data is available, or null if being called for an imgidecoder object.
...And 11 more matches
Key Values - Web APIs
corresponding virtual keycodes for common platforms are included where available.
... korean keyboards only these keys are only available on korean keyboards.
... japanese keyboards only these keys are only available on japanese keyboards.
...And 11 more matches
Web video codec guide - Web media technologies
ting the higher the quality configuration, the more like the original media the encoded video will look in general, higher quality settings will result in larger encoded video files; the degree to which this is true varies depending on the codec bit rate quality generally improves with higher bit rates higher bit rates inherently lead to larger output files the options available when encoding video, and the values to be assigned to those options, will vary not only from one codec to another but depending on the encoding software you use.
...there are a number of other profiles available that are not included here.
...however, few web browsers support mpeg-1 video without the support of a plugin, and with plugin use deprecated in web browsers, these are generally no longer available.
...And 11 more matches
Space Manager High Level Design - Archive of obsolete content
overview the space manager and associated classes and structures are used by block and line layout to manage rectangular regions that are occupied and available, for correct handling of floated elements and the elements that flow around them.
...the space manager is responsible for keeping track of where space is taken up and where it is available.
... this information is used by block layout to correctly compute where other floated elements should be placed, and how much space is available to normal in-flow elements that flow around the floated bits.
...And 10 more matches
Introduction to web APIs - Learn web development
application programming interfaces (apis) are constructs made available in programming languages to allow developers to create complex functionality more easily.
... apis in client-side javascript client-side javascript, in particular, has many apis available to it — these are not part of the javascript language itself, rather they are built on top of the core javascript language, providing you with extra superpowers to use in your javascript code.
...note that javascript is also available in other programming environments, such as node.
...And 10 more matches
HTML parser threading
the nsistreamlistener methods (onstartrequest, ondataavailable and onstoprequest) are called on the main thread.
...ondataavailable and onstoprequest on the main thread post runnables on to the parser thread.
... there runnables obtain mtokenizermutex and call dodataavailable and dostoprequest, repectively, on the parser thread.
...And 10 more matches
L20n Javascript API
ctx.localize(['hello', 'new'], function(l10n) { var node = document.queryselector('[data-l10n-id=hello]'); node.textcontent = l10n.entities.hello.value; node.classlist.remove('hidden'); }); ctx.registerlocales(defaultlocale: string?, availablelocales: array<string>?) register the default locale of the context instance, as well as all other locales available to the context instance before the language negotiation.
... availablelocales is an array of all locales available to the context instance.
... ctx.registerlocalenegotiator(function(available, requested, deflocale) { return intl.prioritizelocales(available, requested, deflocale); }); negotiator is a function which takes the following arguments: available - all locales available to the context instance, requested - locales preferred by the user, deflocale - the default locale to be used as the ultimate fallback, callback - the function to call when the negotiation completes (us...
...And 10 more matches
Observer Notifications
many things are not available for use at this point.
...prior to firefox 3.5, this was available to observers observing the app-startup/xpcom-startup notification.
... profile-change-teardown part of the shutdown, profile data is still available at this point.
...And 10 more matches
Starting up and shutting down a WebXR session - Web APIs
this object represents the overall webxr device suite available to you through the hardware and drivers available on the user's equipment.
... there is a global xrsystem object available for use by your document through the the navigator property xr, which returns the xrsystem object if suitable xr hardware is available for your use given the hardware available and your document's environment.
... thus the simplest code that fetches the xrsystem object is: const xr = navigator.xr; the value of xr will be null or undefined if webxr isn't available.
...And 10 more matches
Media container formats (file types) - Web media technologies
[2] available only if available on the underlying operating system's media framework.
... [2] firefox support for h.264 relies upon the operating system's media infrastructure, so it is available as long as the os supports it.
... [2] firefox support for aac relies upon the operating system's media infrastructure, so it is available as long as the os supports it.
...And 10 more matches
Browser Detection and Cross Browser Support - Archive of obsolete content
user agent strings are defined in the http protocol and are available to web servers (see rfc 1945 - hypertext transfer protocol 1.0 and rfc 2068 - hypertext transfer protocol 1.1).
...in addition to navigator.useragent other properties such as appname and appversion were available in the navigator object which could be used in browser vendor/version detection strategies.
...this generation of browser, in addition to sharing several features which were not available in earlier versions, each implemented their own (incompatible) competing abilities to manipulate content in a web page.
...And 9 more matches
Introduction to events - Learn web development
each available event has an event handler, which is a block of code (usually a javascript function that you as a programmer create) that runs when the event fires.
...the btn constant points to a <button> element, and this type of object has a number of events that can fire on it, and therefore, event handlers available.
...it is essentially a property like any other available on the button (e.g.
...And 9 more matches
Handling common JavaScript problems - Learn web development
many code editors have linter plugins, for example github's atom code editor has a jshint plugin available.
... other popular editors have similar linting packages available.
... it is worth mentioning command line uses — you can install these tools as command line utilities (available via the cli — command line interface) using npm (node package manager — you'll have to install nodejs first).
...And 9 more matches
ServiceWorkerGlobalScope - Web APIs
also available via the serviceworkerglobalscope.onactivate property.
... also available via the serviceworkerglobalscope.oncontentdelete property.
... also available via the serviceworkerglobalscope.onfetch property.
...And 9 more matches
Reference - Archive of obsolete content
in fx 1.0, js 1.2 is available, but not in the upcoming fx 1.5.
...thanks :) -- dria deprecated pre box is there any wiki markup available for deprecated examples?
...but when we create a prototype method for object its also available in function object.prototype.myfunction = function() {}; alert(object.myfunction); //available in object alert(function.myfunction); //available in function also the opposite is correct, when we create a prototype method for function it is available in object function.prototype.myfunction = function() {}; alert(object.myfunction); //available in object alert(function.myfunction); //availab...
...And 8 more matches
Introduction to automated testing - Learn web development
in this article, we look at what is available, how to use task runners, and how to use the basics of commercial browser test automation apps such as lambdatest, sauce labs, browserstack, and testingbot.
... first, install gulp globally (meaning, it will be available across all projects) using the following command: npm install --global gulp-cli next, run the following command inside your npm project directory root to set up gulp as a dependency of your project: npm install --save-dev gulp now create a new file inside your project directory called gulpfile.js.
... other task runners there are many other task runners available.
...And 8 more matches
Strategies for carrying out testing - Learn web development
if you have these available, they are far more accurate than global browser stats like those mentioned above.
... the following are also good options, if you can get them: a linux pc available, in case you need to test bugs specific to linux versions of browsers.
...if you only have one machine available, you could consider creating a dual boot machine running linux and windows on separate partitions.
...And 8 more matches
Command line crash course - Learn web development
viewing the command line for the first time can be a daunting experience: a blank screen and a blinking cursor, with very little obvious help available on what to do.
... below you can see some of the different flavours of programs that are available that can get you to a terminal.
... the next images show the command prompts available in windows — there’s a good range of options from the "cmd" program to "powershell" — which can be run from the start menu by typing the program name.
...And 8 more matches
Profiling with the Firefox Profiler
the firefox profiler is a profiler that is built into firefox and is available at profiler.firefox.com.
...it can be used in a variety of situations where external profilers are not available, and can provide more information and insight into what the browser is doing.
...there are also product docs available at profiler.firefox.com/docs/.
...And 8 more matches
Using XPCOM Components
cookie manager cookie management is one of the many sets of functionality that is made available to the browser in the form of an xpcom component and that can be reused by developers who want similar functionality in their applications.
... the functionality of the cookiemanager component is available through the nsicookiemanager interface, which is comprised of the public methods in the table below.
...though not every api in mozilla is or should be "xpcomified", much if not all of the typical functionality that browsers provide is available in components that can be reused via browser extensions and/or gecko embedders.
...And 8 more matches
nsIHttpChannel
netwerk/protocol/http/nsihttpchannel.idlscriptable this interface allows for the modification of http request parameters and the inspection of the resulting http response status and headers when they become available.
... exceptions thrown ns_error_not_available if called before the response has been received (before onstartrequest()).
... exceptions thrown ns_error_not_available if called before the response has been received (before onstartrequest()).
...And 8 more matches
SpeechRecognition - Web APIs
also available via the onaudiostart property.
... also available via the onaudioend property.
... also available via the onend property.
...And 8 more matches
Web audio codec guide - Web media technologies
sample rate the more samples available per second, the higher the resulting encoded audio fidelity is likely to be.
... joint stereo can reduce the size of the encoded audio to some extent the parameters available—and the range of possible values—varies from codec to codec, and even among different encoding utilities for the same codec, so read the documentation that comes with the encoding software you use to learn more.
...in addition, aac is not available in chromium builds.
...And 8 more matches
Mozilla Crypto FAQ - Archive of obsolete content
at that point both nss and psm will be completely buildable using the open source code available from the mozilla.org site, and nss and psm will be included in the mozilla binary releases distributed by mozilla.org.
...s/mime support is also under development, but may not be available in mozilla until after the 1.0 release.
...nss 3.1 will be available in beta form in september 2000, with the final release to follow in october 2000.
...And 7 more matches
Mozilla release FAQ - Archive of obsolete content
the code has been continually available since then via cvs (see section 1.8), and occasional binary releases (first as milestones, and more recently as versioned releases) have been made.
...mozilla is continually available via cvs, and also is occasionally released as versioned numbers.
...what resources are available to the mozilla community?
...And 7 more matches
Accessible multimedia - Learn web development
but don't despair — here we will help you navigate through the techniques available for making multimedia more accessible.
...in short, you should ensure that where possible visual content has an alternative text available for screenreaders to pick up and read to their users.
...dbtn = 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 itself — 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.
...And 7 more matches
Flexbox - Learn web development
for a long time, the only reliable cross browser-compatible tools available for creating css layouts were things like floats and positioning.
... making all the children of a container take up an equal amount of the available width/height, regardless of how much width/height is available.
... first, add the following rule to the bottom of your css: article { flex: 1; } this is a unitless proportion value that dictates how much of the available space along the main axis each flex item will take up compared to other flex items.
...And 7 more matches
Drawing graphics - Learn web development
while you could use css and javascript to animate (and otherwise manipulate) svg vector images — as they are represented by markup — there was still no way to do the same for bitmap images, and the tools available were rather limited.
...we wanted to make the canvas width and height easily accessible in the width/height variables, as they are useful values to have available for later (for example, if you want to draw something exactly halfway across the width of the canvas).
...at this point your example should look like this: note: the finished code is available on github as 2_canvas_rectangles.html.
...And 7 more matches
Handling common accessibility problems - Learn web development
using native keyboard accessibility certain html features can be selected using only the keyboard — this is default behavior, available since the early days of the web.
... note that different browsers may have different keyboard control options available.
...the simplest text alternative available is the humble alt attribute, which we should include on all images that contain relevant content.
...And 7 more matches
Mozilla DOM Hacking Guide
fortunately, xpconnect provides us with a way to make our class available as an array in javascript.
...it is the name of the javascript object that will be available in the browser through the dom.
... const nsiid *mprotochaininterface: pointer to the iid of the first interface available to javascript clients.
...And 7 more matches
NSS tools : certutil
the command option -h will list all the command options available and their relevant arguments.
... -u list all available modules or print a single named module.
...there are three available trust categories for each certificate, expressed in the order ssl, email, object signing for each trust setting.
...And 7 more matches
certutil
run the command option and -h to see the arguments available for each command option.
... -u list all available modules or print a single named module.
...there are three available trust categories for each certificate, expressed in the order ssl, email, object signing for each trust setting.
...And 7 more matches
NSS tools : signtool
the -g option is available in netscape signing tool 1.0 and later versions only.
...the -l option is available in netscape signing tool 1.0 and later versions only.
...the -j option is available only in netscape signing tool 1.0 and later versions.
...And 7 more matches
WebIDL bindings
if the interface is not exposed on any worker global, the argument will be a nsiprincipal& because a subject principal is always available in mainthread globals.
... optional<t> has a waspassed() getter that returns true if a value is available.
...it has a conversion operator to nsstring& so that it can be passed to methods that take that type or nsastring&, but callees that care about performance, have an nsstringbuffer available, and promise to hold on to the nsstringbuffer at least until the binding code comes off the stack can also take a domstring directly for their string return value and call its setstringbuffer method with the nsstringbuffer and its length.
...And 7 more matches
Using Service Workers - Web APIs
this is already available with native apps, which is one of the main reasons native apps are often chosen over web apps.
...this is really the same kind of procedure as installing a native or firefox os app — making everything available for use offline.
... the below graphic shows a summary of the available service worker events: promises promises are a great mechanism for running async operations, with success dependant on one another.
...And 7 more matches
Using the Web Storage API - Web APIs
the two mechanisms within web storage are as follows: sessionstorage maintains a separate storage area for each given origin that's available for the duration of the page session (as long as the browser is open, including page reloads and restores).
... these mechanisms are available via the window.sessionstorage and window.localstorage properties (to be more precise, in supporting browsers the window object implements the windowlocalstorage and windowsessionstorage objects, which the localstorage and sessionstorage properties are members of) — invoking one of these will create an instance of the storage object, through which data items can be set, retrieved, and removed.
... feature-detecting localstorage to be able to use localstorage, we should first verify that it is supported and available in the current browsing session.
...And 7 more matches
WorkerGlobalScope - Web APIs
it is a regular performance object, except that only a subset of its property and methods are available to workers.
... also available via the workerglobalscope.onerror property.
... also available via the workerglobalscope.onoffline property.
...And 7 more matches
XRSession - Web APIs
WebAPIXRSession
also available through the onend event handler property.
... also available through the oninputsourceschange event handler property.
... also available through the onselect event handler property.
...And 7 more matches
Add to Home screen - Progressive web apps (PWAs)
add to home screen (or a2hs for short) is a feature available in modern browsers that allows a user to "install" a web app, ie.
... if you have firefox for android available, use it to navigate to our demo at https://mdn.github.io/pwa-examples/a2hs/.
...(note: in android 8 and higher, a system-level "add to home screen" permission dialog will be shown first.) if you have mobile chrome available, the experience is slightly different; upon loading our site, you'll see an install banner pop up asking whether you want to add this app to your home screen.
...And 7 more matches
package.json - Archive of obsolete content
note: this is deprecated along with cfx; it's not available when using jpm.
... firefox: firefox desktop fennec: firefox for android thunderbird: thunderbird seamonkey: seamonkey any application uuid example: "engines": { "firefox": ">= 38.0a1", "fennec": ">= 38.0a1" } fullname note: this is deprecated along with cfx; it's not available when using jpm.
... harnessclassid note: this is deprecated along with cfx; it's not available when using jpm.
...And 6 more matches
MCD, Mission Control Desktop, AKA AutoConfig - Archive of obsolete content
ref: bug 690370 available functions are (see prefcalls.js file for details): function getprefbranch() function pref(prefname, value) function defaultpref(prefname, value) function lockpref(prefname, value) function unlockpref(prefname) function getpref(prefname) function getldapattributes(host, base, filter, attribs) function getldapvalue(str, key) function displayerror(funcname, message) function getenv(name) config...
...(or firefox.cfg if for firefox...) file encoding if needed, the encoding can be done with the perl script: moz-byteshift.pl available at http://www.alain.knaff.lu/howto/mozi...z-byteshift.pl.
...o "user defined" processldapvalues */ function processldapvalues(values) { if(values) { // set the global var with the values returned from the ldap query ldap_values = values; var uid = getldapvalue(values, "uid"); var cn = getldapvalue(values, "cn"); var mail = getldapvalue(values, "mail"); var url = getldapvalue(values, "labeleduri"); // those ldap variables are only available in this processldapvalues context!
...And 6 more matches
How to build custom form controls - Learn web development
there are some cases where the available native html form controls may seem like they are not enough.
...if you want to learn more about this topic, you should check out the following helpful resources: uxmatters.com uxdesign.com the ux design section of smashingmagazine note: also, in most systems there is a way to open the <select> element with the keyboard to look at all the available choices (this is the same as clicking the <select> element with a mouse).
...--> <div class="select" tabindex="0"> <!-- this container will be used to display the current value of the control --> <span class="value">cherry</span> <!-- this container will contain all the options available for our control.
...And 6 more matches
Client-side storage - Learn web development
these days, there are easier mechanisms available for storing client-side data, therefore we won't be teaching you how to use cookies in this article.
... enter the following lines again: let myname = localstorage.getitem('name'); myname you should see that the value is still available, even though the browser has been closed and then opened again.
...you will see that if you load two websites (say google.com and amazon.com) and try storing an item on one website, it won't be available to the other website.
...And 6 more matches
Third-party APIs - Learn web development
to access them from javascript you first need to connect to the api functionality and make it available on your page.
... this typically involves first linking to a javascript library available on the server via a <script> element, as seen in our mapquest example: <script src="https://api.mqcdn.com/sdk/mapquest-js/v1.3.2/mapquest.js"></script> <link type="text/css" rel="stylesheet" href="https://api.mqcdn.com/sdk/mapquest-js/v1.3.2/mapquest.css"/> you can then start using the objects available in that library.
...the tilelayer reference page shows the different available options, plus a lot more information.
...And 6 more matches
XPCOM Stream Guide
MozillaTechXPCOMGuideStreams
it is not that sequence of characters, though: the characters may not all be available when you read from the stream.
...if you have an input stream called nativestream, you can use code like this: var stream = components.classes["@mozilla.org/scriptableinputstream;1"] .createinstance(components.interfaces.nsiscriptableinputstream); stream.init(nativestream); the stream provides .read(count), .available(), and .close() methods.
..."@mozilla.org/storagestream;1"] .createinstance(components.interfaces.nsistoragestream) .getoutputstream(); var instream = components.classes["@mozilla.org/io/string-input-stream;1"] .createinstance(components.interfaces.nsistringinputstream); var data = "hello world"; instream.setdata(data, data.length); while (instream.available()) { outstream.writefrom(instream, instream.available()); } note this is an inefficient example: the only important part is how to feed the output stream.
...And 6 more matches
Console messages - Firefox Developer Tools
the following icons may be used: informational message warning error blocked; for network messages in addition, a disclosure triangle indicates that further information is available; clicking it displays or collapses that information.
... the context menu options listed below are available on all message categories.
... select all selects all messages available in the message display pane.
...And 6 more matches
MediaStream Recording API - Web APIs
the data is delivered by a series of dataavailable events, already in the format you specify when creating the mediarecorder.
... set mediarecorder.ondataavailable to an event handler for the dataavailable event; this will be called whenever data is available for you.
... your dataavailable event handler gets called every time there's data ready for you to do with as you will; the event has a data attribute whose value is a blob that contains the media data.
...And 6 more matches
Using Web Workers - Web APIs
but you can use a large number of items available under window, including websockets, and data storage mechanisms like indexeddb.
... see functions and classes available to workers for more details.
...eceived by writing an event handler block like this (worker.js): onmessage = function(e) { console.log('message received from main script'); var workerresult = 'result: ' + (e.data[0] * e.data[1]); console.log('posting message back to main script'); postmessage(workerresult); } the onmessage handler allows us to run some code whenever a message is received, with the message itself being available in the message event's data attribute.
...And 6 more matches
font-weight - CSS: Cascading Style Sheets
the weights available depend on the font-family that is currently set.
... fallback weights if the exact weight given is unavailable, then the following rule is used to determine the weight actually rendered: if the target weight given is between 400 and 500 inclusive: look for available weights between the target and 500, in ascending order.
... if no match is found, look for available weights less than the target, in descending order.
...And 6 more matches
Introducing the Audio API extension - Archive of obsolete content
reading audio streams the loadedmetadata event when the metadata of the media element is available, it triggers a loadedmetadata event.
... </audio> <script> function loadedmetadata() { channels = audio.mozchannels; rate = audio.mozsamplerate; framebufferlength = audio.mozframebufferlength; } var audio = document.getelementbyid('audio-element'); audio.addeventlistener('loadedmetadata', loadedmetadata, false); </script> </body> </html> the mozaudioavailable event as the audio is played, sample data is made available to the audio layer and the audio buffer (size defined in mozframebufferlength) gets filled with those samples.
... once the buffer is full, the event mozaudioavailable is triggered.
...And 5 more matches
Index - Archive of obsolete content
ArchiveMozillaXULIndex
for instance, the edit menu always starts with the undo command if such a feature is available in the application, followed by redo, cut, copy, paste, and so forth.
... 968 using spell checking in xul add-ons, extensions spell checking functionality is available starting in firefox 2.
...on macintosh, accesskeys are available only in html not in xul, and they are activated using ctrl+letter instead of alt.
...And 5 more matches
Archived Mozilla and build documentation - Archive of obsolete content
further details on smaller tasks being done are available at user:dria:todo page.
... error console the error console is a tool available in most mozilla-based applications that is used for reporting errors in the application chrome and in web pages user opens.
...most of these services are available via the dom window object as window.crypto.
...And 5 more matches
Web fonts - Learn web development
previous overview: styling text next in the first article of the module, we explored the basic css features available for styling fonts and text.
...this takes one or more font family names, and the browser travels down the list until it finds a font it has available on the system it is running on: p { font-family: helvetica, "trebuchet ms", verdana, sans-serif; } this system works well, but traditionally web developers' font choices were limited.
... there are only a handful of fonts that you can guarantee to be available across all common systems — the so-called web-safe fonts.
...And 5 more matches
Command line options
some options have abbreviations, for example, "-editor" can be abbreviated as "-edit" (available abbreviations are described in the text below).
... firefox -new-instance -p "another profile" note: not available for windows, see bug 855899.
... firefox -remote "openurl(www.mozilla.org, new-tab)" this option is only available on x-windows unix platforms.
...And 5 more matches
JavaScript OS.Constants
module os.constants is always available for chrome workers.
... os.constants.libc is available on all platforms, although some constants are not defined everywhere.
... error values eacces permission denied eagain resource temporarily unavailable ebadf bad file descriptor eexist file exists efault bad address efbig file too large einval invalid argument eio input/output error eisdir is a directory eloop (not always available under windows) too many levels of symbolic links.
...And 5 more matches
nsIInputStream
a blocking input stream may suspend the calling thread in order to satisfy a call to close(), available(), read(), or readsegments().
... method overview unsigned long available();deprecated since gecko 17.0 unsigned long long available(); void close(); boolean isnonblocking(); unsigned long read(in charptr abuf, in unsigned long acount); native code only!
... methods available() determine number of bytes available in the stream.
...And 5 more matches
Migrating from Firebug - Firefox Developer Tools
when migrating from firebug to the firefox developer tools, you may wonder where the features you loved in firebug are available in the developer tools.
... console api to log things to the console from within the web page firebug makes a console api available within the page.
...in the devtools this option is called enable persistent logs and is available within the toolbox options panel.
...And 5 more matches
HTMLMediaElement - Web APIs
htmlmediaelement.autoplay a boolean that reflects the autoplay html attribute, indicating whether playback should automatically begin as soon as enough media is available to do so without interruption.
...if no media data is available, the returned value is nan.
... htmlmediaelement.mozframebufferlength is a unsigned long that indicates the number of samples that will be returned in the framebuffer of each mozaudioavailable event.
...And 5 more matches
MediaStreamTrack - Web APIs
methods mediastreamtrack.applyconstraints() lets the application specify the ideal and/or ranges of acceptable values for any number of the available constrainable properties of the mediastreamtrack.
... mediastreamtrack.getcapabilities() returns the a list of constrainable properties available for the mediastreamtrack.
... also available using the onended event handler property.
...And 5 more matches
SpeechSynthesisUtterance - Web APIs
also available via the onboundary property.
... also available via the onend property.
... also available via the onerror property mark fired when the spoken utterance reaches a named ssml "mark" tag.
...And 5 more matches
Inputs and input sources - Web APIs
in this guide, we'll look at how to use webxr's input device management features to determine what input sources are available and how to then monitor those sources for inputs in order to handle user interactivity with your virtual or augmented environment.
... properties of input sources each individual xrinputsource has a set of properties that describe the input's available axes and buttons, which hand the user's holding it in, and how the input source is used to handle targeting within the 3d space.
... gamepad record each input source has a gamepad property which, if not null, is a gamepad object describing the various controls and widgets available on the controller.
...And 5 more matches
XMLHttpRequest - Web APIs
not available in workers.
... also available via the onabort property.
... also available via the onerror property.
...And 5 more matches
Controlling Ratios of Flex Items Along the Main Axis - CSS: Cascading Style Sheets
flex item sizing in order to work out how much space there is available to lay out flex items, the browser needs to know how big the item is to start with.
...in a browser that supports this keyword you should be able to see that the text has taken all of the soft wrapping opportunities available to it, becoming as small as it can be without overflowing.
... we have negative free space when the natural size of the items adds up to larger than the available space in the flex container.
...And 5 more matches
<input>: The Input (Form Input) element - HTML: Hypertext Markup Language
WebHTMLElementinput
the html <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.
... the available types are as follows: type description basic examples spec button a push button with no default behavior displaying the value of the value attribute, empty by default.
...disabled inputs are typically rendered with a dimmer color or using some other form of indication that the field is not available for use.
...And 5 more matches
Progressive web app structure - Progressive web apps (PWAs)
app shell the app shell concept is concerned with loading a minimal user interface as soon as possible and then caching it so it is available offline for subsequent visits before then loading all the contents of the app.
... that way, the next time someone visits the app from the device, the ui loads from the cache immediately and any new content is requested from the server (if it isn’t available in the cache already).
...it also allows the website to be accessible offline if the network connection is not available.
...And 5 more matches
Making PWAs work offline with Service workers - Progressive web apps (PWAs)
they finally fix issues that front-end developers have struggled with for years — most notably how to properly cache the assets of a website and make them available when the user’s device is offline.
...if a resource is cached and available offline, return it first before trying to download it from the server.
... caches is a special cachestorage object available in the scope of the given service worker to enable saving data — saving to web storage won't work, because web storage is synchronous.
...And 5 more matches
File I/O - Archive of obsolete content
only use these legacy interfaces if os.file is not available to you.
...second choice when profdef is not available.
... look in the source for other strings available: xpcom/io/nsappdirectoryservicedefs.h, xpcom/io/nsdirectoryservicedefs.h.
...And 4 more matches
Mozilla Application Framework in Detail - Archive of obsolete content
gecko is the premier cross-platform, full-featured, mature and well-tested layout engine available, providing robust and high quality support for a massive array of standards.
...open source and freely available, gecko is small in size and modular and achieves rendering speed superior to all other browser engines - which makes it perfect for embedding into both desktop applications such as browsers and new devices such as browsing appliances and set top boxes.
... modular, embeddable: gecko's modular architecture enables developers to add or remove modules with little effort, fitting the software to the available hardware and adjusting functionality to match product requirements.
...And 4 more matches
Installer Script - Archive of obsolete content
var spaceavailable; 5.
... // get the available disk space on the given path 6.
... spaceavailable = filegetdiskspaceavailable(dirpath); 7.
...And 4 more matches
tree - Archive of obsolete content
ArchiveMozillaXULtree
the second column lists the interfaces available via the tree's view property.
... more information is available in the xul tutorial.
...for trees that are not built with a content builder, the functions of nsitreecontentview will not be available, since there are no dom nodes to retrieve.
...And 4 more matches
Inheritance in JavaScript - Learn web development
the new object has person.prototype as its prototype and will therefore inherit, if and when needed, all the methods available on person.prototype.
...the query on line 4 accesses a member that is available only on the more specialized teacher() constructor (class).
... a common way is to use a javascript library — most of the popular options have an easy set of functionality available for doing inheritance more easily and quickly.
...And 4 more matches
Working with JSON - Learn web development
this is not a big issue — javascript provides a global json object that has methods available for converting between the two.
... note: we've made the json seen above available inside a variable in our jsontest.html example (see the source code).
...at the moment it only contains two lines, which grab references to the <header> and <section> elements and store them in variables: const header = document.queryselector('header'); const section = document.queryselector('section'); we have made our json data available on our github, at https://mdn.github.io/learning-area/javascript/oojs/json/superheroes.json.
...And 4 more matches
Client-side tooling overview - Learn web development
overview: understanding client-side tools next in this article we provide an overview of modern web tooling, what kinds of tools are available and where you’ll meet them in the lifecycle of web app development, and how to find help with individual tools.
... this part of the tooling should be specific to your own development environment, though it’s not uncommon for companies to have some kind of policy or pre-baked configuration available to install so that all their developers are all using the same processes.
...it is available as a node.js command-line tool and a vs code extension.
...And 4 more matches
UpdateListener
for each individual update check, the following methods will be called on the listener: either oncompatibilityupdateavailable() or onnocompatibilityupdateavailable(), depending on whether compatibility information for the requested application version was seen.
... either onupdateavailable() or onnoupdateavailable(), depending on whether a newer version of the addon was found.
... method overview void oncompatibilityupdateavailable(in addon addon) void onnocompatibilityupdateavailable(in addon addon) void onupdateavailable(in addon addon, in addoninstall install) void onnoupdateavailable(in addon addon) void onupdatefinished(in addon addon, in integer error) methods oncompatibilityupdateavailable() called when the update check found compatibility information for the application and platform version that the update check was being performed for.
...And 4 more matches
NSS FAQ
MozillaProjectsNSSFAQ
netscape no longer maintains sslref or makes it available.
...for complete details, see encryption technologies available in nss 3.11 what is the relationship between nss and psm?
...netscape personal security manager ships with netscape 6 and the gateway connected touch pad with instant aol, and is also available for use with communicator 4.7x.
...And 4 more matches
nsIHttpChannelInternal
this may throw an ns_error_not_available exception if accessed when the channel's endpoints haven't been determined yet, or any time the nsihttpactivityobserver.isactive attribute is false.
...this may throw an ns_error_not_available exception if accessed when the channel's endpoints haven't been determined yet, or any time the nsihttpactivityobserver.isactive attribute is false.
...this may throw an ns_error_not_available exception if accessed when the channel's endpoints haven't been determined yet, or any time the nsihttpactivityobserver.isactive attribute is false.
...And 4 more matches
nsIProtocolProxyService
if this proxy is unavailable, getfailoverforproxy() may be called to determine the correct secondary proxy to be used.
... acallback the object to be notified when the result is available.
...if canceled, the cancellation status (areason) will be forwarded to the callback's nsiprotocolproxycallback.onproxyavailable() method via the astatus parameter.
...And 4 more matches
Debugger - Firefox Developer Tools
allowwasmbinarysource a boolean value indicating whether webassembly sources will be available in binary form.
...(allowing the handler to substitute its own value for the new global object doesn’t seem useful.) this handler method is only available to debuggers running in privileged code (“chrome”, in firefox).
...for this reason, onnewglobalobject is only available to privileged code.
...And 4 more matches
Edit fonts - Firefox Developer Tools
this article provides a tour of the font tools available in the firefox devtools.
... note: the updated font tools as shown in this article are available in firefox 63 onwards; if you are using an older version of firefox the tools will not look or behave quite the same, but they will be similar (most notably the font editor will not be available).
... note: if you want to use a different unit such as pt for font-size or line-height, you can set the property value applied to the currently inspected element to use that unit via the rules view, and the font editor will automatically pick it up and make it available in the associated units dropdown menu.
...And 4 more matches
FileReader - Web APIs
note: this feature is available in web workers.
... also available via the onabort property.
... also available via the onerror property.
...And 4 more matches
IDBRequest - Web APIs
the request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the idbrequest instance.
...if the request has been completed successfully, the result is made available through the result property and an event indicating success is fired at the request (idbrequest.onsuccess).
... if an error occurs while performing the operation, the exception is made available through the result property and an error event is fired (idbrequest.onerror).
...And 4 more matches
IDBTransaction - Web APIs
note: this feature is available in web workers.
... also available via the onabort property.
... also available via the oncomplete property.
...And 4 more matches
Screen.availHeight - Web APIs
the read-only screen interface's availheight property returns the height, in css pixels, of the space available for web content on the screen.
... you can similarly use screen.availwidth to get the number of pixels which are horizontally available to the browser for its use.
... syntax let availheight = window.screen.availheight; value a numeric value indicating the number of css pixels tall the screen's available space is.
...And 4 more matches
Service Worker API - Web APIs
service workers essentially act as proxy servers that sit between web applications, the browser, and the network (when available).
... they are intended, among other things, to enable the creation of effective offline experiences, intercept network requests and take appropriate action based on whether the network is available, and update assets residing on the server.
...it takes the form of a javascript file that can control the web-page/site that it is associated with, intercepting and modifying navigation and resource requests, and caching resources in a very granular fashion to give you complete control over how your app behaves in certain situations (the most obvious one being when the network is not available).
...And 4 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.
...the boundaries established by the bounded reference space, then, represent the edges of the safely passable, tracked space in the user's real world environment that are available for their movement while in the simulation.
...it's difficult (and would probably be fairly confusing) to create a virtual world that's larger than the physical space available to the user if you're mapping their real-world movement into the virtual environment.
...And 4 more matches
Basic concepts of flexbox - CSS: Cascading Style Sheets
before we can make sense of these properties we need to consider the concept of available space.
... what we are doing when we change the value of these flex properties is to change the way that available space is distributed amongst our items.
... this concept of available space is also important when we come to look at aligning items.
...And 4 more matches
font-style - CSS: Cascading Style Sheets
when the specified style is not available, both italic and oblique faces are simulated by artificially sloping the glyphs of the regular face (use font-synthesis to control this behavior).
...if no italic version of the face is available, one classified as oblique is used instead.
... if neither is available, the style is artificially simulated.
...And 4 more matches
min-width - CSS: Cascading Style Sheets
WebCSSmin-width
fit-content(<length-percentage>) uses the fit-content formula with the available space replaced by the specified argument, i.e.
...this defines available and not fit-available.
...this defines available and not fit-available.
...And 4 more matches
Digital audio concepts - Web media technologies
representing audio in digital form involves a number of steps and processes, with multiple formats available both for the raw audio and the encoded or compressed audio which is actually used on the web.
...each audio frame is a data record that contains the samples for all of the channels available in an audio signal.
...however, an audio frame is always comprised of all of the data for all available channels.
...And 4 more matches
Codecs used by WebRTC - Web media technologies
google and some other browser developers have adopted it for webrtc, but it is not available in all browsers and is not one of the mandatory codecs.
...in order to avoid network congestion, the average audio bit rate should not exceed the available network bandwidth (minus any other known or anticipated added bandwidth requirements).
... specifying and configuring codecs getting the supported codecs because a given browser and platform may have different availability among the potential codecs—and may have multiple profiles or levels supported for a given codec—the first step when configuring codecs for an rtcpeerconnection is to get the list of available codecs.
...And 4 more matches
Introduction to progressive web apps - Progressive web apps (PWAs)
installable, so it can be available on the device's home screen or app launcher.
... re-engageable, so it's able to send notifications whenever there's new content available.
... the ability to update only the content that has changed when an app update is available.
...And 4 more matches
The building blocks of responsive design - Progressive web apps (PWAs)
really wide screens one thing you might notice is that when the viewport gets very wide (such as on a cinema display), the layout stops getting wider, and just centers in the space available.
...there are many more options available in the viewport meta tag, which you can read about in using the viewport meta tag to control layout on mobile browsers.
...yes, you want the images to be contained inside the app ui whether you are using it on desktop or mobile, but you should also consider that mobile apps have much smaller viewport dimensions available than desktop apps, so you should try to give mobile devices a smaller image to download.
...And 4 more matches
The Box Model - Archive of obsolete content
an hbox is as big as its contents horizontally, but it will occupy all the available space vertically.
...this makes the element stretch to occupy as much available space there is in the direction of its orientation.
... if we add flexibility to the hbox in our first example, we get the following result: the box flexes to cover the available horizontal space.
...And 3 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.
... this.obsservice = cc["@mozilla.org/observer-service;1"].getservice(ci.nsiobserverservice); the cc object (components.classes) is an index to static objects and class definitions available through xpcom.
... similarly to cc, ci (components.interfaces) is an index of available interfaces.
...And 3 more matches
Block and Line Layout Cheat Sheet - Archive of obsolete content
the width and height available to the child frame.
... mmaximumwidth the maximum width that the frame would consume if it were reflowed with an unconstrained available width.
... mflags brs_unconstrainedwidth this flag is set in the nsblockreflowstate constructor when: there is no computed width for the frame in the nshtmlreflowstate, and the frame being reflowed has been given ns_unconstrainedsize as its available width in the nshtmlreflowstate.
...And 3 more matches
Venkman Introduction - Archive of obsolete content
a powerful new tool is available for web developers for use in many mozilla-based products, including firefox, mozilla suite and netscape 7.x.
...features such as breakpoint management, call stack inspection, and variable/object inspection are available from the user interface and from console commands, letting you work in the way you are most accustomed to.
...you can also use commands available in the debug menu and from the console to stop at errors or at exceptions.
...And 3 more matches
Learn XPI Installer Scripting by Example - Archive of obsolete content
the majority of this api is now deprecated and as of gecko 1.9 no longer available.
... // this function verifies disk space in kilobytes function verifydiskspace(dirpath, spacerequired) { var spaceavailable; // get the available disk space on the given path spaceavailable = filegetdiskspaceavailable(dirpath); // convert the available disk space into kilobytes spaceavailable = parseint(spaceavailable / 1024); // do the verification if(spaceavailable < spacerequired) { logcomment("insufficient disk space: " + dirpath); logcomment(" required : " + spacerequired + " k"...
...); logcomment(" available: " + spaceavailable + " k"); return(false); } return(true); } in the verifydiskspace block, filegetdiskspaceavailable is called with dirpath as its expected input.
...And 3 more matches
Writing to Files - Archive of obsolete content
file and stream guide: [ nsiscriptableio | accessing files | getting file information | reading from files | writing to files | moving, copying and deleting files | uploading and downloading files | working with directories ] important note: the pages from the file and stream guide use the io object (nsiscriptableio), which was not available in any released version of the platform (pending some fixes).
...other documentation on files and i/o not using the unavailable nsiscriptableio apis: code snippets: file i/o, open and save dialogs, reading textual data, writing textual data, list of file-related error codes.
...other character encodings are available; see writing other character encodings below for details about writing text in other encodings.
...And 3 more matches
Mozilla XForms User Interface - Archive of obsolete content
if you see fx 3.0 only, that means that the control will only be available for firefox 3.0 (gecko 1.9).
...if you see xhtml/xul then it means the control is available when xforms is hosted in either xhtml or xul.
... similarly, if you see xhtml only or xul only, then it means the control is available only in that host language.
...And 3 more matches
Game distribution - Game development
players are enjoying your games on any platform available, and desktop is one of them.
...see marketplaces — distribution platforms for more details of what marketplace types are available.
... marketplaces — distribution platforms let's see what the available options are regarding the marketplaces/stores available for different platforms and operating systems.
...And 3 more matches
Building up a basic demo with Three.js - Game development
we are not trying to say it is better than any other webgl library available, and you should feel free to try another library, such as copperlicht, glge, or playcanvas.
... </style> </head> <body> <script src="three.min.js"></script> <script> var width = window.innerwidth; var height = window.innerheight; /* all our javascript code goes here */ </script> </body> </html> it contains some basic information like the document <title>, and some css to set the width and height of the <canvas> element, that three.js will insert on the page to 100% to fill the entire available viewport space.
... var renderer = new three.webglrenderer({antialias:true}); renderer.setsize(width, height); renderer.setclearcolor(0xdddddd, 1); document.body.appendchild(renderer.domelement); we are creating a new webgl renderer, setting its size to fit the whole available space on the screen, and appending the dom structure to the page.
...And 3 more matches
Gecko FAQ - Gecko Redirect 1
mozilla.org assembles the necessary components into its applications, such as firefox, thunderbird, seamonkey, which are available for free download from mozilla.org.
...however, the source for all those components is available for free download from mozilla.org.
...ability to turn off author styles the names of certain mozilla extension pseudo-classes lack the moz- prefix css 2 - partial support is expected and has already been built into gecko, including support for css2 positioning, but no commitment has been made to achieve a specific level of support dom level 0 level 1 core: full support making entityreferences available through dom1; per a provision of the dom1 spec for xml implementations, entities will be automatically expanded inline and therefore not available through dom1; our implementation extrapolates this provision to apply to entityreferences as well for more information, see the dom in mozilla level 1 html dom 2 - most of it has already been implemented in gecko, including support ...
...And 3 more matches
Mobile accessibility - Learn web development
for details on all the options available under the global and local context menus, see use global and local context menus.
... using the rotor when voiceover is turned on, you have a navigation feature called the rotor available to you, which allows you to quickly choose from a number of common useful options.
... the options available under the rotor are context-sensitive — they will differ depending on what app or view you are in (see below for an example).
...And 3 more matches
The HTML5 input types - Learn web development
previous overview: forms next in the previous article we looked at the <input> element, covering the original values of the type attribute available since the early days of html.
... objective: to understand the newer input type values available to create native form controls, and how to implement them using html.
... html date controls are available to handle this specific kind of data, providing calendar widgets and making the data uniform.
...And 3 more matches
From object to iframe — other embedding technologies - Learn web development
a little while later (late 90s, early 2000s), plugin technologies became very popular, such as java applets and flash — these allowed web developers to embed rich content into webpages such as videos and animations, which just weren't available through html alone.
...the online world is very familiar with youtube, but many people don't know about some of the sharing facilities it has available.
...(in the best case scenario, your user's web browser will give them a scary warning.) all reputable companies that make content available for embedding via an <iframe> will make it available via https — look at the urls inside the <iframe> src attribute when you are embedding content from google maps or youtube, for example.
...And 3 more matches
Package management basics - Learn web development
note: npm is not the only package manager available.
... one disadvantage is that parcel is only available inside our parcel-experiment app; you won't be able to run it in a different directory.
...there will be more available than this, but these are popular ones: the rollup tool offers tree shaking and code splitting as it’s core features.
...And 3 more matches
Accessibility API cross-reference
<h> is also available but its use is not recommended because of lack of suitable tools - and the heading level is undefined click on this thing and then click on the item for tooltip style help helpballoon n/a n/a n/a editable field that allows user to assign a key combination hotkeyfield n/a n/a n/a graphic that indicates something...
...for receiving text input, see focused n/a armed armed available to javascript as document.activeelement indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.
...very poor support in user agents and ats, and no sufficient techniques available n/a n/a aria-flowto indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.
...And 3 more matches
How Mozilla's build system works
moz.build files are limited to performing the following actions: calling functions that are explicitly made available to the moz.build environment.
... reference many of python's built-in or global functions (they are not made available to the execution environment).
... moz.build uppercase variables and functions the set of special symbols available to moz.build files is centrally defined and is under the purview of the build configuration module.
...And 3 more matches
HTTP Cache
the anew argument in oncacheentryavailable is true for and only for new entries.
... only one consumer (the so called "writer") may have such an entry available (obtained via oncacheentryavailable).
... other parallel openers of the same cache entry are blocked (wait) for invocation of their oncacheentryavailable until one of the following occurs: the writer simply throws the entry away: other waiting opener in line gets the entry again as "new", the cycle repeats.
...And 3 more matches
IME handling guide
if ime is available on focused elements, we call that state "enabled".
... if ime is not fully available(i.e., user cannot enable ime), we call this state "disabled".
...are available if beginnativeinputtransaction() return true.
...And 3 more matches
Fonts for Mozilla 2.0's MathML engine
in general, if the necessary glyphs are not available on the system then mozilla tries to stretch symbols using scale transforms, but that may result in a less pleasant rendering.
...they are available under the sil open font license and should be installed for best mathml rendering.
...asana math is also freely available under the sil open font license and has good support for mathematical characters.
...And 3 more matches
Localization Use Cases
_ = navigator.mozl10n.get; element.textcontent = _(l10nid, { size: sizeinfo.size, unit: _('byteunit-' + sizeinfo.unit) }); } the function is used like so: // application storage updateappfreespace: function storage_updateappfreespace() { var self = this; this.getfreespace(this.appstorage, function(freespace) { devicestoragehelper.showformatedsize(self.appstoragedesc, 'availablesize', freespace); }); }, problem definition for all values of freespace, the following string is enough to construct a grammatically-correct sentence in english: availablesize = {{$size}} {{$unit}} available however, other languages might need to pluralize this string with different forms of the available adjective.
... consequently, using the existing localization frameworks, the developer needs to predict which strings might need pluralization in other languages, and pluralize them even in english: availablesize = {[ plural(size) ]} availablesize[other] = {{$size}} {{$unit}} available an italian translation might look like this: availablesize = {[ plural(size) ]} availablesize[one] = {{$size}} {{$unit}} disponibile availablesize[other] = {{$size}} {{$unit}} disponibili it's easy to imagine how developers might forget to pluralize some strings that in other languages might require pluralization (or other grammatical features that the framework supports).
... in l20n, the english string could be as simple as: <availablesize "{{ $size }} {{ $unit }} available"> on the other hand, the italian translation would make use of proper pluralization rules: <plural($n) { $n == 1 ?
...And 3 more matches
Scripting Java
it allows us to write powerful scripts quickly by making use of the many java libraries available.
...for example, we could import all of the classes in the java.io package and access class java.io.file using just the name file: js> importpackage(java.io) js> file [javaclass java.io.file] here importpackage(java.io) makes all the classes in the java.io package (such as file) available at the top level.
...this makes it easier to work with objects in deeply nested inheritance hierarchies since you can see all the methods that are available for that object.
...And 3 more matches
Places Developer Guide
the ids of several significant folders are made available as attributes of nsinavbookmarksservice.
... if (type == ci.nsinavhistoryresultnode.result_type_uri) { var uri = childnode.uri; } else if (type == ci.nsinavhistoryresultnode.result_type_folder) { childnode.queryinterface(ci.nsinavhistorycontainerresultnode); childnode.containeropen = true; // now you can iterate over a subfolder's children } } ther available node types are documented in the idl.
...note that this service is only currently available for firefox, not other toolkit-based applications.
...And 3 more matches
Building the WebLock UI
the xpcom interfaces and tools you've used have been general, cross-platform, and available in the gecko runtime environment or in any gecko-based application after mozilla 1.2 (when the gre began to be used).
... and call through to the lock and unlock methods of the weblock component must also adjust this variable accordingly: function wlock() { // check to see if locking is on or off weblock.lock(); wlocked = 1; } function wunlock() { // check to see if locking is on or off weblock.unlock(); wlocked = 0; } an important preliminary of these functions is that the weblock component be made available to the javascript in the form of the weblock object being used in the snippets above.
... as you can see, weblock is initialized as a global javascript variable, available in the scope of these functions and others: var weblock = components.classes["@dougt/weblock"] .getservice() .queryinterface(components.interfaces.iweblock); in addition to this basic setup, you must also write javascript that uses the addsite method to add new sites to the white list.
...And 3 more matches
Component Internals
the next section describes how to hook into the xpcom startup and registration process and make the data about your component available in these manifests, so that your component will be found and registered at startup.
...another, more explicit way to register your component is to run the application regxpcom, which is built as part of mozilla and is also available in the gecko sdk.
...if xpcom registered your component, then it will be available to other parts of the xpcom system.
...And 3 more matches
getFile
available on all platforms these symbolic names are available on all platforms (although, of course, they may refer to different physical paths on the storage device).
...available on both mac and unix these locations are available on both mac os x and unix implementations of gecko.
... c constant string value notes ns_os_system_dir "sysd" available on mac os x only these locations are supported only on mac os x versions of gecko.
...And 3 more matches
nsIMessenger
boolean canundo(); return value boolean representing whether undo is available.
... boolean canredo(); return value boolean representing whether redo is available.
...see #constants for available types.
...And 3 more matches
nsIScreen
methods getavailrect() returns a rectangle indicating the portion of the screen that is available for use.
... note: this returns a rectangle representing the region of the screen that is available for application use.
...void getavailrect( out long left, out long top, out long width, out long height ); parameters left the left edge of the available screen rectangle.
...And 3 more matches
nsIScriptableInputStream
inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) method overview unsigned long available(); void close(); void init(in nsiinputstream ainputstream); string read(in unsigned long acount); acstring readbytes(in unsigned long acount); methods available() return the number of bytes currently available in the stream.
...moreover, since a stream may make available more than 2^32 bytes of data, this method is incapable of expressing the entire size of the underlying data source.
... unsigned long available(); parameters none.
...And 3 more matches
nsIWebSocketListener
1.0 66 introduced gecko 8.0 inherits from: nsisupports last changed in gecko 8.0 (firefox 8.0 / thunderbird 8.0 / seamonkey 2.5) method overview void onacknowledge(in nsisupports acontext, in pruint32 asize); void onbinarymessageavailable(in nsisupports acontext, in acstring amsg); void onmessageavailable(in nsisupports acontext, in autf8string amsg); void onserverclose(in nsisupports acontext, in unsigned short acode, in autf8string areason); void onstart(in nsisupports acontext); void onstop(in nsisupports acontext, in nsresult astatuscode); methods onacknowledge() called to acknowledge ...
... onbinarymessageavailable() called when a binary message has been received.
... void onbinarymessageavailable( in nsisupports acontext, in acstring amsg ); parameters acontext user defined context.
...And 3 more matches
Storage
it is available to trusted callers, meaning extensions and firefox components only.
...in javascript, there is a useful helper object (mozistoragestatementparams) available () that makes binding parameters much easier: var statement = dbconn.createstatement("select * from table_name where id = :row_id"); statement.params.row_id = 1234; use :boundparametername the same way for numeric and non-numeric columns.
...this api is only available for asynchronous execution.
...And 3 more matches
Thunderbird Binaries
described below are three types of generally available thunderbird packages - releases, early preview releases, and nightly builds (including trunk development builds) - and their downloaded locations.
... additionally, ad-hoc packages called try builds are made available on an as-needed basis to allow for testing of certain patches, and are typically announced in related bug reports.
... releases thunderbird releases have been extensively tested and are made available for anyone to download and use it.
...And 3 more matches
Fullscreen API - Web APIs
properties the document interface provides properties that can be used to determine if full-screen mode is supported and available, and if full-screen mode is currently active, which element is using the screen.
...this is false if full-screen mode is not available for any reason (such as the "fullscreen" feature not being allowed, or full-screen mode not being supported).
...event handlers for these events are available on the document and element interfaces.
...And 3 more matches
IDBDatabase - Web APIs
note: this feature is available in web workers.
...also available via the onabort property.
...also available via the onclose property.
...And 3 more matches
MediaDevices.getUserMedia() - Web APIs
if the user denies permission, or matching media is not available, then the promise is rejected with notallowederror or notfounderror respectively.
...the following expresses a preference for 1280x720 camera resolution: { audio: true, video: { width: 1280, height: 720 } } the browser will try to honour this, but may return other resolutions if an exact match is not available, or the user overrides it.
...for example, on mobile devices, the following will prefer the front camera (if one is available) over the rear one: { audio: true, video: { facingmode: "user" } } to require the rear camera, use: { audio: true, video: { facingmode: { exact: "environment" } } } another non-number constraint is the deviceid constraint.
...And 3 more matches
MediaRecorder - Web APIs
options are available to do things like set the container's mime type (such as "video/webm" or "video/mp4") and the bit rates of the audio and video tracks or a single overall bit rate.
... mediarecorder.stop() stops recording, at which point a dataavailable event containing the final blob of saved data is fired.
... event handlers mediarecorder.ondataavailable called to handle the dataavailable event, which is periodically triggered each time timeslice milliseconds of media have been recorded (or when the entire media has been recorded, if timeslice wasn't specified).
...And 3 more matches
Navigator - Web APIs
WebAPINavigator
navigatorconcurrenthardware.hardwareconcurrency read only returns the number of logical processor cores available.
... navigatorstorage.storage read only returns the singleton storagemanager object used for managing persistence permissions and estimating available storage on a site-by-site/app-by-app basis.
... 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().
...And 3 more matches
Reporting API - Web APIs
the reporting api provides a generic reporting mechanism for web applications to use to make reports available based on various platform features (for example content security policy, feature-policy, or feature deprecation reports) in a consistent manner.
... the reporting api's purpose is to provide a consistent reporting mechanism that can be used to make such information available to developers in the form of reports represented by javascript objects.
... the report-to http header is used to specify details about the different endpoints that a user-agent has available to it for delivering reports to.
...And 3 more matches
SVGElement - Web APIs
also available via the onabort property.
... also available via the onerror property.
... also available via the onload property.
...And 3 more matches
Using WebGL extensions - Web APIs
a complete list of extensions is available in the khronos webgl extension registry.
... note: in webgl, unlike in other gl apis, extensions are only available if explicitly requested.
...in that case, their name can be prefixed by the vendor prefix (moz_, webkit_, etc.) or the extension is only available once a browser preference has been toggled.
...And 3 more matches
Writing a WebSocket server in C# - Web APIs
properties: int available this property indicates how many bytes of data have been sent.
... the value is zero until networkstream.dataavailable is true.
... tcpclient client = server.accepttcpclient(); console.writeline("a client connected."); networkstream stream = client.getstream(); //enter to an infinite cycle to be able to handle every change in stream while (true) { while (!stream.dataavailable); byte[] bytes = new byte[client.available]; stream.read(bytes, 0, bytes.length); } handshaking when a client connects to a server, it sends a get request to upgrade the connection to a websocket from a simple http request.
...And 3 more matches
Geometry and reference spaces in WebXR - Web APIs
reference spaces because of the variety of xr hardware available, coming in a wide variety of form factors from many developers, it's impractical and non-scalable to expect developers to have to directly communicate with the tracking technology being used.
...no matter how powerful or simple the individual xr device is, code written using webxr will still work, within the limitations of the available hardware.
...the currently available reference space types, which are defined by the xrreferencespacetype enumeration, are shown below.
...And 3 more matches
WebXR Device API - Web APIs
if this property is missing or null, webxr is not available.
...to get an xrframe, call the session's requestanimationframe() method, providing a callback which will be called with the xrframe once available.
... xrinputsourceschangeevent sent to indicate that the set of available input sources has changed for the xrsession.
...And 3 more matches
Worker - Web APIs
WebAPIWorker
not all interfaces and functions are available to scripts inside a worker.
...(fetch is also available, with no such restrictions.) in firefox extensions, if you want to use workers with access to js-ctypes, use chromeworker object instead.
... also available via the onmessage property.
...And 3 more matches
XRSystem - Web APIs
WebAPIXRSystem
events devicechange sent when the set of available xr devices has changed.
... also available using the ondevicechange event handler.
... onsessionstarted(xrsession); }); } else { // shut down the already running xrsession xrsession.end() .then(() => xrsession = null); } } this code starts by checking to see if webxr is available by looking for the navigator.xr property.
...And 3 more matches
Web applications and ARIA FAQ - Accessibility
more detailed browser compatibility charts are available from multiple sources: caniuse.com the paciello group assistive technologies assistive technologies are increasingly adopting aria.
...unfortunately, there isn't a more semantic tag available to developers in html 4, so we need to include aria roles and properties.
... no, aria is only made available to assistive technology apis, and doesn't affect native browser functionality with respect to the dom or styling.
...And 3 more matches
Aligning Items in a Flex Container - CSS: Cascading Style Sheets
the value of align-content is space-between, which means that the available space is shared out between the flex lines, which are placed flush with the start and end of the container on the cross axis.
...here we only have one property available to us — justify-content.
...with justify-content we control what happens with available space, should there be more space than is needed to display the items.
...And 3 more matches
max-height - CSS: Cascading Style Sheets
fit-content(<length-percentage>) uses the fit-content formula with the available space replaced by the specified argument, i.e.
...this defines available and not fit-available.
...this defines available and not fit-available.
...And 3 more matches
max-width - CSS: Cascading Style Sheets
WebCSSmax-width
fit-content(<length-percentage>) uses the fit-content formula with the available space replaced by the specified argument, i.e.
...this defines available and not fit-available.
...this defines available and not fit-available.
...And 3 more matches
Event reference
devicemotion devicemotionevent device orientation events fresh data is available from a motion sensor.
... deviceorientation deviceorientationevent device orientation events fresh data is available from an orientation sensor.
... userproximity userproximityevent proximity sensor fresh data is available from a proximity sensor (indicates whether the nearby object is near the device or not).
...And 3 more matches
<input type="datetime-local"> - HTML: Hypertext Markup Language
edge), or invalid (see validation) but still available (e.g.
...this was available in the datetime input type, but this type is now obsolete, having been removed from the spec.
... you can use min and max to restrict the available dates (see setting maximum and minimum dates), and you can use the required attribute to make filling in the date/time mandatory.
...And 3 more matches
Content negotiation - HTTP
in addition to these, there is an experimental proposal to add more headers to the list of available headers, called client hints.
...browsers are free to use the value of the header that they think is the most adequate; an exhaustive list of default values for common browsers is available.
... the accept-ch-lifetime header this is part of an experimental technology called client hints and is only available in chrome 61 or later.
...And 3 more matches
JavaScript modules - JavaScript
see node's ecmascript modules documentation for more details.disabled from version 12.0.0: this feature is behind the --experimental-modules runtime flag.available in workerschrome full support 80 full support 80 full support 67disabled disabled from version 67: this feature is behind the experimental web platform features preference.
...the following is found in main.js, below the import lines: let mycanvas = create('mycanvas', document.body, 480, 320); let reportlist = createreportlist(mycanvas.id); let square1 = draw(mycanvas.ctx, 50, 50, 100, 'blue'); reportarea(square1.length, reportlist); reportperimeter(square1.length, reportlist); note: although imported features are available in the file, they are read only views of the feature that was exported.
... last but not least, let's make this clear — module features are imported into the scope of a single script — they aren't available in the global scope.
...And 3 more matches
Authoring MathML - MathML
the most reliable method and might break from version to version: var ua = navigator.useragent; var isgecko = ua.indexof("gecko") > -1 && ua.indexof("khtml") === -1 && ua.indexof('trident') === -1; var iswebkit = ua.indexof('applewebkit') > -1 && ua.indexof('chrome') === -1; mathematical fonts in order to get a good layout or to allow different style, it's important to have mathematical fonts available.
... many tools are available, some of them are compatible with the classical latex-to-pdf workflow.
... cons: this requires to install programs on your computer, which may be a bit more difficult or they may not be available on all platforms.
...And 3 more matches
How to make PWAs re-engageable using Notifications and Push - Progressive web apps (PWAs)
but instead of relying only on user actions, we can do more, using push messages and notifications to automatically re-engage and deliver new content whenever it is available.
... create a notification the example app creates a notification out of the available data — a game is picked at random, and the chosen one feeds the notification with the content: it sets the game's name as the title, mentioning the author in the body, and showing the image as an icon: function randomnotification() { var randomitem = math.floor(math.random()*games.length); var notiftitle = games[randomitem].name; var notifbody = 'created by '+games[randomitem].auth...
...this, for example, can be used to remind the user about something, or let them know about new content being available in the app.
...And 3 more matches
Mobile first - Progressive web apps (PWAs)
we consider the overall experience during the planning stage, look at what subset of features will be available on mobile, desktop, etc.
...this means that mobiles (often the target devices with the least available memory, bandwidth or processing power available) can be given an experience suitable for them as quickly as possible, and as free as possible of extraneous information.
... mobile constraints we have already mentioned the fact that mobiles generally have less memory, processing power and bandwidth than other devices (although bear in mind that smart tvs are also generally pretty low powered.) they also have less viewport size available.
...And 3 more matches
Structural overview of progressive web apps - Progressive web apps (PWAs)
the app shell concept the app shell concept is concerned with loading a minimal user interface and content as soon as possible, caching it so it's available offline for subsequent visits before then loading the remainder of the app's contents.
... that way, the next time someone visits the app from the device, the ui loads from the cache immediately and any new content is requested from the server (if it isn’t available in the cache already).
...it also allows the website to be accessible offline if the network connection is not available.
...And 3 more matches
cfx - Archive of obsolete content
cfx test run available tests for the specified package.
... cfx testpkgs this will test all of the available commonjs packages.
... cfx testex this will test all available example code.
...And 2 more matches
Deploying a Plugin as an Extension - Archive of obsolete content
one of the new features available in firefox 1.5 is the ability to place browser plugins in a firefox extension.
...with firefox 1.5, you can use the built-in extension mechanism to make a plugin available to your users.
...you'll have to restart firefox so the plugin will be available.
...And 2 more matches
How to convert an overlay extension to restartless - Archive of obsolete content
everything will use apis available in firefox 17+ or code provided here.
...it's a great way to modularize your code that's been available since firefox 3.
... a file:// uri to the install location, or .xpi file, is available in installpath property of the bootstrap data structure passed to the startup(), shutdown(), install(), and uninstall() functions in what will be your bootstrap.js file (see below).
...And 2 more matches
Venkman - Archive of obsolete content
getting venkman firefox and thunderbird the latest version of javascript debugger is available from firefox add-ons.
...also available from firefox add-ons as an extension.
... nvu and kompozer javascript debugger extension version 0.9.84 is available from nvu's downloads page.
...And 2 more matches
Using XPInstall to Install Plugins - Archive of obsolete content
the majority of this api is now deprecated and as of gecko 1.9 no longer available.
...this discovery mechanism hinges on making the secondary install location available from looking at a common repository of metadata.
...in particular, the windows registry keys should point to the secondary install location so that future netscape gecko browsers can find and add to their list of available plugin locations.
...And 2 more matches
Textbox (XPFE autocomplete) - Archive of obsolete content
disablehistory obsolete since gecko 2.0 type: boolean note: applies to: thunderbird and seamonkeyif false, an arrow button will appear on the end of the textbox which will open a dropdown menu of all available results.
... enablehistory new in thunderbird 1requires seamonkey 2.0 type: boolean if true, an arrow button will appear on the end of the textbox which, when pressed, will open a dropdown menu of all available results.
... onsearchcomplete new in thunderbird 3requires seamonkey 2.0 type: script code this event handler is called when the autocomplete search is finished and results are available.
...And 2 more matches
Application Update - Archive of obsolete content
compiled versions of mar are available in the gecko sdk under the folder /host/bin for your os.
...pref("app.update.url.manual", "http://yourserver.net/yourpage"); // a default value for the "more information about this update" link // supplied in the "an update is available" page of the update wizard.
...//pref("app.update.url.override", ""); // interval: time between checks for a new version (in seconds) // default=1 day pref("app.update.interval", 86400); // interval: time before prompting the user to download a new version that // is available (in seconds) default=1 day pref("app.update.nagtimer.download", 86400); // interval: time before prompting the user to restart to install the latest // download (in seconds) default=30 minutes pref("app.update.nagtimer.restart", 1800); // interval: when all registered timers should be checked (in milliseconds) // default=5 seconds pref("app.update.timer", 600000); // whether or no...
...And 2 more matches
XULRunner Hall of Fame - Archive of obsolete content
now available with xulrunner 30 with i18n support.
...sqlite manager is also available as a xulrunner application.
...both firefox extension and xulrunner-based standalone application available.
...And 2 more matches
How to enable locale switching in a XULRunner application - Archive of obsolete content
include a xul control for the locale selection the next step is to add a xul control to your application which lists the available locales in the package and makes it possible for the user to select one of them.
...populate the xul control with the available locales the available package locales are declared in the chrome manifest.
...the dynamic list population requires an xpcom to query the currently selected locale as well as all locales available in the application package.
...And 2 more matches
Building up a basic demo with Babylon.js - Game development
="babylon.js"></script> <canvas id="render-canvas"></canvas> <script> var canvas = document.getelementbyid("render-canvas"); /* all our javascript code goes here */ </script> </body> </html> it contains some basic information like the document <title>, and some css to set the width and height of the <canvas> element (which babylon.js will use to render the content on) to fill the entire available viewport space.
...add the following code to the bottom of your second <script> element: var engine = new babylon.engine(canvas); the babylon global object contains all the babylon.js functions available in the engine.
... var camera = new babylon.freecamera("camera", new babylon.vector3(0, 0, -10), scene); there are many cameras available in babylon.js; freecamera is the most basic and universal one.
...And 2 more matches
Mobile touch controls - Game development
pure javascript demo let's implement the mobile support in a little demo available on github, so we can move the player's ship by touching the screen on a mobile device.
...the most recently used pointer is available in the this.game.input.activepointer object — the most recent finger active on the screen.
... if you need to access a specific pointer, they are all available at, this.game.input.pointer1this.game.input.pointer2, etc.
...And 2 more matches
Implementing controls using the Gamepad API - Game development
it's part of the gamepad api content kit available on github where you can dive deep into the code and study exactly how it works.
... mapping: the layout type of the buttons; standard is the only available option for now.
...if the device is disconnected or unavailable, the value for it is set to null.
...And 2 more matches
CSS and JavaScript accessibility best practices - Learn web development
it is probably easier to do it using an extension, for example the stylish extension is available for firefox, safari, opera, and chrome.
...for example, making sure you use headings and paragraphs, and <button> and <a> elements making sure content is available as text, either directly as text content, good text labels for form elements, or text alternatives, e.g.
...if it isn't available, the form will still work, but validation might be slower.
...And 2 more matches
Advanced styling effects - Learn web development
prerequisites: html basics (study introduction to html) and an idea of how css works (study css first steps.) objective: to get an idea about how to use some of the advanced styling effects available in modern browsers.
... other box shadow features unlike text-shadow, box-shadow has an inset keyword available — putting this at the start of a shadow declaration causes it to become an inner shadow, rather than an outer shadow.
...some of the filter options available do very similar things to other css features, for example drop-shadow() works in a very similar way and gives a similar effect to box-shadow or text-shadow.
...And 2 more matches
Backgrounds and borders - Learn web development
play around with these, using any available <color> value.
...the available values are: no-repeat — stop the background from repeating altogether.
...a fun way to play with gradients is to use one of the many css gradient generators available on the web, such as this one.
...And 2 more matches
The box model - Learn web development
the box will extend in the inline direction to fill the space available in its container.
... in most cases this means that the box will become as wide as its container, filling up 100% of the space available.
...the browser renders this as a block box, so the paragraph begins on a new line, and expands to the full width available to it.
...And 2 more matches
What is the difference between webpage, website, web server, and search engine? - Learn web development
active learning there is no active learning available yet.
... all web pages available on the web are reachable through a unique address.
..."hosting" means that all the web pages and their supporting files are available on that computer.
...And 2 more matches
How do you upload your files to a web server? - Learn web development
objective: learn how to push files to a server using the various file transfer tools available.
...in this article we'll discuss how to do that, using various available options such as sftp clients, rsync and github.
...our demo covers filezilla, since it's free and available for windows, macos and linux.
...And 2 more matches
Client-side form validation - Learn web development
the constraint validation api most browsers support the constraint validation api, which consists of a set of methods and properties available on the following form element dom interfaces: htmlbuttonelement (represents a <button> element) htmlfieldsetelement (represents a <fieldset> element) htmlinputelement (represents an <input> element) htmloutputelement (represents an <output> element) htmlselectelement (represents a <select> element) htmltextareaelement (represents a <textarea> element) the constraint validation api makes...
... the following properties available on the above elements.
...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.
...And 2 more matches
Making asynchronous programming easier with async and await - Learn web development
for example: let response = await fetch('coffee.jpg'); the response returned by the fulfilled fetch() promise is assigned to the response variable when that response becomes available, and the parser pauses on this line until that occurs.
... once the response is available, the parser moves to the next line, which creates a blob out of it.
...see the promise.all() line: let values = await promise.all([coffee, tea, description]); by using await here we are able to get all the results of the three promises returned into the values array, when they are all available, in a way that looks very much like sync code.
...And 2 more matches
General asynchronous programming concepts - Learn web development
this cursor is how the operating system says "the current program you're using has had to stop and wait for something to finish up, and it's taking so long that i was worried you'd wonder what was going on." this is a frustrating experience and isn't a good use of computer processing power — especially in an era in which computers have multiple processor cores available.
...in this example, we have two buttons: a "fill canvas" button that when clicked fills the available <canvas> with 1 million blue circles.
...if you start task a running and then immediately try to run task b, you'll get an error, because the image won't be available yet.
...And 2 more matches
Mozilla's Section 508 Compliance
caveats: 1) although sidebar cannot be customized without a mouse, all sidebar functions that come with the browser are available through other means 2) java and in-page plugins cannot be used with the keyboard, so they must not be installed for keyboard-only users additional features for the keyboard: 1) find as you type allows for quick navigation to links and convenient text searching 2) browse with caret (f7 key toggles) allows users to select arbitrary content with the keyboard and move through con...
...applications also shall not disrupt or disable activated features of any operating system that are identified as accessibility features where the application programming interface for those accessibility features has been documented by the manufacturer of the operating system and is available to the product developer.
... (d) sufficient information about a user interface element including the identity, operation and state of the element shall be available to assistive technology.
...And 2 more matches
Debugging Frame Reflow
it provides the following information for each frame at the start of its reflow reflow reason available width, available height computed width, computed height the previous and the next frame in flow and a count number.
...other reflow reasons are: incremental reflow resize reflow style change reflow dirty reflow the available width is 9180 twips.
... the available height is 4470 twips (a=9180,4470).
...And 2 more matches
Obsolete Build Caveats and Tips
warning: due to a bug in old versions of mozillabuild (prior to 1.6), if you download version 7.1 of the windows 7 sdk (which is the current version available), your build will fail, often while building cairo with "ocidl.h" errors.
... from windows build prerequisites [en-us] microsoft visual c++ (msvc) depending on what you're building, you will need to use one of several available versions of microsoft visual c++ (msvc) and/or microsoft visual studio.
... visual studio 2017a> is available free from microsoft.
...And 2 more matches
Overview of Mozilla embedding APIs
the service manager exposes all of the available xpcom services - each service represents a global object which provides some piece of functionality.
... public classes the following utility classes are available from the xpcom dll.
...public return codes ns_succeeded ns_error_failure ns_error_not_implemented public functions the following functions are available from the xpcom dll.
...And 2 more matches
Promise.jsm
this module was used before dom promises were made globally available in gecko 29.
... to use it, you first need to import the code module into your javascript scope: components.utils.import("resource://gre/modules/promise.jsm"); note: a preliminary promise module is also available starting from gecko 17, though it didn't conform to the promises/a+ proposal until gecko 25: components.utils.import("resource://gre/modules/commonjs/promise/core.js"); // gecko 17 to 20 components.utils.import("resource://gre/modules/commonjs/sdk/core/promise.js"); // gecko 21 to 24 this implementation also includes helper functions that are specific to the add-on sdk.
... a promise is an object representing a value that may not be available yet.
...And 2 more matches
Application Translation with Mercurial
check what is available for translation find out on which branch localization is done for your locale: read your localization team's page by clicking on the team with your language code (e.g.
...either translate a different product now or contact the person responsible for localization from the team's page (see above) so he can notify you by mail when the next strings for translation become available.
...for linux and mac os) is available on wikipedia.
...And 2 more matches
Optimizing Applications For NSPR
the work to undo this dependency has already been started and the result will be made available soon.
...for complete cross platform portability, do not take the address of a stack variable and make that address available to another thread.
...for any function made available to any shared library (most likely passed in as a function pointer), that function must have the <tt>pr_callback</tt> qualifier.
...And 2 more matches
Python binding for NSS
this documentation is available via the numerous python documentation extraction tools.
... enumerated constants used in the nss/nspr api's are available in the python module under the exact same name as they appear in the c header files of nss/nspr.
...python-nss is currently available in: fedora rhel 6 the principal developer of python-nss is john dennis jdennis@redhat.com.
...And 2 more matches
NSS Tools certutil
availability see the release notes for the platforms this tool is available on.
... -u list all available modules or print a single named module.
... there are three available trust categories for each certificate, expressed in this order: "ssl ,email ,object signing ".
...And 2 more matches
Necko Architecture
an nsistreamlistener is told when the uri transaction has "started," when data is available (in the case of reading data), and when it has "stopped." it is up to the nsistreamlistener implementation to decide what to do with these various notifications.
... the ondataavailable() notification provides a chance for the nsistreamlistener to actually retrieve data that the channel has acquired.
... one of the arguments to the ondataavailable() notification is an nsiinputstream (which can be considered the underlying data).
...And 2 more matches
Necko walkthrough
has onstartrequest, onstoprequest, ondataavailable, the three functions in which channel responses are received asynchronously.
... receive response get a callback to each of these: nsistreamlistener::onstartrequest (header info) nsistreamlistener::ondataavailable (data in single or multiple chunks) nsistreamlistener::onstoprequest (no more data from http) this all happens on the main thread, in a non-blocking fashion: make your request on the main thread, then carry on and get the async response later, also on the main thread.
... there is an option to receive ondataavailable specifically on a non-main thread, but all other calls happen on the main thread.
...And 2 more matches
Hacking Tips
it is part of jsfriendapi.h and it is available in release builds.
... on linux, you can manage the resources available to one program by using cgroup, and to do you can install libcgroup which provides some convenient tools such as cgexec to wrap the program that you want to benchmark.
... $ cgset -r cpu.shares=1 /benchmarks/mask $ cgset -r cpu.shares=39 /benchmarks/negate-mask then we limit the memory available, to what would be available on the phone.
...And 2 more matches
Introduction to the JavaScript shell
pre-compiled binary, try <path to your firefox's run-mozilla.sh>/run-mozilla.sh ./js -- that worked for me] if you'd like to run the javascript code in the file foo.js, you can use this command: js foo.js to run foo.js then drop into the interactive shell, do this: js -f foo.js -i reference note: because the javascript shell is used as a test environment for the javascript engine, the available options and built-in functions can change over time.
... help([command ...]) displays brief help information about the specified commands, or about all available functions if none are specified.
... the available options are: option name description strict strict mode is enabled.
...And 2 more matches
AT APIs Support
k-meleon - light, ultra-fast and more advanced (fully configurable) gecko-based web browser available on the windows platform on linux/unix platform yelp help viewer - the help viewer in gnome evolution email - provides integrated mail, addressbook and calendaring functionality to users of the gnome desktop.
...developing a xul window is not that different from developing a web page, but the elements available to add widgets are more powerful and designed to be similar to desktop widgets.
...firefox extensions) gecko version for firefox and all other gecko-based products: this documentation applies to up-to-date product builds based on gecko 1.9.2 -- currently not available on official releases.
...And 2 more matches
Components.utils.Sandbox
wantcomponents a boolean indicating whether the components object is available or not in the sandbox.
... wantexporthelpers a boolean: if true, then createobjectin(), evalinwindow(), and exportfunction() are available in the sandbox.
...each string is the name of an object that you want to make available as a global to code running in the sandbox.
...And 2 more matches
nsIMsgSearchCustomTerm
if null, determine * if term is available for any operator.
... * * @return true if enabled */ boolean getenabled(in nsmsgsearchscopevalue scope, in nsmsgsearchopvalue op); getavailable /** * is this custom term available?
...if null, determine * if term is available for any operator.
...And 2 more matches
nsIStreamListener
so, in all the three methods - ondataavailable(), nsirequestobserver.onstartrequest() and nsirequestobserver.onstoprequest() have to be implemented.
... method overview void ondataavailable(in nsirequest arequest, in nsisupports acontext, in nsiinputstream ainputstream, in unsigned long aoffset, in unsigned long acount); methods ondataavailable() this method is called when the next chunk of data for the ongoing request may be read without blocking the calling thread.
...void ondataavailable( in nsirequest arequest, in nsisupports acontext, in nsiinputstream ainputstream, in unsigned long aoffset, in unsigned long acount ); parameters arequest an nsirequest indicating the source of the data.
...And 2 more matches
Standard OS Libraries
they are already available on the operating system for you.
...a list of all the functions available through this api can be found at the msdn winapi index.
...therefore all the gdk library functions are available for use.
...And 2 more matches
Background Tasks API - Web APIs
certainly most if not all code that is capable of making changes to the dom is running in the main thread, since it's common for user interface changes to only be available to the main thread.
...there's no guarantee that every pass through the event loop (or even every screen update cycle) will include any idle callbacks being executed; if the event loop uses all available time, you're out of luck (again, unless you've used a timeout).
...it's configured to call a function called runtaskqueue(), which we'll look at shortly, and with a timeout of 1 second, so that it will be run at least once per second even if there isn't any actual idle time available.
...And 2 more matches
DedicatedWorkerGlobalScope - 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.
... see also: functions available to workers.
... workerglobalscope.performance read only returns the performance object associated with the worker, which is a regular performance object, but with a subset of its properties and methods available.
...And 2 more matches
Document.fullscreenEnabled - Web APIs
the read-only fullscreenenabled property on the document interface indicates whether or not full-screen mode is available.
... full-screen mode is available only for a page that has no windowed plug-ins in any of its documents, and if all <iframe> elements which contain the document have their allowfullscreen attribute set.
... syntax var isfullscreenavailable = document.fullscreenenabled; value a boolean value which is true if the document and the elements within can be placed into full-screen mode by calling element.requestfullscreen().
...And 2 more matches
Using the Gamepad API - Web APIs
%d buttons, %d axes.", e.gamepad.index, e.gamepad.id, e.gamepad.buttons.length, e.gamepad.axes.length); }); each gamepad has a unique id associated with it, which is available on the event's gamepad property.
... note: the gamepad object is available on the gamepadconnected event rather than the window object itself, for security reasons.
...instead of constantly storing the gamepad's latest state in a variable it only stores a snapshot, so to do the same thing in chrome you have to keep polling it and then only use the gamepad object in code when it is available.
...And 2 more matches
Using the Geolocation API - Web APIs
the geolocation object the geolocation api is available through the navigator.geolocation object.
... if the object exists, geolocation services are available.
... you can test for the presence of geolocation thusly: if('geolocation' in navigator) { /* geolocation is available */ } else { /* geolocation is not available */ } getting the current position to obtain the user's current location, you can call the getcurrentposition() method.
...And 2 more matches
Notification - Web APIs
note: this feature is available in web workers.
... properties static properties these properties are available only on the notification object itself.
... notification.maxactions read only instance properties these properties are available only on instances of the notification object.
...And 2 more matches
Using the Screen Capture API - Web APIs
in this case, the user agent may include the obscured content, either by getting the current contents of the hidden portion of the window or by presenting the most-recently-visible contents if the current contents are not available.
... note: unlike most uses of constraints in media apis, here it's solely used to define the stream configuration, and not to filter the available choices.
... note: constraints never cause changes to the list of sources available for capture by the screen sharing api.
...And 2 more matches
WEBGL_draw_buffers - Web APIs
webgl extensions are available using the webglrenderingcontext.getextension() method.
... availability: this extension is only available to webgl1 contexts.
... in webgl2, the functionality of this extension is available on the webgl2 context by default.
...And 2 more matches
WebGL constants - Web APIs
aliased_point_size_range 0x846d passed to getparameter to get the current size of a point drawn with gl.points aliased_line_width_range 0x846e passed to getparameter to get the range of available widths for a line.
...all webgl 1 constants are also available in a webgl 2 context.
... float_32_unsigned_int_24_8_rev 0x8dad unsigned_int_24_8 0x84fa half_float 0x140b rg 0x8227 rg_integer 0x8228 int_2_10_10_10_rev 0x8d9f queries constant name value description current_query 0x8865 query_result 0x8866 query_result_available 0x8867 any_samples_passed 0x8c2f any_samples_passed_conservative 0x8d6a draw buffers constant name value description max_draw_buffers 0x8824 draw_buffer0 0x8825 draw_buffer1 0x8826 draw_buffer2 0x8827 draw_buffer3 0x8828 draw_buffer4 ...
...And 2 more matches
Using the Web Speech API - Web APIs
generally, the default speech recognition system available on the device will be used for the speech recognition — most modern oses have a speech recognition system for issuing voice commands.
...this accepts as parameters the string we want to add, plus optionally a weight value that specifies the importance of this grammar in relation of other grammars available in the list (can be from 0 to 1 inclusive.) the added grammar is available in the list as a speechgrammar object instance.
...again, most oses have some kind of speech synthesis system, which will be used by the api for this task as available.
...And 2 more matches
OpenType font features guide - CSS: Cascading Style Sheets
these are all referred to as opentype features, and are made available to use on the web via specific properties and a low-level control property — font-feature-settings.
...the typefaces shown are playfair display, source serif pro, ibm plex serif, dancing script, and kokoro (all available and free to use, most are on google fonts and other services).
...fonts with alternate glyphs can make them available across the board or individually in separate stylistic sets, or even individual characters.
...And 2 more matches
Basic Concepts of grid layout - CSS: Cascading Style Sheets
at this point, you may find it useful to work with the grid inspector, available as part of firefox's developer tools.
...the new fr unit represents a fraction of the available space in the grid container.
... the next grid definition would create three equal width tracks that grow and shrink according to the available space.
...And 2 more matches
animation - CSS: Cascading Style Sheets
WebCSSanimation
de, index) { node.addeventlistener('animationstart', function () { togglebutton(button[index], 'pause'); }); node.addeventlistener('animationend', function () { togglebutton(button[index], 'restart'); }); }); button.foreach(function (btn, index) { btn.addeventlistener('click', function () { playpause(index); }); }); }) a description of which properties are animatable is available; it's worth noting that this description is also valid for css transitions.
...the value must be one of those available in animation-iteration-count.
...the value must be one of those available in animation-direction.
...And 2 more matches
Applying color to HTML elements using CSS - HTML: Hypertext Markup Language
there are graphics technologies that are available on the web which also support color.
... see color keywords in <color> for a list of all available color keywords.
...fortunately, there are tools available that can help you.
...And 2 more matches
<input type="image"> - HTML: Hypertext Markup Language
WebHTMLElementinputimage
this attribute is also available on <input type="submit"> and <button> elements.
... this attribute is also available on <input type="submit"> and <button> elements.
... this attribute is also available on <input type="submit"> and <button> elements.
...And 2 more matches
<input type="submit"> - HTML: Hypertext Markup Language
WebHTMLElementinputsubmit
this attribute is also available on <input type="image"> and <button> elements.
... this attribute is also available on <input type="image"> and <button> elements.
... this attribute is also available on <input type="image"> and <button> elements.
...And 2 more matches
HTML documentation index - HTML: Hypertext Markup Language
WebHTMLIndex
53 html documentation index html, index, mdn meta a comprehensive index list of all the available html documentation.
... 86 <datalist>: the html data list element element, html, html forms, html5, reference, web the html <datalist> element contains a set of <option> elements that represent the permissible or recommended options available to choose from within other controls.
... 118 <input>: the input (form input) element data entry, element, forms, html, html forms, html input tag, input, makebrowseragnostic, reference, web the html <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.
...And 2 more matches
A re-introduction to JavaScript (JS tutorial) - JavaScript
the declared variable is available from the block it is enclosed in.
...the variable is available from the block it is declared in.
...a variable declared with the var keyword is available from the function it is declared in.
...And 2 more matches
Graphic design for responsive sites - Progressive web apps (PWAs)
this is because in general mobile devices will have less processing power and bandwidth available, so you want to reduce the processing and downloads.
...for an overview of what's available, read choosing a responsive image solution.
...the downsides here are that css3 properties and svg don't work on old browsers such as ie6-8 (although polyfills are available, and you could build in fallbacks), and svg isn't suitable for high detail images, such as photographs.
...And 2 more matches
SVG documentation index - SVG: Scalable Vector Graphics
WebSVGIndex
their custom data are available via the svgelement interface of the element the attributes belong to, with the svgelement.dataset property.
...this provides a way to design svg that gracefully falls back when features aren't available.
...if no value is provided, the output will only be available for re-use as the implicit input into the next filter primitive if that filter primitive provides no value for its in attribute.
...And 2 more matches
Module structure of the SDK - Archive of obsolete content
a commonjs module is a piece of reusable javascript: it exports certain objects which are thus made available to dependent code.
... commonjs defines: an object called exports which contains all the objects which a commonjs module wants to make available to other modules a function called require which a module can use to import the exports object of another module.
...each module is a separate file stored under your add-on's "lib" directory, and exports the objects you want to make available to other modules in your add-on.
...in: // main.js code var dialog = require("./password-dialog"); var hash = require("./secrets/hash"); to import modules into password-store: // password-store.js code var dialog = require("../password-dialog"); var hash = require("../secrets/hash"); external modules as well as using the sdk's modules and writing your own, you can use modules that have been developed outside the sdk and made available to other add-on authors.
ui/toolbar - Archive of obsolete content
it's also not available until after the attach event is emitted.
...this property is read-only and is not available until after the attach event is emitted.
...this property is read-only and is not available until after the attach event is emitted.
...after this event the toolbar's properties are available: var { toolbar } = require("sdk/ui/toolbar"); var { frame } = require("sdk/ui/frame"); var frame = new frame({ url: "./frame.html" }); var toolbar = toolbar({ title: "my toolbar", items: [frame] }); toolbar.on("attach", attached); function attached() { console.log("attached"); console.log(toolbar.title); console.log(toolbar.items[0]); console.log(toolbar.hidden); } detach this event is emitted when the toolbar has been destroyed: var { toolbar } = require("sdk/ui/toolbar"); var { frame } = require("sdk/ui/fra...
Bootstrapped extensions - Archive of obsolete content
notes on modifying the application user interface chrome.manifest in bootstrapped add-ons you can use a chrome.manifest file in bootstrapped add-ons to: make your add-on's content available via a chrome:// url (using the content, locale, and skin instructions in the manifest).
...this feature was unavailable in firefox versions before 8.
...this is a soft uninstall because of the available "undo" option.
... if the add-on manager is closed or another event takes place such that the "undo" option becomes unavailable, then the hard uninstall takes place and the uninstall function is called.
Creating custom Firefox extensions with the Mozilla build system - Archive of obsolete content
all the tools for building are available built-in, and therefore all you have to do is run some commands in the terminal.
...personally i would discourage this practice (among other things, static linking means the same code gets loaded more than once into memory, and the code won't be available from javascript or other non-c++ languages) and encourage the use of xpcom wherever possible.
... copying data files into target directory let's say that you have some data files containing statistical information that you want to include in your extension and make available to your components.
...if you want your extension to run on all firefox platforms, you will need to have the source code for the library in question, so i assume that this is available.
Migrating from Internal Linkage to Frozen Linkage - Archive of obsolete content
extension code using internal linkage will need to migrate to use frozen linkage because internal linkage will not be available in firefox 3.
...all these functions are now available via the new string api - appendutf16toutf8(srcstring, deststring); + deststring.append(ns_convertutf16toutf8(srcstring)); the signatures of the find methods differ between the two apis.
...utstream> rawstream;- rv = ns_newbyteinputstream(getter_addrefs(rawstream),- (const char*)data, length); + nscomptr<nsistringinputstream> rawstream =+ do_createinstance(ns_stringinputstream_contractid, &rv);+ ns_ensure_success(rv, rv);++ rv = rawstream->setdata((const char*)data, length); ns_ensure_success(rv, rv); nsistringinputstream is not frozen (and thus, not available in the gecko sdk as currently published).
... the following functions, however, are implemented in the glue library and can be used from frozen-linkage code: ns_newarrayenumerator (excluding deprecated nsisupportsarray version) ns_newemptyenumerator ns_newunionenumerator nscrt functions in nscrt.h are not available to frozen-linkage code.
Appendix D: Loading Scripts - Archive of obsolete content
the globals of the current content window will be available in the scripts global scope.
...// to make properties defined by scripts executing on the page // available to your sandbox script, use content.wrappedjsobject // instead.
... let context = content; // create the sandbox let sandbox = components.utils.sandbox(context, { // make properties of the context object available via the // script's global scope sandboxprototype: context, // wrap objects retrieved from the sandbox in xpcnativewrappers.
...additionally, any properties of the target object are available as variables in the script's global namespace, along with as any properties of the global associated with the target object.
List of Former Mozilla-Based Applications - Archive of obsolete content
a list of actively maintained mozilla-based applications is also available.
...chnology -- need confirmation and details second life virtual world desktop client switched from embedded mozilla browser to a plugin architecture with a qtwebkit plugin applications that are no longer being developed name description additional information aphrodite browser inactive aol client for mac internet software no longer available beonex communicator internet software last news item on site from 2004 chameleon theme builder inactive civil netizen p2p file delivery (email attachment replacement) site not updated since 2006 compuserve client internet software no longer available doczilla sgml/xml/html browser last release on site from july 2005 ...
... fabula language learning application inactive galeon browser last news item on site from september 2006 gencatrss rss reader domain switched over to domain parking service ghostzilla browser archived version of ghostzilla site from 2005 homebase desktop operating environment for internet computers no longer available hp printer assistant printer utility hall of fame page mentions that this used an embedded version of mozilla at some point but i can't find reference to current status (may still be using mozilla code?) icebrowser java browser sdk uses mozilla rhino --eol'ed in 2009 (jin'sync) office app launcher download page last updated on 12/21/06 kylix compiler and integra...
...old article available about how borland embedded mozilla in kylix 2 mango im client last news item on site from january 2007 mobidvd dvd/vcd/cd ripping software site down mozilla suite internet application suite development shifted to firefox, thunderbird and seamonkey applications netscape navigator browser support for netscape ended on february 1, 2008 nvu web authoring tool development stopped in 2005 and is being continued as an unofficial bugfix release by the kompozer project pogo browser from at&t site no longer accessible as of may 2009 pyro desktop desktop environment last news item on site from july 2007 script ...
Drag and Drop JavaScript Wrapper - Archive of obsolete content
the first parameter is the event object, available in all event handlers.
...often, a dragged object will be available in a number of flavors.
...within the ondragstart function, you specify what flavours are available for the item being dragged.
...conveniently, this element is available from the event object's target property.
Actionscript Acceptance Tests - Archive of obsolete content
support files: there are a variety of support files available for non-standard actionscript tests.
... testname.as.asc_args this file specifies additional arguments to pass to asc when compiling the test: # asc args for file # two modes are available: # override| all command line arguments (except builtin.py) are ignored and replaced by these # merge| merge these args in with the current args # specifiy an arg that starts with -no will disable the arg...
...testname.abc_ for special cases where the .as source is not available (e.g.
... there are two kinds of support directories available.
Tamarin build documentation - Archive of obsolete content
running the shell without any arguments will list the available options.
... note that additional command-line arguments are only available in the debug configuration.
...the setup procedure below creates an android sdk/ndk entirely from publicly available sources.
...all are available from the run menu.
IO - Archive of obsolete content
ArchiveMozillaXULFileGuideIO
file and stream guide: [ nsiscriptableio | accessing files | getting file information | reading from files | writing to files | moving, copying and deleting files | uploading and downloading files | working with directories ] important note: the pages from the file and stream guide use the io object (nsiscriptableio), which was not available in any released version of the platform (pending some fixes).
...other documentation on files and i/o not using the unavailable nsiscriptableio apis: code snippets: file i/o, open and save dialogs, reading textual data, writing textual data, list of file-related error codes.
...var file = io.getfile("profile", "sample.txt"); the nsiscriptableio object is a global object always available within an application or extension.
... retrieve a file object for information about getting a file object, see accessing files get information about a file available information about a file include the permissions, size, and last modified date of a file.
Introduction to XUL - Archive of obsolete content
someday, there will be a complete description of this mechanism at packages, but for now there's a good but somewhat out of date document at configurable chrome available for more information.
...at this time these additional dom methods are available, though the code is of course the most accurate place to look for this information.
... #main-window { display: block; width: 100%; height: 100%; } for example, the above style rule would apply to the main window and dictates that the window should consume the full width and height available to it in a content area.
...the frame also has a special attribute called flex, which indicates how much the frame is allowed to stretch to consume available space inside its window.
Document Object Model - Archive of obsolete content
in javascript, there is always a single global object that is always available.
...it is important to note, however, that the open() method returns before the window has fully loaded, so functions will not typically be available yet.
... properties are available in javascript using the dot syntax.
...refer to the element reference for a full guide to the attributes and properties available for an element.
Element Positioning - Archive of obsolete content
recall that flexible elements grow and shrink to fit the available space.
...an inflexible element never changes size even when space is available, so the button can't grow either.
...then, when you make the window wider, extra space will be available, so the box will grow to fill the extra space.
... because the box is larger, more extra space will be created inside it, and the flexible button inside it will grow to fit the available space.
XPCOM Interfaces - Archive of obsolete content
mozilla stores a list of all the components that are available in its own registry.
...the classes property is an array of all of the available components.
...the interfaces property of the components object contains a list of all the interfaces that are available.
...because the interface nsisupports is implemented by all components, the function queryinterface() function is available in every component.
treecol - Archive of obsolete content
more information is available in the xul tutorial.
...however, chrome://global/skin/checkbox/cbox-check.gif is available in seamonkey on mac os x..
...cbox-check.gif isn't available in firefox 1, 2, and 3 on mac os x, so you should specify a url to an image in your extension or elsewhere.
...specifying widths for your columns causes gecko to allow the tree to be scrolled horizontally if it is wider than the available space.
2006-09-29 - Archive of obsolete content
details are available for calendar only and for calendar and core.
... discussions no discussions available this week.
...27 status meeting cancelled most of the mozilla calendar participants were unavailable during sept.
...the details of subird 0.3 rc1 are available here.
2006-11-10 - Archive of obsolete content
summary: mozilla.dev.l10n - november 10, 2006 announcements seamonkey 1.0.5 in belarusian belarusian [be-by] localization for seamonkey 1.0.5 is available now.
... latvian pellcheck dictionary for ff2.0 newest openoffice dictionary files for ff 2.0 spell-checker is available.
... trunk / 1_8 for kurdish firefox the firefox translations of the kurdish are only in trunk translating the firefox privacy policy the final and approved en-us version of privacy policy is available here and ready for localization team to translate.
... seamonkey 1.0.6 and 1.1 beta upcoming seamonkey 1.0.6 and 1.1 beta are both available here.
Syndicating content with RSS - Archive of obsolete content
syndication (or web syndication) is a method which lets a web site make its content available for others to read, listen to, or watch.
... adding the <link> often the data in an rss feed is also made available on an html web page.
... linking from the the html web page where the data in an rss feed is also contained makes the rss feed available for use: <a rel="alternate" type="application/rss+xml" href="http://example.com/feed">...</a> feed icons rss (and other) feeds use a special icon.
...(other sizes and colors, along with their source files, are available too.) advanced syndication techniques although this advanced technique for syndication is not required, support of this is recommended, especially for web sites and applications with high performance needs.
SAX - Archive of obsolete content
starting with firefox 2, a sax parser is available to xul applications and extensions.
... quick start the sax parser functionality is available through the xml reader component.
...all functionality is available through the nsisaxxmlreader interface.
...the following handlers are available: interface purpose nsisaxcontenthandler receive notification of the logical content of a document (e.g.
Introduction to SSL - Archive of obsolete content
the details of the protocol are available in request for comments (rfc): 2246,the tls protocol version 1.0.
...government restrictions on products that support anything stronger than 40-bit encryption, disabling support for all 40-bit ciphers effectively restricts access to network browsers that are available only in the united states (unless the server involved has a special global server id that permits the international client to "step up" to stronger encryption).
...that way, when a domestic client or server is dealing with another domestic server or client, respectively, it will negotiate the use of the strongest ciphers available.
...they provide the strongest encryption available for exportable products.1 rc4 with 40-bit encryption and md5 message authentication rc4 40-bit encryption permits approximately 1.1 * 1012 (a trillion) possible keys.
Table Reflow Internals - Archive of obsolete content
resize - reflowee gets a change in available space only.
...a text run) user defined - currently only used for fixed positioned frames kinds of reflows incremental reflow (continued) reflower not allowed to change available size of reflowee reflow commands get coalesced to streamline processing style change a target changed stylistic if there is a target, otherwise every frame may need to respond parent of target usually turns it into an incremental reflow with a style changed command type table frames nstableouter frame ↙ ↘ nstable frame nstablecaption ...
...g 3rd pass initiator is the table containing the observer starts the 3rd pass reflow and sets a bit in the reflow state gives its block a computed height during 3rd pass could also be inside a cell which is an observer special height reflow optimizations only frames needing 3rd pass actually get it frames gettting a 3rd pass only get it once intro to paginated reflow when a reflowee's available height is constrained, it may not fit and need to either split/continue on the next page, or start on the next page.
...a child is truncated and gets reflowed on a subsequent page) but they should not change the available width from the last time.
Scaling - Game development
the phaser scale object there's a special scale object available in phaser with a few handy methods and properties available.
... update your existing preload() function as follows: function preload() { game.scale.scalemode = phaser.scalemanager.show_all; game.scale.pagealignhorizontally = true; game.scale.pagealignvertically = true; } scalemode has a few different options available for how the canvas can be scaled: no_scale — nothing is scaled.
... exact_fit — scale the canvas to fill all the available space both vertically and horizontally, without preserving the aspect ratio.
... resize — creates the canvas with the same size as the available width and height, so you have to place the objects inside your game dynamically; this is more of an advanced mode.
WAI-ARIA basics - Learn web development
for example, html5 introduced a number of semantic elements to define common page features (<nav>, <footer>, etc.) before these were available, developers would simply use <div>s with ids or classes, e.g.
... the improved semantics of the search form have shown what is made possible when aria goes beyond the semantics available in html5.
... guiding users through complex widgets there are a whole host of other roles that can identify non-semantic element structures as common ui features that go beyond what's available in standard html, for example combobox, slider, tabpanel, tree.
... summary this article has by no means covered all that's available in wai-aria, but it should have given you enough information to understand how to use it, and know some of the most common patterns you will encounter that require it.
What is accessibility? - Learn web development
you should look at your project budget and think about what solutions you have available to make such content accessible.
... accessibility guidelines and the law there are numerous checklists and sets of guidelines available for basing accessibility tests on, which might seem overwhelming at first glance.
... so while the wcag is a set of guidelines, your country will probably have laws governing web accessibility, or at least the accessibility of services available to the public (which could include websites, television, physical spaces, etc.) it is a good idea to find out what your laws are.
... different operating systems have different accessibility apis available : windows: msaa/iaccessible, uiaexpress, iaccessible2 mac os x: nsaccessibility linux: at-spi android: accessibility framework ios: uiaccessibility where the native semantic information provided by the html elements in your web apps falls down, you can supplement it with features from the wai-aria specification, which add semantic information to the accessibility tree to improve accessib...
Beginner's guide to media queries - Learn web development
for users who can hover, we might choose to make them available when a link is hovered over.
...that's the point at which you want to use a media query to change the design to a better one for the space you have available.
... if you look at the final example at different widths you can see how the design responds and works as a single column, two columns, or three columns, depending on the available width.
...the nice thing about this method is that grid is not looking at the viewport width, but the width it has available for this component.
Supporting older browsers - Learn web development
this is straightforward if you have an existing website which you are adding to or replacing, as you probably have analytics available which can tell you the technology people are using.
... once you know the browsers that come to your site, you can assess any technology that you want to use against how well it is supported and how easily you can provide an alternative for visitors who do not have that technology available.
...having access to older versions of internet explorer is particularly useful, and for that purpose, microsoft has made a range of virtual machines available for free download.
... these are available for mac, windows and linux operating systems and so are a great way to test in old and modern windows browsers even if you are not using a windows computer.
What is a Domain Name? - Learn web development
they provide a human-readable address for any web server available on the internet.
...this is so that unused domain names eventually become available to use again by someone else.
... finding an available domain name to find out whether a given domain name is available, go to a domain name registrar's website.
... most of them provide a “whois” service that tells you whether a domain name is available.
UI pseudo-classes - Learn web development
in this article, we will explore in detail the different ui pseudo-classes available to us in modern browsers for styling forms in different states.
... what pseudo-classes do we have available?
... the original pseudo-classes available to us (as of css 2.1) that are relevant to forms are: :hover: selects an element only when it is being hovered over by a mouse pointer.
... <input>, <select>, and <textarea> elements have a required attribute available which, when set, means that you have to fill in that control before the form will successfully submit.
Publishing your website - Learn web development
all registrars will have a feature to allow you to check if the domain name you want is available.
...the available feature set will be limited, but it might be perfect for your first experiments.
... there are also free services available like neocities, blogger, and wordpress.
... cheap or free static website hosting by scott murray has some useful ideas on available services.
Graceful asynchronous programming with Promises - Learn web development
there is no guarantee of exactly when the operation will complete and the result will be returned, but there is a guarantee that when the result is available, or the promise fails, the code you provide will be executed in order to do something else with a successful result, or to gracefully handle a failure case.
...so instead of waiting for the user, getting the chosen devices enabled, and directly returning the mediastream for the stream created from the selected sources, getusermedia() returns a promise which is resolved with the mediastream once it's available.
... we immediately run the blob() method on this response to ensure that the response body is fully downloaded, and when it is available transform it into a blob object that we can do something with.
...previously you'd have to include the same code in both the .then() and .catch() callbacks, for example: mypromise .then(response => { dosomething(response); runfinalcode(); }) .catch(e => { returnerror(e); runfinalcode(); }); in more recent modern browsers, the .finally() method is available, which can be chained onto the end of your regular promise chain allowing you to cut down on code repetition and do things more elegantly.
Cooperative asynchronous JavaScript: Timeouts and intervals - Learn web development
previous overview: asynchronous next this tutorial looks at the traditional methods javascript has available for running code asychronously after a set time period has elapsed, or at a regular interval (e.g.
...depending on how processor-intensive these operations are, they can delay your async code even further, as any async code will execute only after the main thread is available.
...in all cases, requestanimationframe() will always do the best it can with what it has available.
... interestingly, it is available in internet explorer 10 and above.
Functions — reusable blocks of code - Learn web development
for now, we just wanted to clear up any possible confusion of method versus function — you are likely to meet both terms as you look at the available related resources across the web.
...you generally use an anonymous function along with an event handler, for example the following would run the code inside the function whenever the associated button is clicked: const mybutton = document.queryselector('button'); mybutton.onclick = function() { alert('hello'); } the above example would require there to be a <button> element available on the page to select and click.
...output() itself is available from anywhere, as it is defined in the global scope.
...these work fine because even though the output() calls are not in the same scope as x is defined in, x is a global variable so is available inside all code, everywhere.
Manipulating documents - Learn web development
using methods available on this object you can do things like return the window's size (see window.innerwidth and window.innerheight), manipulate the document loaded into that window, store data specific to that document on the client-side (for example using a local database or other storage mechanism), attach an event handler to the current window, and more.
...inside your script element, add the following line: const link = document.queryselector('a'); now we have the element reference stored in a variable, we can start to manipulate it using properties and methods available to it (these are defined on interfaces like htmlanchorelement in the case of <a> element, its more general parent interface htmlelement, and node — which represents all nodes in a dom).
... there are older methods available for grabbing element references, such as: document.getelementbyid(), which selects an element with a given id attribute value, e.g.
...the window object has an event available on it called resize, which is fired every time the window is resized — let's access that via the window.onresize event handler and rerun our sizing code each time it changes.
Video and Audio APIs - Learn web development
in the next section we'll look at the basic tools we have available to do this.
...this interface is available to both <audio> and <video> elements, as the features you'll want to implement are nearly identical.
...the htmlmediaelement api makes a wealth of functionality available for creating simple video and audio players, and that's only the tip of the iceberg.
... because <audio> elements have the same htmlmediaelement functionality available to them, you could easily get this player to work for an <audio> element too.
Basic math in JavaScript — numbers and operators - Learn web development
this is especially true when we are learning to program javascript (or any other language for that matter) — so much of what we do relies on processing numerical data, calculating new values, and so on, that you won't be surprised to learn that javascript has a full-featured set of math functions available.
... useful number methods the number object, an instance of which represents all standard numbers you'll use in your javascript, has a number of useful methods available on it for you to manipulate numbers.
... we don't cover these in detail in this article because we wanted to keep it as a simple introduction and only cover the real basic essentials for now; however, once you've read through this module a couple of times it is worth going to the object reference pages and learning more about what's available.
... note that you can quite happily use other variables on the right hand side of each expression, for example: let x = 3; // x contains the value 3 let y = 4; // y contains the value 4 x *= y; // x now contains the value 12 note: there are lots of other assignment operators available, but these are the basic ones you should learn now.
JavaScript object basics - Learn web development
so when you used string methods like: mystring.split(','); you were using a method available on an instance of the string class.
... every time you create a string in your code, that string is automatically created as an instance of string, and therefore has several common methods and properties available on it.
... when you accessed the document object model using lines like this: const mydiv = document.createelement('div'); const myvideo = document.queryselector('video'); you were using methods available on an instance of the document class.
...again, this means that it has several common methods and properties available on it.
Multimedia: Images - Learn web development
this requires the source to be available as in a vector graphic format.
...available to use in the online image optimization tool squoosh.
... other formats improve on jpeg's capabilities in regards to compression, but are not available on every browser: webp — created by google and nowadays supported by all major browsers except safari.
... jpeg-xr — created by microsoft and only available in internet explorer and edgehtml based edge.
Ember interactivity: Events, classes and state - Learn web development
we can define what is available inside this by generating a component class to go along with your component.
... first add another import statement below the previous one, to make actions available inside the service: import { action } from '@ember/object'; update the existing export default class tododataservice extends service { … } block as follows: export default class tododataservice extends service { @tracked todos = []; @action add(text) { let newtodo = new todo(text); this.todos = [...this.todos, newtodo]; } } here, the todos property on the service will main...
...to do this, add the following import line to header.js, beneath the two existing import lines: import { inject as service } from '@ember/service'; with this import in place, we can now make the todo-data service available inside the headercomponent class via the todos object, using the @service decorator.
...to put this in action, go to your todo-list.hbs component, and replace the static component calls: <todo /> <todo /> with a dynamic #each block (which is basically syntactic sugar over the top of javascript's foreach()) that creates a <todo /> component for each todo available in the list of todos returned by the service’s all() getter: {{#each this.todos.all as |todo|}} <todo @todo={{todo}} /> {{/each}} another way to look at this: this — the rendering context / component instance.
Introduction to client-side frameworks - Learn web development
does the framework have a strong community and good docs (and other support) available?
...it is not just about the community's size, but also how welcoming and inclusive it is, and how good available documentation is.
...currently, there are several years of data available, allowing you to get a sense of a framework's popularity.
...a handful of powerful options are now available, such as hugo, jekyll, eleventy, and gatsby.
TypeScript support in Svelte - Learn web development
repl unfortunately, typescript support is not yet available in the repl.
... there is work in progress to support typescript in svelte projects in several code editors; the most complete support so far is available in the svelte for vs code extension, which is developed and maintained by the svelte team.
... repl as we said earlier, typescript is not yet available in the repl.
...we will also see which resources are available online to go further with learning svelte.
Deployment and next steps - Learn web development
you can also consult the svelte api docs and the available examples.
...you also have the interactive slides available here which are, unsurprisingly, built with svelte.
... other learning resources there's a complete course about svelte and sapper by rich harris, available at frontend masters.
... even though svelte is a relatively young project there are lots of tutorials and courses available on the web, so it's difficult to make a recommendation.
Handling common HTML and CSS problems - Learn web development
the w3c has a css validator available too, for this purpose.
...github's atom code editor for example has a rich plugin ecosystem available, with many linting options.
... other popular editors have similar linting packages available.
... this sounds like a pain to deal with, but fortunately there is a polyfill available that does the necessary fixes for you, and more besides — see html5shiv for all the details (see manual installation for the simplest usage).
Setting up your own test automation environment - Learn web development
most popular environments have available a package or framework that will install webdriver and the bindings required to communicate with webdriver using this language, for example, java, c#, ruby, python, javascript (node), etc.
...you can find details of where to get them from on the selenium-webdriver page (see the table in the first section.) obviously, some of the browsers are os-specific, but we're going to stick with firefox and chrome, as they are available across all the main oses.
...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.
... if you now go back to your browserstack automation dashboard page, you should see your test session available, as before, but with the updated data attached to it: sauce labs getting selenium tests to run remotely on sauce labs is also very simple, and very similar to browserstack albeit with a few syntactic differences.
Introducing a complete toolchain - Learn web development
in this case study we'll look at adding tests to your code, and deploying your app using netlify so it is available for all the web to see.
...git is currently the most popular source code revision control tool available to developers — revision control provides many advantages, such as a way to backup your work in a remote place, and a mechanism to work in a team on the same project without fear of overwriting each other's code.
... web development linting tools mostly exist for javascript (though there are a few available for html and css).
...sass was one of the first preprocessors to support nesting (if not the first) but now after many years, nesting looks like it will soon be standardised, which means that we will have it available in our browsers without needing build tools.
Accessibility Features in Firefox
in fact, the same keyboard commands are still available, so users can become comfortable and productive right away.
...basic screen reader accessibility is available via the fire vox extension.
...custom searches can be added to this quick search bar and the user can switch between them by choosing from a drop down available via the standard alt+down arrow key combination.
...for example, prefs.js gives access to a large number of configuration options not available in the preferences window.
Debugging JavaScript
(note that before firefox 28, this was labeled "browser debugger" and only the debugger was available, not the whole toolbox.) note that you must accept the incoming connection : (you may disable the pop-up above with the devtools.debugger.prompt-connection set to false in about:config.
... this can be a security risk, especially if you also set the devtools.debugger.force-local preference to false.) then, the browser toolbox displays the available tools for debugging.
... (note that before firefox 28, only the script debugger was available.) the use of these tools are the same as the built-in tools.
...ee also debugging mozilla with gdb setting up an extension development environment (particularly development preferences 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.
mach
if you don't use mach, you have to find another solution for the following problems: discovering what commands or make targets are available (mach exposes everything through mach help while inside "mozilla-central" , else you'll just get a cryptic error message) making more sense out of command output (mach offers terminal colorization and structured logging) getting productive tools in the hands of others (mach "advertises" tools to people through mach help (unless it actually just gives you a cryptic error message) - in the former...
...to see the list of the 4 available settings ( which are: alias , test , try , runprefs ) type : $ ./mach settings should i implement x as a mach command?
... yes, the mach core is in mozilla-central inside the python/mach directory and available on pypi at https://pypi.python.org/pypi/mach/.
...this object holds state from the mach driver, including the current directory, a handle on the logging manager, the settings object, and information about available mach commands.
Error codes returned by Mozilla APIs
ns_error_out_of_memory (0x8007000e) this error occurs when there is not enough memory available to carry out an operation, or an error occurred trying to allocate memory.
... ns_error_no_aggregation (0x80040110) ns_error_not_available (0x80040111) an operation could not be completed because some other necessary component or resource was not available.
... ns_base_stream_would_block (0x80470007) this error occurs when an attempt is made to read from a non blocking stream yet there is not enough data available to read without waiting for more.
... ns_error_offline (0x804b0010) ns_error_no_content (0x804b0011) returned from nsichannel.asyncopen() to indicate that ondataavailable will not be called because there is no content available.
Experimental features in Firefox
nightly 53 yes developer edition 53 no beta 53 no release 53 no preference 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 preference 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.
...it is available in both the window and worker contexts.
...this feature is available in nightly builds effective in firefox for android 81 or later.
Storage access policy: Block cookies from trackers
this policy is designed as an alternative to the older cookie policies, which have been available in firefox for many years.
... testing in firefox this cookie policy has been available in firefox since version 63.
...alternatively you can report broken sites directly in firefox by clicking "report a problem" in the content blocking section of the control center (this shortcut may not be available in all versions of firefox).
...an initial implementation of this api is currently available in nightly.
Firefox and the "about" protocol
available about: urls depend on your specific firefox version.
... here is a complete list of urls in the about: pseudo protocol: about: page description about:about provides an overview of all about: pages available for your current firefox version about: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 preferences and settings about:compat lists overriding site compatability fixes, linked to specific bug issues.
...splays 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:preferences firefox settings (also available through firefox menu > options) about:privatebrowsing start page when opening a private window about:profiles display and manage firefox profiles about:protections privacy protections report consisting of enhanced tracking protection, firefox monitor and firefox lockwise data about:restartrequired a page users are sent to when firefox requires a res...
...out:rights displays rights information about:robots special page showing notes about robots about:serviceworkers displays currently running service workers about:studies lists the shield studies that are installed about:sessionrestore session restoration (displayed after a firefox crash) about:support troubleshooting information (also available through firefox menu > ?
Browser API
note that this method is available for touch enabled devices only.
...this allows handling of the <menuitem> element available within the browser <iframe>'s content.
...<link rel="icon"> or <link rel="apple-touch-icon">) is available in the browser <iframe>'s content.
... mozbrowserscrollareachanged sent when the available scrolling area in the browser <iframe> changes.
Promise
a promise object represents a value that may not be available yet.
...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.
... internally, a promise can be in one of three states: pending, when the final value is not available yet.
... fulfilled, when and if the final value becomes available.
SourceMap.jsm
and an object is returned with the following properties: source: the original source file, or null if this information is not available.
... line: the line number in the original source, or null if this information is not available.
... column: the column number in the original source, or null if this information is not available.
... name: the original identifier, or null if this information is not available.
Localizing with Pontoon
hidden if no resources available for project.
...more details are available in the popup.
...by clicking on the hamburger icon in the main toolbar, a list of all strings and available translations will open in the sidebar.
... translation helpers as you can see, suggestions from history, translation memory, machine translation and other locales are also available in the out-of-context translation panel.
L20n HTML Bindings
<head> … <script src="l20n.js"></script> </head> create manifest use a localization manifest to define available languages and their resource files.
... <script type="application/l10n-data+json"> { "newnotifications": 3, "user": { "name": "jane", "gender": "feminine" } } </script> this data will be available context-wide to all localized strings.
... monolingual mode l20n can also operate in the so-called monolingual mode, when there is only one locale available.
...with no information about the available and the default locales, l20n will switch to the monolingual mode.
NSS_3.12_release_notes.html
nss 3.12 source and binary distributions are also available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_12_rtm/src/.
...ce cert_rev_m_skip_test_on_missing_source cert_rev_m_require_info_on_missing_source cert_rev_m_ignore_missing_fresh_info cert_rev_m_fail_on_missing_fresh_info cert_rev_m_stop_testing_on_fresh_info cert_rev_m_continue_testing_on_fresh_info cert_rev_mi_test_each_method_separately cert_rev_mi_test_all_local_information_first cert_rev_mi_no_overall_info_requirement cert_rev_mi_require_some_fresh_info_available cert_policy_flag_no_mapping cert_policy_flag_explicit cert_policy_flag_no_any cert_enable_ldap_fetch cert_enable_http_fetch new macro in utilrename.h: smime_aes_cbc_128 the nssckbi pkcs #11 module's version changed to 1.70.
...es in nss_shutdown bug 345779: useless assignment statements in ec_gf2m_pt_mul_mont bug 349011: please stop exporting these crmf_ symbols bug 397178: crash when entering chrome://pippki/content/resetpassword.xul in url bar bug 403822: pkix_pl_ocsprequest_create can leave some members uninitialized bug 403910: cert_findusercertbyusage() returns wrong certificate if multiple certs with same subject available bug 404919: memory leak in sftkdb_readsecmoddb() (sftkmod.c) bug 406120: allow application to specify ocsp timeout bug 361025: support for camellia cipher suites to tls rfc4132 bug 376417: pk11_generatekeypair needs to get the key usage from the caller.
...new and revised documents available since the release of nss 3.11 include the following: build instructions for nss 3.11.4 and above nss shared db nss environment variables compatibility nss 3.12 shared libraries are backward compatible with all older nss 3.x shared libraries.
NSS 3.35 release notes
nss 3.35 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_35_rtm/src/ new in nss 3.35 new functionality tls 1.3 support has been updated to draft -23.
... in order to ease transitions, experimental functions return secfailure and set the ssl_error_unsupported_experimental_api code if the selected api is not available.
... (only apis exported in *.def files are stable apis.) new experimental functionality provided below are descriptions of experimental functionality, which might not be available in future releases of nss.
... new experimental apis below is a list of experimental functions, which might not be available in future releases of nss.
Notes on TLS - SSL 3.0 Intolerant Servers
tls is now available and used, and products that have implemented the roll-back detection incorrectly are not interoperable with tls/ssl spec-compliant clients.
...3.6.1 by infinite technologies (* update available) n.b.
... upgrade to a newer version if available, which corrects this problem.
... contact the manufacturer and inquire if there is a new version available which fixes this problem.
Overview of NSS
source code for a java interface to nss is available in the mozilla cvs tree.
... nss is available as source and shared (dynamic) libraries.
... open-source licensing and distribution nss is available under the mozilla public license, version 2.
... the latest source code is available for free worldwide from https://www.mozilla.org and its mirror sites.
NSS PKCS11 Functions
more information about module spec is available at pkcs11_module_specs.
...pk11_findkeybyanycert finds the private key associated with a specified certificate in any available slot.
... pk11_ispresent finds out whether the token for a slot is available.
...returns the function returns one of these values: if token is available, pr_true.
NSS 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.
...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.
...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.
...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.
sslfnc.html
for information about the options available and the possible values to pass in this parameter, see the description of the option parameter under ssl_optionsetdefault.
... the set of available ssl cipher suites may grow from release to release of nss.
... in this release, the three ssl_fortezza_ cipher suites cannot be enabled unless there is a pkcs #11 module available with a fortezza-enabled token.
...for information about the options available and the possible values to pass in this parameter, see the description of the option parameter under ssl_optionset.
JSAPI User Guide
lastly, the global object contains all the classes, functions, and variables that are available for javascript code to use.
...these two functions, both available only in debug builds, are especially useful for debugging gc-related crashes: use js_setgczeal to enable extra garbage collection.
... an object you create using a script only can be made available only during the lifetime of the script, or can be created to persist after the script completes execution.
... deploy security updates - firefox automatically installs updates, so security fixes are deployed as soon as they are available.
JSAPI reference
these functions provide access to the garbage collector: js_gc js_maybegc js_getgcparameter js_setgcparameter js_getgcparameterforthread added in spidermonkey 17 js_setgcparameterforthread added in spidermonkey 17 js_setgcparametersbasedonavailablememory added in spidermonkey 31 enum jsgcparamkey js_setgccallback enum jsgcstatus js_addfinalizecallback added in spidermonkey 38 enum jsfinalizestatus added in spidermonkey 17 js_removefinalizecallback added in spidermonkey 38 js_setgczeal added in spidermonkey 1.8 js_schedulegc added in spidermonkey 17 js_dumpheap added in spidermonkey 1.8 js_setgccall...
... jsapi 1.7 and earlier they are only available in js_threadsafe builds.
... added in spidermonkey 1.8 these functions are always available, but in non-js_threadsafe builds, they do nothing.
... js_beginrequest js_endrequest js_yieldrequest obsolete since jsapi 18 js_suspendrequest obsolete since jsapi 18 js_resumerequest obsolete since jsapi 18 js_getcontextthread obsolete since jsapi 8 js_setcontextthread obsolete since jsapi 8 js_clearcontextthread obsolete since jsapi 8 the following functions are always available, but in non-js_threadsafe builds, they do nothing: js_lockruntime obsolete since jsapi 12 js_unlockruntime obsolete since jsapi 12 js_lock obsolete since jsapi 12 js_unlock obsolete since jsapi 12 time js_now callback types native function types: jsnative jsfastnative obsolete since javascript 1.8.5 other callback types: js::largeallocationfailurecallback - used by js::setlargeallocationfailurecallback added in spidermonkey 31 js::offthr...
Animated PNG graphics
MozillaTechAPNG
the contents of the canvas are not necessarily available to the decoder.
...the contents of the output buffer are available to the decoder.
...it is signaled with a missing fctl idat, fctl and fdat are no longer required to have no other chunks in between them from 0.8 removed crcs for ihdr and plte from actl the actl fctl and adat are now not copy safe, renamed them to actl, fctl and adat from 0.9 split render_op into dispose_op and blend_op from 0.10 no changes test encoder and sample images sample images are available from the apng implementation page at http://littlesvr.ca/apng/ an encoder (open source) is available in versions of the gecko engine starting with version 1.9 alpha 4.
... an application (open source) using the mozilla encoder to assemble apngs available here: http://littlesvr.ca/apng/apngedit.html see also portable network graphics (png) specification (second edition) extensions to the png specification, version 1.2.0 graphics interchange format 89a ...
XML Extras
the xml extras module is built by default on all platforms, and is included in the browser installers so it is available in the nightly builds.
... feature status feature status xmlserializer available xmlhttprequest available domparser (string and stream input source) available web services with soap and wsdl no longer available from gecko 1.9/firefox 3.
... xml persistence fixptr and xpointer available since 1.4alpha in the core mozilla.
... domparser creation not available new domparser() xmlserializer creation not available new xmlserializer() minimal documentation for the components listed above can be found using mozilla documentation generated by doxygen.
imgIContainer
exceptions thrown ns_error_not_available if the animated state cannot be determined.
... flag_sync_decode: forces synchronous/non-progressive decode of all available data before the call returns.
... aviewportsize the size (in css pixels) of the viewport that would be available for the full image to occupy, if we were drawing the full image.
...if not (or if the root nsiframe is not available for some reason), this method returns nsnull.
nsIAlertsService
only available on supported platforms.
...only available on supported platforms.
... exceptions thrown ns_error_not_available unable to display the notification; this may happen, for example, on mac os x if growl is not installed.
... getservice(components.interfaces.nsialertsservice); try { alertsservice.showalertnotification("", "alerts service test", "click me", true, "cookie", listener, ""); } catch (e) { // this can fail on mac os x } example 2 this example shows how to use all the available observer topics: var as = cc['@mozilla.org/alerts-service;1'].getservice(ci.nsialertsservice); var notiflistener = { observe: function(asubject, atopic, adata) { console.error('incoming notification observer:', asubject, atopic, adata); if (atopic == 'alertclickcallback') { console.error('user clicked trying to throw click'); services.prompt.alert(...
nsIChannel
method overview void asyncopen(in nsistreamlistener alistener, in nsisupports acontext); nsiinputstream open(); attributes attribute type description contentcharset acstring the character set of the channel's content if available and if applicable.
... contentlength int64_t the length of the data associated with the channel if available.
... contenttype acstring the mime type of the channel's content if available.
...data is fed to the specified stream listener as it becomes available.
nsIDOMWindowUtils
exceptions thrown ns_error_not_available there is no current inner window displaydpi float the dpi of the display.
...throws ns_error_not_available if the count can't be provided.
...just use element.focus if available or nsifocusmanager.setfocus() instead.
...available to all callers in debug builds.
nsIDirIndexListener
they can then be transformed into an output format (such as rdf, html and so on) inherits from: nsisupports last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) method overview void onindexavailable(in nsirequest arequest, in nsisupports actxt, in nsidirindex aindex); void oninformationavailable(in nsirequest arequest, in nsisupports actxt, in astring ainfo); methods onindexavailable() called for each directory entry.
... void onindexavailable( in nsirequest arequest, in nsisupports actxt, in nsidirindex aindex ); parameters arequest the request.
... oninformationavailable() called for each information line.
... void oninformationavailable( in nsirequest arequest, in nsisupports actxt, in astring ainfo ); parameters arequest the request.
nsIEditorSpellCheck
if there are no available dictionaries, the return value is false.
... checkcurrentdictionary() call this after any change in installed dictionaries to ensure that the spell checker is not using a current dictionary which is no longer available.
... if the current dictionary is no longer available, pick another dictionary.
...getdictionarylist() retrieves a list of the currently available dictionaries.
nsIFaviconService
exceptions thrown ns_error_not_available thrown when we have never heard of this favicon url.
...exceptions thrown ns_error_not_available thrown when we have never heard of this favicon url.
...exceptions thrown ns_error_not_available when the page is not found or it has no favicon.
...an async request will be created for this uri and if the data is available, it will asynchronously get saved in the database without any further work from the caller.
nsIMsgDBView
to create an instance, use: var dbview = components.classes[@mozilla.org/messenger/msgdbview;1?type=] .createinstance(components.interfaces.nsimsgdbview); where type designates different types of view's available.
... available in the mozilla codebase are types "quicksearch", "threadswithunread", "watchedthreadswithunread", "xfvf" (virtual folders), "search", "group", and "threaded" each with their own implementation of nsimsgdbview that provides a different sorting/view of the data.
...used by the thunderbird ui to determine if the command is available.
... return values true if the motion is available.
nsINavHistoryContainerResultNode
w nsinavhistoryresultnode findnodebydetails(in autf8string auristring, in prtime atime, in long long aitemid, in boolean arecursive); nsinavhistoryresultnode getchild(in unsigned long aindex); unsigned long getchildindex(in nsinavhistoryresultnode anode); attributes attribute type description childcount unsigned long the number of child nodes; accessing this throws an ns_error_not_available exception of containeropen is false.
...exceptions thrown ns_error_not_available the container is not open.
...exceptions thrown ns_error_not_available the containeropen attribute is currently false, indicating that the node isn't open for access.
...exceptions thrown ns_error_not_available the container isn't open (that is, containeropen is false).
nsIScriptableIO
file and stream guide: [ nsiscriptableio | accessing files | getting file information | reading from files | writing to files | moving, copying and deleting files | uploading and downloading files | working with directories ] important note: the pages from the file and stream guide use the io object (nsiscriptableio), which was not available in any released version of the platform (pending some fixes).
...other documentation on files and i/o not using the unavailable nsiscriptableio apis: code snippets: file i/o, open and save dialogs, reading textual data, writing textual data, list of file-related error codes.
... block: when this mode is specified, reading from a transport such as a socket when no data is available will block until data is available before returning.
... if this mode isn't specified, an exception is thrown if no data is available.
nsITraceableChannel
ondataavailable: data is arriving on the http channel.
...this example uses promise syntax that is available in firefox 30 and onwards.
...y; // we'll set this to the this.responsestatuscode; this.deferreddone = { promise: null, resolve: null, reject: null }; this.deferreddone.promise = new promise(function(resolve, reject) { this.resolve = resolve; this.reject = reject; }.bind(this.deferreddone)); object.freeze(this.deferreddone); this.promisedone = this.deferreddone.promise; } tracinglistener.prototype = { ondataavailable: function(arequest, acontext, ainputstream, aoffset, acount) { var istream = new binaryinputstream(ainputstream) // binaryainputstream var sstream = new storagestream(8192, acount, null); // storagestream // not sure why its 8192 but thats how eveyrone is doing it, we should ask why var ostream = new binaryoutputstream(sstream.getoutputstream(0)); // binaryoutputstream // copy received d...
... var data = istream.readbytes(acount); this.receivedchunks.push(data); ostream.writebytes(data, acount); this.originallistener.ondataavailable(arequest, acontext, sstream.newinputstream(0), aoffset, acount); }, onstartrequest: function(arequest, acontext) { this.originallistener.onstartrequest(arequest, acontext); }, onstoprequest: function(arequest, acontext, astatuscode) { this.responsebody = this.receivedchunks.join(""); delete this.receivedchunks; this.responsestatus = astatuscode; this.originallistener.onstoprequest(arequest, acontext, astatuscode); this.deferreddone.resolve(); }, queryinterface: function(aiid) { if (aiid.equals(ci.nsistreamlistener) || aiid.equals(ci.nsisupports)) { return this; } throw cr.ns_nointerface; } }; var httpr...
nsIWebNavigation
if true this indicates that there is back session history available for navigation.
...if true this indicates that there is forward session history available for navigation.
...when a page is loaded from session history, all content is loaded from the cache (if available) and page state (such as form values and scroll position) is restored.
...when a page is loaded from session history, all content is loaded from the cache (if available) and page state (such as form values and scroll position) is restored.
XPCOM
this article will show you how to use the available interfaces in several mozilla products.aggregating the in-memory datasourcealready_addrefedalready_addrefed in association with nscomptr allows you to assign in a pointer without addrefing it.binary compatibilityif mozilla decides to upgrade to a compiler that does not have the same abi as the current version, any built component may fail.
...it is available to trusted callers, meaning extensions and firefox components only.the thread managerthe thread manager, introduced in firefox 3, offers an easy to use mechanism for creating threads and dispatching events to them for processing.
...ct 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.
... when available, it lets you access the javascript object hidden by the wrapper.xpcom abixpcom abi is the binary interface of xpcom components.
Working with windows in chrome code
from xpcom components and modules if the window object is unavailable (for example, when opening a window from xpcom component code), you might want to use nsiwindowwatcher interface.
... you can't use the window object, its members, like alert and open, and many other objects available from inside a window.
... cons: you can't use the window object, its members, like alert and open, and many other objects available from inside a window.
... you can't use the window object, its members, like alert and open, and many other objects available from inside a window.
Accessibility Inspector - Firefox Developer Tools
here we are mainly talking about exposing information to people with visual disabilities — this is done via the accessibility apis available inside web browsers, which expose information on what roles the different elements on your page play (e.g., are they just text, or are they buttons, links, form elements, etc.?).
... keyboardshortcut — any keyboard shortcut that is available to activate the element, as specified in an accesskey attribute.
...the available menu items include: none — don't show the possible list of issues all issues — check for all types of issues contrast — check for issues with visual contrast keyboard — check for issues with navigating via a keyboard text labels — check for issues with missing text labels when you one of the menu items, firefox scans your document for the type of issues you selected.
... notable related features when the accessibility features are turned on, there are a number of useful additional features available in the devtools, which are detailed below: context menu options an extra context menu option is added, both for the general context menu on the web page when right/ctrl + clicking a ui feature, and the html pane of the page inspector when right/ctrl + clicking a dom element: when you choose the inspect accessibility properties/show accessibility properties context menu options, the accessi...
Introduction to DOM Inspector - Firefox Developer Tools
in seamonkey additional global menus will be available.
... now, once you have selected a node like the "search-go-button" node, you can select any one of several viewers to display information about that node in the object pane of the dom inspector application window, all of which are available from the menupopup accessed from the upper left corner of the the object pane.
... the list of viewers available from the viewer menu gives you some idea about how extensive the dom inspector's inspecting capabilities are.
...the dom inspector not only presents all this information about pages in a clear and structured way, it gives you way to find and update those structures, and it's simple to access via shortcuts and menus already available in the mozilla browser.
DevTools API - Firefox Developer Tools
getthemedefinitionmap() returns a toolid → themedefinition map for available themes.
... methods the following methods are available on objects that have been decorated with the eventemitter interface.
...gdevtools.once("netmonitor-init").then(toolbox => { // note that the second argument is not available here.
...these views are only available in certain conditions controlled by the webconsole code.
Index - Firefox Developer Tools
45 migrating from firebug firebug, migration when migrating from firebug to the firefox developer tools, you may wonder where the features you loved in firebug are available in the developer tools.
...this article explores what functionality the web socket inspector makes available.
...this guide walks you through all of the available options.
... 60 edit fonts fonts, guide, inspector, tools, variable fonts this article provides a tour of the font tools available in the firefox devtools.
Inspecting web sockets - Firefox Developer Tools
this article explores what functionality the web socket inspector makes available.
... there are also predefined filters, available in the tool bar of the response pane, grouped into a selection list.
... the following filters are available: all displays all messages (by default, except control messages).
... control (available starting in firefox 76).
AudioTrackList - Web APIs
also available via the onaddtrack property.
... also available via the onchange property.
... also available via the onremovetrack property.
... var audiotracks = document.queryselector("video").audiotracks; monitoring track count changes in this example, we have an app that displays information about the number of channels available.
Drawing shapes with canvas - Web APIs
var endangle = math.pi + (math.pi * j) / 2; // end point on circle var anticlockwise = i % 2 !== 0; // clockwise or anticlockwise ctx.arc(x, y, radius, startangle, endangle, anticlockwise); if (i > 1) { ctx.fill(); } else { ctx.stroke(); } } } } } screenshotlive sample bezier and quadratic curves the next type of paths available are bézier curves, available in both cubic and quadratic varieties.
...to simplify the code and to improve performance, the path2d object, available in recent versions of browsers, lets you cache or record these drawing commands.
... new path2d(); // empty path object new path2d(path); // copy from another path2d object new path2d(d); // path from svg path data all path methods like moveto, rect, arc or quadraticcurveto, etc., which we got to know above, are available on path2d objects.
...both are stored as a path2d object, so that they are available for later usage.
Crypto - Web APIs
WebAPICrypto
the crypto interface represents basic cryptography features available in the current context.
... note: this feature is available in web workers.
...in addition, the crypto method getrandomvalues() is available on insecure contexts, but the subtle property is not.
... in general, you probably should just treat crypto as available only on secure contexts.
Introduction to the DOM - Web APIs
alert(paragraphs[0].nodename); all of the properties, methods, and events available for manipulating and creating web pages are organized into objects (for example, the document object that represents the document itself, the table object that implements the special htmltableelement dom interface for accessing html tables, and so forth).
...the page content is stored in the dom and may be accessed and manipulated via javascript, so that we may write this approximative equation: api = dom + javascript the dom was designed to be independent of any particular programming language, making the structural representation of the document available from a single, consistent api.
... this following javascript will display an alert when the document is loaded (and when the whole dom is available for use): <body onload="window.alert('welcome to my home page!');"> another example.
... but the relationship between objects and the interfaces that they implement in the dom can be confusing, and so this section attempts to say a little something about the actual interfaces in the dom specification and how they are made available.
EXT_disjoint_timer_query - Web APIs
webgl extensions are available using the webglrenderingcontext.getextension() method.
... availability: this extension should be available in webgl1 contexts only.
... ext_disjoint_timer_query_webgl2 is available in webgl 2 contexts .
... ext.query_result_available_ext a glboolean indicating whether or not a query result is available.
EXT_frag_depth - Web APIs
webgl extensions are available using the webglrenderingcontext.getextension() method.
... availability: this extension is only available to webgl1 contexts.
... in webgl2, the functionality of this extension is available on the webgl2 context by default.
... examples enable the extension: gl.getextension('ext_frag_depth'); now the output variable gl_fragdepthext is available to set a depth value of a fragment from within the fragment shader: <script type="x-shader/x-fragment"> void main() { gl_fragcolor = vec4(1.0, 0.0, 1.0, 1.0); gl_fragdepthext = 0.5; } </script> specifications specification status comment ext_frag_depththe definition of 'ext_frag_depth' in that specification.
HTMLCanvasElement.getContext() - Web APIs
this context is only available on browsers that implement webgl version 1 (opengl es 2.0).
...this context is only available on browsers that implement webgl version 2 (opengl es 3.0).
...this option is only available, if the flag gfx.canvas.willreadfrequently.enable is set to true (which, by default, is only the case for b2g/firefox os).
... failifmajorperformancecaveat: boolean that indicates if a context will be created if the system performance is low or if no hardware gpu is available.
HTMLInputElement - Web APIs
disabled boolean: returns / sets the element's disabled attribute, indicating that the control is not available for interaction.
... also available via the oninput event handler property.
... also available via the oninvalid event handler property.
... also available via the onsearch event handler property.
HTMLMediaElement.readyState - Web APIs
possible values are: constant value description have_nothing 0 no information is available about the media resource.
... have_current_data 2 data is available for the current playback position, but not enough to actually play more than one frame.
... have_future_data 3 data for the current playback position as well as for at least a little bit of time into the future is available (in other words, at least two frames of video, for example).
... have_enough_data 4 enough data is available—and the download rate is high enough—that the media can be played through to the end without interruption.
Using IndexedDB - Web APIs
such and such feature will not be available."); } opening a database we start the whole process like this: // let us open our database var request = window.indexeddb.open("mytestdatabase", 3); see that?
...transactions have three available modes: readonly, readwrite, and versionchange.
... the behavior described above is new, and is only available as of the following browser releases: firefox 50, google chrome 31 (approximately).
...(blob.type == 'application/pdf') { $('*').css('cursor', 'wait'); var obj_url = window.url.createobjecturl(blob); iframe.load(function() { $('*').css('cursor', 'auto'); }); iframe.attr('src', obj_url); window.url.revokeobjecturl(obj_url); } else { iframe.load(function() { $(this).contents().find('body').html("no view available"); }); } }); } /** * @param {string} biblioid * @param {string} title * @param {number} year * @param {string} url the url of the image to download and store in the local * indexeddb database.
LargestContentfulPaint - Web APIs
the timing of this paint is a good heuristic for when the main page content is available during load.
...may not be available if the element is a cross-origin image loaded without the timing-allow-origin header.
...// https://bugs.webkit.org/show_bug.cgi?id=209216 try { let lcp; const po = new performanceobserver((entrylist) => { const entries = entrylist.getentries(); const lastentry = entries[entries.length - 1]; // update `lcp` to the latest value, using `rendertime` if it's available, // otherwise using `loadtime`.
... (note: `rendertime` may not be available on // image elements loaded cross-origin without the `timing-allow-origin` header.) lcp = lastentry.rendertime || lastentry.loadtime; }); po.observe({type: 'largest-contentful-paint', buffered: true}); // send data to the server.
LockManager.request() - Web APIs
ifavailable optional: if true, the lock request will only be granted if it is not already held.
... }); } ifavailable example to grab a lock only if it isn't already being held, use the ifavailable option.
...since the lock is only granted if it was available, this call avoids needing to wait on the lock being released elsehwere.
... await navigator.locks.request('my_resource', {ifavailable: true}, async lock => { if (!lock) { // the lock was not granted - get out fast.
MediaDevices - Web APIs
also available via the ondevicechange property.
... enumeratedevices() obtains an array of information about the media input and output devices available on the system.
... example 'use strict'; // put variables in global scope to make them available to the browser console.
...= document.queryselector('#errormsg'); navigator.mediadevices.getusermedia(constraints) .then(function(stream) { var videotracks = stream.getvideotracks(); console.log('got stream with constraints:', constraints); console.log('using video device: ' + videotracks[0].label); stream.onremovetrack = function() { console.log('stream ended'); }; window.stream = stream; // make variable available to browser console video.srcobject = stream; }) .catch(function(error) { if (error.name === 'constraintnotsatisfiederror') { errormsg('the resolution ' + constraints.video.width.exact + 'x' + constraints.video.height.exact + ' px is not supported by your device.'); } else if (error.name === 'permissiondeniederror') { errormsg('permissions have not been granted to use your ca...
Using the Media Capabilities API - Web APIs
they will be a useful feature of the api once available, but there is a high probability of the display capabilities functionality changing a great deal before browser implementations arrive.
... the mediacapabilities interface the mediacapabilities is available using the mediacapabilities property which is provided by both the navigator object and the workernavigator object; in other words, the media capabilities api is available both on the main thread and from workers.
... if the object exists, media capabilities api is available.
... you can, therefore, test for the presence of the api like so: if ("mediacapabilities" in navigator) { // mediacapabilities is available } else { // mediacapabilities is not available } taking video as an example, to obtain information about video decoding abilities, you create a video decoding configuration which you pass as a parameter to mediacapabilities.decodinginfo() method.
OES_standard_derivatives - Web APIs
webgl extensions are available using the webglrenderingcontext.getextension() method.
... availability: this extension is only available to webgl1 contexts.
... in webgl2, the functionality of this extension is available on the webgl2 context by default.
... in webgl 2, the constant is available as gl.fragment_shader_derivative_hint and it requires glsl #version 300 es.
PaymentRequest - Web APIs
also available using the onmerchantvalidation event handler property.
... also available using the onpaymentmethodchange event handler property.
... also available using the onshippingaddresschange event handler property.
... also available using the onshippingoptionchange event handler property.
Performance - Web APIs
note: this interface and its members are available in web workers, except where indicated below.
...not available in workers.
...not available in workers.
... also available via the onresourcetimingbufferfull property.
RTCInboundRtpStreamStats - Web APIs
properties the rtcinboundrtpstreamstats dictionary is based on the rtcreceivedrtpstreamstats dictionary, whose properties are also available.
...this value is only available for video streams.
...this is only available for video streams.
...available only for video streams.
RTCRtpStreamStats - Web APIs
in addition, some or all of the following properties are available.
... local-only measurements these properties are computed locally, and are only available to the device receiving the media stream.
...this statistic is only available to the device which is receiving the stream and is only available for video tracks.
...this value is only available to the receiver.
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.
... see the complete list of functions available to workers.
... workerglobalscope.performance read only returns the performance object associated with the worker, which is a regular performance object, but with a subset of its properties and methods available.
... also available via the onconnect property.
SpeechSynthesis - Web APIs
the speechsynthesis interface of the web speech api is the controller interface for the speech service; this can be used to retrieve information about the synthesis voices available on the device, start and pause speech, and other commands besides.
... speechsynthesis.getvoices() returns a list of speechsynthesisvoice objects representing all the available voices on the current device.
... also available via the onvoiceschanged property.
...after defining some necessary variables, we retrieve a list of the voices available using speechsynthesis.getvoices() and populate a select menu with them so the user can choose what voice they want.
StorageManager.estimate() - Web APIs
the estimate() method of the storagemanager interface asks the storage manager for how much storage the current origin takes up (usage), and how much space is available (quota).
... this method operates asynchronously, so it returns a promise which resolves once the information is available.
...this dictionary contains estimates of how much space is available to the origin in storageestimate.quota, as well as how much is currently used in storageestimate.usage.
... html content <label> you’re currently using about <output id="percent"> </output>% of your available storage.
Streams API - Web APIs
this is something browsers do anyway when receiving assets to be shown on webpages — videos buffer and more is gradually available to play, and sometimes you'll see images display gradually as more is loaded.
... but this has never been available to javascript before.
... with streams being available to javascript, this all changes — you can now start processing raw data with javascript bit by bit as soon as it is available on the client-side, without needing to generate a buffer, string, or blob.
... the basic usage of streams hinges around making responses available as streams.
TextTrackList - Web APIs
also available via the onaddtrack property.
... also available via the onchange property.
... also available via the onremovetrack property.
... var texttracks = document.queryselector("video").texttracks; monitoring track count changes in this example, we have an app that displays information about the number of channels available.
VideoTrackList - Web APIs
also available via the onaddtrack property.
... also available via the onchange property.
... also available via the onremovetrack property.
... var videotracks = document.queryselector("video").videotracks; monitoring track count changes in this example, we have an app that displays information about the number of channels available.
VisualViewport - Web APIs
also available via the visualviewport.onresize property.
... also available via the visualviewport.onscroll property.
...a live sample is also available.
...a live sample is also available.
WEBGL_debug_renderer_info - Web APIs
depending on the privacy settings of the browser, this extension might only be available to privileged contexts.
... webgl extensions are available using the webglrenderingcontext.getextension() method.
... availability: depending on the privacy settings of the browser, this extension might only be available to privileged contexts or not work at all.
... this extension is available to both, webgl1 and webgl2 contexts.
WEBGL_debug_shaders - Web APIs
this extension is not directly available to web sites as the way of how the shader is translated may uncover personally-identifiable information to the web page about the kind of graphics card in the user's computer.
... webgl extensions are available using the webglrenderingcontext.getextension() method.
... availability: depending on the privacy settings of the browser, this extension might only be available to privileged contexts.
... this extension is available to both, webgl1 and webgl2 contexts.
WebGLRenderingContext.getTexParameter() - Web APIs
when using a webgl 2 context, the following values are available additionally: gl.texture_3d: a three-dimensional texture.
...possible values: pname return type description possible return values available in a webgl 1 context gl.texture_mag_filter glenum texture magnification filter gl.linear (default value), gl.nearest.
... additionally available when using the ext_texture_filter_anisotropic extension ext.texture_max_anisotropy_ext glfloat maximum anisotropy for a texture any float values.
... additionally available when using a webgl 2 context gl.texture_base_level glint texture mipmap level any int values.
WebGLRenderingContext.makeXRCompatible() - Web APIs
invalidstateerror the webgl context has been lost or there is no available webxr device.
... while this method is available through the webglrenderingcontext interface, it's actually defined by the webxr device api rather than by webgl.
...loadsceneresources(currentscene); }); async function onstartedxrsession(xrsession) { try { await gl.makexrcompatible(); } catch(err) { switch(err) { case aborterror: showsimplemessagebox("unable to transfer the game to your xr headset.", "cancel"); break; case invalidstateerror: showsimplemessagebox("you don't appear to have a compatible xr headset available.", "cancel"); break; default: handlefatalerror(err); break; } xrsession.end(); } } async function handlestartbuttonclick(event) { if (event.target.classlist.contains("use-webxr") && navigator.xr) { try { xrsession = await navigator.xr.requestsession("immersive-vr"); usingxr = true; } catch(err) { xrsession = null; usingxr ...
...if the button clicked by the user has that class (and we've confirmed that webxr is available by ensuring that the navigator.xr property exists), we use requestsession() to request a new webxr session and set the usingxr flag to true.
WebGLRenderingContext.texParameter[fi]() - Web APIs
when using a webgl 2 context, the following values are available additionally: gl.texture_3d: a three-dimensional texture.
... pname description param available in webgl 1 gl.texture_mag_filter texture magnification filter gl.linear (default value), gl.nearest.
... additionally available when using the ext_texture_filter_anisotropic extension ext.texture_max_anisotropy_ext maximum anisotropy for a texture a glfloat value.
... additionally available when using a webgl 2 context gl.texture_base_level texture mipmap level any int values.
Compressed texture formats - Web APIs
by default, no compressed formats are available: a corresponding compressed texture format extension must first be enabled.
... as compressed textures require hardware support, therefore no specific formats are required by webgl; instead, a context can make different formats available, depending on hardware support.
... note that webgl makes no functionality available to compress or decompress textures: they must already be in a compressed format and can then be directly uploaded to video memory.
... no examples async function getcompressedtextureifavailable(gl) { const texture = gl.createtexture(); gl.bindtexture(gl.texture_2d, texture); // create texture object on gpu const ext = gl.getextension('webgl_compressed_texture_s3tc'); // will be null if not supported if (ext) { // the file is already in the correct compressed format const dataarraybuffer = await fetch('/textures/foobar512x512.rgba_s3tc_dxt1') .then(response => respo...
Using DTMF with WebRTC - Web APIs
if addtrack() is available on the rtcpeerconnection, we add each of the stream's audio tracks, one by one, to the connection using rtcpeerconnection.addtrack().
... if getsenders() isn't available, we instead call rtcpeerconnection.createdtmfsender() to get the rtcdtmfsender object.
... if event.candidate is null, that indicates that there are no more candidates available, and we log that information.
... if event.candidate is null, that indicates that there are no more candidates available, and we log that information.
WebSocket - Web APIs
WebAPIWebSocket
also available via the onclose property error fired when a connection with a websocket has been closed because of an error, such as when some data couldn't be sent.
... also available via the onerror property.
... also available via the onmessage property.
... also available via the onopen property.
Rendering and the WebXR frame animation callback - Web APIs
time available to render each frame this makes using the most of the time available between frames critical.
...this happens when the amount of time it takes to render a frame exceeds the time available between frames, whether because rendering was delayed or because rendering itself took more time than was available.
...the resulting value is the amount of time available for each frame to be rendered in order to not drop the frame.
... your mission, then, is to keep your code tight and lightweight enough that you don't overrrun the time available to you or otherwise cause dropped frames or excessively abuse the main thread.
Background audio processing using AudioWorklet - Web APIs
the example code found on this page is derived from this working example which is available on glitch.
...slider controls are available to allow controlling the gain of both the oscillator and the audio worklet's output.
...oworkletprocessor { constructor() { super(); } process(inputlist, outputlist, parameters) { /* using the inputs (or not, as needed), write the output into each of the outputs */ return true; } }; registerprocessor("my-audio-processor", myaudioprocessor); after the implementation of the processor comes a call to the global function registerprocessor(), which is only available within the scope of the audio context's audioworklet, which is the invoker of the processor script as a result of your call to audioworklet.addmodule().
... in order to ensure the context is usable, this starts by creating the context if it's not already available, then adds the module containing the processor to the worklet.
Web Workers API - Web APIs
but you can use a large number of items available under window, including websockets, and data storage mechanisms like indexeddb.
... see functions and classes available to workers for more details.
... serviceworkers essentially act as proxy servers that sit between web applications, the browser, and the network (when available).
... they are intended, among other things, to enable the creation of effective offline experiences, intercept network requests and take appropriate action based on whether the network is available, and update assets residing on the server.
XRSystem: requestSession() - Web APIs
inline sessions can be presented in either mono or stereo mode, and may or may not have viewer tracking available.
... notsupportederror there is no webxr-compatible device available, or the device does not support the specified sessionmode; this can also be thrown if any of the required options are unsupported.
...first, it checks to see if webxr is available by verifying the existence of navigator.xr.
... if (navigator.xr) { navigator.xr.issessionsupported('immersive-vr') .then((issupported) => { if (issupported) { immersivebutton.addeventlistener('click', onbuttonclicked); immersivebutton.innerhtml = 'enter xr'; immersivebutton.disabled = false; } else { console.log("webxr doesn't support immersive-vr mode!"); } }); } else { console.log("webxr is not available!"); } function onbuttonclicked() { if (!xrsession) { navigator.xr.requestsession('immersive-vr') .then((session) => { xrsession = session; // onsessionstarted() not shown for reasons of brevity and clarity.
Web APIs
WebAPI
when writing code for the web, there are a large number of web apis available.
... specifications this is a list of all the apis that are available.
...server apiresource timing apisserver sent eventsservice workers apistoragestorage access apistreams ttouch eventsuurl apivvibration apivisual viewport wweb animationsweb audio apiweb authentication apiweb crypto apiweb notificationsweb storage apiweb workers apiwebglwebrtcwebvttwebxr device apiwebsockets api interfaces this is a list of all the interfaces (that is, types of objects) that are available.
...nrecord n ndefmessage ndefreader ndefreadingevent ndefrecord ndefwriter namelist namednodemap navigationpreloadmanager navigator navigatorconcurrenthardware navigatorid navigatorlanguage navigatoronline navigatorplugins navigatorstorage networkinformation node nodefilter nodeiterator nodelist nondocumenttypechildnode notation notification notificationaction notificationevent notifyaudioavailableevent o oes_element_index_uint oes_fbo_render_mipmap oes_standard_derivatives oes_texture_float oes_texture_float_linear oes_texture_half_float oes_texture_half_float_linear oes_vertex_array_object ovr_multiview2 offlineaudiocompletionevent offlineaudiocontext offscreencanvas orientationsensor oscillatornode overconstrainederror p pagetransitionevent paintworklet pannernode parentnode pass...
Operable - Accessibility
guideline 2.1 — keyboard accessible: make all functionality available from a keyboard this guideline covers the necessity of making core website functionality available via a keyboard in addition to other means (e.g.
... understanding character key shortcuts note: also see the wcag description for guideline 2.1 keyboard accessible: make all functionality available from a keyboard.
... 2.2.4 surpress interruptions (aaa) any interruptions such as alerts or interstitial adverts should have functionality available to suppress or postpone them, unless it is an emergency alert.
... success criteria how to conform to the criteria practical resource 2.4.1 bypass blocks (a) a mechanism should be provided that allows the user to skip straight to the main content or functionality available on the page, past the repeated features (such as the company logo or navigation).
Perceivable - Accessibility
multimedia content (i.e., audio or video) should at least have a descriptive identification available, such as a caption or similar.
...no audio description tutorial is available yet.
...no audio description tutorial is available yet.
...content images should have text available that clearly describes the image's contents, which can be programmatically associated with it (e.g., alt text), or otherwise is easy to associate (e.g., describes it and is sat right next to it).
@viewport - CSS: Cascading Style Sheets
WebCSS@viewport
on mobile devices (or desktop devices that are in full screen mode), the initial viewport is usually the portion of a device's screen that is available for application use.
... this may be either the full screen or the full screen area minus areas controlled by the operating system (such as a taskbar) or the application-available screen area (either the full screen or the screen minus any areas owned by the operating system or other applications).
... descriptors browser support for @viewport is weak at this time, with support being largely available in internet explorer and edge.
... even in those browsers, only a small number of descriptors are available.
Box alignment in Flexbox - CSS: Cascading Style Sheets
the amount of space required to lay out the items is calculated, and the leftover space is then available for distribution.
...a margin set to auto will absorb all available space in its dimension.
...by setting the left and right margin to auto, both sides of our block try to take up all of the available space and so push the box into the center.
...as soon as there is no space available for the auto margin, the item behaves in the same way as all the other flex items and shrinks to try to fit into space.
CSS Box Alignment - CSS: Cascading Style Sheets
fallback alignment if you set an alignment that cannot be fulfilled, then the fallback alignment will come into play and deal with the available space.
...working in a horizontal top to bottom writing mode such as english, with flex-direction as row the items start on the far left and any available space after displaying the items is placed after the items.
... if you set justify-content: space-between on the flex container, the available space is now shared out and placed between the items.
... there needs to be space available in the dimension you wish to align the items in, in order for these keywords to take effect.
Variable fonts guide - CSS: Cascading Style Sheets
the advantage in choosing the variable font is that you have access to the entire range of weights, widths, and styles available, rather than being constrained to only the few that you previously would have loaded separately.
...however, the w3c’s intent was for this syntax not to be used when other attributes are available.
... therefore wherever possible, the appropriate property should be used, with the lower-level syntax of font-variation-settings only being used to set values or axes not available otherwise.
... using a variable font: @font-face changes the syntax for loading variable fonts is very similar to any other web font, with a few notable differences, which are provided via upgrades to the traditional @font-face syntax now available in modern browsers.
Relationship of grid layout to other layout methods - CSS: Cascading Style Sheets
these items are sharing the available space and not lining up underneath the items above.
...if the items wrap onto a new line, they will work out their spacing based on their size and the available space on that line.
...v class="wrapper"> <div class="box1">one</div> <div class="box2">two</div> <div class="box3">three</div> </div> .wrapper { display: grid; grid-template-columns: repeat(3,1fr); align-items: end; grid-auto-rows: 200px; } .box1 { align-self: stretch; } .box2 { align-self: start; } the fr unit and flex-basis we have already seen how the fr unit works to assign a proportion of available space in the grid container to our grid tracks.
...with the flex layout, if we drag our window wider and smaller, the flexbox does a nice job of adjusting the number of items in each row according to the available space.
Using media queries - CSS: Cascading Style Sheets
name summary notes any-hover does any available input mechanism allow the user to hover over elements?
... any-pointer is any available input mechanism a pointing device, and if so, how accurate is it?
...javascript) is available added in media queries level 5.
...because they describe devices in only very broad terms, just a few are available; to target more specific attributes, use media features instead.
font-family - CSS: Cascading Style Sheets
you should always include at least one generic family name in a font-family list, since there's no guarantee that any given font is available.
...rather, font selection is done one character at a time, so that if an available font does not have a glyph for a needed character, the latter fonts are tried.
... (however, this doesn't work in internet explorer 6 or earlier.) when a font is only available in some styles, variants, or sizes, those properties may also influence which font family is chosen.
... <generic-name> generic font families are a fallback mechanism, a means of preserving some of the style sheet author's intent when none of the specified fonts are available.
Cross-browser audio basics - Developer guides
e audio: var myaudio = document.createelement('audio'); if (myaudio.canplaytype('audio/mpeg')) { myaudio.setattribute('src','audiofile.mp3'); } if (myaudio.canplaytype('audio/ogg')) { myaudio.setattribute('src','audiofile.ogg'); } alert('play'); myaudio.play(); alert('stop'); myaudio.pause(); alert('play from 5 seconds in'); myaudio.currenttime = 5; myaudio.play(); let's explore the available properties and methods in more detail.
... myaudio.addeventlistener("canplaythrough", function() { //audio is ready to play all the way through }); media loading event order to recap, the order of the media loading events are: loadstart > durationchange > loadedmetadata > loadeddata > progress > canplay > canplaythrough loading interruption events we also have a few events available that will fire when there is some kind of interruption to the media loading process.
... stalled media data is unexpectedly no longer available.
... waiting the waiting event is triggered when playback has stopped due to lack of media data, although it is expected to resume once data becomes available.
Audio and Video Delivery - Developer guides
the audio and video elements whether we are dealing with pre-recorded audio files or live streams, the mechanism for making them available through the browser's <audio> and <video> elements remains pretty much the same.
... the main mechanism is outlined below: navigator.mediadevices.getusermedia({audio:true}) .then(function onsuccess(stream) { var recorder = new mediarecorder(stream); var data = []; recorder.ondataavailable = function(e) { data.push(e.data); }; recorder.start(); recorder.onerror = function(e) { throw e.error || new error(e.name); // e.name is ff non-spec } recorder.onstop = function(e) { var audio = document.createelement('audio'); audio.src = window.url.createobjecturl(new blob(data)); } settimeout(function() { rec.stop(); }, 5000); })...
...adaptive streaming media means that the bandwidth and typically quality of the stream can change in real-time in reaction to the user's available bandwidth.
... you can use the element's seekable property to determine the ranges of the media that are currently available for seeking to.
<audio>: The Embed Audio element - HTML: Hypertext Markup Language
WebHTMLElementaudio
if the audio's metadata isn't available yet—thereby preventing you from knowing the media's start time or duration—currenttime instead indicates, and can be used to change, the time at which playback will begin.
...also available is a guide to the codecs supported for video.
...this also provides a way to monitor the audio's fetching process so you can watch for errors or detect when enough is available to begin to play or manipulate it.
...lector("audio"); elem.audiotracklist.onaddtrack = function(event) { trackeditor.addtrack(event.track); }; elem.audiotracklist.onremovetrack = function(event) { trackeditor.removetrack(event.track); }; this code watches for audio tracks to be added to and removed from the element, and calls a hypothetical function on a track editor to register and remove the track from the editor's list of available tracks.
<input type="file"> - HTML: Hypertext Markup Language
WebHTMLElementinputfile
if the requested facing mode isn't available, the user agent may fall back to its preferred default mode.
... non-standard attributes in addition to the attributes listed above, the following non-standard attributes are available on some browsers.
... attribute description webkitdirectory a boolean indicating whether or not to only allow the user to choose a directory (or directories, if multiple is also present) webkitdirectory the boolean webkitdirectory attribute, if present, indicates that only directories should be available to be selected by the user in the file picker interface.
... examples in this example, we'll present a slightly more advanced file chooser that takes advantage of the file information available in the htmlinputelement.files property, as well as showing off a few clever tricks.
<input type="month"> - HTML: Hypertext Markup Language
WebHTMLElementinputmonth
edge), or invalid (see validation) but still available (e.g.
... to help avoid this, you can use min and max to restrict the available dates (see setting maximum and minimum dates), and in addition use the required attribute to make filling in the date mandatory.
...the list of available year values is dynamically generated depending on the current year (see the code comments below for detailed explanations of how these functions work).
...r.style.display = 'none'; fallbackpicker.style.display = 'block'; fallbacklabel.style.display = 'block'; // populate the years dynamically // (the months are always the same, therefore hardcoded) populateyears(); } function populateyears() { // get the current year as a number var date = new date(); var year = date.getfullyear(); // make this year, and the 100 years before it available in the year <select> for(var i = 0; i <= 100; i++) { var option = document.createelement('option'); option.textcontent = year-i; yearselect.appendchild(option); } } note: remember that some years have 53 weeks in them (see weeks per year)!
<input type="search"> - HTML: Hypertext Markup Language
WebHTMLElementinputsearch
spellcheck non-standard attributes the following non-standard attributes are available to search input fields.
... let's have a look at an example: <form role="search"> <div> <input type="search" id="mysearch" name="q" placeholder="search the site..." aria-label="search through site content"> <button>search</button> </div> </form> you can see how this is rendered below: there is no visual difference from the previous example, but screenreader users have way more information available to them.
...in this example, for instance, the search box is 30 characters wide: <form> <div> <input type="search" id="mysearch" name="q" placeholder="search the site..." size="30"> <button>search</button> </div> </form> the result is this wider input box: validation <input> elements of type search have the same validation features available to them as regular text inputs.
... a note on styling there are useful pseudo-classes available for styling valid/invalid form elements: :valid and :invalid.
<input type="text"> - HTML: Hypertext Markup Language
WebHTMLElementinputtext
non-standard attributes the following non-standard attributes are also available on some browsers.
...you should use them anywhere you want the user to enter a single-line value and there isn't a more specific input type available for collecting that value (for example, if it's a date, url, email, or search term, you've got better options available).
... <input type="text" id="uname" name="name" placeholder="lower case, all one word" size="30"> </div> <div> <button>submit</button> </div> </form> validation <input> elements of type text have no automatic validation applied to them (since a basic text input needs to be capable of accepting any arbitrary string), but there are some client-side validation options available, which we'll discuss below.
... a note on styling there are useful pseudo-classes available for styling form elements to help the user see when their values are valid or invalid.
Using the application cache - HTML: Hypertext Markup Language
this application cache (appcache) interface lists resources that browsers should cache to be available offline.
... important: do not specify the manifest itself in the cache manifest file, otherwise it will be nearly impossible to inform the browser a new manifest is available.
... example 2: a more complete cache manifest file the following is a more complete cache manifest file for the imaginary web site at www.example.com: cache manifest # v1 2011-08-14 # this is another comment index.html cache.html style.css image1.png # use from network if available network: network.html # fallback content fallback: .
... updateready there is a new version of the application cache available.
Using HTTP cookies - HTTP
WebHTTPCookies
for example, cookies that persist server-side sessions don't need to be available to javascript, and should have the httponly attribute.
... for example, if domain=mozilla.org is set, then cookies are available on subdomains like developer.mozilla.org.
...two prefixes are available: __host- if a cookie name has this prefix, it is accepted in a set-cookie header only if it is also marked with the secure attribute, was sent from a secure origin, does not include a domain attribute, and has the path attribute set to /.
...cookies available to javascript can be stolen through xss.
HTTP Index - HTTP
WebHTTPIndex
11 resource urls guide, http, intermediate, resource resource urls, urls prefixed with the resource: scheme, are used by firefox and firefox browser extensions to load resources internally, but some of the information is available to sites the browser connects to as well.
... 245 410 gone client error, http, reference, status code the hypertext transfer protocol (http) 410 gone client error response code indicates that access to the target resource is no longer available at the origin server and that this condition is likely to be permanent.
... 260 451 unavailable for legal reasons client error, http, reference, status code the hypertext transfer protocol (http) 451 unavailable for legal reasons client error response code indicates that the user requested a resource that is not available due to legal reasons, such as a web page for which a legal action has been issued.
... 264 503 service unavailable 503 error, http, server error, status code the hypertext transfer protocol (http) 503 service unavailable server error response code indicates that the server is not ready to handle the request.
HTTP response status codes - HTTP
WebHTTPStatus
102 processing (webdav) this code indicates that the server has received and is processing the request, but no response is available yet.
... 203 non-authoritative information this response code means the returned meta-information is not exactly the same as is available from the origin server, but is collected from a local or a third-party copy.
... 451 unavailable for legal reasons the user-agent requested a resource that cannot legally be provided, such as a web page censored by a government.
... 503 service unavailable the server is not ready to handle the request.
Enumerability and ownership of properties - JavaScript
there are a number of built-in means of detecting, iterating/enumerating, and retrieving object properties, with the chart showing below which are available.
...erable and nonenumerable propertyisenumerable hasownproperty hasownproperty – filtered to exclude enumerables using propertyisenumerable hasownproperty enumerable nonenumerable enumerable and nonenumerable not available without extra code not available without extra code in not available without extra code retrieval enumerable nonenumerable enumerable and nonenumerable object.keys getownpropertynames getownpropertysymbols getownpropertynames, getow...
...npropertysymbols – filtered to exclude enumerables using propertyisenumerable getownpropertynames getownpropertysymbols not available without extra code not available without extra code iterable enumerable nonenumerable enumerable and nonenumerable object.keys getownpropertynames getownpropertysymbols getownpropertynames, getownpropertysymbols – filtered to exclude enumerables using propertyisenumerable getownpropertynames getownpropertysymbols enumerable nonenumerable enumerable and nonenumerable ...
... for..in (excluding symbols) not available without extra code not available without extra code not available without extra code obtaining properties by enumerability/ownership note that this is not the most efficient algorithm for all cases, but useful for a quick demonstration.
Planned changes to shared memory - JavaScript
for top-level documents, two headers will need to be set: cross-origin-opener-policy with same-origin as value (protects your origin from attackers) cross-origin-embedder-policy with require-corp as value (protects victims from your origin) with these two headers set, postmessage() will no longer throw for sharedarraybuffer objects and shared memory across threads is therefore available.
... api changes as a result of this newly required environment, there are a couple api implications: the atomics object is always available.
... sharedarraybuffer objects are in principle always available, but unfortunately the constructor on the global object is hidden, unless the two headers mentioned above are set, for compatibility with web content.
... to avoid having to check whether postmessage() throws, self.crossoriginisolated is being standardized (a getter that returns a boolean; true if the headers are set), available in window and worker contexts.
Populating the page: how browsers work - Web Performance
render time is key, with ensuring the main thread can complete all the work we throw at it and still always be available to handle user interactions.
...as this happens, the preload scanner will parse through the content available and request high priority resources like css, javascript, and web fonts.
...if the load includes javascript, that was correctly deferred, and only executed after the onload event fires, the main thread might be busy, and not available for scrolling, touch, and other interactions.
...if the main thread is occupied parsing, compiling, and executing javascript, it is not available and therefore not able to responsd to user interactions in a timely (less than 50ms) fashion.
Navigation and resource timings - Web Performance
timings we can use these values to measure specific timings of interest: let dns = time.domainlookupend - time.domainlookupstart, tcp = time.connectend - time.connectstart, ssl != time.secureconnectionstart, time to first byte time to first byte is the time between the navigationstart (start of the navigation) and responsestart, (when the first byte of response data is received) available in the performancetiming api: let ttfb = time.responsestart - time.navigationstart; page load time page load time is the time between navigationstart and the start of when the load event is sent for the current document.
... they are only available in the performancetiming api.
...these are both available in both the performancetiming and performancenavigationtiming apis.
... let dns = time.domainlookupend - time.domainlookupstart; tcp the time it takes for the tcp handshake is the time between the connection start and connection end: tcp = time.connectend - time.connectstart; ssl negotiation secureconnectionstart will be undefined if not available, 0 if https in not used, or a time stamp if available, and used.
Installing and uninstalling web apps - Progressive web apps (PWAs)
web application installation is a feature available in modern browsers that allows users to choose to easily and conveniently “install” a web application on their device so they can access it in the same way they would any other installed app.
...the example displays a series of fox pictures.if you have a web application compatible device available, use it to navigate to our demo at https://mdn.github.io/pwa-examples/a2hs/.
... you'll see fox pictures, but more importantly, some form of user interface will be available to let you install the site as a web app.
... google chrome for android if you have google chrome for android available, the experience is slightly different; upon loading our site, you'll see an install banner pop up asking whether you want to add this app to your home screen.
Fills and Strokes - SVG: Scalable Vector Graphics
stroke in addition to its color properties, there are a few other attributes available to control the way a stroke is drawn on a line.
... there are additional stroke and fill properties available, including fill-rule, which specifies how to color in shapes that overlap themselves; stroke-miterlimit, which determines if a stroke should draw miters; and stroke-dashoffset, which specifies where to start a dasharray on a line.
...attributes that deal with painting and filling are usually available, so fill, stroke, stroke-dasharray, etc...
...it's easiest just to test and find out what is available and what isn't.
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 f6...
...for a full list of the available opcodes, consult the webassembly.org semantics reference.
...you could swap out the i32 for any of the other available types, and change the value of the const to whatever you like (here we’ve set the value to 42).
... at the time of writing (june 2020) this is at an early stage, and the only multi-value instructions available are calls to functions that themselves return multiple values.
Window: deviceproximity event - Archive of obsolete content
the deviceproximity event is fired when fresh data is available from a proximity sensor.
... min read only double (float) the minimum value in the range the sensor detects (if available, 0 otherwise).
... max read only double (float) the maximum value in the range the sensor detects (if available, 0 otherwise).
Content Scripts - Archive of obsolete content
almost all the examples presented in this guide are available as complete, but minimal, add-ons in the addon-sdk-content-scripts repository on github.
... accessing port in the content script in the content script the port object is available as a property of the global self object.
... the postmessage api before the port object was added, add-on code and content scripts communicated using a different api: the content script called self.postmessage() to send and self.on() to receive the add-on script called worker.postmessage() to send and worker.on()to receive the api is still available and documented, but there's no reason to use it instead of the port api described here.
Two Types of Scripts - Archive of obsolete content
this enables you to call functions like: window.alert("hello there"); in an add-on's main scripts you can't do that, because the add-on code does not execute in the context of a page, and the dom is therefore not available.
... api access for add-on code and content scripts the table below summarizes the apis that are available to each type of script.
... if require() is available, then so are the modules supplied in the sdk.
XUL Migration Guide - Archive of obsolete content
in this section we'll use low-level modules how to: modify the browser chrome using dynamic manipulation of the dom directly access the tabbrowser object modifying the browser chrome this example uses the action button api, which is only available from firefox 29 onwards.
... accessing tabbrowser this example uses the action button api, which is only available from firefox 29 onwards.
... using xpcom this example uses the action button api, which is only available from firefox 29 onwards.
clipboard - Archive of obsolete content
properties currentflavors data on the clipboard is sometimes available in multiple types.
... for example, html data might be available as both a string of html (the html type) and a string of plain text (the text type).
... this property is an array contains all types in which the data currently on the clipboard is available.
jpm - Archive of obsolete content
profile is executed every time a new terminal is opened): export path="$home/node_modules/.bin/:$path" installing jpm from git alternatively, you can also get the latest version of jpm using git: git clone https://github.com/mozilla-jetpack/jpm.git cd jpm npm install npm link after installing jpm after installation, at the command prompt, type: jpm you should see a screen summarizing the available jpm commands.
... note that unlike cfx, jpm is available in every command prompt you start, as long as you installed it with the --global flag.
...this means that any profile-specific data entered from one run of jpm is not, by default, available in the next run.
Miscellaneous - Archive of obsolete content
var postdata = history.getentryatindex(history.index-1,false).queryinterface(ci.nsishentry).postdata; if you got here all by yourself, your problem must be at reading the postdata, because it's a nsiinputstream object, whose available function always returns 0.
...and here's how it's done postdata.queryinterface(ci.nsiseekablestream).seek(ci.nsiseekablestream.ns_seek_set, 0); var stream = cc["@mozilla.org/binaryinputstream;1"].createinstance(ci.nsibinaryinputstream); stream.setinputstream(postdata); var postbytes = stream.readbytearray(stream.available()); var poststr = string.fromcharcode.apply(null, postbytes); //do anything to your poststr alert(poststr); getting a string from the input stream is made somewhat simpler in firefox 4, by the addition of netutil.readinputstreamtostring() getting postdata of a request before the request is sent the above code will get the postdata for a page that has already loaded.
...= cc["@mozilla.org/security/x509certdb;1"].getservice(ci.nsix509certdb2); var scriptablestream=cc["@mozilla.org/scriptableinputstream;1"].getservice(ci.nsiscriptableinputstream); var channel = gioservice.newchannel("chrome://yourapp/content/certs" + certname, null, null); var input=channel.open(); scriptablestream.init(input); var certfile=scriptablestream.read(input.available()); scriptablestream.close(); input.close(); var begincert = "-----begin certificate-----"; var endcert = "-----end certificate-----"; certfile = certfile.replace(/[\r\n]/g, ""); var begin = certfile.indexof(begincert); var end = certfile.indexof(endcert); var cert = certfile.substring(begin + begincert.length, end); certdb.addcertfrombase...
Extension Versioning, Update and Compatibility - Archive of obsolete content
in particular you should never specify a maxversion that is larger than the currently available version of the application since you do not know what api and ui changes are just around the corner.
...since it is being displayed outside of a normal webpage context it is heavily sanitized, which means there are few formatting options available and scripting and images aren't allowed.
... file <!doctype html public "-//w3c//dtd xhtml 1.0 strict//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> <html lang="en-us" dir="ltr" xmlns="http://www.w3.org/1999/xhtml"> <h2>my extension</h2> <ul> <li>this update fixes some stability related issues.</li> </ul> </html> what end-user sees the content of updateinfourl will be displayed to user in the add-ons page, in a list of all available updates.
Listening to events in Firefox extensions - Archive of obsolete content
there are code snippets available that give more detail on using web progress listeners.
...more information about listening to events from all tabs is available.
...it is used to update the ui for many different reasons: update the progress bar and status messages as pages load turn on and off the throbber as pages load set the site icon when available update the address bar as the user navigates hide notification bars when appropriate as the user navigates apply the site zoom preferences to newly loading pages update the bookmarking star button ui update the identity display as the site's security changes tabsprogresslistener this object is a tabs progress listener and receives events for all browsers in the window.
Chapter 1: Introduction to Extensions - Archive of obsolete content
ure add-ons are compatible with the version of firefox you're using manages a whitelist of sites trusted for installing add-ons helps troubleshoot add-ons by disabling them and offering a safe mode confirms and runs updates provides access to add-ons' settings dialogs provides access to add-ons' support sites development environment amenities initially, there wasn't adequate documentation available, and extension developers were largely left to fend for themselves1; however, now there's a considerable store of knowledge.
... this is a very brief survey of a few extensions, but there are many other unique extensions available.
... extensions (these can do anything) yes yes theming (this changes the look of the browser) no yes let's build an extension table 1 shows the various customization options available to a user in firefox.
Chapter 4: Using XPCOM—Implementing advanced processes - Archive of obsolete content
when you initialize this by passing the full path to the file with the nsilocalfile.initwithpath() method, it becomes available to all functions.
...@mozilla.org/network/file-input-stream;1'] .createinstance(components.interfaces.nsifileinputstream); filestream.init(file, 1, 0, false); var binarystream = components.classes['@mozilla.org/binaryinputstream;1'] .createinstance(components.interfaces.nsibinaryinputstream); binarystream.setinputstream(filestream); var array = binarystream.readbytearray(filestream.available()); binarystream.close(); filestream.close(); alert(array.map( function(aitem) {return aitem.tostring(16); } ).join(' ').touppercase( )); when we initialized nsifileinputstream, we set the second and third parameters to initialize it in read-only mode.
...zilla.org/network/file-input-stream;1'] .createinstance(components.interfaces.nsifileinputstream); filestream.init(file, 1, 0, false); var converterstream = components.classes['@mozilla.org/intl/converter-input-stream;1'] .createinstance(components.interfaces.nsiconverterinputstream); converterstream.init(filestream, charset, filestream.available(), converterstream.default_replacement_character); var out = {}; converterstream.readstring(filestream.available(), out); var filecontents = out.value; converterstream.close(); filestream.close(); alert(filecontents); outputting text files fixme: not sure this example is relevant in an english context, maybe something from the snippets listing 16 shows how to take text in...
Setting up an extension development environment - Archive of obsolete content
this particularly comes in handy for the use of all currently available firefox versions.
...(linux, mac os x, windows instructions.) you'll see the list of available user profiles one which is default (stable) and other (unstable) profile(s) created automatically when you run other versions of firefox earlier.
...useful for testing debug symbols and the crash reporting system (firefox and thunderbird) javascript object examiner displays javascript object methods and properties for any available scope developer profile and devprefs sets up the development environment described above when installed (firefox and fennec) firefox extension proxy file extension files are normally installed in the user profile.
List of Mozilla-Based Applications - Archive of obsolete content
a list of former mozilla-based applications is also available.
... browser web browser gecko-based version of avant browser pale moon web browser optimized browser developed by moonchild productions for gnu/linux & windows platforms, originally forked from firefox palo suite excel extension uses prism partygaming online gaming product uses gecko pencil tool for making diagrams and gui prototyping available as a firefox extension or a standalone app pentaho bi suite commercial open source business intelligence uses xul and mozilla rhino persevere tools for persistence and distributed computing uses mozilla rhino phloneme publishing tool for vocab collab phped php editor embedded mozilla browser in product pidgin im client us...
... uox3 ultima online server-emulator uses mozilla spidermonkey verbosio xml editor no releases available verseminder bible passage app virgin media security security tools seems to use xulrunner virtualbox virtualization tool use xpcom as its component model on linux waterfox 64-bit variant of firefox based on firefox webissimo web browser based on xulrunner websecurify web application security testing environmen...
Installing plugins to Gecko embedding browsers on Windows - Archive of obsolete content
for example, netscape 6.0 and 6.01 do not write any of these keys into the registry, and thus these keys are not available for plugin vendors to parse for these two browsers.
... to find the version of gecko used (for plugin compatibility) applicable to compuserve 7.0, netscape 7.0 (windows), and other aol browsers currently in beta only finding the version of gecko that the browser uses is useful, because plugin vendors may wish to take advantage of certain features (perhaps available via fixes to the netscape plugin api) that are only available in certain versions of gecko.
... original document information last updated date: june 18, 2002 copyright information: portions of this content are © 1998–2006 by individual mozilla.org contributors; content available under a creative commons license ...
Notes on HTML Reflow - Archive of obsolete content
most of the constraints in the new reflow state are computed when the state is created; for example, the available space in the new reflow state is computed by subtracting the container frame's border and padding from the parent reflow state's available space.
...during an incremental reflow, a frame can assume that none of the constraints computed "from above" (for example, available width) have changed; instead, something "within" the frame has changed, which may have bottom-up impact to the frame hierarchy.
... original document information author(s): chris waterson last updated date: december 4, 2004 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
Source code directories overview - Archive of obsolete content
interfaces are used so functionality can be available to both javascript scripts and c code with as little effort as possible.
...xpcom is the mechanism that allows mozilla to export interfaces and have them automatically available to javascript scripts, to microsoft com and to regular mozilla c code.
... original document information author(s): daniel howard other contributors: heikki toivonen (11-nov-1999), hervé renault (for the french translation) (16-nov-1999) last updated date: michael kaply 2-june-2005 copyright information: portions of this content are © 1998-2007 by individual mozilla.org contributors; content available under a creative commons license | details.
Visualizing an audio spectrum - Archive of obsolete content
the function handling the loadedmetadata event stores the metadata of the audio element in global variables; the function for the mozaudioavailable event does an fft of the samples and displays them in a canvas.
...), ctx = canvas.getcontext('2d'), channels, rate, framebufferlength, fft; function loadedmetadata() { channels = audio.mozchannels; rate = audio.mozsamplerate; framebufferlength = audio.mozframebufferlength; fft = new fft(framebufferlength / channels, rate); } function audioavailable(event) { var fb = event.framebuffer, t = event.time, /* unused, but it's there */ signal = new float32array(fb.length / channels), magnitude; for (var i = 0, fbl = framebufferlength / 2; i < fbl; i++ ) { // assuming interlaced stereo channels, // need to split and merge into a stero-mix mono signal signal[i] = (fb...
...nvas.height); for (var i = 0; i < fft.spectrum.length; i++ ) { // multiply spectrum by a zoom value magnitude = fft.spectrum[i] * 4000; // draw rectangle bars for each frequency bin ctx.fillrect(i * 4, canvas.height, 3, -magnitude); } } var audio = document.getelementbyid('audio-element'); audio.addeventlistener('mozaudioavailable', audioavailable, false); audio.addeventlistener('loadedmetadata', loadedmetadata, false); // fft from dsp.js, see below var fft = function(buffersize, samplerate) { this.buffersize = buffersize; this.samplerate = samplerate; this.spectrum = new float32array(buffersize/2); this.real = new float32array(buffersize); this.ima...
Creating a Firefox sidebar extension - Archive of obsolete content
a newer document is available: creating a firefox sidebar this article describes how to create a registered sidebar for firefox 2 or greater.
...what we will do is create a sidebar and register it so it will be available in the menu.
... deployment now that we have a sidebar it is time to make it available to the world.
Creating a Microsummary - Archive of obsolete content
we'll build the xslt transform sheet that converts that page into its microsummary, learn how to specify that the generator applies to that page, and find out how to make the generator available for download and installation.
...e the spread firefox webmasters, we might simply reference the generator within the page itself by adding a <link rel="microsummary"> tag to its <head> element: <head> <link rel="microsummary" href="path/to/our/generator.xml"> </head> since we're not that site's webmasters, however, we can specify the page to which the generator applies within the generator itself and then make the generator available for download and installation.
... making the generator available for download now that the generator applies to the spread firefox home page, the only thing left to do is to make it downloadable.
Dehydra Object Reference - Archive of obsolete content
the following properties are usually available: property type description .name string the function or variable name.
...return t();), no container variable is available; in this case, .isreturn will be true (see function variable).
...the following additional properties are available on functions: property type description .isvirtual true or "pure" true for virtual methods, or "pure" for pure virtuals (e.g.
Layout System Overview - Archive of obsolete content
one of the goals of the layout system's design is to create parts of the presentation as they become available, rather than waiting for the entire document to be read, parsed, and then presented.
...so really, this sequence of operations resolve style, create frame, layout frame, gets repeated many times as the content becomes available.
...frames are basic formatting objects used in layout, and the frame manager is responsible for making frames available to clients.
Helper Apps (and a bit of Save As) - Archive of obsolete content
puts the data in the file as ondataavailable notifications come in.
... nsexternalapphandler::ondataavailable here we just copy the newly arrived data over into our temporary file.
... original document information author(s): boris zbarsky last updated date: september 12, 2002 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
Modularization techniques - Archive of obsolete content
inheriting from nsisupports allows any interface to be interrogated about other interfaces that its instance may support, and insures that reference counting facilities are always available.
... the only platform for which com support is currently widely available is windows.
...mponent object model specification revision history feb 25, 1998, created oct 19, 1998, dusted off momentarily oct 10, 1999, added comments about xpidl, language-independentness original document information author(s): will scullin last updated date: september 13, 2004 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details ...
Using Breakpoints in Venkman - Archive of obsolete content
this advanced feature and other options you can see for the associated script are available from the future breakpoint properties dialog, which you can access by right-clicking a breakpoint and selecting properties.
...the following options are available: continue regardless of result causes venkman to continue normal execution after running the breakpoint script.
...the following meta comment types are available: the //@jsd_log comment will insert a breakpoint which is set to execute the script that follows without stopping.
Creating XPI Installer Modules - Archive of obsolete content
this article describes the new packaging scheme of mozilla and offers a tutorial for creating a new package that can then be redistributed, installed, and made available to users.
...the reader is referred to jar packaging, which describes the design, goals, and options available for jar packaging in some depth.
...it is the correspondence of this installation script, the resources themselves, and the contents.rdf file that registers the package and makes it available.
Install script template - Archive of obsolete content
// this block also invokes a function to write registry keys (plid) and checks return from key writing // this block invokes refreshplugins() to ensure that plugin and xpt are available for use immediately if (errblock1 == success) { // installation to the current browser was a success - this is the most important job of this script!
... * * @param dirpath directory path from getfolder * @param spacerequired required space in kilobytes * **/ function verifydiskspace(dirpath, spacerequired) { var spaceavailable; // get the available disk space on the given path spaceavailable = filegetdiskspaceavailable(dirpath); // convert the available disk space into kilobytes spaceavailable = parseint(spaceavailable / 1024); // do the verification if(spaceavailable < spacerequired) { logcomment("insufficient disk space: " + dirpath); logcomment(" required : " + spacerequired + " k"); lo...
...gcomment(" available: " + spaceavailable + " k"); return(false); } return(true); } /** * function for writing keys to the win32 system registry.
XPJS Components Proposal - Archive of obsolete content
the standard (non-dom) js classes will be available.
... the xpconnectcomponents object will be available.
... and some additional yet to be defined objects may be available.
Accessing Files - Archive of obsolete content
file and stream guide: [ nsiscriptableio | accessing files | getting file information | reading from files | writing to files | moving, copying and deleting files | uploading and downloading files | working with directories ] important note: the pages from the file and stream guide use the io object (nsiscriptableio), which was not available in any released version of the platform (pending some fixes).
...other documentation on files and i/o not using the unavailable nsiscriptableio apis: code snippets: file i/o, open and save dialogs, reading textual data, writing textual data, list of file-related error codes.
...var file = io.getfile("profile", "sample.txt"); the nsiscriptableio object is a global object always available within an application or extension which provides a number of useful functions for dealing with files.
Working With Directories - Archive of obsolete content
file and stream guide: [ nsiscriptableio | accessing files | getting file information | reading from files | writing to files | moving, copying and deleting files | uploading and downloading files | working with directories ] important note: the pages from the file and stream guide use the io object (nsiscriptableio), which was not available in any released version of the platform (pending some fixes).
...other documentation on files and i/o not using the unavailable nsiscriptableio apis: code snippets: file i/o, open and save dialogs, reading textual data, writing textual data, list of file-related error codes.
...both files and directories are represented using the same kind of object so most of the functions available for nsifile will work for both.
XUL accessibility guidelines - Archive of obsolete content
in the bookmark manager this functionality is available under the view menu which is accessible to a keyboard user.
...do this by changing system display settings to an accessible theme (such as the high-contrast theme on windows, available via left-alt + left-shift + printscreen).
... testing media ensure that media alternatives are available in an accessible format.
listitem - Archive of obsolete content
more information is available in the xul tutorial.
...more information is available in the preferences system article.
...this property is available for menuitem and menuseparator elements in firefox 3.
XULRunner 1.8.0.1 Release Notes - Archive of obsolete content
xulrunner 1.8.0.4 is now available as a security/stability update; all users should install this new version.
...sample applications are available from the mozilla developer center.
...this is a developer preview release: additional features for installing and deploying xulrunner and applications based on xulrunner will be available in future releases.
XULRunner 1.8.0.4 Release Notes - Archive of obsolete content
as of december 2008,xulrunner 1.9.0.4 is available in the "gecko 1.9.0" branch upon which firefox 3 is based.
...sample applications are available from the mozilla developer center.
...this is a developer preview release: additional features for installing and deploying xulrunner and applications based on xulrunner will be available in future releases.
Building XULRunner with Python - Archive of obsolete content
microsoft c++ compiler is required and whilst the current free version is visual studio 8 express (msvc8) you will almost certainly want to use visual studio .net 2003 (msvc71) which is not longer officially available.
...apply any service packs and for msvc71 sp 1 is available.
... sample a sample xulrunner application with these python features is available.
nsIContentPolicy - Archive of obsolete content
type_fetch 20 indicates a load initiated by the globalfetch.fetch() method, which is available as a global in both window and worker contexts.
...a guess for the requested content's mime type, based on information available to the request initiator (e.g., an object's type attribute); does not reliably reflect the actual mime type of the requested content.
... amimetype the mime type of the requested resource (for example, image/png), as reported by the networking library, if available (may be empty if inappropriate for the type, e.g., type_refresh).
2006-10-06 - Archive of obsolete content
discussion highlights: ziga sancin suggests writing an introductory article for potential developers containing basic project information (history, list of main developers, project goals, roadmap and available communication channels, etc), tools needed to start developing and building tb, documentation on source structure as well as links to help one get started on the project.
... cédric corazza recommends that the proposed documention should be made available on the l10n cvs once it reaches a decent stage so that localizers can get a head-start on the localization before the final version is made available.
... updated : need ui to rearrange tags peter lairo suggested some ui should be available for rearranging tags.
NPClass - Archive of obsolete content
invokedefault called by npn_invokedefault() to invoke the default method (if available) on a given npobject.
...this field is available only if structversion is np_class_struct_version_enum (2) or greater.
...this field is available only if structversion is np_class_struct_version_ctor (3) or greater.
TCP/IP Security - Archive of obsolete content
security controls that are available at each layer include: application layer.
... more information on tls is available in rfc 4346, the tls protocol version 1.1, available at https://www.ietf.org/rfc/rfc4346.txt.
... another good source of information is nist sp 800-52, guidelines on the selection and use of transport layer security, available from https://csrc.nist.gov/publications/nistpubs/.) the use of tls typically requires each application to support tls; however, unlike application layer controls, which typically involve extensive customization of the application, transport layer controls such as tls are much less intrusive because they do not need to understand the application’s functions or characteristics.
Sunbird Theme Tutorial - Archive of obsolete content
packaging your theme you can package your theme and make it available on a web site for other users to download and install.
... make this jar file available to users.
...for example, when i wrote this article i used this command in my theme directory: zip -9 testing-0.1.jar * chrome/testing.jar make this jar file available to users.
Theme changes in Firefox 2 - Archive of obsolete content
these look like this in the default theme: the first icon (green here) indicates that an add-on has an update available.
... mozapps/extensions/viewbuttons.png new file; contains icons for each of the views that may be available in the add-ons manager.
...these are used to make the picker look like a regular text box instead of like an editable menu list when there are no microsummaries available.
Scratchpad - Archive of obsolete content
now scratchpad will be available in the toolbox, alongside other tools like the page inspector and the web console.
... there are four execution options available.
... reload and run the reload and run option is only available in the execute menu.
LiveConnect Overview - Archive of obsolete content
these java methods are available in javascript as methods of the javaobject, and you can call them as follows: mystring.length(); // returns 11 static members can be called directly on the javaclass object.
...the javascript exception is available to your java code as an instance of netscape.javascript.jsexception.
...the getwrappedexception method was not available.
Packages - Archive of obsolete content
consequently, you can access java classes in these packages without the packages keyword, as follows: var theframe = new java.awt.frame(); the classname property represents the fully qualified path name of any other java class that is available to javascript.
... properties classname: the fully qualified name of a java class in a package other than netscape, java, or sun that is available to javascript.
...the setsize, settitle, and setvisible methods are all available to javascript as public methods of java.awt.dialog.
Window: devicelight event - Archive of obsolete content
the devicelight event is fired when fresh data is available from a light sensor.
... min read only double (float) the minimum value in the range the sensor detects (if available, 0 otherwise).
... max read only double (float) the maximum value in the range the sensor detects (if available, 0 otherwise).
RDF in Mozilla FAQ - Archive of obsolete content
the open directory dataset is available as a (huge) rdf/xml dump.
...var ds = rdf.getdatasource("http://www.mozilla.org/some-rdf-file.rdf"); // note that ds will load asynchronously, so assertions will not // be immediately available alternatively, you can create one directly using the xpcom component manager, as the following code fragment illustrates: // create an rdf/xml datasource using the xpcom component manager var ds = components .classes["@mozilla.org/rdf/datasource;1?name=xml-datasource"] .createinstance(components.interfaces.nsirdfdatasource); // the nsirdfremotedatasource interface has the interfaces // t...
...remote.refresh(false); // note that ds will load asynchronously, so assertions will not // be immediately available you may decide that you need to "manually" create an rdf/xml datasource if you want to force it to load synchronously.
Windows Media in Netscape - Archive of obsolete content
the following javascript illustrates one approach using object detection of activexobject and geckoactivexobject to determine if the windows media activex control is supported and available for use.
...for example: mozilla/5.0 (windows; u; windows nt 5.1; en-us; rv:1.4) gecko/20030624 netscape/7.1 (ax; promostring) although geckoactivexobject is currently available only in netscape 7.1 on windows, it may be the case in the future that it will be available in other gecko-based browsers on other operating systems.
...instead of doing that, this is the recommendation and workaround for netscape 7.1: <script for="player" event="scriptcommand(type, param)"> if (type == "text") { var cap = document.getelementbyid("captext"); cap.innerhtml = param; } </script> more detailed examples are available in the final section on examples and sample code.
XUL Parser in Python - Archive of obsolete content
as i adapt the script in these ways and try to further generalize the actual code as i get time, i will make it available here.
... source code the source code for the xul parser is available.
...the first level of support for python in mozilla will apparently be for python modules made available as xpcom objects.
Index - Game development
there are many options available and there's no single good answer as to which is the best.
...you have a whole lot of options to chose from with most of them being free, so it's only about your enthusiasm and available time.
... 53 physics 2d, beginner, canvas, games, javascript, phaser, tutorial, physics for proper collision detection between objects in our game we will need to have physics; this article introduces you to what's available in phaser, as well as demonstrating a typical simple setup.
Game promotion - Game development
you have to let the world know that you have something interesting available that people will enjoy playing.
...the more information you can include the better — you should include screenshots, description, trailer, press kit, requirements, available platforms, support details and more.
...you have a whole lot of options to chose from with most of them being free, so it's only about your enthusiasm and available time.
Bounding volume collision detection with THREE.js - Game development
once instantiated, they have methods available to do intersection tests against other volumes.
...we need to provide the sphere's center and radius, which can be added to the boundingsphere property available in geometry.
...box3 the box3.intersectsbox method is available for performing this test.
Building up a basic demo with the PlayCanvas engine - Game development
latest.js"></script> <canvas id="application-canvas"></canvas> <script> var canvas = document.getelementbyid("application-canvas"); /* all our javascript code goes here */ </script> </body> </html> it contains some basic information like the document <title>, and some css to set the width and height of the <canvas> element that playcanvas will use to 100% so that it will fill the entire available viewport space.
...add the following code to the bottom of your second <script> element: var app = new pc.application(canvas); app.start(); the pc global object contains all the playcanvas functions available in the engine.
...there are cubes, spheres, cylinders and more complicated shapes available.
3D games on the Web - Game development
we have information available for you to learn from: 2d collision detection 3d collision detection webxr the concept of virtual reality is not new, but it's storming onto the web thanks to hardware advancements such as the oculus rift, and the (currently experimental) webxr api for capturing information from vr and ar hardware and making it available for use in javascript applications.
... building up a basic demo with playcanvas playcanvas is a popular 3d webgl game engine open-sourced on github, with an editor available online and good documentation.
... where to go next with this article we just scratched the surface of what's possible with currently available technologies.
Desktop gamepad controls - Game development
then, if the buttons are available we loop through them; if the pressed property is set to true, then we add them to the buttonspressed array for later processing.
... gamepadbuttonpressedhandler() function: function gamepadbuttonpressedhandler(button) { var press = false; for(var i=0; i<buttonspressed.length; i++) { if(buttonspressed[i] == button) { press = true; } } return press; } the function takes a button as a parameter; in the loop it checks if the given button's number is among the currently pressed buttons available in the buttonspressed array.
... on-screen instructions when the game is started, some introductory text is shown that shows you available controls — we are already detecting if the game is launched on desktop or mobile then showing a relevant message for the device, but we can go even further, to allow for the presence of a gamepad: create() { // ...
2D breakout game using Phaser - Game development
every step has editable, live samples available to play with, so you can see what the intermediate stages should look like.
... lesson details all the lessons — and the different versions of the mdn breakout game we are building together — are available on github: initialize the framework scaling load the assets and print them on screen move the ball physics bounce off the walls player paddle and controls game over build the brickfield collision detection the score win the game extra lives animations and tweens buttons randomizing gameplay as a note on learning paths — starting with pure javascript is the best way to get a ...
... after that, you can pick any framework you like and use it for your projects; we have chosen phaser as it is a good solid framework, with a good support and community available, and a good set of plugins.
Index - MDN Web Docs Glossary: Definitions of Web-related terms
essentially, it represents what is available to be seen, while the visual viewport represents what is currently visible on the user's display device.
...if a variable or other expression is not "in the current scope," then it is unavailable for use.
...tcp slow start is an algorithm used to detect the available bandwidth for packet transmission, and balances the speed of a network connection.
HTML: A good basis for accessibility - Learn web development
note: different browsers may have different keyboard control options available.
... this highlights the importance of not only using meaningful file names in case so-called alt text is not available, but also making sure that alt text is provided in alt attributes wherever possible.
... other text alternative mechanisms images also have another mechanisms available for providing descriptive text.
HTML: A good basis for accessibility - Learn web development
note: different browsers may have different keyboard control options available.
... this highlights the importance of not only using meaningful file names in case so-called alt text is not available, but also making sure that alt text is provided in alt attributes wherever possible.
... other text alternative mechanisms images also have another mechanisms available for providing descriptive text.
CSS values and units - Learn web development
you can use any available <color> values assuming they are supported by your browser.
... the standard color system available in modern computers is 24 bit, which allows the display of about 16.7 million distinct colors via a combination of different red, green and blue channels with 256 different values per channel (256 x 256 x 256 = 16,777,216.) let's have a look at some of the ways in which we can specify colors in css.
...each pair of values represents one of the channels — red, green and blue — and allows us to specify any of the 256 available values for each (16 x 16 = 256.) these values are a bit more complex and less easy to understand, but they are a lot more versatile than keywords — you can use hex values to represent any color you want to use in your color scheme.
Grids - Learn web development
this unit represents one fraction of the available space in the grid container.
...the fr unit distributes space in proportion, therefore you can give different positive values to your tracks, for example if you change the definition like so: .container { display: grid; grid-template-columns: 2fr 1fr 1fr; } the first track now gets 2fr of the available space and the other two tracks get 1fr, making the first track larger.
...plate-columns: 2fr 1fr 1fr; } .container > div { border-radius: 5px; padding: 10px; background-color: rgb(207,232,220); border: 2px solid rgb(79,185,227); } <div class="container"> <div>one</div> <div>two</div> <div>three</div> <div>four</div> <div>five</div> <div>six</div> <div>seven</div> </div> note: the fr unit distributes available space, not all space.
Legacy layout methods - Learn web development
prerequisites: html basics (study introduction to html), and an idea of how css works (study introduction to css and styling boxes.) objective: to understand the fundamental concepts behind the grid layout systems used prior to css grid layout being available in browsers.
...we really want a flexible (fluid) grid that will grow and shrink with the available space in the browser viewport.
...there are many flexbox-based grid systems available and flexbox can solve many of the issues that we’ve already discovered when creating our grid above.
Responsive design - Learn web development
as more diverse screen sizes became available, the concept of responsive web design (rwd) appeared, a set of practices that allows web pages to alter their layout and appearance to suit different screen widths, resolutions, etc.
... css grid in css grid layout the fr unit allows the distribution of available space across grid tracks.
...this will create three column tracks, each taking one part of the available space in the container.
What is CSS? - Learn web development
there are other user agents available — such as those which convert html and css documents into pdfs to be printed.
...css is constantly developing, with new features coming available.
...a website built in 2000, using the limited css available then, should still be usable in a browser today!
What are browser developer tools? - Learn web development
the available menu options vary among browsers, but the important ones are mostly the same: delete node (sometimes delete element).
... some browsers also have copy css path and copy xpath available, to allow you to copy the css selector or xpath expression that would select the current html element.
...for example, in the image below, you can see the objects available to the code in the additemclick function.
Common questions - Learn web development
they provide a human-readable address for any web server available on the internet.
... what text editors are available?
... what tools are available to debug and improve website performance?
Basic native form controls - Learn web development
next we will look at the functionality of the different form controls, or widgets, in detail — studying all the different options available to collect different types of data.
... in this particular article we will look at the original set of form controls, available in all browsers since the early days of the web.
... objective: to understand in detail the original set of native form widgets available in browsers for collecting data, and how to implement them using html.
Other form controls - Learn web development
and browsers that support <datalist>s and <input type="color"> should display a customized palette of colors as the default, while still making the full color palette available.
... summary as you'll have seen in the last few articles, there are a lot of different types of available form element.
... now that you have a grasp of the html behind the different available form controls, we'll take a look at styling them.
Advanced text formatting - Learn web development
ime the user updates the text area code textarea.onkeyup = function(){ // we only want to save the state when the user code is being shown, // not the solution, so that solution is not saved over the user code if(solution.value === 'show solution') { userentry = textarea.value; } else { solutionentry = textarea.value; } updatecode(); }; quotations html also has features available for marking up quotations; which element you use depends on whether you are marking up a block or inline quotation.
...if you want to make the source of the quotation available on the page you need to make it available in the text via a link or some other appropriate way.
...for example: <p>my birthday is on the 25<sup>th</sup> of may 2001.</p> <p>caffeine's chemical formula is c<sub>8</sub>h<sub>10</sub>n<sub>4</sub>o<sub>2</sub>.</p> <p>if x<sup>2</sup> is 9, x must equal 3 or -3.</p> the output of this code looks like so: representing computer code there are a number of elements available for marking up computer code using html: <code>: for marking up generic pieces of computer code.
Creating hyperlinks - Learn web development
hyperlinks allow us to link documents to other documents or resources, link to specific parts of documents, or make apps available at a web address.
...for example, if an index.html page is uploaded to a directory called projects that sits inside the root of a web server, and the web site's domain is http://www.example.com, the page would be available at http://www.example.com/projects/index.html (or even just http://www.example.com/projects/, as most web servers just look for a landing page such as index.html to load if it isn't specified in the url.) an absolute url will always point to the same location, no matter where it's used.
...if the pdf was available in a subdirectory inside projects called pdfs, the relative link would be pdfs/project-brief.pdf (the equivalent absolute url would be http://www.example.com/projects/pdfs/project-brief.pdf.) a relative url will point to different places depending on the actual location of the file you refer from — for example if we moved our index.html file out of the projects directory and into the root of the web site (th...
Introducing asynchronous JavaScript - Learn web development
, 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.
...that means that the following (pseudocode) wouldn't work: let response = fetch('myimage.png'); let blob = response.blob(); // display your image blob in the ui somehow that's because you don't know how long the image will take to download, so when you come to run the second line it will throw an error (possibly intermittently, possibly every time) because the response is not yet available.
... the catch() block at the end runs if any of the .then() blocks fail — in a similar way to synchronous try...catch blocks, an error object is made available inside the catch(), which can be used to report the kind of error that has occurred.
Looping code - Learn web development
here we'll look at the loop structures available in javascript that handle such needs.
...while for is not the only type of loop available in javascript.
... conclusion this article has revealed to you the basic concepts behind, and different options available when looping code in javascript.
Measuring performance - Learn web development
performance apis when writing code for the web, there are a large number of web apis available that allow you to create your own performance measuring tools.
... tools and metrics there are a number of different tools available to help you improve performance.
... network tools most browsers have tools available that you can use to run against loaded pages and determine how they are performing.
Learning area release notes - Learn web development
check back here if you want to know what new content is available, and what existing content has been improved.
... may 2020 our understanding client-side javascript frameworks module is now available.
... it has new examples available and techniques covered.
Website security - Learn web development
with great regularity, we hear about websites becoming unavailable due to denial of service attacks, or displaying modified (and often damaging) information on their homepages.
...finally, there are publically available vulnerability scanner tools that can help you find out if you've made any obvious mistakes.
...this ensures that login credentials, cookies, post requests data and header information are not easily available to attackers.
Routing in Ember - Learn web development
import { inject as service } from '@ember/service'; export default class indexroute extends route { @service('todo-data') todos; model() { let todos = this.todos; return { get alltodos() { return todos.all; } } } } we can now update the todomvc/app/templates/index.hbs file so that when it includes the <todolist /> component, it does so explicitly with the available model, calling its alltodos() getter to make sure all of the todos are shown.
...ervice } from '@ember/service'; export default class completedroute extends route { @service('todo-data') todos; model() { let todos = this.todos; return { get completedtodos() { return todos.completed; } } } } we can now update the todomvc/app/templates/completed.hbs file so that when it includes the <todolist /> component, it does so explicitly with the available model, calling its completedtodos() getter to make sure only the completed todos are shown.
...ect as service } from '@ember/service'; export default class activeroute extends route { @service('todo-data') todos; model() { let todos = this.todos; return { get activetodos() { return todos.incomplete; } } } } we can now update the todomvc/app/templates/active.hbs file so that when it includes the <todolist /> component, it does so explicitly with the available model, calling its activetodos() getter to make sure only the active (incomplete) todos are shown.
Implementing feature detection - Learn web development
let's recap and look at the example we touched on in our handling common javascript problems — the geolocation api (which exposes available location data for the device the web browser is running on) has the main entry point for its use, a geolocation property available on the global navigator object.
... @supports also has or and not logic available — the other block applies the float layout if the flexbox properties are not available: @supports not (flex-flow: row) and (flex: 1) { /* rules in here */ } this may look a lot more convenient than the previous example — we can do all of our feature detection in css, no javascript required, and we can handle all the logic in a single css file, cutting down on http requests.
...it does this by making the global modernizr object available to the page it is applied to, which contains results of the feature detects as true/false properties.
CSUN Firefox Materials
in fact, the same keyboard commands are still available, so users can become comfortable and productive right away.
...basic screen reader accessibility is available via gnopernicus or the fire vox extension.
...custom searches can be added to this quick search bar and the user can switch between them by choosing from a drop down available via the standard alt+down arrow key combination.
Multiprocess on Windows
overview a high-level overview of the ideas behind the a11y+e10s design is available on the wiki.
...both types of metadata are then made available from within the same dll.
...any typelibs that are already registered in the system registry will automatically be available for use by the interceptor.
A bird's-eye view of the Mozilla framework
core services modules such as the nglayout engine comprise the core application services available to other core modules, and xul packages core application modules are implemented as a set of one or more xpcom (cross-platform com) objects.
...the client simply queries the provider for a particular service, and if available, accesses that service through an interface defined in xpidl (cross-platform idl), derived from the corba idl.
... const rdf = components.classes["@mozilla.org/rdf/rdf-service;1"].getservice(components.interfaces.nsirdfservice); the components object is made available to javascript via xpconnect; it serves as a bridge connecting javascript and xpcom.
Creating a Firefox sidebar
there is a wide range of extensions available, and some of them provide a sidebar.
...a sample extension to add a web panel is available as a starter.obsolete since gecko 57 if you'd like to have a deeper integration with the browser to offer more complex features, a traditional overlay extension can be an option.
...that means the ability to add a traditional sidebar panel is no longer available from web content.
Windows SDK versions
older versions some of the older version are no longer supported, further information is available at obsolete build caveats and tips [en-us] under the windows sdk article.
...older sdks these are no longer supported, further information is available at obsolete build caveats and tips [en-us] under the windows sdk article.
...try the following things in order: run the windows sdk configuration tool (if available) and make sure the right sdk is selected.
Listening to events on all tabs
optional from gecko 10 onprogresschange called when updated progress information for the download of a document is available.
...onlinkiconavailable notification that the site icon for a browser has been found.
... void onlinkiconavailable( nsidomxulelement abrowser, ); parameters abrowser the browser that fired the notification.
Performance best practices for Firefox front-end engineers
promisedocumentflushed is only available to priviledged script, and should be called on the inner window of a top-level frame.
...since everything is pending a reflow, the answer isn't available, so everything stalls until the reflow is complete and the script can be given an answer.
... a promise-based wrapper for indexeddb, indexeddb.jsm, is available for chrome code.
HTMLIFrameElement.findNext()
parameters direction a string indicating the direction in which you want to cycle through the available search results.
... available values are forward and backward.
... examples the following functions are taken from our browser api demo, and cycle through the available search results.
mozbrowsericonchange
<link rel="icon"> or <link rel="apple-touch-icon">) is available in the browser <iframe>'s content.
... it will be fired once for each icon available.
... sizes a domstring listing the sizes the new icon is available in, e.g.
Hacking with Bonsai
at 10:00 am, everyone who is on the hook is available in case the build breaks eventually, the tree builds, and it is re-opened.
...the car pool lane is only available to those who arrange access ahead of time with the release team.
...if you are on the hook, your top priority is to be available to the build team to fix bustages.
How to get a stacktrace with WinDbg
a firefox nightly or release you need a firefox version for which symbols are availables from the mozilla symbol server to use with windbg.
...(more details are available at using the mozilla symbol server.) .sympath srv*c:\symbols*http://symbols.mozilla.org/firefox;srv*c:\symbols*http://msdl.microsoft.com/download/symbols .symfix+ c:\symbols .reload /f now wait for the symbols to download.
...if firefox hangs and there is no command prompt available in the debugger, open the debug menu and choose break.
Introduction to Layout in Mozilla
ser, returned as nsistreamlistener back to the docshell creates a content sink, which is linked to the parser and the document creates a documentviewerimpl object, which is returned as nsicontentviewer back to the docshell documentviewerimpl creates pres context and pres shell content model construction content arrives from network via nsistreamlistener::ondataavailable parser tokenizes & processes content; invokes methods on nsicontentsink with parser node objects some buffering and fixup occurs here opencontainer, closecontainer, addleaf content sink creates and attaches content nodes using nsicontent interface content sink maintains stack of “live” elements more buffering and fixup occurs here insertchildat...
...s it is asked for reflow recursively compute geometry (x, y, w, h) for frames, views, and widgets given w & h constraints of “root frame” compute (x, y, w, h) for all children constraints propagated “down” via nshtmlreflowstate desired size returned “up” via nshtmlreflowmetrics basic pattern parent frame initializes child reflow state (available w, h); places child frame (x, y); invokes child’s reflow method child frame computes desired (w, h), returns via reflow metrics parent frame sizes child frame and view based on child’s metrics n.b.
... original document information author(s): chris waterson last updated date: june 10, 2002 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
Add-on Manager
the callbacks may be called immediately while the initial function is still executing or shortly after, depending on when the requested data becomes available.
...any available update is returned as an addoninstall which is ready to be downloaded and installed.
...onmanager.jsm"); let addonids = addonmanager.getstartupchanges(addonmanager.startup_change_disabled); if (addonids.length > 0) { // addonids is now an array of the add-on ids that have been disabled alert("note: " + addonids.length + " add-ons have been disabled."); } open add-on manager tab the add-on manager tab can be opened programatically with the function browseropenaddonsmgr which is available on chrome window of "navigator:browser" type.
CustomizableUI.jsm
this module is only available from firefox 29 onwards.
... it is available in the firefox window as the customizableui property on the window.
...this matters because of course xul-provided widgets could be available in some windows but not others, and likewise api-provided widgets might not exist in a private window (because of the showinprivatebrowsing property).
DownloadTarget
it is possible for this property to have a non-zero value even if the target file no longer exists, if the value is available in download metadata.
... if that metadata is no longer available and the file has been deleted, then this value is zero.
... for single-file downloads, this property's value will always match the actual size of the file on disk, while the download.totalbytes property, when available, may indicate the size of the data as encoded for transfer instead.
OS.File for the main thread
this is an number can be created with the constants available in os.constants.libc.s_i* or os.constants.libc.s_o*.
... backupto available since firefox 30.
... encoding available since firefox 22.
WebRequest.jsm
to perform one of these operations, include a property with the appropriate name in the object returned from the listener, and assign it the desired value, as detailed in the table below: operation available in return property cancel onbeforerequest cancel boolean value set to true.
... onbeforerequest this event is triggered when a request is about to be made, and before headers are available.
... onbeforesendheaders this event is triggered before sending any http data, but after all http headers are available.
Localization content best practices
don't reuse strings in different contexts this is particularly important for mobile, where different context often means different font and available space for the string.
... gecko and mozilla-central first, make sure that there are no hard-coded strings, and all strings are available in localization files (.dtd, .properties).
...for example, to check if it's using a character not available in the original string, given entities "usebookmark.label" and "usebookmark.accesskey", if you change to "choosebookmark.label" due to a string change, change the access key entity to "choosebookmark.accesskey" to match it.
What every Mozilla translator should know
l10n stands for localization = l + another 10 letters + n mailing lists and other resources there are several mailing lists to keep the track of what's going on, which are available as newsgroups, as well, both on news.mozilla.org and google groups: the main l10n list also available as mozilla.dev.l10n, .l10n in short.
... planning list also available as mozilla.dev.planning, .planning in short.
...in this case the resultant installable file will be available in the mozilla ftp servers: firefox nightly builds thunderbird nightly builds qa (quality assurance) in order to assure the quality of a build we should make some tests using http://litmus.mozilla.org ...
reader.parse-on-load.force-enabled
the preference reader.parse-on-load.force-enabled controls if the reader mode used in firefox mobile should be enabled independent of the memory available in the device.
... type:boolean default value: false exists by default: yes application support:firefox mobile 23.0 status: active; last updated 2013-05-11 introduction: pushed to nightly on 2013-05-06 bugs: bug 867875 values true reader mode is enabled independent of memory available.
... false (default) reader mode is only enabled if memory available exceeds a threshold (currenlty 384mb).
AsyncTestUtils extended framework
thanks to javascript enhancements available on the mozilla platform, it is possible for a function to yield control in such a way that the function stops running at the line where you use a yield statement and resumes execution on the next line when resumed.
...we do not mark the folders as offline and therefore do not attempt to download the messages so that they are immediately available for offline use.
...we mark the folders as offline and download the messages so that they are immediately available for offline use.
Nonblocking IO In NSPR
fundamentally, this constraint is due to the fact that nonblocking i/o and <tt>select()</tt> are only available to sockets on some platforms (e.g., winsock).
... pr_available() when <tt>pr_available()</tt> returns 0, it may mean one of two things: there is no data available for reading on that socket.
...if <tt>pr_poll()</tt> reports that the socket is readable (i.e., <tt>pr_poll_read</tt> is set in <tt>out_flags</tt>), and <tt>pr_available()</tt> returns 0, this means that the socket connection is closed.
Introduction to NSPR
the communication available is a semantic-free notification whose context must be supplied by the programmer.
... for example, suppose the defined rule of a function is that it should wait until there is an object available and that it should return a reference to that object.
...in addition to these annotated html versions, the same samples are available in pure source form.
PRIOMethods
syntax #include <prio.h> struct priomethods { prdesctype file_type; prclosefn close; prreadfn read; prwritefn write; pravailablefn available; pravailable64fn available64; prfsyncfn fsync; prseekfn seek; prseek64fn seek64; prfileinfofn fileinfo; prfileinfo64fn fileinfo64; prwritevfn writev; prconnectfn connect; pracceptfn accept; prbindfn bind; prlistenfn listen; prshutdownfn shutdown; prrecvfn recv; prsendfn send; prrecvfromfn recvfrom; prsendtofn sendto; prpollfn poll; pracceptreadfn acceptread; prtransmitfilefn transmitfile; prgetsocknamefn getsockname; prgetpeernamefn getpeername; prgetsockoptfn getsockopt; prsetsockoptfn setsockopt; }; typedef struct priomethods priomethods; parame...
... available determine number of bytes available for reading.
... available64 same as previous field, except 64-bit.
An overview of NSS Internals
the crmf library, which is used to produce certain kinds of certificate requests, is available as a library for static linking only.
...in order to process data available in the asn.1 format, the usual approach is to parse it and transfer it to a presentation that requires more space but is easier to work with, such as (nested) c data structures.
...a recent development adds support for loading external pem files that contain private keys, in a software library called nss-pem, which is separately available, but should eventually become a core part of nss.
NSS_3.12.2_release_notes.html
nss 3.12.2 source and binary distributions are also available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_12_2_rtm/src/.
... bug 200704: pkcs11: invalid session handle 0 bug 205434: fully implement new libpkix cert verification api from bug 294531 bug 302670: use the installed libz.so where available bug 305693: shlibsign generates pqg for every run bug 311483: exposing includecertchain as a parameter to sec_pkcs12addcertandkey bug 390527: get rid of pkixerrormsg variable in pkix_error bug 391560: libpkix does not consistently return pkix_validatenode tree that truly represent failure reasons bug 408260: certutil usage doesn't give enough information about trust arguments bug 4123...
...new and revised documents available since the release of nss 3.11 include the following: build instructions for nss 3.11.4 and above nss shared db compatibility nss 3.12.2 shared libraries are backward compatible with all older nss 3.x shared libraries.
NSS 3.37 release notes
nss 3.37 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_37_rtm/src/ notable changes in nss 3.37 the tls 1.3 implementation was updated to draft 28.
... starting with nss version 3.31, an alternative implementation for rng seeding on the linux/unix platform was available (bug 1346735), which performed seeding exclusively based on /dev/urandom.
... (the classic implementation for rng seeding on the linux/unix platform, which may use additional sources for the default seeding, is still available and will be used if seed_only_dev_urandom is undefined.) with nss 3.37, this alternative implementation for linux/unix can be selected in "make" builds by defining the environment variable nss_seed_only_dev_urandom.
NSS Tools sslstrength
if you want to test out a particular cipher, there are two ways to affect which ciphers are available.
...this restricts the available ciphers to the same set used by communicator.
... in addition to this, the ciphers command can be used to further restrict the ciphers available.
PKCS11 FAQ
MozillaProjectsNSSPKCS11FAQ
pkcs11 faq questions and answers general questions after plugging in an external pkcs #11 module, how do you use the certificate available on the token?
...if no new sessions are available, the one read-only session is used, and the state is saved and restored after each multipart operation.
...other certificates on the token are also loaded (to allow building certificate chains), but it's not necessary to include the full chain, as long as the full chain is available in the regular certificate database.
NSS tools : modutil
usage and examples creating database files before any operations can be performed, there must be a set of security databases available.
... modutil -rawadd modulespec deleting a module a specific pkcs #11 module can be deleted from the secmod.db database: modutil -delete modulename -dbdir [sql:]directory displaying module information the secmod.db database contains information about the pkcs #11 modules that are available to an application or server to use.
...the available mechanisms depend on the module; nss supplies almost all common mechanisms.
gtstd.html
figure 2.1 illustrates the relationships between nspr, ssl, pkcs #11, and the available cryptographic modules.
...on any given server or client, one or more pkcs #11 modules may be available.
...netscape software uses a file called secmod.db to keep track of the modules available.
pkfnc.html
pk11_findkeybyanycert finds the private key associated with a specified certificate in any available slot.
... pk11_ispresent finds out whether the token for a slot is available.
... returns the function returns one of these values: if token is available, pr_true.
TLS Cipher Suite Discovery
they must agree on these items: key establishment algorithm (such as rsa, dh, or ecdh) peer authentication algorithm (such as rsa, dsa, ecdsa) bulk data encryption algorithm (such as rc4, des, aes) and key size digest algorithm for message authentication checking (sha1, sha256) there are numerous available choices for each of those categories, and the number of possible combinations of all those choices is large.
...when a new version of a tls implementation is made available for use by applications, those applications may wish to immediately use the newly supported cipher suites found in the new version, without the application needing to be modified and re-released to know about these new cipher suites.
...the size of this table varies from release to release, and so libssl makes the number of entries in that table publicly available too.
NSS Tools modutil
for general installation instructions and to install a module in environments where javascript support is available (as in netscape communicator), see the document using the jar installation manager to install a pkcs #11 cryptographic module.
...the following cipher is currently available: fortezza.
...the following mechanisms are currently available: rsa, dsa, rc2, rc4, rc5, des, dh, fortezza, sha1, md5, md2, random (for random number generation), and friendly (meaning certificates are publicly readable).
NSS Tools sslstrength
if you want to test out a particular cipher, there are two ways to affect which ciphers are available.
...this restricts the available ciphers to the same set used by communicator.
... in addition to this, the ciphers command can be used to further restrict the ciphers available.
NSS tools : modutil
MozillaProjectsNSStoolsmodutil
usage and examples creating database files before any operations can be performed, there must be a set of security databases available.
... modutil -rawadd modulespec deleting a module a specific pkcs #11 module can be deleted from the secmod.db database: modutil -delete modulename -dbdir [sql:]directory displaying module information the secmod.db database contains information about the pkcs #11 modules that are available to an application or server to use.
...the available mechanisms depend on the module; nss supplies almost all common mechanisms.
Download Rhino
rhino is available for download both in source and compiled form.
...as of release 1.7r4 rhino is available under mpl 2.0.
...running the ./gradlew tasks command at the top directory of the rhino distribution will print the list of available build targets.
Rhino license
rhino is available under open source licenses.
... mpl/gpl license the majority of the source code for rhino is available under a mpl 1.1/gpl 2.0 license.
... license for portions of the rhino debugger additionally, some files (currently the contents of toolsrc/org/mozilla/javascript/tools/debugger/treetable/) are available under the following license: * copyright 1997, 1998 sun microsystems, inc.
Index
full documentation of how to define a jsnative (or a jsfastnative, the equivalent typedef which preceded it) is available in the api header "js/callargs.h" added in spidermonkey 24.
...(at the moment, js_addargumentformatter fails only if there is no memory available to record the registration.) 186 js_addexternalstringfinalizer jsapi reference, obsolete, spidermonkey add a finalizer for external strings created by js_newexternalstring using a type-code returned from this function, and that understands how to free or release the memory pointed at by js_getstringchars(str).
... 459 js_setgcparametersbasedonavailablememory jsapi reference, reference, référence(2), spidermonkey js_setgcparametersbasedonavailablememory adjusts the parameters of the garbage collection based on available memory.
Self-hosted builtins in SpiderMonkey
self-hosted code has access to some functionality that's not available to normal js code.
...using the same mechanism, c++-implemented helper functions are made available to self-hosted code.
... making jsnatives available to self-hosted code for a jsnative to be available to self-hosted code, add it to the intrinsic_functions jsfunctionspec array in selfhosting.cpp.
Profiling SpiderMonkey
make -c my-obj-dir/js/src other ways to profile for linux, there are global jprof functions available.
...when we have js scriptable profiling options available for all tier 1 platforms, we'll look at adding global start/stop profiling functions.
... if you'd like to profile something at a higher level of detail than the js shark functions allow, there are corresponding c functions available at the bottom of jsdbgapi.h.
Signing Mozilla apps for Mac OS X
there are good instructions available under "to use the certificate assistant to create a self-signed signing identity".
...the man page for codesign is available online, or you can simply type "man codesign" in a terminal window.
... the coderesources file used to sign official firefox and thunderbird builds is available in mozilla-central.
Gecko states
states list state_unavailable the object is unavailable, i.e.
...because objects with this state are not available to users, client applications should not communicate information about the object to users.
...ext_state_horizontal uses horizontal layout ext_state_opaque indicates this object paints every pixel within its rectangular region ext_state_single_line this text object can only contain 1 line of text ext_state_transient ext_state_vertical especially used for sliders and scrollbars ext_state_stale object not dead, but not up-to-date either ext_state_enabled a widget that is not unavailable ext_state_sensitive same as enabled for now ext_state_expandable if collapsed or expanded ...
extIApplication
method overview boolean quit() boolean restart() void getextensions(extiextensionscallback acallback) attributes the following interfaces are available to all applications: attribute type description id readonly attribute astring the id of the application.
...not available anymore on gecko 2.0 (see [1]), use getextensions() instead obsolete since gecko 2.0 prefs readonly attribute extipreferencebranch the preferences object for the application.
...supports: "load", "ready", "quit", "unload" the following interfaces are only available to firefox: attribute type description bookmarks readonly attribute fuelibookmarkroots the root bookmarks object for the application.
Accessing the Windows Registry Using XPCOM
this article will show you how to use the available interfaces in several mozilla products.
... notice in the open() call that the root key to use is specified using the named constants available on the nsiwindowsregkey interface, in this case root_key_local_machine, which corresponds to hkey_local_machine in the windows registry.
...illa.org/winhooks;1"] .getservice(components.interfaces.nsiwindowsregistry); var id = wss.getregistryentry(wss.hklm, "software\\microsoft\\windows\\currentversion", "productid"); backwards compatibility if you need to support firefox 1.0 and other older browser versions, you should check to see which interfaces are available.
XPCOM changes in Gecko 2.0
that's because it's among the earliest notifications that occurs after the profile folder (and therefore preferences and other services) is available.
...this was necessary in order to ensure that any components that should no longer be available are disposed of properly, and to re-register everything, loading any new components that may be needed.
...xpcom service getters a number of commonly used xpcom services now have service getter functions available in the mozilla::services namespace; these make it much easier to get access to these services from c++ code.
Starting WebLock
this notification will occur during initialization of xpcom, where all xpcom services are guaranteed to be available during the calls.
...for this, we need to use the file interfaces available in xpcom.
...this service, available as nsidirectoryservice, stores the location of various common system locations, such as the the directory containing the running process, the user's home directory, and others.
Mozilla internal string guide
note that this kind of "latin1" is not available for encoding html, css, js, etc.
... idl the string library is also available through idl.
... original document information author: alec flett copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
imgILoader
this must already be opened before this method is called, and there must have been no ondataavailable calls for it yet.
... return value supportimagewithmimetype() checks if a decoder for the an image with the given mime type is available.
... return value true if a decoder is available, false otherwise.
nsIAccessibleStates
constant value description state_unavailable 0x00000001 the object is unavailable, that is disabled.
...because objects with this state are not available to users, client applications should not communicate information about the object to users.
... ext_state_enabled 0x00002000 a widget that is not unavailable.
nsICacheListener
inherits from: nsisupports last changed in gecko 14 (firefox 14 / thunderbird 14 / seamonkey 2.11) method overview void oncacheentryavailable(in nsicacheentrydescriptor descriptor, in nscacheaccessmode accessgranted, in nsresult status); void oncacheentrydoomed(in nsresult status); methods oncacheentryavailable() this method is called when the requested access (or appropriate subset) is acquired.
...void oncacheentryavailable( in nsicacheentrydescriptor descriptor, in nscacheaccessmode accessgranted, in nsresult status ); parameters descriptor the cache entry descriptor.
...void oncacheentrydoomed( in nsresult status ); parameters status the status is ns_ok when the entry was doomed, or ns_error_not_available when there is no such entry.
nsICryptoHash
passing pr_uint32_max indicates that all data available will be used to update the hash.
... exceptions thrown ns_error_not_available indicates that the requested amount of data to be calculated into the hash is not available.
...all of the available algorithms are specified as constants on the interface.
nsIDOMEvent
everything marked as gecko 16.0 was previously available in that interface.
...due to the fact that some systems may not provide this information the value of timestamp may be not available for all events.
... when not available, a value of 0 will be returned.
nsIDragService
this is available only from native code since gecko 43.
... adatatransfer a data transfer object that is available on the current drag session.
... adatatransfer a data transfer object that is available on the current drag session.
nsIMsgMessageService
the consumer has to be a stream listener and in your listener's ondataavailable method, you can write out the stream data to a local file or concatenate it to a string.
...tream); var scriptinput = components.classes["@mozilla.org/scriptableinputstream;1"].createinstance(); var scriptinputstream = scriptinput.queryinterface(components.interfaces.nsiscriptableinputstream); scriptinputstream.init(consumer); try { msgservice.streammessage(messageuri, msgstream, msgwindow, null, false, null); } catch (ex) { alert("error: "+ex) } scriptinputstream .available(); while (scriptinputstream .available()) { content = content + scriptinputstream .read(512); } alert(content streamheaders() this method streams a message's headers to the passed in consumer.
...the consumer has to be a stream listener and in your listener's ondataavailable method, you can write out the stream data to a local file or concatenate it to a string.
nsIProxyInfo
note: prior to gecko 1.8 host was available by the host method.
... note: prior to gecko 1.8 port was available by the port method.
... note: prior to gecko 1.8 type was available by the type method.
nsIStreamConverter
you can supply data directly to the converter by calling it's nsistreamlistener.ondataavailable() method.
... it will then convert that data from type x to your desired output type and return converted data to you via the nsistreamlistener you passed in by calling its nsistreamlistener.ondataavailable() method.
...ime_type method overview void asyncconvertdata(in string afromtype, in string atotype, in nsistreamlistener alistener, in nsisupports actxt); nsiinputstream convert(in nsiinputstream afromstream, in string afromtype, in string atotype, in nsisupports actxt); methods asyncconvertdata() asynchronous version: converts data arriving via the converter's nsistreamlistener.ondataavailable() method from one type to another, pushing the converted data out to the caller via alistener::ondataavailable().
nsIUpdatePrompt
1.0 66 introduced gecko 1.8 inherits from: nsisupports last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) method overview void checkforupdates(); void showupdateavailable(in nsiupdate update); void showupdatedownloaded(in nsiupdate update, [optional] in boolean background); void showupdateerror(in nsiupdate update); void showupdatehistory(in nsidomwindow parent); void showupdateinstalled(); methods checkforupdates() presents a user interface that checks for and displays the available updates.
...showupdateavailable() shows a message advising the user that an update is available to be downloaded and installed.
...void showupdateavailable( in nsiupdate update ); parameters update an nsiupdate describing the update that's available.
nsIWifiListener
netwerk/wifi/nsiwifilistener.idlscriptable this interface is implemented by clients interested in receiving notifications when the list of available wifi access points changes.
... 1.0 66 introduced gecko 1.9.1 inherits from: nsisupports last changed in gecko 1.9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0) method overview void onchange([array, size_is(alen)] in nsiwifiaccesspoint accesspoints, in unsigned long alen); void onerror(in long error); methods onchange() called when the list of available access points changes.
... void onchange( [array, size_is(alen)] in nsiwifiaccesspoint accesspoints, in unsigned long alen ); parameters accesspoints an array of nsiwifiaccesspoint objects representing all currently-available wifi access points.
nsIXULRuntime
it will always be available.
...it may not be available on all platforms, especially unusual processor or compiler combinations.
... may throw ns_error_not_available.
Index
55 thunderbird binaries branch, trunk, comm-central, thunderbird described below are three types of generally available thunderbird packages - releases, early preview releases, and nightly builds (including trunk development builds) - and their downloaded locations.
... additionally, ad-hoc packages called try builds are made available on an as-needed basis to allow for testing of certain patches, and are typically announced in related bug reports.
...mozilla's site also provides users with easier installation and will automatically make new versions available to users of your existing versions when you upload them.
Virtualenv
if you're running ubuntu, there is also an ubuntu package available: sudo apt-get install python-virtualenv virtualenv.py may also be run as standalone software with the same functionality.
... a python binary, as well as easy_install and pip are available in the bin/ subdirectory (or scripts on windows).
... the mozilla build system mostly uses .pth files instead of the more typically used python setup.py develop or python setup.py install to install python modules in to the virtualenv's python path due to performance concerns (although such functionality is available via the setup.py keyword in a packages.txt file).
CData
method overview methods available on all cdata objects cdata address() string tosource() string tostring() properties properties of all cdata objects property type description constructor ctype the data type of the cdata object, as a ctype.
... methods available on all cdata objects address() returns a cdata object of the pointer type ctypes.pointertype(dataobject.constructor) whose value points to the c object referred to by the object.
... methods available on string objects these methods must be called on objects that are arrays or pointers to 8-bit or 16-bit character or integer types, terminated by a null character.
Mozilla
also available are assorted tools that you can use when debugging.
...naturally, source code for all of these tools is also available.
...symbols are available for at least 30 previous days worth of nightly builds, and firefox releases from 2.0.0.4.
Streams - Plugins
normal mode: the browser uses the npp_write method to "push" stream data to the instance incrementally as it is available.
...the browser can write a smaller amount of data if desired or necessary (for example, if only 8k of data is available in a network buffer).
...npn_write should send as much data as is available.
UI Tour - Firefox Developer Tools
there are several context menu options available for individual files and folders or groups; typically viewed by right-clicking on the item.
... for files, the following context menu options are available: copy source uri copies the full identifier of the file to the clipboard.
... for folders and groups, the following context menu options are available: collapse all collapses all subfolders of the item.
Network request list - Firefox Developer Tools
a reset columns command is available on the context menu to reset the columns to their initial configuration.
... here is a list of all available columns: status: the http status code returned.
...in addition to the copy and save menu items for har in the context menu, similar menu items are available in the har dropdown menu in the toolbar, as well as an import menuitem.
about:debugging (before Firefox 68) - Firefox Developer Tools
tabs in firefox 49 onwards, a tabs page is available in about:debugging — this provides a complete list of all the debuggable tabs open in the current firefox instance.
... note that this feature isn't that immediately useful to debugging desktop tabs — you can open up a toolbox to debug a tab easily enough already — but this will become far more useful when about:debugging starts to support remote debugging, and this page can begin to list tabs available for debugging on mobile device browsers, simulators, etc.
... service workers can be unavailable for several reasons: if you are using a private browsing window.
ANGLE_instanced_arrays - Web APIs
webgl extensions are available using the webglrenderingcontext.getextension() method.
... availability: this extension is only available to webgl1 contexts.
... in webgl2, the functionality of this extension is available on the webgl2 context by default and the constants and methods are available without the "angle" suffix.
AuthenticatorAssertionResponse.signature - Web APIs
note: an authenticatorassertionresponse instance is available on publickeycredential.response after calling navigator.credentials.get().
... note: this property may only be used in top-level contexts and will not be available in an <iframe> for example.
...and available from authenticatorassertionresponse.clientdatajson).
AuthenticatorAttestationResponse.getTransports() - Web APIs
note: an authenticatorattestationresponse instance is available on publickeycredential.response after calling navigator.credentials.create().
... note: this method may only be used in top-level contexts and will not be available in an <iframe> for example.
... return value an array containing the different transports supported by the authenticator or nothing if this information is not available.of the processing of the different extensions by the client.
BasicCardResponse.billingAddress - Web APIs
}); once the payment flow has been triggered using paymentrequest.show() and the promise resolves successfully, the paymentresponse object available inside the fulfilled promise (instrumentresponse above) will have a paymentresponse.details property that will contain response details.
...fariandroid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetbillingaddresschrome 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 preference (needs to be set to true).
... webview android no support 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 preference (needs to be set to true).
BasicCardResponse.cardNumber - Web APIs
}); once the payment flow has been triggered using paymentrequest.show() and the promise resolves successfully, the paymentresponse object available inside the fulfilled promise (instrumentresponse above) will have a paymentresponse.details property that will contain response details.
...rasafariandroid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetcardnumberchrome 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 preference (needs to be set to true).
... webview android no support 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 preference (needs to be set to true).
BasicCardResponse.cardSecurityCode - Web APIs
}); once the payment flow has been triggered using paymentrequest.show() and the promise resolves successfully, the paymentresponse object available inside the fulfilled promise (instrumentresponse above) will have a paymentresponse.details property that will contain response details.
...riandroid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetcardsecuritycodechrome 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 preference (needs to be set to true).
... webview android no support 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 preference (needs to be set to true).
BasicCardResponse.cardholderName - Web APIs
}); once the payment flow has been triggered using paymentrequest.show() and the promise resolves successfully, the paymentresponse object available inside the fulfilled promise (instrumentresponse above) will have a paymentresponse.details property that will contain response details.
...fariandroid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetcardholdernamechrome 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 preference (needs to be set to true).
... webview android no support 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 preference (needs to be set to true).
BasicCardResponse.expiryMonth - Web APIs
}); once the payment flow has been triggered using paymentrequest.show() and the promise resolves successfully, the paymentresponse object available inside the fulfilled promise (instrumentresponse above) will have a paymentresponse.details property that will contain response details.
...asafariandroid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetexpirymonthchrome 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 preference (needs to be set to true).
... webview android no support 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 preference (needs to be set to true).
BasicCardResponse.expiryYear - Web APIs
}); once the payment flow has been triggered using paymentrequest.show() and the promise resolves successfully, the paymentresponse object available inside the fulfilled promise (instrumentresponse above) will have a paymentresponse.details property that will contain response details.
...rasafariandroid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetexpiryyearchrome 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 preference (needs to be set to true).
... webview android no support 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 preference (needs to be set to true).
BroadcastChannel - Web APIs
note: this feature is available in web workers.
... also available via the onmessage property.
... also available via the onmessageerror property.
CloseEvent - Web APIs
3000–3999 available for use by libraries and frameworks.
...available for registration at the iana via first-come, first-serve.
... 4000–4999 available for use by applications.
Content Index API - Web APIs
this allows users to discover and view what is available, whilst giving developers the ability to add and manage this content.
... interfaces contentindex the contentindex interface provides functionality to register content available offline.
... 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.styleSheetSets - Web APIs
the stylesheetsets read-only property returns a live list of all of the currently-available style sheet sets.
... syntax var sets = document.stylesheetsets; on return, sets is a list of style sheet sets that are available.
... example given an <ul> (list) element with the id "sheetlist", you can populate it with the names of all the available style sheet sets with code like this: let list = document.getelementbyid('sheetlist'); let sheets = document.stylesheetsets; list.innerhtml = ''; for (let i = 0; i < sheets.length; i++) { let item = document.createelement('li'); item.innerhtml = sheets[i]; list.appendchild(item); } notes the list of available style sheet sets is constructed by enumerating all the style sheets available for the document, in the order in which they're listed in the document.stylesheets attribute, adding the title of each style sheet that has a title to the list.
EXT_blend_minmax - Web APIs
webgl extensions are available using the webglrenderingcontext.getextension() method.
... availability: this extension is only available to webgl1 contexts.
... in webgl2, the functionality of this extension is available on the webgl2 context by default.
EXT_disjoint_timer_query.getQueryObjectEXT() - Web APIs
must be ext.query_result_ext or ext.query_result_available_ext.
... if pname is ext.query_result_available_ext: a glboolean indicating whether or not a query result is available.
... ext.endqueryext(ext.time_elapsed_ext); // at some point in the future, after returning control to the browser var available = ext.getqueryobjectext(query, ext.query_result_available_ext); var disjoint = gl.getparameter(ext.gpu_disjoint_ext); if (available && !disjoint) { // see how much time the rendering of the object took in nanoseconds.
EXT_sRGB - Web APIs
WebAPIEXT sRGB
webgl extensions are available using the webglrenderingcontext.getextension() method.
... availability: this extension is only available to webgl1 contexts.
... in webgl2, the functionality of this extension is available on the webgl2 context by default.
EXT_shader_texture_lod - Web APIs
webgl extensions are available using the webglrenderingcontext.getextension() method.
... availability: this extension is only available to webgl1 contexts.
... in webgl2, the functionality of this extension is available on the webgl2 context by default.
EXT_texture_filter_anisotropic - Web APIs
webgl extensions are available using the webglrenderingcontext.getextension() method.
... availability: this extension is available to both, webgl1 and webgl2 contexts.
... constants ext.max_texture_max_anisotropy_ext this is the pname argument to the gl.getparameter() call, and it returns the maximum available anisotropy.
EventTarget.addEventListener() - Web APIs
the available options are: capture a boolean indicating that events of this type will be dispatched to the registered listener before being dispatched to any eventtarget beneath it in the dom tree.
...available only in code running in xbl or in the chrome of the firefox browser.
... that means that the variables and constants available to the containing function are also available to the event handler when using an arrow function.
FontFaceSet.check() - Web APIs
WebAPIFontFaceSetcheck
the check() method of the fontfaceset returns whether all fonts in the given font list have been loaded and are available.
... syntax bool = afontfaceset.check(font); bool = afontfaceset.check(font, text); returns a boolean that is true if the font list is available parameters font: a font specification using the css value syntax, e.g.
... examples document.fonts.check("12px courier"); // returns true if the font courier is available at 12px document.fonts.check("12px myfont", "ß"); // returns true if the font 'myfont' has a ß character.
Audio() - Web APIs
if it's htmlmediaelement.have_future_data, there's enough data available to begin playback and play for at least a short time.
... if it's htmlmediaelement.have_enough_data, then there's enough data available that, given the current download rate, you should be able to play the audio through to the end without interruption.
...it is sent to the <audio> element when there's enough audio available to begin playback, although interruptions may occur).
HTMLFormElement - Web APIs
also available via the onformdata property.
... also available via the onreset property.
... also available via the onsubmit property.
HTMLImageElement.srcset - Web APIs
also available is a version of the image for use at a width of 2048 pixels (2048w).
... for more information on what image formats are available for use in the <img> element, see image file type and format guide.
...also provided is the word-break attribute, using the break-all value to tell the browser to wrap the string within the width available regardless of where in the string the wrap must occur.
HTMLVideoElement - Web APIs
htmlvideoelement.poster is a domstring that reflects the poster html attribute, which specifies an image to show while no video data is available.
... htmlvideoelement.videoheight read only returns an unsigned integer value indicating the intrinsic height of the resource in css pixels, or 0 if no media is available yet.
... htmlvideoelement.videowidth read only returns an unsigned integer value indicating the intrinsic width of the resource in css pixels, or 0 if no media is available yet.
Using microtasks in JavaScript with queueMicrotask() - Web APIs
while there have been tricks available that made it possible to enqueue microtasks in the past (such as by creating a promise that resolves immediately), the addition of the queuemicrotask() method adds a standard way to introduce a microtask safely and without tricks.
... the main reason to use microtasks is simply that: to ensure consistent ordering of tasks, even when results or data is available synchronously, but while simultaneously reducing the risk of user-discernible delays in operations.
... { this.data = this.cache[url]; this.dispatchevent(new event("load")); } else { fetch(url).then(result => result.arraybuffer()).then(data => { this.cache[url] = data; this.data = data; this.dispatchevent(new event("load")); }); } }; the problem introduced here is that by using a task in one branch of the if...else statement (in the case in which the image is available in the cache) but having promises involved in the else clause, we have a situation in which the order of operations can vary; for example, as seen below.
The HTML DOM API - Web APIs
this way, the structural features implemented by the node interface are also available to html elements, allowing them to be nested within each other, created and deleted, moved around, and so forth.
... deprecated html element interfaces htmlmarqueeelement obsolete html element interfaces htmlbasefontelement htmlfontelement htmlframeelement htmlframesetelement htmlisindexelement htmlmenuitemelement web app and browser integration interfaces these interfaces offer access to the browser window and document that contain the html, as well as to the browser's state, available plugins (if any), and various configuration options.
... beforeunloadevent hashchangeevent history location pagetransitionevent popstateevent web components interfaces these interfaces are used by the web components api to create and manage the available custom elements.
IDBFactory - Web APIs
note: this feature is available in web workers.
... idbfactory.databases a method that returns a list of all available databases, including their names and versions.
...ndor prefix: webkitchrome android full support 25firefox android full support 22opera android full support 14safari ios full support 8samsung internet android full support 1.5available in workerschrome full support yesedge full support ≤18firefox full support 37ie ?
IDBOpenDBRequest - Web APIs
note: this feature is available in web workers.
...also available via the onblocked property.
...also available via the onupgradeneeded property.
IDBRequest.error - Web APIs
WebAPIIDBRequesterror
note: this feature is available in web workers.
...for example, if the the request failed and the result is not available, the invalidstateerror exception is thrown.
... example the following example requests a given record title, onsuccess gets the associated record from the idbobjectstore (made available as objectstoretitlerequest.result), updates one property of the record, and then puts the updated record back into the object store.
IDBRequest.result - Web APIs
WebAPIIDBRequestresult
if the request failed and the result is not available, an invalidstateerror exception is thrown.
... note: this feature is available in web workers.
... syntax var myresult = request.result; value any example the following example requests a given record title, onsuccess gets the associated record from the idbobjectstore (made available as objectstoretitlerequest.result), updates one property of the record, and then puts the updated record back into the object store.
KeyboardEvent - Web APIs
warning: this attribute is deprecated; you should use keyboardevent.key instead, if available.
... warning: this attribute is deprecated; you should use keyboardevent.key instead, if available.
... warning: this attribute is deprecated; you should use keyboardevent.key instead, if available.
MIDIAccess - Web APIs
properties midiaccess.inputs read only returns an instance of midiinputmap which provides access to any available midi input ports.
... midiaccess.outputs read only returns an instance of midioutputmap which provides access to any available midi output ports.
... examples navigator.requestmidiaccess() .then(function(access) { // get lists of available midi controllers const inputs = access.inputs.values(); const outputs = access.outputs.values(); access.onstatechange = function(e) { // print information about the (dis)connected midi controller console.log(e.port.name, e.port.manufacturer, e.port.state); }; }); specifications specification status comment web midi api working draft initial definition.
MediaDeviceInfo.deviceId - Web APIs
desktopmobilechromeedgefirefoxinternet exploreroperasafariandroid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetdeviceidchrome full support 55notes full support 55notes notes for earlier versions, this interface is available through the adapter.js polyfilledge full support 12firefox full support 39ie no support noopera no support nonotes no support nonotes notes this property can be used in oper...
...a by using the adapter.js polyfill.safari no support nowebview android full support 55notes full support 55notes notes for earlier versions, this interface is available through the adapter.js polyfillchrome android full support 55notes full support 55notes notes for earlier versions, this interface is available through the adapter.js polyfillfirefox android full support 39opera android no support nonotes no support nonotes notes this property...
... can be used in opera by using the adapter.js polyfill.safari ios no support nosamsung internet android full support 6.0notes full support 6.0notes notes for earlier versions, this interface is available through the adapter.js polyfilllegend full support full support no support no supportsee implementation notes.see implementation notes.
MediaDeviceInfo.kind - Web APIs
desktopmobilechromeedgefirefoxinternet exploreroperasafariandroid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetkindchrome full support 55notes full support 55notes notes for earlier versions, this interface is available through the adapter.js polyfilledge full support 12firefox full support 39ie no support noopera no support nonotes no support nonotes notes this property can be used in oper...
...a by using the adapter.js polyfill.safari no support nowebview android full support 55notes full support 55notes notes for earlier versions, this interface is available through the adapter.js polyfillchrome android full support 55notes full support 55notes notes for earlier versions, this interface is available through the adapter.js polyfillfirefox android full support 39opera android no support nonotes no support nonotes notes this property...
... can be used in opera by using the adapter.js polyfill.safari ios no support nosamsung internet android full support 6.0notes full support 6.0notes notes for earlier versions, this interface is available through the adapter.js polyfilllegend full support full support no support no supportsee implementation notes.see implementation notes.
MediaDevices.enumerateDevices() - Web APIs
the mediadevices method enumeratedevices() requests a list of the available media input and output devices, such as microphones, cameras, headsets, and so forth.
...each object in the array describes one of the available media input and output devices.
...it simply outputs a list of the device ids, with their labels if available.
MediaRecorder.requestData() - Web APIs
the mediarecorder.requestdata() method (part of the mediarecorder api) is used to raise a dataavailable event containing a blob object of the captured media as it was when the method was called.
... raise a dataavailable event containing a blob of the currently captured data (the blob is available under the event's data attribute.) create a new blob and place subsequently captured data into it.
... capturemedia.onclick = function() { mediarecorder.requestdata(); // makes snapshot available of data so far // ondataavailable fires, then capturing continues // in new blob } ...
MediaRecorder.start() - Web APIs
each time a blob is filled up to that point (the timeslice duration or the end-of-media, if no slice duration was provided), a dataavailable event is sent to the mediarecorder with the recorded data.
...a final dataavailable event is sent to the mediarecorder, followed by a stop event.
... note: if the browser is unable to start recording or continue recording, it will raise a domerror event, followed by a mediarecorder.dataavailable event containing the blob it has gathered, followed by the mediarecorder.stop event.
Recording a media element - Web APIs
starting media recording the startrecording() function handles starting the recording process: function startrecording(stream, lengthinms) { let recorder = new mediarecorder(stream); let data = []; recorder.ondataavailable = event => data.push(event.data); recorder.start(); log(recorder.state + " for " + (lengthinms/1000) + " seconds..."); let stopped = new promise((resolve, reject) => { recorder.onstop = resolve; recorder.onerror = event => reject(event.name); }); let recorded = wait(lengthinms).then( () => recorder.state == "recording" && recorder.stop() ); return promise.all([ st...
... line 3 creates an empty array, data, which will be used to hold the blobs of media data provided to our ondataavailable event handler.
... line 5 sets up the handler for the dataavailable event.
Media Source API - Web APIs
media source extensions concepts and usage playing video and audio has been available in web applications without plugins for a few years now, but the basic features offered have really only been useful for playing single whole tracks.
...while there are other protocols available (such as http live streaming (hls)), dash has the most platform support.
... there are numerous available free and open source tools for transcoding content and preparing it for use with dash, dash file servers, and dash client libraries written in javascript.
MessagePort - Web APIs
note: this feature is available in web workers.
... also available via the onmessage property.
... also available via the onmessageerror property.
NavigatorConcurrentHardware - Web APIs
the navigatorconcurrenthardware mixin adds to the navigator interface features which allow web content to determine how many logical processors the user has available, in order to let content and web apps optimize their operations to best take advantage of the user's cpu.
... note: this feature is available in web workers.
...the browser may, however, choose to reduce the number in order to represent more accurately the number of workers that can run at once properties navigatorconcurrenthardware.hardwareconcurrency read only returns the number of logical processors which may be available to the user agent.
OES_element_index_uint - Web APIs
webgl extensions are available using the webglrenderingcontext.getextension() method.
... availability: this extension is only available to webgl1 contexts.
... in webgl2, the functionality of this extension is available on the webgl2 context by default.
OES_fbo_render_mipmap - Web APIs
webgl extensions are available using the webglrenderingcontext.getextension() method.
... availability: this extension is only available to webgl 1.
... in webgl2, the functionality of this extension is available in the webgl 2 context by default.
OES_texture_float - Web APIs
webgl extensions are available using the webglrenderingcontext.getextension() method.
... availability: this extension is only available to webgl1 contexts.
... in webgl2, the functionality of this extension is available on the webgl2 context by default.
OES_texture_half_float - Web APIs
webgl extensions are available using the webglrenderingcontext.getextension() method.
... availability: this extension is only available to webgl1 contexts.
... in webgl2, the functionality of this extension is available on the webgl2 context by default.
OES_vertex_array_object - Web APIs
webgl extensions are available using the webglrenderingcontext.getextension() method.
... availability: this extension is only available to webgl1 contexts.
... in webgl2, the functionality of this extension is available on the webgl2 context by default and the constants and methods are available without the "oes" suffix.
OffscreenCanvas.getContext() - Web APIs
this context is only available on browsers that implement webgl version 1 (opengl es 2.0).
...this context is only available on browsers that implement webgl version 2 (opengl es 3.0).
...this option is only available, if the flag gfx.canvas.willreadfrequently.enable is set to true (which, by default, is only the case for b2g/firefox os).
PaymentRequest.prototype.id - Web APIs
WebAPIPaymentRequestid
const details = { id: "super-store-order-123-12312", total: { label: "total due", amount: { currency: "usd", value: "65.00" }, }, }; const request = new paymentrequest(methoddata, details); console.log(request.id); // super-store-order-123-12312 the id is then also available in the paymentresponse returned from the show() method, but under the requestid attribute.
...ariandroid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetidchrome 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 preference (needs to be set to true).
... 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 preference (needs to be set to true).
PhotoCapabilities.redEyeReduction - Web APIs
never red-eye reduction is not available.
... always red-eye reduction is available in the source and it is always turned on.
... controllable red-eye reduction is available in the source and it is configurable via the photosettings object.
RTCIceTransport - Web APIs
also available through the ongatheringstatechange event handler property.
... also available using the onselectedcandidatepairchange event handler property.
... also available through the onstatechange event handler property.
RTCOutboundRtpStreamStats.firCount - Web APIs
available only on video media.
...this statistic is available only for video tracks.
... the higher fircount is, the more often frames were dropped, which may be an indication that the media's bit rate is too high for the available bandwidth, or that the receiving device is overburdened and is therefore unable to process the incoming data.
RTCStatsReport - Web APIs
the rtcrtpreceiver and rtcrtpsender versions of getstats() specifically only return statistics available to the incoming or outgoing stream on which you call them.
...this report isn't available if there are no connected peers.
...this information considers only the outbound rtp stream, so any data which requires information about the state of the remote peers (such as round-trip time) is unavailable, since those values can't be computed without knowing about the other peers' states.
SVGAnimationElement - Web APIs
also available via the onbegin property.
... also available via the onend property.
... also available via the onrepeat property.
ServiceWorkerContainer - Web APIs
also available via the serviceworkercontainer.oncontrollerchange property.
... also available via the serviceworkercontainer.onerror property.
...via a messageport.postmessage() call.) also available via the serviceworkercontainer.onmessage property.
SpeechSynthesisErrorEvent.error - Web APIs
synthesis-unavailable the operation couldn't be completed at this time because no synthesis engine was available (for example, the user may need to install or configure a synthesis engine.) synthesis-failed the operation failed because the synthesis engine raised an error.
... language-unavailable no appropriate voice was available for the language set in speechsynthesisutterance.lang.
... voice-unavailable the voice set in speechsynthesisutterance.voice was not available.
StorageEstimate.quota - Web APIs
the storageestimate dictionary's quota property is a conservative approximation of how much storage is allotted to the origin or web app that called storagemanager.estimate(); there may be more space available, but there will not be less.
... syntax quota = storageestimate.quota; value a numeric value specifying an approximation of the total amount of storage space available for use by the application.
... html content <label> you’re currently using about <output id="percent"> </output>% of your available storage.
StorageEstimate.usage - Web APIs
the storageestimate dictionary's usage property is a conservative approximation of how much storage is allotted to the origin or web app that called storagemanager.estimate(); there may be more space available, but there will not be less.
... syntax usage = storageestimate.usage; value a numeric value specifying an approximation of the total amount of storage space available for use by the application.
... html content <label> you’re currently using about <output id="percent"> </output>% of your available storage.
StorageEstimate - Web APIs
properties quota secure context a numeric value in bytes which provides a conservative approximation of the total storage the user's device or computer has available for the site origin or web app.
... it's possible that there's more than this amount of space available though you can't rely on that being the case.
... usage secure context a numeric value in bytes approximating the amount of storage space currently being used by the site or web app, out of the available space as indicated by quota.
Using readable streams - Web APIs
this mixin is implemented by both the request and response interfaces, so it is available on both, although consuming the stream of a response body is perhaps a bit more obvious.
...in the pump() function seen above we first invoke read(), which returns a promise containing a results object — this has the results of our read in it, in the form { done, value }: return reader.read().then(({ done, value }) => { the results can be one of three different types: if a chunk is available to read, the promise will be fulfilled with an object of the form { value: thechunk, done: false }.
...we’ll explain bytestreams in a separate future article, once they are available in browsers.
TrackEvent - Web APIs
the trackevent interface, which is part of the html dom specification, is used for events which represent changes to a set of available tracks on an html media element; these events are addtrack and removetrack.
... properties trackevent is based on event, so properties of event are also available on trackevent objects.
... methods trackevent has no methods of its own; however, it is based on event, so it provides the methods available on event objects.
WEBGL_compressed_texture_astc - Web APIs
webgl extensions are available using the webglrenderingcontext.getextension() method.
... availability: astc compression is typically available on mali arm gpus, intel gpus, and nividia tegra chips.
... this extension is available to both, webgl1 and webgl2 contexts.
WEBGL_compressed_texture_atc - Web APIs
webgl extensions are available using the webglrenderingcontext.getextension() method.
... availability: atc compression is typically available on mobile devices with adreno gpus, that are currently only built into qualcomm snapdragon devices.
... this extension is available to both, webgl1 and webgl2 contexts.
WEBGL_compressed_texture_pvrtc - Web APIs
webgl extensions are available using the webglrenderingcontext.getextension() method.
... availability: pvrtc is typically only available on mobile devices with powervr chipsets.
... this extension is available to both, webgl1 and webgl2 contexts.
WEBGL_depth_texture - Web APIs
webgl extensions are available using the webglrenderingcontext.getextension() method.
... availability: this extension is only available to webgl1 contexts.
... in webgl2, the functionality of this extension is available on the webgl2 context by default.
WebGLQuery - Web APIs
by default, occlusion queries and primitive queries are available.
...disjoint timer queries are available with the ext_disjoint_timer_query extension only.
...webglquery objects are not available in webgl 1.
WebGLRenderingContext.getFramebufferAttachmentParameter() - Web APIs
when using a webgl 2 context, the following values are available additionally: gl.draw_framebuffer: equivalent to gl.framebuffer.
... when using a webgl 2 context, the following values are available additionally: gl.color_attachment1 gl.color_attachment2 gl.color_attachment3 gl.color_attachment4 gl.color_attachment5 gl.color_attachment6 gl.color_attachment7 gl.color_attachment8 gl.color_attachment9 gl.color_attachment10 gl.color_attachment11 gl.color_attachment12 gl.color_attachment13 gl.color_attachment14 gl.color...
... when using a webgl 2 context, the following values are available additionally: gl.framebuffer_attachment_alpha_size gl.framebuffer_attachment_blue_size gl.framebuffer_attachment_color_encoding gl.framebuffer_attachment_component_type gl.framebuffer_attachment_depth_size gl.framebuffer_attachment_green_size gl.framebuffer_attachment_red_size gl.framebuffer_attachment_stencil_size gl.framebuffer_attachment_texture_layer ...
Data in WebGL - Web APIs
WebAPIWebGL APIData
glsl data types <<document the basic types, vectors, etc; see data type (glsl) on the khronos webgl wiki>> glsl variables there are three kinds of "variable" or data storage available in glsl, each of which with its own purpose and use cases: attributes, varyings, and uniforms.
... attributes attributes are glsl variables which are only available to the vertex shader (as variables) and the javascript code.
... <<how to use>> uniforms uniforms are set by the javascript code and are available to both the vertex and fragment shaders.
WebGL best practices - Web APIs
in browsers where it's available, the khr_parallel_shader_compile extension provides a non-blocking completion_status query.
...} this technique may not work in all applications, for example those which require programs to be immediately available for rendering.
... if highp float is available, gl_fragment_precision_high will be defined as 1.
WebGL model view projection - Web APIs
note: this article is also available as an mdn content kit.
... it also uses a collection of utility functions available under the mdn global object.
... note: the code for each webglbox example is available in this github repo and is organized by section.
Taking still photos with WebRTC - Web APIs
<div class="camera"> <video id="video">video stream not available.</video> <button id="startbutton">take photo</button> </div> this is straightforward, and we'll see how it ties together when we get into the javascript code.
... if there isn't a valid image available (that is, the width and height are both 0), we clear the contents of the captured frame box by calling clearphoto().
...when the promise is fulfilled with an array of mediadeviceinfo objects describing the available devices, find the ones that you want to allow and specify the corresponding deviceid or deviceids in the mediatrackconstraints object passed into getusermedia().
Fundamentals of WebXR - Web APIs
fortunately, webgl and the various webgl-based frameworks and libraries are available to make it much easier to deal with all of that.
...in webxr, the primary select and squeeze actions are directly supported using events, while other controls are available through a special webxr-specific implementation of the gamepad object.
... there are two vr session modes available in webxr: inline and immersive.
WebXR application life cycle - Web APIs
make sure the webxr api is available; if navigator.xr is undefined, you can assume the user's browser and/or device doesn't support webxr.
... call navigator.xr.issessionsupported(), specifying the webxr experience mode you want to provide: inline, immersive-vr, or immersive-ar, in order to determine whether or not the type of session you wish to provide is available.
... if the session type you want to use is available, provide the appropriate interface to the user to allow them to activate it.
Using IIR filters - Web APIs
it includes some different coefficient values for different lowpass frequencies — you can change the value of the filternumber constant to a value between 0 and 3 to check out the different available effects.
...and this is where the iir filter node is useful — you can create your own if none of the alaready available settings is right for what you want.
...}, false); frequency response we only have one method available on iirfilternode instances, getfrequencyresponse(), this allows us to see what is happening to the frequencies of the audio being passed into the filter.
Web Audio API - Web APIs
we also have other tutorials and comprehensive reference material available that covers all features of the api.
... audioworklet the audioworklet interface is available through the audiocontext object's audioworklet, and lets you add modules to the audio worklet to be executed off the main thread.
...this article discusses tools available to help you do that.using iir filtersthat's it for our iirfilter demo.
window.dump() - Web APIs
WebAPIWindowdump
dump() is also available to xpcom components implemented in javascript, even though window is not the global object in components.
... it is also explicitly made available in sandboxes.
...precompiled binaries are available in the zipped archive https://github.com/matthewkastor/redirector/archive/master.zip under redirector-master\gecko\console redirector\bin\release copy all the dll's and the exe to wherever you want.
WorkerNavigator - Web APIs
such an object is initialized for each worker and is available via the workerglobalscope.navigator property obtained by calling window.self.navigator.
... navigator.storageread only returns a storagemanager interface for managing persistance permissions and estimating available storage.
... navigatorconcurrenthardware.hardwareconcurrencyread only returns the number of logical processor cores available.
HTML in XMLHttpRequest - Web APIs
limitations to discourage the synchronous use of xmlhttprequest, html support is not available in the synchronous mode.
... also, html support is only available if the responsetype property has been set to "document".
...first, the detection result is obtained asynchronously, because html support is only available in the asynchronous mode.
XRInputSourceArray - Web APIs
in addition to being able to access the input sources in the list using standard array notation (that is, with index numbers insize square brackets), methods are available to allow the use of iterators and the foreach() method is also available.
... properties the following properties are available on xrinputsourcearray objects.
... methods the following methods are available on xrinputsourcearray objects.
XRInputSourcesChangeEvent - Web APIs
the webxr device api interface xrinputsourceschangeevent is used to represent the inputsourceschange event sent to an xrsession when the set of available webxr input controllers changes.
... event types inputsourceschange delivered to the xrsession when the set of input devices available to it changes.
... examples the following example shows how to set up an event handler which uses inputsourceschange events to detect newly-available pointing devices and to load their models in preparation to display them in the next animation frame.
XRPermissionDescriptor.requiredFeatures - Web APIs
this ensures that permissions are checked as applicable to ensure that those features are available upon request.
... syntax xrpermissiondescriptor = { mode: xrsessionmode, requiredfeatures: reqfeaturelist, optionalfeatures: optfeaturelist }; xrpermissiondescriptor.requiredfeatures = reqfeaturelist; reqfeaturelist = xrpermissiondescriptor.requiredfeatures; value an array of strings indicating the webxr features which must be available for use by the app or site.
... the permissions check will be performed in such a manner as to verify that all features in the list are available for use with the user's permission.
XRPermissionDescriptor - Web APIs
the available features are the same as those used by xrsessioninit; see default features in xrsessioninit for further information.
... if the permissions api is found to be available (by checking to see if navigator.permissions is defined), its query() method is called, specifying the permission descriptor we've established, xrpermissiondesc.
... if the permissions api isn't available at all, this example simply assumes that webxr will report an appropriate error if permission isn't available, and tries to start up the webxr session using the same setupxr() function called by the granted case.
XRSessionMode - Web APIs
inline sessions can be presented in either mono or stereo mode, and may or may not have viewer tracking available.
... usage notes the xrsessionmode type indicates the values that can be specified when calling xr.issessionsupported() to determine whether or not the specified session type is supported and available to be used, and by requestsession() to attempt to open a new webxr session.
...browsers may support either or both of these modes, but if webxr is available, the inline mode is always supported.
Cognitive accessibility - Accessibility
all information, including structure and relationships conveyed through the presentation, should be available in a form that can be perceived by all users to achieve this goal.
... current location is available users should be able to orient themselves within a site or application.
... provide help context-sensitive help should be made available.
Mobile accessibility checklist - Accessibility
colour colour contrast must comply with wcag 2.1 aa level requirements: contrast ratio of 4.5:1 for normal text (less than 18 point or 14 point bold.) contrast ratio of 3:1 for large text (at least 18 point or 14 point bold.) information conveyed via colour must be also available by other means too (underlined text for links, etc.) visibility content hiding techniques such as zero opacity, z-index order and off-screen placement must not be used exclusively to handle visibility.
... all user interface components with visible text (or image of text) as labels must have the same text available in the programmatic name of the component.
... for touch events, at least one of the following must be true (wcag 2.1: pointer cancellation): the down-event should not be used to trigger any action the action is triggered on the up event and an option to abort the action before its completion is available or an option to undo the action after its completion the up-event will undo any action that was triggered on a down event it is essential to trigger the action on the down event.
Web accessibility for seizures and physical reactions - Accessibility
the epilepsy foundation's article "take advantage of media queries with <style> in setting up media queries, you are enabling controls by the user; these controls are made available in the browser or in the os.
... button { animation: vibrate 0.3s linear infinite both; } @media (prefers-reduced-motion: reduce) { button { animation: none; } } prefers-color-scheme this can be useful if the ambient light api is not available.
... @media (prefers-color-scheme: dark) { /* adust styles for dark mode */ } window​.match​media() there is a powerful tool available to developers via window.matchmedia().
Understandable - Accessibility
a <span> if no semantic element is available) to set an appropriate language for it.
... a mechanism is available for confirming and correcting information before final submission.
... 3.3.5 context-sensitive help is available (aaa) provide instructions and other appropriate cues in context to aid form completion and submission.
@font-face - CSS: Cascading Style Sheets
to provide the browser with a hint as to what format a font resource is — so it can select a suitable one — it is possible to include a format type inside a format() function: src: url(ideal-sans-serif.woff) format("woff"), url(basic-sans-serif.ttf) format("truetype"); the available types are: "woff", "woff2", "truetype", "opentype", "embedded-opentype", and "svg".
... by allowing authors to provide their own fonts, @font-face makes it possible to design content without being limited to the so-called "web-safe" fonts (that is, the fonts which are so common that they're considered to be universally available).
... it's common to use both url() and local() together, so that the user's installed copy of the font is used if available, falling back to downloading a copy of the font if it's not found on the user's device.
any-hover - CSS: Cascading Style Sheets
WebCSS@mediaany-hover
the any-hover css media feature can be used to test whether any available input mechanism can hover over elements.
... none none of the available input mechanism(s) can hover conveniently, or there is no pointing input mechanism.
... hover one or more available input mechanisms can conveniently hover over elements.
scripting - CSS: Cascading Style Sheets
WebCSS@mediascripting
the scripting css media feature can be used to test whether scripting (such as javascript) is available.
... none scripting is completely unavailable on the current document.
... examples html <p class="script-none">you do not have scripting available.
@media - CSS: Cascading Style Sheets
WebCSS@media
name summary notes any-hover does any available input mechanism allow the user to hover over elements?
... any-pointer is any available input mechanism a pointing device, and if so, how accurate is it?
...javascript) is available added in media queries level 5.
Detecting CSS animation support - CSS: Cascading Style Sheets
however, there are likely to be times when this feature isn't available, and you may wish to handle that case by using javascript code to simulate a similar effect.
... testing for css animation support this code will check to see if css animation support is available: var animation = false, animationstring = 'animation', keyframeprefix = '', domprefixes = 'webkit moz o ms khtml'.split(' '), pfx = '', elem = document.createelement('div'); if( elem.style.animationname !== undefined ) { animation = true; } if( animation === false ) { for( var i = 0; i < domprefixes.length; i++ ) { if( elem.style[ domprefixes[i] + 'animationname' ] !== undefined ) { pfx = domprefixes[ i ]; animationstring = pfx + 'animation'; keyframeprefix = '-' + pfx.tolowercase() + '-'; animation = true; break; } } } for starters w...
... once this code is finished running, the value of animation will be false if css animation support isn't available, or it will be true.
Typical use cases of Flexbox - CSS: Cascading Style Sheets
space distributed within the items a different pattern for navigation would be to distribute the available space within the items themselves, rather than create space between them.
...as this is the only item that can grow, it takes up all available space in the flex container and pushes the footer to the bottom.
...this means we have a pair of fields, with the text field growing and shrinking as the available space changes.
box-flex - CSS: Cascading Style Sheets
WebCSSbox-flex
if it is greater than 0, the box grows to fill a proportion of the available space.
... notes the containing box allocates the available extra space in proportion to the flex value of each of the content elements.
... if only one content element has nonzero flex, then it grows to fill the available space.
fit-content() - CSS: Cascading Style Sheets
the fit-content() css function clamps a given size to an available size according to the formula min(maximum size, max(minimum size, argument)).
... <percentage> a percentage relative to the available space in the given axis.
...otherwise it is relative to the available inline size or block size of the laid out box depending on the writing mode.
position - CSS: Cascading Style Sheets
WebCSSposition
however, non-replaced, absolutely positioned elements can be made to fill the available vertical space by specifying both top and bottom and leaving height unspecified (that is, auto).
... they can likewise be made to fill the available horizontal space by specifying both left and right and leaving width as auto.
... except for the case just described (of absolutely positioned elements filling the available space): if both top and bottom are specified (technically, not auto), top wins.
Media events - Developer guides
canplay sent when enough data is available that the media can be played, at least for a couple of frames.
... mozaudioavailable sent when an audio buffer is provided to the audio layer for processing; the buffer contains raw audio samples that may or may not already have been played by the time you receive the event.
...information about the current amount of the media that has been downloaded is available in the media element's buffered attribute.
Rich-Text Editing in Mozilla - Developer guides
note: this document is out-of-date; you are advised to consult the more up-to-date document available at making content editable.
...the most basic keyboard commands such as copy and paste are available, all others need to be implemented by the website.
...they are not available at this time.
Index - Developer guides
WebGuideIndex
6 audio and video delivery audio, guide, html, html5, media, video whether we are dealing with pre-recorded audio files or live streams, the mechanism for making them available through the browser's <audio> and <video> elements remains pretty much the same.
... 25 touch events (mozilla experimental) dom the experimental touch events api described on this page was available from gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) to gecko/firefox 17.
... there are several tools available to check the performance of a website or blog.
<img>: The Image Embed element - HTML: Hypertext Markup Language
WebHTMLElementimg
a complete guide to image formats supported by web browsers is available.
... omitting alt altogether indicates that the image is a key part of the content and no textual equivalent is available.
... the user agent selects any of the available sources at its discretion.
<input type="date"> - HTML: Hypertext Markup Language
WebHTMLElementinputdate
if you use min and max to restrict the available dates (see setting maximum and minimum dates), supporting browsers will display an error if you try to submit a date that is out of bounds.
...february), // this part of the code ensures that the highest day available // is selected, rather than showing a blank dayselect if(dayselect.value === "") { dayselect.value = previousday - 1; } if(dayselect.value === "") { dayselect.value = previousday - 2; } if(dayselect.value === "") { dayselect.value = previousday - 3; } } } function populateyears() { // get this year as a number var date = new date(); var yea...
...r = date.getfullyear(); // make this year, and the 100 years before it available in the year <select> for(var i = 0; i <= 100; i++) { var option = document.createelement('option'); option.textcontent = year-i; yearselect.appendchild(option); } } // when the month or year <select> values are changed, rerun populatedays() // in case the change affected the number of available days yearselect.onchange = function() { populatedays(monthselect.value); } monthselect.onchange = function() { populatedays(monthselect.value); } //preserve day selection var previousday; // update what day has been set to previously // see end of populatedays() for usage dayselect.onchange = function() { previousday = dayselect.value; } note: remember that some years have 53 weeks in them (see wee...
<script>: The Script element - HTML: Hypertext Markup Language
WebHTMLElementscript
asynchtml5 for classic scripts, if the async attribute is present, then the classic script will be fetched in parallel to parsing and evaluated as soon as it is available.
... for module scripts, if the async attribute is present then the scripts and all their dependencies will be executed in the defer queue, therefore they will get fetched in parallel to parsing and evaluated as soon as they are available.
...if a higher-level policy is not available, the empty string is treated as being equivalent to no-referrer-when-downgrade.
<video>: The Video Embed element - HTML: Hypertext Markup Language
WebHTMLElementvideo
if this attribute isn't specified, nothing is displayed until the first frame is available, then the first frame is shown as the poster frame.
...also available is a guide to audio codecs that can be used with them.
...lector("video"); elem.audiotracklist.onaddtrack = function(event) { trackeditor.addtrack(event.track); }; elem.audiotracklist.onremovetrack = function(event) { trackeditor.removetrack(event.track); }; this code watches for audio tracks to be added to and removed from the element, and calls a hypothetical function on a track editor to register and remove the track from the editor's list of available tracks.
HTML elements reference - HTML: Hypertext Markup Language
WebHTMLElement
there's a great deal of further information about this available in the html forms guide.
... <datalist> the html <datalist> element contains a set of <option> elements that represent the permissible or recommended options available to choose from within other controls.
... <input> the html <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.
Preloading content with rel="preload" - HTML: Hypertext Markup Language
this ensures they are available earlier and are less likely to block the page's render, improving performance.
...e): <head> <meta charset="utf-8"> <title>js and css preload example</title> <link rel="preload" href="style.css" as="style"> <link rel="preload" href="main.js" as="script"> <link rel="stylesheet" href="style.css"> </head> <body> <h1>bouncing balls</h1> <canvas></canvas> <script src="main.js" defer></script> </body> here we preload our css and javascript files so they will be available as soon as they are required for the rendering of the page later on.
... this makes it much more likely that the font will be available for the page render, cutting down on fout (flash of unstyled text).
Browser detection using the user agent - HTTP
feature detection feature detection is where you don't try to figure out which browser is rendering your page, but instead, you check to see if the specific feature you need is available.
... it assumed that the lookbehind feature would always be available if the browser was chrome.
...however, internet explorer was such a special little wasp exception prior to version 9 that it was very easy to detect the browser based upon the browser-specific features available.
Cross-Origin Resource Sharing (CORS) - HTTP
WebHTTPCORS
cors failures result in errors, but for security reasons, specifics about the error are not available to javascript.
...since this is a simple get request, it is not preflighted, but the browser will reject any response that does not have the access-control-allow-credentials: true header, and not make the response available to the invoking web content.
...:34:53 gmt vary: accept-encoding, origin content-encoding: gzip content-length: 106 keep-alive: timeout=2, max=100 connection: keep-alive content-type: text/plain [text/plain payload] although line 10 contains the cookie destined for the content on http://bar.other, if bar.other did not respond with an access-control-allow-credentials: true (line 17) the response would be ignored and not made available to web content.
HTTP Messages - HTTP
WebHTTPMessages
there are numerous request headers available.
... there are numerous response headers available.
...no changes are needed in the apis used by web developers to utilize http frames; when available in both the browser and the server, http/2 is switched on and used.
Redirections in HTTP - HTTP
others may or may not be changed to get.[2] the web page is temporarily unavailable for unforeseen reasons.
... 307 temporary redirect method and body not changed the web page is temporarily unavailable for unforeseen reasons.
... better than 302 when non-get operations are available on the site.
Closures - JavaScript
the displayname() function is an inner function that is defined inside init() and is available only within the body of the init() function.
...the word lexical refers to the fact that lexical scoping uses the location where a variable is declared within the source code to determine where that variable is available.
...for this reason, when myfunc is invoked, the variable name remains available for use, and "mozilla" is passed to alert.
JavaScript data types and data structures - JavaScript
this article attempts to list the built-in data structures available in javascript and what properties they have.
... to check for the largest available value or smallest available value within ±infinity, you can use the constants number.max_value or number.min_value.
...this has the downside that the data is available to any script running in the same context.
Grammar and types - JavaScript
for example: var n = null; console.log(n * 32); // will log 0 to the console variable scope when you declare a variable outside of any function, it is called a global variable, because it is available to any other code in the current document.
... when you declare a variable within a function, it is called a local variable, because it is available only within that function.
... in es2015, template literals are also available.
Warning: Date.prototype.toLocaleFormat is deprecated - JavaScript
the function is no longer available in firefox 58+.
... examples deprecated syntax the date.prototype.tolocaleformat method is deprecated and will be removed (no cross-browser support, available in firefox only).
...märz 2017" alternative standard syntax using the ecmascript intl api the ecma-402 (ecmascript intl api) standard specifies standard objects and methods that enable language sensitive date and time formatting (available in chrome 24+, firefox 29+, ie11+, safari10+).
delete operator - JavaScript
if you want to use an ordered associative array in a cross-browser environment, use a map object if available, or simulate this structure with two separate arrays (one for the keys and the other for the values), or build an array of single-property objects, etc.
...delete employeedetails; // returns true function f() { var z = 44; // delete doesn't affect local variable names delete z; // returns false } delete and the prototype chain in the following example, we delete an own property of an object while a property with the same name is available on the prototype chain: function foo() { this.bar = 10; } foo.prototype.bar = 42; var foo = new foo(); // foo.bar is associated with the // own property.
...delete foo.bar; // returns true // foo.bar is still available in the // prototype chain.
Statements and declarations - JavaScript
others debugger invokes any available debugging functionality.
... if no debugging functionality is available, this statement has no effect.
... export used to export functions to make them available for imports in external modules, and other scripts.
JavaScript
the complete modules available there are as follows: javascript first steps answers some fundamental questions such as "what is javascript?", "what does it look like?", and "what can it do?", along with discussing key javascript features such as variables, strings, numbers, and arrays.
... javascript data structures overview of available data structures in javascript.
...the first 40 lessons are free, and the complete course is available for a small one-time payment.
Performance fundamentals - Web Performance
then when the data is needed later, hopefully it's already available and the application doesn't have to wait.
...for example, the financial times uses a library called fastclick for that purpose, which is available for you to use.
...simply downloading large files can take longer, even over a fast network, because mobile hardware is sometimes too slow to take advantage of all the available bandwidth.
Web Performance
it is important to minimize the loading and response times and add additional features to conceal latency by making the experience as available and interactive as possible, as soon as possible, while asynchronously loading in the longer tail parts of the experience.
...this article explains the role of bandwidth in media-rich internet applications, how you can measure it, and how you can optimize applications to make the best use of available bandwidth.
...of course, since this feature isn't available everywhere, we'll also show you how you can configure your tooling to use this feature in a widely compatible fashion.
Privacy, permissions, and information security
security and privacy defined before we go into any depth about the various security and privacy features available to users on the web, let's define some important terms.
... personal and private information <what kind of information is private or personal?> privacy risks <what are ways personal information can be gotten by third parties?> fingerprinting fingerprinting is a technique used to gather a variety of information that's made available by a user's browser and collating it until it becomes possible to uniquely identify that user's browser.
... modern browsers take steps to help prevent fingerprinting-based attacks by either not allowing information to be accessed or, where the information must be made available, by introducing variations that prevent it from being used for identification purposes.
Progressive web apps (PWAs)
most of the features related to a pwa such as geolocation and even service workers are available only once the app has been loaded using https.
... documentation <-- the temporary automatic list below will be replaced soon --> add to home screenadd to home screen (or a2hs for short) is a feature available in modern browsers that allows a user to "install" a web app, ie.
...but instead of relying only on user actions, we can do more, using push messages and notifications to automatically re-engage and deliver new content whenever it is available.introduction to progressive web appsthis article provides an introduction to progressive web apps (pwas), discussing what they are and the advantages they offer over regular web apps.making pwas work offline with service workersin this article we took a simple look at how you can make your pwa work offline with service workers.
externalResourcesRequired - SVG: Scalable Vector Graphics
in particular, if an element sets externalresourcesrequired="true", then all style sheets must be available since any style sheet might affect the rendering of that element.
...if an external resource is not available, progressive rendering is suspended, the document's svgload event is not fired and the animation timeline does not begin until that resource and all other required resources become available, have been parsed and are ready to be rendered.
...document rendering can proceed even if external resources are unavailable to the current element and its descendants.
Features restricted to secure contexts - Web security
this reference lists the web platform features available only in secure contexts — see secure contexts for a definition and more details.
... current features available only in secure contexts this section lists all the apis available only in secure contexts, along with browser versions the limitation was introduced in, as appropriate.
... getusermedia() restricted to secure contexts in chrome 47 temporary access available only (users cannot choose "remember this decision" in the permission request dialog).
Introduction to using XPath in JavaScript - XPath
there is a section in the appendix which contains a full list of the available constants.
...this adapter works like the dom level 3 method lookupnamespaceuri on nodes in resolving the namespaceuri from a given prefix using the current information available in the node's hierarchy at the time lookupnamespaceuri is called.
... <person> <name first="george" last="bush" /> <address street="1600 pennsylvania avenue" city="washington" country="usa"/> <phonenumber>202-456-1111</phonenumber> </person> <person> <name first="tony" last="blair" /> <address street="10 downing street" city="london" country="uk"/> <phonenumber>020 7925 0918</phonenumber> </person> </people> to make the contents of the xml document available within the extension, we create an xmlhttprequest object to load the document synchronously, the variable xmldoc will contain the document as an xmldocument object against which we can use the evaluate method javascript used in the extensions xul/js documents.
Cross-domain Content Scripts - Archive of obsolete content
this feature is currently only available for content scripts, not for page scripts included in html files shipped with your add-on.
...); }); function getsummary(forecast) { return forecast.regionalfcst.fcstperiods.period[0].paragraph[0].$; } finally, we need to add the "cross-domain-content" key to "package.json": "permissions": { "cross-domain-content": ["http://datapoint.metoffice.gov.uk"] } content permissions and unsafewindow if you use "cross-domain-content", then javascript values in content scripts will not be available from pages.
Interacting with page scripts - Archive of obsolete content
expose objects to page scripts until firefox 30, you could use unsafewindow to perform the reverse procedure, and make objects defined in content scripts available to page scripts: // content-script.js unsafewindow.contentscriptobject = {"greeting" : "hello from add-on"}; // page-script.js var button = document.getelementbyid("show-content-script-var"); button.addeventlistener("click", function() { // access object defined by content script console.log(window.contentscriptobject.greeting); // "hello from add-on" }, false); after firefox 30, y...
...this means that you can't expose a function to a page script using cloneinto(), and if you clone an object into the page script scope, its methods will not be available to the page script.
self - Archive of obsolete content
this article documents the self object that is available as a global in content scripts.
...if you do this, the data is available to the content script in the options property of self: // main.js const tabs = require("sdk/tabs"); tabs.open({ url: "./page.html", onready: function(tab) { tab.attach({ contentscriptfile: "./content-script.js", contentscriptoptions: { a: "blah" } }); } }); // content-script.js alert(self.options.a); port you can use port to receive messages from, an...
Communicating using "port" - Archive of obsolete content
in the content script the port object is available as a property of the global self object.
... this example uses the action button api, which is only available from firefox 29 onwards.
panel - Archive of obsolete content
getting user input note: this example uses the action button api, which is only available from firefox 29 onwards.
... scripting trusted panel content note: this example uses the action button api, which is only available from firefox 29 onwards.
simple-storage - Archive of obsolete content
this module works similarly to dom storage on the web, except that it's only available for add-ons.
... quotas the simple storage available to your add-on is limited.
platform/xpcom - Archive of obsolete content
in this example the helloworld component is available to javascript only, so we use the technique documented under the "using wrappedjsobject" section of how to build an xpcom component in javascript.
... implementing xpcom services the xpcom module exports a class called service which you can use to define xpcom services, making them available to all xpcom users.
util/deprecate - Archive of obsolete content
this function is mostly used to flag usage of deprecated functions, that are still available but which we intend to remove in a future release.
... this function is mostly used to flag usage of deprecated functions that are no longer available.
jpm-mobile - Archive of obsolete content
after that you can install jpm just as you would any other npm package: npm install jpm-mobile -g depending on your setup, you might need to run this as an administrator: sudo npm install jpm-mobile -g at the command prompt, type: jpm-mobile you should see a screen summarizing the available jpm-mobile commands.
... note that unlike cfx, jpm-mobile is available in every command prompt you start, as long as you installed it with the -g flag.
Logging - Archive of obsolete content
because dom objects aren't available to the main add-on code, the sdk provides its own global console object with most of the same methods as the dom console, including methods to log error, warning, or informational messages.
...it is automatically made available to you.
Using third-party modules (jpm) - Archive of obsolete content
the add-on sdk is extensible by design: you can use the modules that ship inside firefox, but you can also create your own modules and make them available for anyone else to use.
... before the jpm tool was available, there wasn't any package manager for these community-developed modules, so it wasn't obvious where to find community-developed modules, or how to install and update them.
Preferences - Archive of obsolete content
note: this article doesn't cover all available methods for manipulating preferences; please refer to the xpcom reference pages listed in resources section for the complete list of methods.
... you can see the list of preferences in about:config (where available).
Toolbar - Archive of obsolete content
adding a toolbar button there are two tutorials available: an elaborate step by step tutorial for beginners: custom toolbar button a tutorial describing the steps needed to add a toolbar button assuming you already have a working extension and know the basics of extension development: creating toolbar buttons adding button by default when you create and deploy your extension and include a toolbar button for it by overlaying the customize toolbarpalette, it is not available by default.
... before = elem.nextelementsibling; } toolbar.insertitem(id, before); toolbar.setattribute("currentset", toolbar.currentset); document.persist(toolbar.id, "currentset"); if (toolbarid == "addon-bar") toolbar.collapsed = false; } } if (firstrun) { installbutton("nav-bar", "my-extension-navbar-button"); // the "addon-bar" is available since firefox 4 installbutton("addon-bar", "my-extension-addon-bar-button"); } ...
Install Manifests - Archive of obsolete content
<em:updatekey>migfma0gcsqgsib3dqebaquaa4gnadcbiqkbgqdk426erd/h3xtsjvab5+pjqbhj zc9edi5ocjs8r3fiobj9zhjk1txeae7jwqt9wumbwtefvws+fi9vwu8058n9chhd nyep6i4luuyjturnn7yw/igzyij2oksya32ruxayteqawqpt/j63wbixiecxmysf awb/zh4kapiy3vnrzqidaqab</em:updatekey> updateurl a link to a custom update manifest file that specifies available updates to the add-on.
...if enabled, the add-on manager periodically checks with this manifest file to determine if newer versions are available.
Adding windows and dialogs - Archive of obsolete content
// if (returnvalue.accepted) { do stuff } the optional parameters are available in the dialog code through the window.arguments property: let somevalue = window.arguments[0]; let returnvalue = window.arguments[1]; // returnvalue.accepted = true; // returnvalue.result = "something"; the parameter named returnvalue is an object that the dialog will modify to reflect what the user did in it.
...there are some equivalent, simpler functions that are available in the window object, but those are meant for unprivileged html javascript code.
Appendix F: Monitoring DOM changes - Archive of obsolete content
/** * watches for nodes matching the given css selector to become * available.
... * @param {function(event)} callback the function which is to be called * when matching nodes become available.
Handling Preferences - Archive of obsolete content
each source is a js file that contains some special functions not available in regular code.
...in reality there are thousands of other preferences firefox handles that are not readily available to the user.
Intercepting Page Loads - Archive of obsolete content
the channel is available to allow you to modify headers and such.
...headers are available on the channel.
JavaScript Object Management - Archive of obsolete content
in case you're using javascript code modules or xpcom objects, where a window object is not readily available, use an nsitimer instead.
... as a general guideline, we keep all of our business logic in jsm, available through service objects, and chrome scripts are limited to handle presentation logic.
Mozilla Documentation Roadmap - Archive of obsolete content
there's a great deal of free online documentation available on xul and extension development, but finding it and turning it into useful information can be a daunting task.
...feeds are added frequently, so the information available through it will only grow with time.
Overlay extensions - Archive of obsolete content
this page contains links to documentation for the approach to developing extensions for gecko-based applications which uses: xul overlays to specify the interface apis available to privileged code, such as tabbrowser and javascript modules, to interact with the application and content.
... javascript code modules javascript modules available to extension developers.
Tabbed browser - Archive of obsolete content
opening a url in the correct window/tab there are methods available in chrome://browser/content/utilityoverlay.js that make it easy to open url in tabs such as openuilinkin and openuilink.
...for example: var num = gbrowser.browsers.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.
CSS3 - Archive of obsolete content
the next iteration of this specification is in the work, allowing to tailor a web site regarding the input methods available on the user agent, with new media features like hover or pointer.
... an early list of what could be in the next iteration of the css basic user interface module is available.
Inner-browsing extending the browser navigation paradigm - Archive of obsolete content
note that when the data is available (a web page is loaded into the iframe) this will not affect the web page context because the iframe is not visible.
...however the data binder should know exactly when the data is available in the iframe.
Creating a Web based tone generator - Archive of obsolete content
var currentposition = audio.mozcurrentsampleoffset(); var available = currentposition + prebuffersize - currentwriteposition; if(available > 0) { // request some sound data from the callback function.
... var sounddata = new float32array(parsefloat(available)); readfn(sounddata); // writing the data.
Monitoring WiFi access points - Archive of obsolete content
code with universalxpconnect privileges can monitor the list of available wifi access points to obtain information about them including their ssid, mac address, and signal strength.
...example this example simply displays a list of the available access points.
Bonsai - Archive of obsolete content
bonsai source code the source code to the bonsai tool itself is also available, check out the information available at the bonsai project page.
... original document information author(s): jamie zawinski last updated date: september 8, 2004 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
Creating regular expressions for a microsummary generator - Archive of obsolete content
handling https urls note: although ebay doesn't do this, occasionally a site will make pages available at both insecure and secure urls.
...here is what the <pages> section might look like in a microsummary generator for ebay auction item pages: <pages> <include>^http://cgi\.ebay\.com/.*qqitemz.*qqcmdzviewitem</include> <include>^http://cgi\.ebay\.com/ws/ebayisapi\.dll\?viewitem&amp;.*item=</include> </pages> to see these regular expressions in action, install the ebay auction item microsummary generator available from this page of example generators.
Editor Embedding Guide - Archive of obsolete content
getcommandstate "state_enabled"(boolean) docommand no parameters note only available if txmgr.dll is present.
... getcommandstate "state_enabled"(boolean) docommand no parameters note only available if txmgr.dll is present.
Error Console - Archive of obsolete content
the error console is deprecated in firefox, and is now only made available if you set the devtools.errorconsole.enabled preference to true.
... the error console is a tool available in most mozilla-based applications that is used for reporting errors in the application chrome and in web pages user opens.
Building Firefox with Rust code - Archive of obsolete content
if you don't have rust already, use the rustup tool to install it and update as new releases become available, or use the ./mach bootstrap command.
... the build system will generate a special 'rust unified library' crate, compiled to a static library (libgkrust.a) which is in turn linked into xul, so all public symbols will be available to c++ code.
Document Loading - From Load Start to Finding a Handler - Archive of obsolete content
the final goal is to find the correct stream listener to pump the data into when necko calls ondataavailable (e.g., we may find the html parser as the stream listener to give the data to).
... original document information author(s): boris zbarsky last updated date: october 24, 2003 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
JavaScript Client API - Archive of obsolete content
this api is available in mozilla-based products that use sync, such as firefox desktop.
... update(record) the argument is a record which has been remotely modified; your store should locate the matching local item (presumably using the guid, which is available in record.id) and update it to the new values provided in record.
Java in Firefox Extensions - Archive of obsolete content
[note: a simpler hello world version than that below is now available at http://brett-zamir.me/java_demo/ ] for privileges, the basic procedure is: download and include http://simile.mit.edu/repository/jav...nsionutils.jar within your extension (you can also build your own from the source files at http://simile.mit.edu/repository/jav...xtensionutils/ ) build and add references leading to this jar and all other jars in your extension within an array of java.net.u...
...one example seems to be the fact that the "java" global is not immediately available if the extension operates in a sidebar (using settimeout solved it at least).
Mac OS X Build Prerequisites/fink - Archive of obsolete content
it doesn't seem to be as well maintained (in terms of available packages) as macports, so it is strongly suggested that you use macports instead of fink.
...the installer should configure the fink environment for you, making it available in any new terminal window.
Migrate apps from Internet Explorer to Mozilla - Archive of obsolete content
d(null); var myxmldocument = myxmlhttprequest.responsexml; asynchronous request: var myxmlhttprequest; function xmlloaded() { var myxmldocument = myxmlhttprequest.responsexml; } function loadxml(){ myxmlhttprequest = new xmlhttprequest(); myxmlhttprequest.open("get", "data.xml", true); myxmlhttprequest.onload = xmlloaded; myxmlhttprequest.send(null); } table 7 features a list of available methods and properties for mozilla's xmlhttprequest.
... 2 loaded - send() has been called, headers and status are available.
Plug-n-Hack Phase1 - Archive of obsolete content
configuresectoolactivated - this notifies the document that pnh support (perhaps previously unavailable, e.g.
...security tool commands manifest an example commands manifest (for owasp zap) is: https://code.google.com/p/zap-extensions/source/browse/branches/beta/src/org/zaproxy/zap/extension/plugnhack/resource/service.json firefox ui in firefox the tool commands will be made available via the developer toolbar (gcli) https://developer.mozilla.org/docs/tools/gcli a example of how the zap commands are currently displayed is: note that user specified parameters can be specified for commands, which can either be free text, a static pull down list of options or a dynamic list of options obtained from the tool on demand.
New Skin Notes - Archive of obsolete content
--maian 21:08, 1 sep 2005 (pdt) in the new mw1.5 skin (not the one currently available here) there's class "wrong" and class "wrong-inline".
... those will be available after we do the wiki upgrades in the near future.
Remotely debugging Firefox for Metro - Archive of obsolete content
you'll see one entry under "available remote tabs" for each open tab, and clicking it will attach the debugging tools to the web content hosted by that tab.
... you'll see one entry under "available remote processes": this is the browser process itself.
The new nsString class implementation (1999) - Archive of obsolete content
since i have to acknowledge the idiom, i have made nscstring available but note that it should be used sparingly.
... original document information author: rick gessner last updated date: january 20, 1999 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
Windows Install - Archive of obsolete content
// this function verifies disk space in kilobytes function verifydiskspace(dirpath, spacerequired) { var spaceavailable; // get the available disk space on the given path spaceavailable = filegetdiskspaceavailable(dirpath); // convert the available disk space into kilobytes spaceavailable = parseint(spaceavailable / 1024); // do the verification if(spaceavailable < spacerequired) { logcomment("insufficient disk space: " + dirpath); logcomment(" required : " + spacerequired + " k"); logco...
...mment(" available: " + spaceavailable + " k"); return(false); } return(true); } function updatewinreg4ren8dot3() { var fprogram = getfolder("program"); var ftemp = getfolder("temporary"); //notes: // can't use a double backslash before subkey // - windows already puts it in.
Methods - Archive of obsolete content
the majority of this api is now deprecated and as of gecko 1.9 no longer available.
... diskspaceavailable returns the amount of disk space available in bytes.
InstallVersion Object - Archive of obsolete content
the majority of this api is now deprecated and as of gecko 1.9 no longer available.
...each of the version parameters is also available as a separate property of the installversion object.
XPInstall API reference - Archive of obsolete content
the majority of this api is now deprecated and as of gecko 1.9 no longer available.
...hods compareversion enabled getversion install installchrome startsoftwareupdate installversion properties methods compareto init tostring file no properties methods copy dircreate dirgetparent dirremove dirrename diskspaceavailable execute exists isdirectory isfile macalias moddate moddatechanged move remove rename size windowsgetshortname windowsregisterserver windowsshortcut winprofile no properties methods getstring writestring winreg no properties ...
XPInstall - Archive of obsolete content
the majority of this api is now deprecated and as of gecko 1.9 no longer available.
... creating xpi installer modules this article describes the packaging scheme of the mozilla and offers a tutorial for creating a new package that can then be redistributed, installed, and made available to users.
A XUL Bestiary - Archive of obsolete content
the parts of the document, such as the head, the links, the body, any tags, are available as nodes whose attributes can be got and set.
...when xpidl is used to describe the xpcom interfaces, it makes those interfaces available in special header files.
treecol.type - Archive of obsolete content
cbox-check.gif isn't available in firefox 1, 2, and 3 in mac os x so you should specify a url to an image in your extension or elsewhere.
...cbox-check.gif isn't available in firefox 1, 2, and 3 in mac os x, so you should specify a url to an image in your extension or elsewhere.
XUL Events - Archive of obsolete content
for example, if a box has a maximum size of 100 pixels, and only enough space for 80 pixels is available, the overflow event will be sent to the box.
... if the size changes, for example, by the user resizing the window, the underflow event will be fired when enough space becomes available.
Getting File Information - Archive of obsolete content
file and stream guide: [ nsiscriptableio | accessing files | getting file information | reading from files | writing to files | moving, copying and deleting files | uploading and downloading files | working with directories ] important note: the pages from the file and stream guide use the io object (nsiscriptableio), which was not available in any released version of the platform (pending some fixes).
...other documentation on files and i/o not using the unavailable nsiscriptableio apis: code snippets: file i/o, open and save dialogs, reading textual data, writing textual data, list of file-related error codes.
Uploading and Downloading Files - Archive of obsolete content
file and stream guide: [ nsiscriptableio | accessing files | getting file information | reading from files | writing to files | moving, copying and deleting files | uploading and downloading files | working with directories ] important note: the pages from the file and stream guide use the io object (nsiscriptableio), which was not available in any released version of the platform (pending some fixes).
...other documentation on files and i/o not using the unavailable nsiscriptableio apis: code snippets: file i/o, open and save dialogs, reading textual data, writing textual data, list of file-related error codes.
Moving, Copying and Deleting Files - Archive of obsolete content
file and stream guide: [ nsiscriptableio | accessing files | getting file information | reading from files | writing to files | moving, copying and deleting files | uploading and downloading files | working with directories ] important note: the pages from the file and stream guide use the io object (nsiscriptableio), which was not available in any released version of the platform (pending some fixes).
...other documentation on files and i/o not using the unavailable nsiscriptableio apis: code snippets: file i/o, open and save dialogs, reading textual data, writing textual data, list of file-related error codes.
TOC - Archive of obsolete content
ArchiveMozillaXULFileGuideTOC
file and stream guide: [ nsiscriptableio | accessing files | getting file information | reading from files | writing to files | moving, copying and deleting files | uploading and downloading files | working with directories ] important note: the pages from the file and stream guide use the io object (nsiscriptableio), which was not available in any released version of the platform (pending some fixes).
...other documentation on files and i/o not using the unavailable nsiscriptableio apis: code snippets: file i/o, open and save dialogs, reading textual data, writing textual data, list of file-related error codes.
MenuModification - Archive of obsolete content
to do this, we instead need to use the inherited node modification methods available for all elements.
... the appendchild method is available for all elements, and is used to add new nodes within another node.
Menus - Archive of obsolete content
when the menu or button is clicked the menu is opened, listing the commands that are available.
...although the access keys are not case sensitive, the underlined letter will always be the one with matching case if available.
OpenClose - Archive of obsolete content
these are situations when the popuphiding or popuphidden events may not fire as the element the events would be fired on are no longer available.
...this property is available for all types of popups, including menus, panels and tooltips.
Result Generation - Archive of obsolete content
during query processing, the template builder builds up a network of information such as: possible results that are available where content should be generated information that indicates what to do when the rdf datasource changes this network of information remains for the lifetime of the template, or until it is rebuilt.
...for the first statement, only the seed will be available as a possible result.
textbox (Toolkit autocomplete) - Archive of obsolete content
enablehistory new in thunderbird 1requires seamonkey 2.0 type: boolean if true, an arrow button will appear on the end of the textbox which, when pressed, will open a dropdown menu of all available results.
... onsearchcomplete new in thunderbird 3requires seamonkey 2.0 type: script code this event handler is called when the autocomplete search is finished and results are available.
The Joy of XUL - Archive of obsolete content
fortunately, an implementation of the libical library was already available for macintosh so, with the cross platform nature of xpcom, a macintosh calendar implementation was working within a few days.
... however, there was no existing win32 port available, so developers had to undertake a porting effort to migrate libical to windows.
Adding HTML Elements - Archive of obsolete content
adding html elements to a window in addition to all of the xul elements that are available, you can also add html elements directly within a xul file.
...you should always use xul features if they are available and you probably should not use tables for layout in xul.
Introduction - Archive of obsolete content
it is an xml language so all features available to xml are also available to xul.
... it is still possible to enable this for selected sites to let legacy apps to continue working, but for new remote applications you should use html to create your user interface instead; most of the features you used to have to use xul for are available in html5.
RDF Datasources - Archive of obsolete content
<treerow> <treecell label="rdf:http://home.netscape.com/nc-rdf#name"/> <treecell label="rdf:http://home.netscape.com/nc-rdf#url"/> <treecell label="rdf:http://home.netscape.com/nc-rdf#date"/> </treerow> </treeitem> </treechildren> </rule> </template> </tree> other datasources the tables below list some of the other datasources available with mozilla.
...this property is only available on platforms that use file extensions.
Scrolling Menus - Archive of obsolete content
if the available space is too small, arrows will appear on each end of the menu.
...if the available space is large enough, the arrows will not appear.
Skinning XUL Files by Hand - Archive of obsolete content
in short, xul provides the tools for anybody to create interfaces as complex and as attractive as any c++/mfc/visual ide/templates toolkit user's, and it does so in a way that makes these interfaces available on any platform.
... xul's technologies are interoperable, consistent, cross-platform, free, and readily available.
Tree Box Objects - Archive of obsolete content
ecessary to run tree.boxobject.queryinterface(components.interfaces.nsitreeboxobject) as shown in the code examples on this page because: let boxobject = tree.treeboxobject; note: is equivalent to: let boxobject = tree.boxobject; boxobject.queryinterface("components.interfaces.nsitreeboxobject"); scrolling the tree you can also scroll the tree using four different methods, similar to those available for listboxes.
...the functions of the more general box object are also available to trees.
Trees - Archive of obsolete content
ArchiveMozillaXULTutorialTrees
since the tree has been marked as flexible, the body will stretch to fit the available space.
...if your tree is flexible, it doesn't need a rows attribute since it will grow to fit the available space.
Trees and Templates - Archive of obsolete content
it will generate tree elements as nested as necessary based on the available rdf data.
...this sorting feature is not available for trees with static content, although you can write a script to sort the data.
XUL Structure - Archive of obsolete content
for example, while the form controls on an html page are accessible via the document.forms property, this property isn't available for xul documents, since xul doesn't have forms in the html sense.
... likewise, xul specific features such as overlays and templates are only available in xul documents.
Using Remote XUL - Archive of obsolete content
it is difficult to discern the site's basic structure and available resources, which makes it hard to locate a particular page or find the one with the information you want.
... the iframe's flex attribute tells the browser to stretch the iframe to fill the space available to it.
XUL Questions and Answers - Archive of obsolete content
more documentation on search plugins is available in the search plugins category.
...ent is confirmed // or when the user switches tabs listobj.onlocationchange = function(aprogress, arequest, auri) { // do whatever you want to do return 0; } // for definitions of the remaining functions see xulplanet.com listobj.onprogresschange = function() { return 0 }; listobj.onstatuschange = function() { return 0 }; listobj.onsecuritychange = function() { return 0 }; listobj.onlinkiconavailable = function() { return 0 }; /* i use the progress listener to trap the end of a local html "template" file loading, and run xslt transormations.
button - Archive of obsolete content
more information is available in the xul tutorial.
...see the appearance of the different icons on some available platforms.
checkbox - Archive of obsolete content
more information is available in the xul tutorial.
...more information is available in the preferences system article.
command - Archive of obsolete content
more information is available in the xul tutorial.
... setting this attribute to "true" indicates that the command is reserved for chrome code and is not available for use in the content.
listbox - Archive of obsolete content
more information is available in the preferences system article.
...most of the features of the list box are already available directly in the listbox, so you will rarely have need to use this box object directly.
menu - Archive of obsolete content
ArchiveMozillaXULmenu
more information is available in the xul tutorial.
...this property is available for menuitem and menuseparator elements in firefox 3.
menuitem - Archive of obsolete content
more information is available in the xul tutorial.
...this property is available for menuitem and menuseparator elements in firefox 3.
menulist - Archive of obsolete content
more information is available in the xul tutorial.
...more information is available in the preferences system article.
menupopup - Archive of obsolete content
more information is available in the xul tutorial and popup guide.
...you wouldn't normally need to use this property as all of its functions are available via the popup itself.
menuseparator - Archive of obsolete content
more information is available in the xul tutorial.
...this property is available for menuitem and menuseparator elements in firefox 3.
prefpane - Archive of obsolete content
more information is available in the preferences system article.
...this property is available for menuitem and menuseparator elements in firefox 3.
radio - Archive of obsolete content
ArchiveMozillaXULradio
more information is available in the xul tutorial.
...this property is available for menuitem and menuseparator elements in firefox 3.
radiogroup - Archive of obsolete content
more information is available in the xul tutorial.
...more information is available in the preferences system article.
script - Archive of obsolete content
more information is available in the xul tutorial.
... note: if the javascript file is in chrome://, setting this attribute to application/javascript will always use the latest available javascript version.
tab - Archive of obsolete content
ArchiveMozillaXULtab
more information is available in the xul tutorial.
...this property is available for menuitem and menuseparator elements in firefox 3.
textbox - Archive of obsolete content
more information is available in the xul tutorial.
...more information is available in the preferences system article.
tooltip - Archive of obsolete content
more information is available in the xul tutorial.
...you wouldn't normally need to use this property as all of its functions are available via the popup itself.
XUL - Archive of obsolete content
xul controls a quick list of all of the available xul controls.
... xul periodic table this collection of xul demos used to be available as a web page, but can no longer be viewed in firefox since support for remote xul was disabled.
XULRunner 1.9.1 Release Notes - Archive of obsolete content
sample applications are available from the mozilla developer center.
...additional features for installing and deploying xulrunner and applications based on xulrunner will be available in future releases.
XULRunner 1.9.2 Release Notes - Archive of obsolete content
sample applications are available from the mozilla developer center.
...additional features for installing and deploying xulrunner and applications based on xulrunner will be available in future releases.
XULRunner 1.9 Release Notes - Archive of obsolete content
sample applications are available from the mozilla developer center.
...additional features for installing and deploying xulrunner and applications based on xulrunner will be available in future releases.
XULRunner 2.0 Release Notes - Archive of obsolete content
sample applications are available from the mozilla developer center.
...additional features for installing and deploying xulrunner and applications based on xulrunner will be available in future releases.
Debugging a XULRunner Application - Archive of obsolete content
there are two different consoles available and various preferences which will ensure that the information you need to know is displayed on them.
...precompiled binaries are available in the zipped archive https://github.com/matthewkastor/redirector/archive/master.zip under redirector-master\gecko\console redirector\bin\release copy all the dll's and the exe to wherever you want.
What XULRunner Provides - Archive of obsolete content
nd may be included if developer time permits and code size is controlled: ldap support spellchecking support (with or without dictionaries provided) see bug 285977 core support for profile roaming (with application-specific extensibility) pyxpcom embedding (not yet complete) - but it does work, if you compile a custom build that includes the pyxpcom bindings and there is a working python available.
... what's out xulrunner will not supply: bookmarks or history ui (must be managed by the application/embedder) xforms (xforms will be available as an extension) ...
XULRunner - Archive of obsolete content
firefox (from version 3) ships with a private xulrunner package, which can run any compatible xulrunner application using the -app switch: firefox -app application.ini is equivalent to xulrunner -app application.ini older builds are also available.
... xulrunner hall of fame tracks all available applications based on xulrunner.
XUL Explorer - Archive of obsolete content
a xul validator and the error console are both available to help debug problems.
...previewing in a popup window is still available.
2006-10-20 - Archive of obsolete content
this will make the language packages available to everyone.
...comet and btek are currently the fastest-cycling tinderboxes available therefore they are quite fast to detect general fires on the mozilla tree.
Extentsions FAQ - Archive of obsolete content
to provide those default preferences to your extension see: http://kb.mozillazine.org/dev_:_usin...lt_preferences btw: resetting prefences to default will clear them in case no default prefence is (still) available.
...when does content become available in the cache?
2006-11-3 - Archive of obsolete content
summary: mozilla.dev.l10n - november 3, 2006 announcements mozip.net 1.2.0 released: the should have been 1.0 release mozip.net 1.2.0, a gui (graphic) version of piaip's mozip command line utility, is available here.
... mozillatranslator 5.13 released mozillatranslator 5.13 is available here.
2006-09-22 - Archive of obsolete content
announcements l10n firefox 2.0 rc1 builds available paul reed announced the availability of firefox 2 rc1 l10n builds 'major update' test paul reed made a test of the 'major update' feature available on sept.
...areas tested and results available at the above link.
2006-10-06 - Archive of obsolete content
announcements firefox 2 release candidate 2 is now available for download beltzner announced ff2 rc2 is availabe for all 3 major platforms in some 40 langauges.
... re: sunbird and lightning 0.3rc1 available sunbird and lightning 0.3rc1 is announced.
NPAPI plugin developer guide - Archive of obsolete content
they are not available on most mobile devices.
...if there are plugin features which are not available in the web platform, we encourage developers to post their use cases to mozilla.dev.platform project list, so that mozilla can prioritize web platform work to make those use cases possible.
Plugins - Archive of obsolete content
they are not available on most mobile devices.
...if there are plugin features which are not available in the web platform, we encourage developers to post their use cases to mozilla.dev.platform project list, so that mozilla can prioritize web platform work to make those use cases possible.
Introduction to Public-Key Cryptography - Archive of obsolete content
for an overview of ssl, see "introduction to ssl." for an overview of encryption and decryption, see "encryption and decryption." information on digital signatures is available from "digital signatures." public-key cryptography is a set of well-established techniques and standards for protecting communications from eavesdropping, tampering, and impersonation attacks.
...making information about the certificate available to other applications is publishing the certificate and then backing up the key pairs so that the certificate can be recovered if it is lost.
Solaris 10 Build Prerequisites - Archive of obsolete content
the installer must install additional sun-provided packages from the os install dvd, so that dvd has to be available.
... the installer will try to install the sunwsmbas package, which is not available in newer versions of sxde.
Tamarin Tracing Build Documentation - Archive of obsolete content
running avmshell without any arguments will list the available options.
... note that additional command-line arguments are only available in the debug configuration.
Building a Theme - Archive of obsolete content
set this to be no newer than the newest currently available version!
...mozilla's site also provides users easier installation, and will automatically make your newer versions available to users of your existing versions when you upload them.
Using SSH to connect to CVS - Archive of obsolete content
anonymous/read-only access via ssh is not available at this time.
...cygwin makes ssh available on windows if you install the openssh package from the net category.
Server-Side JavaScript - Archive of obsolete content
sounds obvious, but for at least the first twelve years of the web's evolution, developers have pretty much had to use different languages on the server from those available in the browser, leading to segregated teams, disparate and inconsistent know-how, and plenty of server-side string manipulation gymnastics to generate html or ajax pages.
... now, with tracemonkey available, javascript (both client side and server-side) can see 20x to 40x speed improvements according to brendan eich, mozilla cto and creator of javascript.
RFE to the XForms API - Archive of obsolete content
ArchiveWebXFormsRFEXForms API
xforms dom is a list of interfaces that are available from xforms elements directly.
... this means those interfaces available to be queried from the xforms element that resides in the dom.
Displaying a graphic with audio samples - Archive of obsolete content
ctx = canvas.getcontext('2d'), channels, rate, framebufferlength, fft; function loadedmetadata() { channels = audio.mozchannels; rate = audio.mozsamplerate; framebufferlength = audio.mozframebufferlength; fft = new fft(framebufferlength / channels, rate); } function audioavailable(event) { var fb = event.framebuffer, t = event.time, /* unused, but it's there */ signal = new float32array(fb.length / channels), magnitude; for (var i = 0, fbl = framebufferlength / 2; i < fbl; i++ ) { // assuming interlaced stereo channels, // need to split and merge into a stero-mix mono signal signal[i] = (fb...
...ectrum by a zoom value magnitude = signal[i] * 1000; // draw rectangle bars for each frequency bin ctx.fillrect(i * 4, canvas.height, 3, -magnitude); } ctx.drawimage(document.getelementbyid('mozlogo'),0,0, canvas.width, canvas.height); } var audio = document.getelementbyid('audio-element'); audio.addeventlistener('mozaudioavailable', audioavailable, false); audio.addeventlistener('loadedmetadata', loadedmetadata, false); </script> </body> </html> ...
Using the DOM File API in chrome code - Extensions
scope availability in the jsm scope file is available without needing to do anything special.
... other such keys as the "profd" key are available, check the known locations.
Anatomy of a video game - Game development
the same principles as above apply with a slight twist: each frame of animation progresses the cycle and any change in user input is caught at the first available turn.
...those are good candidates to throttle when available resources become a concern.
Building up a basic demo with A-Frame - Game development
you should start off by: making sure you are using a modern browser with good webgl support (and webxr support if you have available vr or ar hardware) such as the latest firefox or chrome — download firefox nightly or chrome (v54 or higher).
...here's how the final version looks and works: if you have a vr device available, now is a good time to try out your scene with it too.
Building up a basic demo with PlayCanvas editor - Game development
there are starter kits available, but we don't want to load models or start a platform game.
... at the bottom of the screen you can see the list of scripts available — for now there's only boxanimation.js — clicking it will add the animation script to the box object.
WebVR — Virtual Reality for the Web - Game development
ces.length; ++i) { if (devices[i] instanceof hmdvrdevice) { ghmd = devices[i]; break; } } if (ghmd) { for (var i = 0; i < devices.length; ++i) { if (devices[i] instanceof positionsensorvrdevice && devices[i].hardwareunitid === ghmd.hardwareunitid) { gpositionsensor = devices[i]; break; } } } }); this code will loop through the available devices and assign proper sensors to the headsets — the first devices array contains the connected devices, and a check is done to find the hmdvrdevice, and assign it to the ghmd variable — using this you can set up the scene, getting the eye parameters, setting the field of view, etc.
...see the vreffect and vrcontrols functions available on the three.js github to help you implement and handle webvr with three.js.
Audio for Web games - Game development
> <button data-playing="false" aria-describedby="clavi-play-label"> <span id="clavi-play-label">play</span> </button> </li> </ul> <p class="sourced">all tracks sourced from <a href="http://jplayer.org/">jplayer.org</a></p> </section> all of these tracks are the same tempo and are designed to be synchronized with each other, so we need to make sure they are loaded and available to the api before we are able to play them.
... once they are available to play, we need to make sure they start at the correct point that other tracks might be playing at, so they sync up.
Unconventional controls - Game development
there's good hello world and getting started javascript tutorials available on the leap motion documentation pages, which will get you through the basics.
... doppler effect there's a very interesting article available on motion sensing using the doppler effect, which mixes together waving your hand and using the microphone.
Tools for game development - Game development
there is a useful emscripten tutorial available on the wiki.
...what specialist tools are available?
2D breakout game using pure JavaScript - Game development
every step has editable, live samples available to play with so you can see what the intermediate stages should look like.
... lesson details all the lessons — and the different versions of the mdn breakout game we are building together — are available on github: create the canvas and draw on it move the ball bounce off the walls paddle and keyboard controls game over build the brick field collision detection track the score and win mouse controls finishing up starting with pure javascript is the best way to get a solid knowledge of web game development.
Initialize the framework - Game development
the v2 library is still available on the phaser download page, below the links for the v3 download.
...it usually uses webgl if available in the browser, falling back to canvas 2d if not.
Physics - Game development
for proper collision detection between objects in our game we will need to have physics; this article introduces you to what's available in phaser, as well as demonstrating a typical simple setup.
... adding physics phaser is bundled with three different physics engines — arcade physics, p2 and ninja physics — with a fourth option, box2d, being available as a commercial plugin.
2D maze game with device orientation - Game development
var game = new phaser.game(320, 480, phaser.canvas, 'game'); the line above will initialize the phaser instance — the arguments are the width of the canvas, height of the canvas, rendering method (we're using canvas, but there are also webgl and auto options available) and the optional id of the dom container we want to put the canvas in.
... the best way to use it in our case is to vibrate the phone every time the ball hits the walls — inside the wallcollision function: if("vibrate" in window.navigator) { window.navigator.vibrate(100); } if the vibrate method is supported by the browser and available in the window.navigator object, vibrate the phone for 100 miliseconds.
Asynchronous - MDN Web Docs Glossary: Definitions of Web-related terms
for example, the ajax (asynchronous javascript and xml) programming technique—now usually simply "ajax", even though json is usually used rather than xml in modern applications—is a mechanism that requests relatively small amounts of data from the server using http, with the result being returned when available rather than immediately.
...when the secondary task is completed, the original task is notified using an agreed-upon mechanism so that it knows the work is done, and that the result, if any, is available.
DoS attack - MDN Web Docs Glossary: Definitions of Web-related terms
when these are exhausted, the program can freeze or crash, making it unavailable.
... a dos attack consists of various techniques to exhaust these resources and make a server or a network unavailable to legitimate users, or at least make the server perform sluggishly.
Denial of Service - MDN Web Docs Glossary: Definitions of Web-related terms
when these are exhausted, the program can freeze or crash, making it unavailable.
... a dos attack consists of various techniques to exhaust these resources and make a server or a network unavailable to legitimate users, or at least make the server perform sluggishly.
Grid Tracks - MDN Web Docs Glossary: Definitions of Web-related terms
track sizing in the explicit grid when defining grid tracks using grid-template-columns and grid-template-rows you may use any length unit, and also the flex unit, fr which indicates a portion of the available space in the grid container.
...once the 200 pixels has been subtracted from the space available in the grid container, the remaining space is divided by 4.
JavaScript - MDN Web Docs Glossary: Definitions of Web-related terms
javascript is one of the world's most commonly-used languages, owing to the recent growth and performance improvement of apis available in browsers.
...since then, the standardized javascript is called ecmascript and specified under ecma-262, whose latest (tenth, es2019) edition is available as of june 2019.
Microsoft Internet Explorer - MDN Web Docs Glossary: Definitions of Web-related terms
ie has gone through many releases and currently stands at version 11.0.12, with desktop, mobile, and xbox console versions available.
... formerly available on mac and unix, microsoft discontinued those versions in 2003 and 2001 respectively.
Symbol - MDN Web Docs Glossary: Definitions of Web-related terms
global symbol registry there is a global symbol registry holding all available symbols.
...the global symbol registry is mostly built by javascript's compiler infrastructure, and the global symbol registry's content is not available to javascript's run-time infrastructure, except through these reflective methods.
Web performance - MDN Web Docs Glossary: Definitions of Web-related terms
it is the frames per second and times the main thread is not available for user interactions.
... subjectively, it is the user's perception of whether the time it takes between the time the user requests the content and the time until the user feels the content requested is available and usable feels slow or fast.
CSS selectors - Learn web development
there are a wide variety of css selectors available, allowing for fine-grained precision when selecting elements to style.
... 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.
CSS building blocks - Learn web development
this module looks at the cascade and inheritance, all the selector types we have available, units, sizing, styling backgrounds and borders, debugging, and lots more.
... css selectors there are a wide variety of css selectors available, allowing for fine-grained precision when selecting elements to style.
Introduction to CSS layout - Learn web development
for many of the elements on your page the normal flow will create exactly the layout you need, however for more complex layouts you will need to alter this default behavior using some of the tools available to you in css.
...these properties, among other things, can change the way that the items flex, enabling them to expand and contract to fit into the available space.
Practical positioning examples - Learn web development
this includes information-heavy apps like strategy/war games, mobile versions of websites where the screen is narrow and space is limited, and compact information boxes where you might want to make lots of information available without having it fill the whole ui.
... a sliding hidden panel the final example we'll present here is a panel that slides on and off the screen at the press of an icon — as mentioned earlier, this is popular for situations like mobile layouts, where the available screen spaces is small, so you don't want to use up most of it by showing a menu or info panel instead of the useful content.
Styling links - Learn web development
outline: none; text-decoration: none; padding: 2px 1px 0; } a:link { color: #265301; } a:visited { color: #437a16; } a:focus { border-bottom: 1px solid; background: #bae498; } a:hover { border-bottom: 1px solid; background: #cdfeaa; } a:active { background: #265301; color: #cdfeaa; } we'll also provide some sample html to apply the css to: <p>there are several browsers available, such as <a href="#">mozilla firefox</a>, <a href="#">google chrome</a>, and <a href="#">microsoft edge</a>.</p> putting the two together gives us this result: so what did we do here?
... playable code <div class="body-wrapper" style="font-family: 'open sans light',helvetica,arial,sans-serif;"> <h2>html input</h2> <textarea id="code" class="html-input" style="width: 90%;height: 10em;padding: 10px;border: 1px solid #0095dd;"><p>there are several browsers available, such as <a href="#">mozilla firefox</a>, <a href="#">google chrome</a>, and <a href="#">microsoft edge</a>.</p></textarea> <h2>css input</h2> <textarea id="code" class="css-input" style="width: 90%;height: 10em;padding: 10px;border: 1px solid #0095dd;">a { } a:link { } a:visited { } a:focus { } a:hover { } a:active { }</textarea> <h2>output</h2> <div class="output" style="w...
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<...
... background-repeat: by default, background images repeat until they fill up the available background space.
How do you make sure your website works properly? - Learn web development
active learning there is no active learning available yet.
... 503: service unavailable usually resulting from a shortterm system overload.
How can we design for all types of users? - Learn web development
active learning there is no active learning available yet.
... image compression some users may choose to display images, but still have limited bandwidth available, especially in developing countries and on mobile devices.
How do I start to design my website? - Learn web development
active learning there is no active learning available yet.
...again, there are so many web services already available for showcasing photos that it isn't worth the effort to build a new site just to spread the word about how cute our cats are.
What are hyperlinks? - Learn web development
use external links to provide information besides the content available through your webpage.
...every time search engines crawl a webpage, they index the website by following the links available on the webpage.
What is a URL? - Learn web development
active learning there is no active learning available yet.
...because the browser already has the document's own url, it can use this information to fill in the missing parts of any url available inside that document.
What is a web server? - Learn web development
active learning there is no active learning available yet.
... technically, you could host all those files on your own computer, but it's far more convenient to store files all on a dedicated web server because: a dedicated web server is typically more available.
What software do I need to build a website? - Learn web development
active learning there is no active learning available yet.
...if you want something a bit fancier, there are plenty of third-party tools available.
How do you set up a local testing server? - Learn web development
if you are using linux or macos, it should be available on your system already.
...to check python is installed, enter the following command: python -v # or you might have the py command available, # in which case try py -v this should return a version number.
HTML forms in legacy browsers - Learn web development
mdn has compatibility tables available for most elements, properties and apis that can be used in a web page.
... <button> the <button> element suffered from two issues that are now resolved: a bug in old versions of internet explorer sent the html content available between the starting and ending tag of the <button> element instead of the content of the value attribute when clicked.
Styling web forms - Learn web development
and even with css available to style html, browser vendors have historically been reluctant to make form controls stylable because users were so accustomed to the visual appearance of their respective platforms.
... note: there are some proprietary css pseudo-elements available that allow you to style internal components of these form controls, such as ::-moz-range-track, but these are not consistent across browsers, so can't be relied upon.
JavaScript basics - Learn web development
for example: multiply(4, 7); multiply(20, 20); multiply(0.5, 3); note: the return statement tells the browser to return the result variable out of the function so it is available to use.
... this is necessary because variables defined inside functions are only available inside those functions.
Document and website structure - Learn web development
if your site is for a business, for example, it's a good idea to have your contact information available in the footer on each page.
...the homepage will probably be in the center, and link to most if not all of the others; most of the pages in a small site should be available from the main navigation, although there are exceptions.
HTML text fundamentals - Learn web development
of the six heading levels available, you should aim to use no more than three per page, unless you feel it is necessary.
...if headings are not available, they will be forced to listen to the whole document read out loud.
Responsive images - Learn web development
here's a simple example: this works well on a wide screen device, such as a laptop or desktop (you can see the example live and find the source code on github.) we won't discuss the css much in this lesson, except to say that: the body content has been set to a maximum width of 1200 pixels — in viewports above that width, the body remains at 1200px and centers itself in the available space.
...ideally, you would have multiple resolutions available and serve the appropriate size depending upon the device accessing the data on the website.
Choosing the right approach - Learn web development
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.
... single delayed operation repeating operation multiple sequential operations multiple simultaneous operations no no no yes code example the following example fetches several resources from the server, and uses promise.all() to wait for all of them to be available before then displaying all of them — see it live, and see the source code: function fetchanddecode(url, type) { // returning the top level promise, so the result of the entire chain is returned out of the function return fetch(url).then(response => { // depending on what type of file is being fetched, use the relevant function to decode its contents if(type === 'blob') { retu...
Build your own function - Learn web development
briefly, the onclick handler is a property available on the button (or in fact, any element on the page) that can be set to a function to specify what code to run when the button is clicked.
...in a real application, such a message box would probably be called in response to new data being available, or an error having occurred, or the user trying to delete their profile ("are you sure about this?"), or the user adding a new contact and the operation completing successfully, etc.
Fetching data from the server - Learn web development
these technologies allow web pages to directly handle making http requests for specific resources available on a server and formatting the resulting data as needed before it is displayed.
...when this has occurred, the response data will be available in the response property of the xhr request object.
A first splash into JavaScript - Learn web development
try entering the following lines, one at a time: let name = 'bingo'; name; let hello = ' says hello!'; hello; let greeting = name + hello; greeting; there are also some shortcut operators available, called augmented assignment operators.
...one method available to input elements is focus(), so we can now use this line to focus the text input: guessfield.focus(); variables that don't contain references to form elements won't have focus() available to them.
Useful string methods - Learn web development
objective: to understand that strings are objects, and learn how to use some of the basic methods available on those objects to manipulate strings.
...when you create a string, for example by using let string = 'this is my string'; your variable becomes a string object instance, and as a result has a large number of properties and methods available to it.
Object-oriented JavaScript for beginners - Learn web development
they do, however, have the same name property and greeting() method available.
... with your finished exercise from the previous sections loaded in the browser, try this in your javascript console: let person2 = object.create(person1); now try these: person2.name; person2.greeting(); you'll see that person2 has been created based on person1—it has the same properties and method available to it.
Test your skills: JSON - Learn web development
json data about some mother cats and their kittens is available in sample.json.
... the json is loaded into the page as a text string and made available in the catstring parameter of the displaycatinfo() function, called when the provided promise chain (which starts by fetching the json data) is fulfilled.
Aprender y obtener ayuda - Learn web development
different learning materials it is also worth looking at the different types of learning materials that are available, to see which ones are most effective for you to learn with.
... 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.
Perceived performance - Learn web development
for this, time to interactive, is a good metric; it is the moment when the last long task of the load process finishes and the ui is available for user interaction with delay.
... make things like type-ahead a progressive enhancement: use css to display input modal, js to add typeahead/autocomplete as it is available make task initiators appear more interactive making a content request on keydown rather than waiting for keyup can shave 200ms off the perceived load of the content.
What is web performance? - Learn web development
a general strategy is to make your files as small as possible, reduce the number of http requests made as much as possible, and employ clever loading techniques (such as preload) to make files available sooner.
...it is important to minimize the loading and response times, and add additional features to conceal latency by making the experience as available and interactive as possible, as soon as possible, while asynchronously loading in the longer tail parts of the experience.
Properly configuring server MIME types - Learn web development
examples of mime types are: text/html for normal web pages text/plain for plain text text/css for cascading style sheets text/javascript for scripts application/octet-stream meaning "download this file" application/x-java-applet for java applets application/pdf for pdf documents technical background registered values for mime types are available in iana | mime media types.
...if the browser guesses the mime type, this option is no longer available to the author.
Introduction to the server side - Learn web development
after reading this article you'll understand the additional power available to websites through server-side coding.
... efficient storage and delivery of information imagine how many products are available on amazon, and imagine how many posts have been written on facebook?
Server-side web frameworks - Learn web development
#best/templates/best/index.html <!doctype html> <html lang="en"> <body> {% if youngest_teams %} <ul> {% for team in youngest_teams %} <li>{{ team.team_name }}</li> {% endfor %} </ul> {% else %} <p>no teams are available.</p> {% endif %} </body> </html> how to select a web framework numerous web frameworks exist for almost every programming language you might want to use (we list a few of the more popular frameworks in the following section).
... the server-side frameworks below represent a few of the most popular available at the time of writing.
Getting started with React - Learn web development
</p> </header> </div> ); } export statements at the very bottom of the app.js file, the statement export default app makes our app component available to other modules.
...we can also see our app component imported here; it is made available for import thanks to the export statement at the bottom of app.js.
React resources - Learn web development
react devtools is available in a number of forms: a chrome browser extension.
... a chromium edge browser extension (available soon).
Componentizing our Svelte app - Learn web development
this additional data will be available on the detail property of the event object.
...the handler will be called with an event object available, with the additional data available in the event.detail property.
Creating our first Vue component - Learn web development
the label key's value should be an object with 2 properties (or props, as they are called in the context of being available to the components).
...this is, in part, to make them available to your template.
Adding a new todo form: Vue events, methods, and models - Learn web development
creating a method & binding it to an event with v-on to make a method available to the todoform component, we need to add it to the component object, and this is done inside a methods property to our component, which goes in the same place as data(), props, etc.
... adding the new todo into our data now that we have the data from todoform available in app.vue, we need to add an item representing it to the todoitems array.
Tools and testing - Learn web development
working out what tools you should be using can be a difficult process, so we have written this set of articles to inform you of what types of tool are available, what they can do for you, and how to make use of the current industry favourites.
...in most cases there are other tools available, old ones will go out of fashion, and new ones will no doubt appear.
Learn web development
accessibility — make the web usable by everyone accessibility is the practice of making web content available to as many people as possible regardless of disability, device, locale, or other differentiating factors.
... getting our code examples the code examples you'll encounter in the learning area are all available on github.
Gecko info for Windows accessibility vendors
k-meleon: a light, ultra-fast and more advanced (fully configurable) gecko-based web browser available on the windows platform xul-based clients (support msaa) xul-based clients make full use of the gecko architecture, not only for html content, as well as for menus, dialogs and the entire user interface via an xml language called xul (extensible user-interface language).
... additional dom support there are a number of things available in the parsed html or xml of a document that msaa will not tell you.
Accessible Toolkit Checklist
supporting the basic msaa states on every item: unavailable, focused, readonly, offscreen, focusable to avoid extra work, utilize implementing an msaa server mnemonics ability to define in xml for any widget with a text label (via attribute or a preceding char in label) automatically define mnemonics for all standard common dialogs (like yes/no confirmations and retry/exit error dialogs) support mnemonics in dialogs ...
...es and spi_getmenuunderlines simple widgets buttons tab, arrow, unmodified letter mnemonics require and support text labels for buttons with images, can be same as tooltip space key activates button enter key activates focused button (thus current button, not default button shows dark border when a different button is focused) when button has a popup available by clicking on it, the enter key or space bar should also activate the popup toolbars and toolbar buttons are not focusable, but we should expose the tooltip.
Accessibility and Mozilla
in fact, the same keyboard commands are still available, so users can become comfortable and productive right away.accessibility information for core gecko developersboth end users and developers are invited for discussion on the live irc channel at irc.mozilla.org/#accessibility.
...the uaag is not the basis for any government accessibility regulations at this time.multiprocess on windowsa high-level overview of the ideas behind the a11y+e10s design is available on the wiki.software accessibility: where are we today?the accessibility of computer software has seen drastic improvements over the past two decades.
Application cache implementation overview
nshttpchannel::onofflinecacheentryavailable is then invoked.
...we search another, if available, potentially even in a different offline cache group.
Creating a spell check dictionary add-on
if you are creating a new dictionary, as opposed to updating an existing one, please make sure that there is not already a dictionary available for your locale.
... update the em:maxversion to the greatest versions available.
Creating Sandboxed HTTP Connections
ondataavailable - new data is available.
...nelfromuri(uri); // get an listener var listener = new streamlistener(callbackfunc); gchannel.notificationcallbacks = listener; gchannel.asyncopen(listener, null); function streamlistener(acallbackfunc) { this.mcallbackfunc = acallbackfunc; } streamlistener.prototype = { mdata: "", // nsistreamlistener onstartrequest: function (arequest, acontext) { this.mdata = ""; }, ondataavailable: function (arequest, acontext, astream, asourceoffset, alength) { var scriptableinputstream = components.classes["@mozilla.org/scriptableinputstream;1"] .createinstance(components.interfaces.nsiscriptableinputstream); scriptableinputstream.init(astream); this.mdata += scriptableinputstream.read(alength); }, onstoprequest: function (arequest, acontext, astatus) { ...
Debugging
also available are assorted tools that you can use when debugging.
... download a debug build recent automatically compiled debug builds are available.
Makefile - variables
libobjs have_dtrace sun microsystem's dynamic tracing environment is available.
... compiler variable description gnu_cc defined if the gnu gcc compiler is available.
Simple SeaMonkey build
building seamonkey building seamonkey requires at least 2 gb of disk space and 256 mb of available ram.
... this requires more disk space, about 3 gb, and twice as much available ram.
The Firefox codebase: CSS Guidelines
the rtl-aware equivalents of border-{top/bottom}-{left/right}-radius are border-{start/end}-{start/end}-radius when there is no special rtl-aware property available, use the pseudo :-moz-locale-dir(ltr|rtl) (for xul files) or :dir(ltr|rtl) (for html files).
... however, if only 1x and 2x png assets are available, you can use this @media query to target higher density displays (hdpi): @media (min-resolution: 1.1dppx) ...
Eclipse CDT
from eclipse's "help" menu select "install new software...", then in the "install" window that opens, click "available software sites".
... troubleshooting: if you get an error when trying to update, try clicking "available software sites" in the "install" window, make sure "juno" is still unticked, that "nightly" is ticked, highlight "nightly", click "reload", "ok", and then try again.
Contributing to the Mozilla code base
mozilla is a large project and we are thrilled to have contributors with very diverse skills below is a table with our currently available projects to contribute to, along with the skills needs and links to their documentation.
...there are plenty of resources available on the mdn web docs!
Index
141 index firefox, index, mozilla found 168 pages: 142 linux compatibility matrix the following table lists the available library versions for the mozilla.org-distributed firefox builds dependencies, and/or to build firefox.
...this new policy is designed as an alternative to the current policies, which have been available in firefox for many years.
Tracking Protection
visit example.com </a> <script> function tracklink(url,event) { event.preventdefault(); if (window.ga && ga.loaded) { ga('send', 'event', 'outbound', 'click', url, { 'transport': 'beacon', 'hitcallback': function() { document.location = url; } }); } else { document.location = url; } } </script> more information about this technique is available at google analytics, privacy, and event tracking.
... note: depending on a third party in this way is not a good practice anyway, because then your site can be broken if the third party is slow or unavailable, or if the tracker has been blocked by an add-on.
Firefox UI considerations for web developers
if tippy top doesn't include the site, firefox looks in its places data store for icons specified in the page's <head> element; if an svg icon is available, that icon is selected.
... usa today the only icon provided by usa today is its classic favicon: <link rel="shortcut icon" href="https://www.gannett-cdn.com/sites/usatoday/images/favicon.png"> since no rich icon is available, firefox creates a screenshot of the home page rendered 560 pixels wide.
Firefox
firefox is mozilla's popular web browser, available for multiple platforms including windows, macos, and linux on the desktop and all android and ios mobile devices.
... linux compatibility matrixthe following table lists the available library versions for the mozilla.org-distributed firefox builds dependencies, and/or to build firefox.multiple firefox profilesa profile in firefox is the collection of settings, customizations, add-ons, and other personalizations that a user has made or installed into their copy of firefox.
mozbrowsercontextmenu
for example, if the user clicked on an image nested in an <a> tag, two menus are available — one with information related to the image, and one for the link.
... items an array of further menu objects, which indicate the menu options available in a menu, if the context menu being accessed is a menu.
Chrome-only CSS reference
MozillaGeckoChromeCSS
this page lists css properties that are only available in gecko chrome code (and sometimes in other privileged circumstances, eg.
...nt is used to select rows and apply styles to tree rows.::-moz-tree-row(hover)the ::-moz-tree-row(hover) css pseudo-class will match an element if the mouse cursor is presently hovering over a tree row.::-moz-tree-separatoractivated by the properties attribute.::-moz-tree-twistyactivated by the properties attribute.css -moz-bool-pref() @supports functionthe -moz-bool-pref() @supports condition is available to gecko chrome and ua stylesheets to check if a boolean preference is enabled.css <display-xul> component</display-xul>firefox supports the following -moz- prefixed xul display values:overflow-clip-boxthe overflow-clip-box css property specifies relative to which box the clipping happens when there is an overflow.
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 the editor
possible answer dialogs use the available editor apis to get and set data, so can do all their work through existing apis.
... if an embedder wants a fully native ui, then they'll have to code their own dialogs, and associated logic, but the apis should already be available to them.
Gecko Keypress Event
note that replacing the original (non-ascii) characters on these keys means that there are some accessibility issues for non-latin keyboard layout users as many non-ascii characters will not be available for shortcuts.
... when handling web content accesskeys, the handlers should consider both characters that are available on the key (without and with shift).
How to implement a custom autocomplete search component
to do so put the following declaration in your chrome.manifest file: component {x753d830-ba1e-11e0-962b-0800200c9a66} components/basic_autocomplete.js contract @mozilla.org/autocomplete/search;1?name=basic-autocomplete {x753d830-ba1e-11e0-962b-0800200c9a66} and finally use this newly available component in a xul file like this: <textbox id="text1" type="autocomplete" autocompletesearch="basic-autocomplete"/> that's it!
... lines into your chrome.manifest file: component {6224daa1-71x2-4d1a-ad90-01ca1c08e323} components/.js contract @mozilla.org/autocomplete/search;1?name=simple-autocomplete {6224daa1-71x2-4d1a-ad90-01ca1c08e323} you need to add the following method: getlabelat: function(index) { return this._results[index]; } to simpleautocompleteresult use this newly available component in a xul file like this: <textbox id="text1" type="autocomplete" autocompletesearch="simple-autocomplete" showcommentcolumn="true" autocompletesearchparam='[{"value":"mark","comment":"cool dude"},{"value":"mary","comment":"nice lady"},{"value":"jimmy","comment":"very uncool guy"},{"value":"jimbo","comment":null}]' /> the component uses the autocompletesearchparam attribute or ...
Addon
only available if this add-on is in the process of being installed.
... void canceluninstall( ) hasresource() checks whether a file resource is available for this add-on.
AddonInstall
only available after downloading is complete.
...only available after downloading is complete.
AddonUpdateChecker
methods getcompatibilityupdate() retrieves the best matching compatibility update for the application from a list of available update objects.
... to get new compatibility information for ignorecompatibility an optional parameter to get the first compatibility update that is compatible with any version of the application or toolkit appversion the version of the application or null to use the current version platformversion the version of the platform or null to use the current version getnewestcompatibleupdate() returns the newest available update from a list of update objects.
Download
contenttype string the mime type of the download, for example "text/plain", or null if the mime type is not available.
...if the content type is not available, an attempt will be made to obtain it from the extension of the target file.
JNI.jsm
to use it, you first need to import the code module into your javascript scope: components.utils.import("resource://gre/modules/jni.jsm"); this module was available in firefox since version 17.
... a note about firefox for android, this jsm file is already globally imported and is available from the privileged window scope as window.jni.
NetUtil.jsm
you can call nsiinputstream.available() to get the number of bytes currently available.
... ns_error_failure there aren't at least acount bytes available to read from the stream.
OS.File.Info
due to differences between operating systems, the information available depends on the platform.
...on instanceof os.file.error && reason.becausenosuchfile) { // |somepath| does not represent anything } else { // some other error } } ) example: determining the owner of a file let promise = os.file.stat() promise.then( function onsuccess(info) { if ("unixowner" in info) { // info.unixowner holds the owner of the file } else { // information is not available on this platform } } ); evolution of this example bug 802534 will introduce the ability to check whether field unixowner appears in os.file.info.prototype, which will make it possible to write faster code.
PerfMeasurement.jsm
all 0x000007ff measure all available events.
... number of available event types the num_measurable_events constant tells you how many types of events can be measured.
source-editor.jsm
theme constants these constants are used to identify the available themes that can be used by the syntax highlighter.
... configuration defaults constants these constants represent the default values for each of the available configuration options.
Mozilla Content Localized in Your Language
localizers can assume that source content reaches 2/3 of the total available line space.
...user interface elements have limited space available for text.
SVN for Localizers
mac os x users can find svn inside the command line tools (available on the apple developer website), or use tools like homebrew or fink.
... mozilla's svn repositories mozilla's svn server is publicly available at https://svn.mozilla.org.
Localization formats
html/php maybe you are designing a project that has relatively small translation needs like three to four lines (or more) of content asking users to update to the next version of software available.
...ownload day." advantages of gettext gettext has very powerful tools to update this site (if you use the actual english strings in msgids, not unique identifier strings like certificate_intro) very established with a large set of powerful tools harder to screw things up because existing tools will not allow localizers to edit the l10n file where they shouldn't separates localizable strings available for localizers for the rest of the code, protecting it from unintended changes disadvantage of gettext .po file needs to be compiled into a .mo file for localizer to see changes using regular diff to see changes to a file is sometimes impossible because the editing tool can save the .po file using a completely different structure or order of entities.
MathML Accessibility in Mozilla
hence basic support is available in gecko 41.0 (firefox 41.0 / thunderbird 41.0 / seamonkey 2.38) and we are still trying to keep in sync with webkit/voiceover.
... accessfu: mathml support in android and firefox os is currently being implemented in our accessfu module and a patch is available on bug 1163374.
Mozilla Development Tools
naturally, source code for all of these tools is also available.
... original document information author(s): myk melez last updated date: november 8, 2005 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
Activity Monitor, Battery Status Menu and top
this article describes the activity monitor, battery status menu, and top — three related tools available on mac os x.
...they can all be customized to show any of the available measurements (by right-clicking on the column strip) but only the "energy" tab groups child processes with parent processes, which is useful, so it's the best one to use.
Intel Power Gadget
understanding the power gadget output the following screenshot (from the mac version) demonstrates the available measurements.
... (an energia dashboard can be seen here; please note that the data has not been updated since early 2014.) version 3.0 (available on mac and windows, but not on linux) also exposes an api from which the same measurements can be extracted programmatically.
JS::PerfMeasurement
at present, it returns true on linux when the <linux/perf_event.h> api is available (kernel 2.6.31 or later), and false everywhere else.
...perfmeasurement* js::extractperfmeasurement(jsval wrapper) if you are the c++ side of an xpcom interface, and you want to benchmark only part of your execution time but make the results available to javascript, you can declare a bare jsval argument in your .idl file and have javascript pass a perfmeasurement object that it created in that argument slot.
A guide to searching crash reports
the operators available for each field depends on its type.
... to become an expert at searching and grouping requires understanding the full range of the 100+ fields available for searching and grouping.
About NSPR
time timing facilities are available in two forms: interval timing and calendar functions.
...therefore, the minimal usable interval available from the timers is slightly less than six hours.
NSPR's Position On Abrupt Thread Termination
abrupt termination has been available in the unix/c environment for some time (exit()), and i assume that the basic semantics defined there are applicable here.
...the existence of exit() in the unix/c environment is a perfect example of how programmers will employ the most expediant solution available.
PR_CEnterMonitor
if no match is found, an available monitor is associated with the address and the monitor's entry count is incremented (so it has a value of one).
... note: pr_centermonitor and pr_cexitmonitor must be paired--that is, there must be an exit for every entry--or the object will never become available for any other thread.
PR_SetConcurrency
the m x n model is not available on all host systems.
... on those where it is not available, pr_setconcurrency is ignored.
Introduction to Network Security Services
note that nss 3.x is also available in the lp64 model for these platforms, but the lp64 model of nss 3.x does not have these two extra shared libraries.
...the api documentation for nspr is available at nspr api reference.
4.3.1 Release Notes
source tarballs are available from ftp://ftp.mozilla.org/pub/mozilla.or...-4.3.1.tar.bz2 binary releases are no longer available on mozilla.
... documentation documentation for jss 4.3.1 is available as follows: build instructions for jss 4.3.1 javadoc [online] [zipped] read the instructions on using jss.
4.3 Release Notes
source tarballs are available from https://archive.mozilla.org/pub/security/jss/releases/jss_4_3_rtm/src/jss-4.3.tar.bz2 binary releases are no longer available on mozilla.
...https://archive.mozilla.org/pub/security/jss/releases/jss_4_3_rtm/ documentation documentation for jss 4.3 is available as follows: build instructions for jss 4.3 javadoc [online] [zipped] read the instructions on using jss.
NSS_3.11.10_release_notes.html
nss 3.11.10 source and binary distributions are also available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_11_10_rtm/src/.
...new and revised documents available since the release of nss 3.9 include the following: build instructions for nss 3.11.4 and above compatibility nss 3.11.10 shared libraries are backward compatible with all older nss 3.x shared libraries.
NSS_3.12.1_release_notes.html
nss 3.12.1 source and binary distributions are also available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_12_1_rtm/src/.
...new and revised documents available since the release of nss 3.11 include the following: build instructions for nss 3.11.4 and above nss shared db compatibility nss 3.12.1 shared libraries are backward compatible with all older nss 3.x shared libraries.
NSS 3.12.4 release notes
nss 3.12.4 source is also available on ftp.mozilla.org for secure https download: source tarball: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_12_4_rtm/src/.
...new and revised documents available since the release of nss 3.12 include the following: build instructions for nss 3.12.4 compatibility nss 3.12.4 shared libraries are backward compatible with all older nss 3.x shared libraries.
NSS 3.12.5 release_notes
nss 3.12.5 source is also available on ftp.mozilla.org for secure https download: source tarball: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_12_5_rtm/src/.
...new and revised documents available since the release of nss 3.11 include the following: build instructions nss shared db compatibility nss 3.12.5 shared libraries are backward compatible with all older nss 3.x shared libraries.
NSS 3.12.6 release notes
nss 3.12.6 source and binary distributions are also available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_12_6_rtm/src/.
...new and revised documents available since the release of nss 3.11 include the following: build instructions nss shared db compatibility nss 3.12.6 shared libraries are backward compatible with all older nss 3.x shared libraries.
NSS 3.12.9 release notes
nss 3.12.9 source distribution is also available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3.12.9_rtm/src/.
...new and revised documents available since the release of nss 3.11 include the following:</for> build instructions for nss 3.11.4 and above nss shared db compatibility nss 3.12.9 shared libraries are backward compatible with all older nss 3.x shared libraries.
NSS 3.15 release notes
nss 3.15 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_15_rtm/src/ new in nss 3.15 new functionality support for ocsp stapling (rfc 6066, certificate status request) has been added for both client and server sockets.
... updated build instructions are available at migration to hg as part of this migration, the source code directory layout has been re-organized.
NSS 3.21 release notes
nss 3.21 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_21_rtm/src/ security fixes in nss 3.21 bug 1158489 / cve-2015-7575 - prevent md5 downgrade in tls 1.2 signatures.
... ckm_tls_mac - computes tls finished mac in secoidt.h nss_use_alg_in_ssl_kx - policy flag indicating that keys are used in tls key exchange in sslerr.h ssl_error_rx_short_dtls_read - error code for failure to include a complete dtls record in a udp packet ssl_error_no_supported_signature_algorithm - error code for when no valid signature and hash algorithm is available ssl_error_unsupported_signature_algorithm - error code for when an unsupported signature and hash algorithm is configured ssl_error_missing_extended_master_secret - error code for when the extended master secret is missing after having been negotiated ssl_error_unexpected_extended_master_secret - error code for receiving an extended master secret when previously not negotiated in s...
NSS 3.22.1 release notes
nss 3.22.1 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_22_1_rtm/src/ new in nss 3.22.1 new functionality no new functionality is introduced in this release.
... notable changes in nss 3.22.1 bug 1194680: nss has been changed to use the pr_getenvsecure function that was made available in nspr 4.12 compatibility nss 3.22.1 shared libraries are backward compatible with all older nss 3.22 shared libraries.
NSS 3.27.1 release notes
nss 3.27.1 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_27_1_rtm/src/ new in nss 3.27.1 new functionality no new functionality is introduced in this release.
... previous versions of nss made tls 1.3 (draft) available only when compiled with nss_enable_tls_1_3.
NSS 3.38 release notes
nss 3.38 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_38_rtm/src/ new in nss 3.38 new functionality added support for the tls record size limit extension.
...the available orphan key ids can be displayed using command certutil -k.
NSS 3.50 release notes
nss 3.50 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_50_rtm/src/ other releases are available in nss releases.
... bug 1547639 - update zlib in nss to 1.2.11 bug 1609181 - detect arm (32-bit) cpu features on freebsd bug 1602386 - fix build on freebsd/powerpc* bug 1608151 - introduce nss_disable_altivec bug 1612623 - depend on nspr 4.25 bug 1609673 - fix a crash when nss is compiled without libnssdbm support, but the nssdbm shared object is available anyway.
NSS 3.54 release notes
nss 3.54 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_54_rtm/src/ other releases are available in nss releases.
... use arm cryptography extension for sha256, when available.
NSS API Guidelines
the public headers is a list of header files that contain types, and functions, that are publicly available to higer-level apis.
... list and array returning functions should be available at the higher layers of the api, most wrapping layer_traverse() functions.
NSS Developer Tutorial
however, not all features from c99 are equally available.
... the mozilla c++ language features guide, and the chromium c++ usage guide, list c++ features that are known to be widely available and compatible.
Enc Dec MAC Output Public Key as CSR
* though pr_errortostring was available, support for it in nss wasn't.
... * fixme: samples should determine the version of nss that's available and refuse * to run if not 3.13 or higher.
NSS_3.12.3_release_notes.html
nss 3.12.3 source and binary distributions are also available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_12_3_rtm/src/.
...new and revised documents available since the release of nss 3.11 include the following: build instructions for nss 3.11.4 and above nss shared db compatibility nss 3.12.3 shared libraries are backward compatible with all older nss 3.x shared libraries.
NSS Tools crlutil
availability see the release notes for the platforms this tool is available on.
... reasoncode non-critical code where: reasoncode: identifies the name of an extension non-critical: should be set to 0 since this is non-critical extension code: the following codes are available: unspecified (0), keycompromise (1), cacompromise (2), affiliationchanged (3), superseded (4), cessationofoperation (5), certificatehold (6), removefromcrl (8), privilegewithdrawn (9), aacompromise (10) add invalidity date extension: the invalidity date is a non-critical crl entry extensio...
Network Security Services
nss is available under the mozilla public license.
... encryption technologies available in nss 3.11 archived version.
Necko FAQ
todo when is the next stable release of this library going to be available?
... todo original document information author(s): gagan saksena last updated date: december 21, 2001 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
Necko Interfaces Overview
http) maps uri string to nsiuri instance via newuri method creates nsichannel instance from nsiuri instance via newchannel method nsistreamlistener : nsirequestobserver implemented by the consumer of a nsichannel instance passed to nsichannel::asyncopen method nsirequestobserver::onstartrequest - notifies start of async download nsistreamlistener::ondataavailable - notifies presence of downloaded data nsirequestobserver::onstoprequest - notifies completion of async download, possibly w/ error nsiloadgroup : nsirequest attribute of a nsirequest channel impl adds itself to its load group during invocation of asyncopen channel impl removes itself from its load group when download completes load groups in gecko own all channels used to load a particul...
...and chatzilla) synchronous i/o methods: openinputstream, openoutputstream asynchronous i/o methods: asyncread, asyncwrite nsitransport::asyncread takes a nsistreamlistener parameter original document information author(s): darin fisher last updated date: december 10, 2001 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
Rhino serialization
is to compile the functions using the jsc tool: $ cat f.js function f() { return 3; } $ java -classpath js.jarorg.mozilla.javascript.tools.jsc.main f.js $ cat test2.js loadclass("f"); serialize(f, "f.ser"); g = deserialize("f.ser"); print(g()); $ java -classpath 'js.jar;.'org.mozilla.javascript.tools.shell.main test2.js 3 now the function f is compiled to a java class, but that class is then made available in the classpath so serialization works.
... original document information author: norris boyd last updated date: november 15, 2006 copyright information: portions of this content are © 1998–2006 by individual mozilla.org contributors; content available under a creative commons license | details.
Rhino shell
starting with rhino 1.7 this options is no longer available.
...this is available only if jvm implements java2 security model.
Shumway
it is currently available as an extension and as a component in firefox's nightly builds that can be enabled through about:config (you need to find the shumway.disabled preference and set it to false).
...several buttons are available at the bottom of the screen to enable or disable various shumway options.
SpiderMonkey Build Documentation
for a list of other available build options, type (assuming the current working directory is one of the above-created build directories): /bin/sh ../configure.in --help generating a compilation database some tools (like ides, static analyzers and refactoring tools) consume a file called compile_commands.json which contains a description of all the pieces required to build a piece of software so that tools don't have to al...
... since the posix nspr emulation is not available for windows, a working version of nspr must be available to your build.
GC Rooting Guide
there are typedefs available for the main types.
... similarly to js::rooted<t>, there are typedefs available for the main types: template class typedef js::handle<js::value> js::handlevalue js::handle<jsobject*> js::handleobject js::handle<jsstring*> js::handlestring js::handle<jsscript*> js::handlescript js::handle<jsid> js::handleid you should use js::handle<t> for all function parameters taking gc thing pointers (exce...
JIT Optimization Strategies
getelem_arguments attempts to optimize element accesses on the arguments special object available in functions.
... setelem_arguments attempts to optimize element writes to the arguments special object available in functions.
Parser API
recent builds of the standalone spidermonkey shell include a reflection of the spidermonkey parser, made available as a javascript api.
... example: > var expr = reflect.parse("obj.foo + 42").body[0].expression > expr.left.property ({loc:null, type:"identifier", name:"foo"}) > expr.right ({loc:{source:null, start:{line:1, column:10}, end:{line:1, column:12}}, type:"literal", value:42}) it is also available since firefox 7; it can be imported into the global object via: components.utils.import("resource://gre/modules/reflect.jsm") or into a specified object via: components.utils.import("resource://gre/modules/reflect.jsm", obj) built-in objects whether in spidermonkey shell or firefox (after importing), the global singleton object reflect currently contains just the parse method.
SpiderMonkey: The Mozilla JavaScript runtime
it is used in various mozilla products, including firefox, and is available under the mpl2.
... parser api reflection of the spidermonkey parser, made available as a javascript api.
Zest runtimes
the following runtimes are available: java https://github.com/mozilla/zest - this is the reference implementation the following runtimes are planned or an an early stage of implementation: https://github.com/mozilla/zest/tree/master/js javascript https://github.com/darkowlzz/zest-runner https://github.com/darkowlzz/zest-cli - this is the zest-cli of js based runner.
... python no code available yet if you are interested in working on an existing or new zest runtime then please get in touch via the zest group.
Zest
zest is still at a very early stage of development, but is has been made available so that anyone can play around with it.
...opers reporting security vulnerabilities to companies defining active and passive scanner rules deep integration with security tools runtimes the runtime environments that support zest tools the tools that include support zest implementation the state of zest development videos simon demoed zest at appsec usa in november 2013, and the full video of my talk is available on youtube.
Mozinfo
additionally, the service pack in use is available on the windows platform.
... the top level attributes (os, version, bits, processor) are available as module globals: if mozinfo.os == 'win': ...
Mozilla Projects
once midas is invoked, a few more methods of the document object become available.
... zest is still at a very early stage of development, but is has been made available so that anyone can play around with it.
Secure Development Guidelines
unt where name='?'"; sqlite3_prepare_v2(db, str, strlen(str), &stmt, null); sqlite3_bind_text(stmt, 1, name, strlen(name), sqlite_transient); sqlite3_step(stmt); sqlite3_finalize(p_stmt); writing secure code: arithmetic issues integer overflows/underflows overflows occur when an arithmetic operation attempts to create a numeric value that is larger than can be represented within the available storage space max + 1 will be 0 and 0 – 1 will be max!
...de: 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 your 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); } }; construct...
Places utilities for JavaScript
these are: qi_node qi_node(anode, aiid) runs a query interface on a bookmark node to expose the interface available to that type.
... if the interface isn't available to that node, null is returned.
Generic factory
ntfactory(nsirepository* repository) { nsigenericfactory* factory = null; nscid kgenericfactorycid = ns_genericfactory_cid; nsresult res = repository->createinstance(kgenericfactorycid, null, nsigenericfactory::iid(), &factory); if (res == ns_ok) { factory->setconstructor(&mycomponent::create); } return factory; } this example assumes that the xpcom repository is available as an interface (which it soon will be).
... original document information author: patrick beard last updated date: february 26, 1999 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
XPCOM array guide
MozillaTechXPCOMGuideArrays
this guide describes the available arrays as well as the enumerator classes that can be used to get to them.
...as of gecko 8, safeelementat() is now directly available on nstarray for arrays instantiated with pointer types.
Packaging WebLock
if you are installing weblock in an gecko-based application for which xpinstall is not available, then you will have to devise a separate installation scheme.
... note: install-object-methods the methods are available on the main install object, which is implied in the script below in the same way that the window object is implied in javascript manipulation of the dom of a web page.
Setting up the Gecko SDK
the sdk is available for windows, linux, and mac operating systems, and versions for other operating systems are being developed, and can be retrieved from as a single archive from the following platform-specific locations (need correction for last version (now 1.9.2.8).
...the weblock component was built with version 1.4a, which is no longer available.
XPCOM guide
MozillaTechXPCOMGuide
this guide describes the available arrays as well as the enumerator classes that can be used to get to them.
... it is not that sequence of characters, though: the characters may not all be available when you read from the stream.
Introduction to XPCOM for the DOM
this should be used in the case a getter function is not available.
...your methods will not be available from javascript, however, because nsidomfabian is not in the class info.
Components.utils.evalInWindow
this function is no longer available as of firefox 34.
...this function is made available as a global in sandboxes which have the wantexporthelpers option set in the sandbox() constructor.
Components.utils.importGlobalProperties
system scopes such as jsms and frame scripts don't have certain objects, such as indexeddb and xmlhttprequest, that are available to dom window globals.
...db nodefilter firefox 60 nsidomnodefilter obsolete since gecko 60 rtcidentityprovider textdecoder textencoder url urlsearchparams xmlhttprequest nsixmlhttprequest obsolete since gecko 60 for string/object in table without a minimum firefox version, it is not exactly known since when it was available, however it is guranteed available from firefox 28 and up.
Development
source the latest source code is available on the mozilla trunk, in the extensions/java/xpcom directory.
... build instructions the build instructions are available here: building javaxpcom.
PyXPCOM
mozilla defines many external interfaces available to embeddors and component developers.
... other resources pythonext - extension that provides pyxpcom samples - demo applications using pyxpcom community python-xpcom bindings mailing list (activestate) #pyxpcom on irc.mozilla.org source code the pyxpcom code is available here: http://hg.mozilla.org/pyxpcom/ to build pyxpcom, see building pyxpcom.
IAccessibleAction
1.0 66 introduced gecko 1.9 inherits from: iunknown last changed in gecko 1.9 (firefox 3) every accessible object that can be manipulated via the native gui beyond the methods available either in the msaa iaccessible interface or in the set of iaccessible2 interfaces (other than this iaccessibleaction interface) should support the iaccessibleaction interface in order to provide assistive technology access to all the actions that can be performed by the object.
...nactions() returns the number of accessible actions available in this object.
imgIRequest
status_size_available 0x1 we received enough image data from the network or filesystem that we know the width and height of the image, and have thus called setsize() on the container.
...if the image does not exist yet, locks it once it becomes available.
mozIJSSubScriptLoader
note that let and const declarations in the script will be placed on a syntactic scope that is not an object at all, and will not be available to the caller of loadsubscript.
... loadsubscriptwithoptions() same as loadsubscript(), except that parameters after url are expressed as an object, and a new ignorecache option is available.
mozIStorageStatement
only available to javascript code.
...available only to javascript code.
mozIStorageStatementCallback
handleresult() called when results from the statement are available.
... void handleresult( in mozistorageresultset aresultset ); parameters aresultset an mozistorageresultset object describing the available results from the statement's execution.
nsIAccessNode
void scrollto( in unsigned long ascrolltype ); parameters ascrolltype defines where the object should be placed on the screen (see nsiaccessiblescrolltype.constants for available constants).
... void scrolltopoint( in unsigned long acoordinatetype, in long ax, in long ay ); parameters acoordinatetype specifies whether the coordinates are relative to the screen or the parent object (for available constants refer to nsiaccessiblecoordinatetype.constants.
nsIAccessibleEvent
may return null if no accessible is available.
...this includes for example most of the attributes available via the iaccessiblecomponent interface.
nsIAccessibleText
scrolltype defines how to scroll (see nsiaccessiblescrolltype.constants for available constants) scrollsubstringtopoint() moves the top left of a substring to a specified location.
...coordinatetype specifies the coordinates origin (for available constants refer to nsiaccessiblecoordinatetype.constants) x defines the x coordinate.
nsIAnnotationService
count optional count of annotation names available.
... count optional count of annotations name available.
nsIAppStartup
note: only available with libxul builds.
... note: only available with libxul builds.
nsIApplicationUpdateService
selectupdate() selects the best update to install from a provided list of available updates.
... nsiupdate selectupdate( [array, size_is(updatecount)] in nsiupdate updates, in unsigned long updatecount ); parameters updates an array of updates that are available to install.
nsIAuthPromptCallback
method overview void onauthavailable(in nsisupports acontext, in nsiauthinformation aauthinfo); void onauthcancelled(in nsisupports acontext, in boolean usercancel); methods onauthavailable() authentication information is available.
...void onauthavailable( in nsisupports acontext, in nsiauthinformation aauthinfo ); parameters acontext the context as passed to nsiauthprompt2.asyncpromptauth().
nsICachingChannel
exceptions thrown ns_error_not_available when there is not offline cache token.
...if this flag has been set, and the request can be satisfied via the cache, then the ondataavailable events will be skipped.
nsIClassInfo
violates the xpcom interface guidelines exceptions thrown ns_error_not_available if the class does not have a classid contractid string a contractid through which an instance of this class can be created, or null.
... return value should return null if no helper available for given language.
nsICookie
available status_accepted 1 the cookie was accepted.
... policy_unknown 0 the cookie collected in a previous session, and its information no longer available.
nsICryptoHMAC
passing pr_uint32_max indicates that all data available will be used to update the hash.
... ns_error_not_available if the requested amount of data to be calculated into the hash is not available.
nsIDOMFontFace
attributes available for all fonts these attributes are always available.
... attributes only available when specified with @font-face these attributes only have meaningful values when the font is a user font defined using @font-face.
nsIDOMGeoGeolocation
void getcurrentposition( in nsidomgeopositioncallback successcallback, [optional] in nsidomgeopositionerrorcallback errorcallback, [optional] in nsidomgeopositionoptions options ); parameters successcallback an nsidomgeopositioncallback to be called when the current position is available.
...unsigned short watchposition( in nsidomgeopositioncallback successcallback, [optional] in nsidomgeopositionerrorcallback errorcallback, [optional] in nsidomgeopositionoptions options ); parameters successcallback an nsidomgeopositioncallback that is to be called whenever new position information is available.
nsIDOMGeoPositionCallback
the nsidomgeopositioncallback interface is called when updated position information is available.
... last changed in gecko 1.9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0) method overview void handleevent(in nsidomgeoposition position); methods handleevent() called when new position information is available.
nsIDOMXPathResult
methods iteratenext() iterates through the available nodes of an unordered_node_iterator_type or ordered_node_iterator_type result.
...is only available if the result type is unordered_node_snapshot_type or ordered_node_snapshot_type.
nsIEffectiveTLDService
note: it is strongly recommended that you use getbasedomain() if a suitable nsiuri is available.
... note: it is strongly recommended to use getbasedomain() if a suitable nsiuri is available.
nsIException
inner nsiexception an inner exception that triggered this, if available.
... location nsistackframe a stack trace, if available.
nsIFileProtocolHandler
exceptions thrown ns_error_not_available the os does not support such files.
... ns_error_not_available the file is not an internet shortcut.
nsIFrameScriptLoader
it's possible that the frame for this chromemessagesender is not yet available at the time of the loadframescript() call, and if you pass false in this situation, your process script won't be loaded.
... getdelayedframescripts() returns all delayed scripts that will be loaded once a (remote) frame becomes available.
nsIGeolocationProvider
return value true if the device is ready and has a position available to return; otherwise false.
...your location provider should call this routine whenever new position data is available.
nsIGeolocationUpdate
xpcom/system/nsigeolocationprovider.idlscriptable provides a way for a geolocation provider to notify the system that a new location is available.
... 1.0 66 introduced gecko 1.9.1 inherits from: nsisupports last changed in gecko 1.9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0) interface provides a way for a geolocation provider to notify the system that a new location is available.
nsIHttpActivityObserver
aextrasizedata any additional size data available with this activity.
...aextrastringdata any additional string data available with this activity.
nsIHttpServer
* * @param port * the port upon which listening should happen, or -1 if no specific port is * desired * @throws ns_error_already_initialized * if this server is already started * @throws ns_error_not_available * if the server is not started and cannot be started on the desired port * (perhaps because the port is already in use or because the process does * not have privileges to do so) * @note * behavior is undefined if this method is called after stop() has been * called on this but before the provided callback function has been * called.
... an nsifile corresponding to the * directory is available from the metadata object passed to the * handler, under the key "directory".
nsIHttpUpgradeListener
method overview void ontransportavailable(in nsisockettransport atransport, in nsiasyncinputstream asocketin, in nsiasyncoutputstream asocketout); methods ontransportavailable() called when an http protocol upgrade attempt is completed, passing in the information needed by the protocol handler to take over the channel that is no longer being used by http.
...void ontransportavailable( in nsisockettransport atransport, in nsiasyncinputstream asocketin, in nsiasyncoutputstream asocketout ); parameters atransport the nsisockettransport describing the socket connection between the browser and the server; this socket can now be used for the new protocol instead of http.
nsIINIParser
nsiutf8stringenumerator getkeys(in autf8string asection); nsiutf8stringenumerator getsections(); autf8string getstring(in autf8string asection, in autf8string akey); methods getkeys() returns an nsiutf8stringenumerator providing the keys available within the specified section of the ini file.
...getsections() returns an nsiutf8stringenumerator providing a list of the sections available within the ini file.
nsIJumpListBuilder
method overview void abortlistbuild(); boolean addlisttobuild(in short acattype, in nsiarray items optional, in astring catname optional); boolean commitlistbuild(); boolean deleteactivelist(); boolean initlistbuild(in nsimutablearray removeditems); attributes attribute type description available short indicates whether jump list taskbar features are supported by the current host.
...exceptions thrown ns_error_not_available on all calls if taskbar functionality is not supported by the operating system.
nsIMicrosummary
since generators and pages can be remote resources, and we need them to generate the content, this may not always be available.
... needsremoval boolean used when a site author has indicated that a microsummary (or an associated generator) will no longer be available.
nsIMicrosummaryService
getmicrosummaries() get the set of microsummaries available for a given page.
...nsimicrosummaryset getmicrosummaries( in nsiuri pageuri, in long long bookmarkid optional ); parameters pageuri the uri of the page for which to retrieve available microsummaries.
nsIPrincipal
note: prior to gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1), this was not available to scripts.
... note: prior to gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1), this was not available to scripts.
nsIProcessScriptLoader
it's possible that the child process for this chromemessagesender is not yet available at the time of the loadprocessscript() call, and if you pass false in this situation, your process script won't be loaded.
... getdelayedprocessscripts() returns all delayed scripts that will be loaded once a child process becomes available.
nsIProfile
getprofilelist() returns an array of strings indicating the names of all the available profiles.
... profilenames on return, contains an array of all of the available profiles' names.
nsIProtocolProxyCallback
1.0 66 introduced gecko 1.8 inherits from: nsisupports last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) method overview void onproxyavailable(in nsicancelable arequest, in nsiuri auri, in nsiproxyinfo aproxyinfo, in nsresult astatus); methods onproxyavailable() this method is called when proxy info is available or when an error in the proxy resolution occurs.
... void onproxyavailable( in nsicancelable arequest, in nsiuri auri, in nsiproxyinfo aproxyinfo, in nsresult astatus ); parameters arequest the value returned from asyncresolve.
nsIResumableChannel
available after onstartrequest.
...in both of these cases, no ondataavailable will be called, and onstoprequest will immediately follow with the same status code.
nsIServiceManager
exceptions thrown ns_error_service_not_available indicates that the service hasn't been instantiated.
... exceptions thrown ns_error_service_not_available indicates that the service hasn't been instantiated.
nsIThread
when this function returns, the thread will be shut down and will no longer be available to receive events.
... boolean processnextevent( in boolean maywait ); parameters maywait if true, this method blocks until an event is available to process if the event queue is empty.
nsIToolkitProfileService
os.file is available from gecko 18 (firefox 18.0 / thunderbird 18.0 / seamonkey 2.15).
...this may throw an ns_error_failure (0x80004005) when trying to get the current profile if it's unavailable or if permissions restrict access.
nsIUUIDGenerator
exceptions thrown ns_error_failure if a uuid cannot be generated (for example if an underlying source of randomness is not available) native code only!generateuuidinplace obtain a new uuid like the generateuuid() method, but place it in the provided nsid pointer instead of allocating a new nsid.
... exceptions thrown ns_error_failure if a uuid cannot be generated (for example if an underlying source of randomness is not available) example generating a uuid var uuidgenerator = components.classes["@mozilla.org/uuid-generator;1"] .getservice(components.interfaces.nsiuuidgenerator); var uuid = uuidgenerator.generateuuid(); var uuidstring = uuid.tostring(); ...
nsIWebSocketChannel
3000-3999 available for use by libraries and frameworks.
... 4000-4999 available for use by applications.
nsIWifiAccessPoint
this string is null if not available.
...this string is null if not available.
nsIAbCard/Thunderbird3
exceptions thrown ns_error_not_available<tt> if the named property does not exist.
... exceptions thrown ns_error_not_available<tt> if the named property does not exist.
Using the clipboard
if you use kselectionclipboard instead, you will copy into the selection buffer, which is generally only available on unix systems.
...the data will be converted if it is not available in the desired flavor, and a conversion from an available flavor is possible.
wrappedJSObject
wrappedjsobject is a property sometimes available on xpconnect wrappers.
... when available, it lets you access the javascript object hidden by the wrapper.
Building a Thunderbird extension 1: introduction
all thunderbird builds are available from the ftp site.
... references and resources tools and helper extensions there are many tools available that help with developing thunderbird extensions.
CType
method overview methods available on all ctype objects ctype array([n]) string tosource() string tostring() properties properties of all ctype objects these properties are available on all ctype objects.
... methods available on all ctype objects array() returns a new ctype representing an array of elements of the type on which it was called.
ctypes
similar to errno in libc, available on all platforms.
...similar to getlasterror under windows, available only for windows.
Memory - Plugins
npn_memflush requests the browser to free up a specified amount of memory if not enough is currently available for the plug-in's requirements.
...this function returns a pointer to the allocated memory or null if not enough memory is available.
Plug-in Basics - Plugins
plug-ins like these are now available: multimedia viewers such as adobe flash and adobe acrobat utilities that provide object embedding and compression/decompression services applications that range from personal information managers to games the range of possibilities for using plug-in technology seems boundless, as shown by the growing numbers of independent software vendors who are creating new and innovative plug-ins.
...when the browser starts, it enumerates the available plug-ins (this step varies according to platform), reads resources from each plug-in file to determine the mime types for that plug-in, and registers each plug-in library for its mime types.
Gecko Plugin API Reference - Plugins
o an ftp server sending mail memory allocating and freeing memory mac os flushing memory (mac os only) version, ui, and status information displaying a status line message getting agent information getting the current version finding out if a feature exists reloading a plug-in plug-in side plug-in api this chapter describes methods in the plug-in api that are available from the plug-in object.
... npp_destroy npp_destroystream npp_getvalue np_getvalue npp_handleevent np_initialize npp_new npp_newstream npp_print npp_setvalue npp_setwindow np_shutdown npp_streamasfile npp_urlnotify npp_write npp_writeready browser side plug-in api this chapter describes methods in the plug-in api that are available from the browser.
3D view - Firefox Developer Tools
from firefox 47 onwards, 3d view is no longer available.
... controlling the 3d view there are keyboard shortcuts and mouse controls available for the 3d view.
Debugging service workers - Firefox Developer Tools
from updating your service worker: if your service worker has previously been installed, but then a new version of the worker is available on refresh or page load, the new version is installed in the background, but not yet activated.
... when your service worker is running, a debug button is available next to the source information (it is disabled when the service worker is stopped).
Application - Firefox Developer Tools
accessing the application panel the application panel is available on the standard devtools tab menu under application, in firefox 79+.
... finding an example if you want to test this functionality and you don't have a handy pwa available, you can grab one of our simple examples to use: add to homescreen demo: shows pictures of foxes (source code | live version) js13kpwa demo: show information on entries to the js13k annual competition (source code | live version) how to debug service workers inspect web app manifests ...
Browser Console - Firefox Developer Tools
the module is available at mozilla dxr.
... console: components.utils.import("resource://devtools/shared/loader.jsm"); var hudservice = devtools.require("devtools/client/webconsole/hudservice"); var hud = hudservice.getbrowserconsole(); var clearbtn = hud.chromewindow.document.queryselector('.webconsole-clear-console-button'); clearbtn.addeventlistener('mouseover', function() { hud.jsterm.clearoutput(true); }, false); bonus features available for add-on sdk add-ons, the console api is available automatically.
Debugger-API - Firefox Developer Tools
(firefox’s builtin tools have a protocol defined for this purpose.) in gecko, the debugger api is available to chrome code only.
... by design, it ought not to introduce security holes, so in principle it could be made available to content as well; but it is hard to justify the security risks of the additional attack surface.
Debugger.Object - Firefox Developer Tools
if the referent is a host function for which parameter names are not available, return an array with one element per parameter, each of which is undefined.
... hostannotations a javascript object providing further metadata about the referent, or null if none is available.
Aggregate view - Firefox Developer Tools
(no stack available) in the example above you'll note that 7% of the heap is marked "(no stack available)".
... many real-world pages will have a much higher "(no stack available)" share than 7%.
Network request details - Firefox Developer Tools
for each line in the response headers section, a question mark links to the documentation for that response header, if one is available.
...for each line in the request headers section, a question mark links to the documentation for that request header, if one is available.
Edit Shape Paths in CSS - Firefox Developer Tools
this guide walks you through all of the available options.
... moving and scaling shapes there is extra functionality available on the shape highlight — if you ctrl/cmd + click on the shapes icon for your shape the highlight will change, instead providing the ability to scale and/or move it.
Toolbox - Firefox Developer Tools
the array may include the following tools: web console javascript debugger page inspector style editor profiler network monitor note that not all the hosted tools are always listed here: only the tools actually available in this context are shown (for example, not all tools support remote debugging yet, so if the debugging target is not the firefox instance that launched the window, not all the hosted tools will be shown).
... the following tools are not included in the toolbar by default, but you can add them in the settings: highlight painted area 3d view (note that this is not available in firefox 40) scratchpad grab a color from the page take a screenshot of the entire page: take a screenshot of the complete web page and saves it in your downloads directory toggle rulers for the page measure a portion of the page: measure a part of the website by selecting areas within the page toolbox controls finally there's a row of buttons to: close the window toggle the window ...
Validators - Firefox Developer Tools
sidebar tabs are not available at this time.
... tune-up wizard links back to devedge if you're writing new code that isn't validating immediately, see the available standards-compliant authoring and development tools.
Animation() - Web APIs
although in the future other effects such as sequenceeffects or groupeffects might be possible, the only kind of effect currently available is keyframeeffect.
...currently the only timeline type available is documenttimeline, but in the future there my be timelines associated with gestures or scrolling, for example.
AudioContext.createMediaStreamDestination() - Web APIs
stopping the mediarecorder causes the dataavailable event to fire, and the event data is pushed into the chunks array.
...t.stream); osc.connect(dest); b.addeventlistener("click", function(e) { if (!clicked) { mediarecorder.start(); osc.start(0); e.target.innerhtml = "stop recording"; clicked = true; } else { mediarecorder.stop(); osc.stop(0); e.target.disabled = true; } }); mediarecorder.ondataavailable = function(evt) { // push each chunk (blobs) in an array chunks.push(evt.data); }; mediarecorder.onstop = function(evt) { // make blob out of our blobs, and open it.
AudioTrack.kind - Web APIs
WebAPIAudioTrackkind
see audio track kind strings for a list of the kinds available for audio tracks.
... audio track kind strings the kinds available for audio tracks are: "alternative" a potential alternative to the main track, such as a different audio take or a version of the soundtrack with only the music and no dialogue.
AudioTrack.label - Web APIs
WebAPIAudioTracklabel
the read-only audiotrack property label returns a string specifying the audio track's human-readable label, if one is available; otherwise, it returns an empty string.
... syntax var audiotracklabel = audiotrack.label; value a domstring specifying the track's human-readable label, if one is available in the track metadata.
AudioWorkletNode - Web APIs
although the interface is available outside secure contexts, the baseaudiocontext.audioworklet property is not, thus custom audioworkletprocessors cannot be defined outside them.
...the other end is available under the port property of the processor.
AuthenticatorAssertionResponse.userHandle - Web APIs
note: an authenticatorassertionresponse instance is available on publickeycredential.response after calling navigator.credentials.get().
... note: this property may only be used in top-level contexts and will not be available in an <iframe> for example.
BasicCardRequest.supportedNetworks - Web APIs
iandroid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetsupportednetworkschrome 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 preference (needs to be set to true).
... webview android no support 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 preference (needs to be set to true).
Using dynamic styling information - Web APIs
</body> </html> the list of properties available in the dom from the style property is given on the dom css properties list page.
...unlike the individual rules available from the document.stylesheets collection, the style object is accessed from the document or from the elements to which that style is applied.
Using the CSS Painting API - Web APIs
the 2d rendering context is a subset of the html5 canvas api; the version available to houdini (called the paintrenderingcontext2d) is a further subset containing most of the features available in the full canvas api with the exception of the canvasimagedata, canvasuserinterface, canvastext, and canvastextdrawingstyles apis.
...hts', class { static get inputproperties() { return ['--boxcolor']; } // input arguments that can be passed to the `paint` function static get inputarguments() { return ['*','']; } static get contextoptions() { return {alpha: true}; } paint(ctx, size, props, args) { // ctx -> drawing context // size -> size of the box being painted // props -> list of custom properties available to the element // args -> list of arguments set when calling the paint() function in the css // where to start the highlight & dimensions const x = 0; const y = size.height * 0.3; const blockwidth = size.width * 0.33; const blockheight = size.height * 0.85; // the values passed in the paint() function in the css const colour = props.get( '--boxcolor' ); const stroketype = args...
CanvasRenderingContext2D.drawWindow() - Web APIs
drawwindow_use_widget_layers 0x08 use the widget layer manager if available.
... ted mielczarek's tab preview extension uses this technique in chrome to provide thumbnails of web pages, and the source is available for reference.
Clients.matchAll() - Web APIs
WebAPIClientsmatchAll
available options are: includeuncontrolled: a boolean — if set to true, the matching operation will return all service worker clients who share the same origin as the current service worker.
...available values are "window", "worker", "sharedworker", and "all".
ClipboardItem.types - Web APIs
the read-only types property of the clipboarditem interface returns an array of mime types available within the clipboarditem syntax var types = clipboarditem.types; value an array of available mime types.
...then checking the types property for available types before utilizing the clipboarditem.gettype() method to return the blob object.
console - Web APIs
WebAPIConsole
for example: console.log("failed to open the specified link") this page documents the methods available on the console object and gives a few usage examples.
... note: this feature is available in web workers.
DOMPointInit.w - Web APIs
WebAPIDOMPointInitw
this method is, by inheritance, also available as dompoint.frompoint().
...by inheritance, this method is also available as dompoint.tojson().
DOMPointInit.y - Web APIs
WebAPIDOMPointInity
this method is, by inheritance, also available as dompoint.frompoint().
...by inheritance, this method is also available as dompoint.tojson().
DOMPointInit.z - Web APIs
WebAPIDOMPointInitz
this method is, by inheritance, also available as dompoint.frompoint().
...by inheritance, this method is also available as dompoint.tojson().
DataTransfer - Web APIs
this object is available from the datatransfer property of all drag events.
... datatransfer.files contains a list of all the local files available on the data transfer.
DisplayMediaStreamConstraints.audio - Web APIs
if a mediatrackconstraints object is given, and an audio source is available, an audio track matching the settings given in the constraints object is included in the mediastream returned by getdisplaymedia().
... if no audio source is available, or the user agent doesn't support audio tracks with getdisplaymedia(), the returned mediastream has no audio track, but no error occurs.
Document.implementation - Web APIs
a list of module names (e.g., core, html, xml, etc.) is available in the dom level 2 conformance section.
...if available, other domimplementation methods provide services for controlling things outside of a single document.
EXT_color_buffer_float - Web APIs
webgl extensions are available using the webglrenderingcontext.getextension() method.
... availability: this extension is available to webgl 2 contexts only.
EXT_color_buffer_half_float - Web APIs
webgl extensions are available using the webglrenderingcontext.getextension() method.
... availability: this extension is available to webgl 1 contexts only.
EXT_float_blend - Web APIs
webgl extensions are available using the webglrenderingcontext.getextension() method.
... availability: this extension is available to both, webgl1 and webgl2 contexts.
EXT_texture_compression_bptc - Web APIs
webgl extensions are available using the webglrenderingcontext.getextension() method.
... this extension is available to both, webgl1 and webgl2 contexts.
EXT_texture_compression_rgtc - Web APIs
webgl extensions are available using the webglrenderingcontext.getextension() method.
... this extension is available to both, webgl1 and webgl2 contexts.
EventTarget.removeEventListener() - Web APIs
the available options are: capture: a boolean which indicates that events of this type will be dispatched to the registered listener before being dispatched to any eventtarget beneath it in the dom tree.
... mozsystemgroup: available only in code running in xbl or in firefox' chrome, it is a boolean defining if the listener is added to the system group.
ExtendableEvent - Web APIs
t" target="_top"><rect x="116" y="1" width="150" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="191" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">extendableevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} note: this interface is only available when the global scope is a serviceworkerglobalscope.
... it is not available when it is a window, or the scope of another kind of worker.
Using Fetch - Web APIs
supplying request options the fetch() method can optionally accept a second parameter, an init object that allows you to control a number of different settings: see fetch() for the full options available, and more details.
...} polyfill to use fetch in unsupported browsers, there is a fetch polyfill available that recreates the functionality for non-supporting browsers.
Fetch API - Web APIs
WebAPIFetch API
this makes it available in pretty much any context you might want to fetch resources in.
... once a response is retrieved, there are a number of methods available to define what the body content is and how it should be handled (see body).
File.mozFullPath - Web APIs
WebAPIFilemozFullPath
this property is only available from within browser code or old-style xpcom-based firefox extensions.
... it is not available to web content.
FileReaderSync - Web APIs
this interface is only available in workers as it enables synchronous i/o that could potentially block.
...— 7.0available in workerschrome full support yesedge full support 12firefox full support 8ie full support yesopera full support yessafari full support ...
File and Directory Entries API support in Firefox - Web APIs
over time, a number of popular sites and web applications came to use it, often without providing any means of falling back to standard apis or even checking to be sure the api is available before using it.
...any interfaces with names that end in "sync" aren't available.
File and Directory Entries API - Web APIs
they're available on the window object and implemented in localfilesystem: requestfilesystem() and resolvelocalfilesystemurl().
...they're available on the worker object and implemented in localfilesystemsync: requestfilesystemsync() and resolvelocalfilesystemsyncurl().
Geolocation API - Web APIs
if they accept, then the browser will use the best available functionality on the device to access this information (for example, gps).
...if sucessful, the available hyperlink is populated with an openstreetmap.org url that will show their location.
GlobalEventHandlers.onerror - Web APIs
available as event (sic!) in html onerror="" handler.
... a good example for this is when you are using an image tag, and need to specify a backup image in case the one you need is not available on the server for any reason.
HTMLDialogElement - Web APIs
htmldialogelement.open a boolean reflecting the open html attribute, indicating whether the dialog is available for interaction.
... also available via the onclose property.
HTMLFormElement.requestSubmit() - Web APIs
examples in the example below, the form is submitted by attempting to send the request using requestsubmit() if it's available.
... if, on the other hand, requestsubmit() isn't available, this code falls back to calling the form's submit() method.
HTMLImageElement.alt - Web APIs
to allow that text to be displayed in place of the image if the image isn't available.
... it is also available to be read by screen readers.
HTMLImageElement.name - Web APIs
this has been replaced by the id property available on all elements.
... recommendation provides additional details not available in the html 5 browser compatibility the compatibility table on this page is generated from structured data.
HTMLImageElement.naturalHeight - Web APIs
if the intrinsic height is not available—either because the image does not specify an intrinsic height or because the image data is not available in order to obtain this information, naturalheight returns 0.
...this is done in response to the window's load event handler, in order to ensure that the image is available before attempting to examine its width and height.
HTMLImageElement.naturalWidth - Web APIs
if the intrinsic width is not available—either because the image does not specify an intrinsic width or because the image data is not available in order to obtain this information, naturalwidth returns 0.
...this is done in response to the window's load event handler, in order to ensure that the image is available before attempting to examine its width and height.
HTMLImageElement - Web APIs
htmlimageelement.naturalheight read only returns an integer value representing the intrinsic height of the image in css pixels, if it is available; else, it shows 0.
... htmlimageelement.naturalwidth read only an integer value representing the intrinsic width of the image in css pixels, if it is available; otherwise, it will show 0.
HTMLMediaElement.canPlayType() - Web APIs
note: this feature is not available in web workers.
... maybe not enough information is available to determine for sure whether or not the media will play until playback is actually attempted.
HTMLMediaElement: ended event - Web APIs
the ended event is fired when playback or streaming has stopped because the end of the media was reached or because no further data is available.
... using addeventlistener(): const video = document.queryselector('video'); video.addeventlistener('ended', (event) => { console.log('video stopped either because 1) it was over, ' + 'or 2) no further data is available.'); }); using the onended event handler property: const video = document.queryselector('video'); video.onended = (event) => { console.log('video stopped either because 1) it was over, ' + 'or 2) no further data is available.'); }; specifications specification status html living standardthe definition of 'ended media event' in that specification.
HTMLMediaElement.load() - Web APIs
this method is generally only useful when you've made dynamic changes to the set of sources available for the media element, either by changing the element's src attribute or by adding or removing <source> elements nested within the media element itself.
... load() will reset the element and rescan the available sources, thereby causing the changes to take effect.
HTMLVideoElement.videoHeight - Web APIs
if the element's readystate is htmlmediaelement.have_nothing, then the value of this property is 0, because neither video nor poster frame size information is yet available.
...this avoids applying invalid changes when there's no true information available yet for dimensions.
HTMLVideoElement.videoWidth - Web APIs
if the element's readystate is htmlmediaelement.have_nothing, then the value of this property is 0, because neither video nor poster frame size information is yet available.
...this avoids applying invalid changes when there's no true information available yet for dimensions.
IDBCursor.request - Web APIs
WebAPIIDBCursorrequest
note: this feature is available in web workers.
... examples when you open a cursor, the request property is then available on that cursor object, to tell you what request object the cursor originated from.
IDBCursor - Web APIs
WebAPIIDBCursor
note: this feature is available in web workers.
... constants these constants are no longer available — they were removed in gecko 25.
IDBCursorWithValue - Web APIs
note: this feature is available in web workers.
... yeschrome android full support yesfirefox android full support 22opera android full support 14safari ios full support 8samsung internet android full support yesavailable in workerschrome full support yesedge full support ≤18firefox full support 42ie ?
IDBEnvironment - Web APIs
note: this feature is available in web workers.
... yeschrome android full support 25firefox android full support 22opera android full support 14safari ios full support 8samsung internet android full support 1.5available in workers deprecatednon-standardchrome full support yesedge full support ≤18firefox full support 37ie ?
databases - Web APIs
the databases method of the idbfactory interface returns a list represening all the available databases, including their names and versions.
... note: this feature is available in web workers.
IDBFactory.open() - Web APIs
WebAPIIDBFactoryopen
note: this feature is available in web workers.
... note: you can find out more information on the different available storage types, and how firefox handles client-side data storage, at browser storage limits and eviction criteria.
IDBIndex.openKeyCursor() - Web APIs
note: cursors returned by openkeycursor() do not make the referenced value available as idbindex.opencursor does.
... note: this feature is available in web workers.
IDBIndex - Web APIs
WebAPIIDBIndex
note: this feature is available in web workers.
...ndor prefix: webkitchrome android full support 25firefox android full support 22opera android full support 14safari ios full support 8samsung internet android full support 1.5available in workerschrome full support yesedge full support ≤18firefox full support 37ie ?
IDBKeyRange - Web APIs
note: this feature is available in web workers.
... yeschrome android full support yesfirefox android full support 22opera android full support 14safari ios full support 8samsung internet android full support yesavailable in workerschrome full support yesedge full support ≤18firefox full support 37ie ?
IDBObjectStore.put() - Web APIs
note: this feature is available in web workers.
... example the following example requests a given record title; when that request is successful the onsuccess function gets the associated record from the idbobjectstore (made available as objectstoretitlerequest.result), updates one property of the record, and then puts the updated record back into the object store in another request with put().
IDBObjectStore - Web APIs
note: this feature is available in web workers.
...pera android full support 14safari ios full support 8samsung internet android full support 1.5 full support 1.5 no support 1.5 — 7.0prefixed prefixed implemented with the vendor prefix: webkitavailable in workerschrome full support yesedge full support ≤18firefox full support 37ie ?
IDBRequest.onerror - Web APIs
note: this feature is available in web workers.
...}; example the following example requests a given record title, onsuccess gets the associated record from the idbobjectstore (made available as objectstoretitlerequest.result), updates one property of the record, and then puts the updated record back into the object store.
IDBRequest.onsuccess - Web APIs
note: this feature is available in web workers.
...}; example the following example requests a given record title, onsuccess gets the associated record from the idbobjectstore (made available as objectstoretitlerequest.result), updates one property of the record, and then puts the updated record back into the object store.
IDBRequest.readyState - Web APIs
note: this feature is available in web workers.
... example the following example requests a given record title, onsuccess gets the associated record from the idbobjectstore (made available as objectstoretitlerequest.result), updates one property of the record, and then puts the updated record back into the object store in another request.
IDBRequest.source - Web APIs
WebAPIIDBRequestsource
note: this feature is available in web workers.
... example the following example requests a given record title, onsuccess gets the associated record from the idbobjectstore (made available as objectstoretitlerequest.result), updates one property of the record, and then puts the updated record back into the object store in another request.
IDBRequest.transaction - Web APIs
note: this feature is available in web workers.
... example the following example requests a given record title, onsuccess gets the associated record from the idbobjectstore (made available as objectstoretitlerequest.result), updates one property of the record, and then puts the updated record back into the object store in another request.
ImageCapture.takePhoto() - Web APIs
the available options are: filllightmode: the flash setting of the capture device, one of "auto", "off", or "flash".
... redeyereduction: a boolean indicating whether the red-eye reduction should be used if it is available.
Browser storage limits and eviction criteria - Web APIs
storage is temporary by default; developers can choose to use persistent storage for their sites using the storagemanager.persist() method available in the storage api.
... lru policy when the available disk space is filled up, the quota manager will start clearing out data based on an lru policy — the least recently used origin will be deleted first, then the next one, until the browser is no longer over the limit.
compareVersion - Web APIs
the majority of this api is now deprecated and as of gecko 1.9 no longer available.
... the following constants can be used to check the value returned by compareversion: int major_diff = 4; int minor_diff = 3; int rel_diff = 2; int bld_diff = 1; int equal = 0; in communicator 4.5, the following constants are defined and available for checking the value returned by compareversion: <code>installtrigger.major_diff installtrigger.minor_diff installtrigger.rel_diff installtrigger.bld_diff installtrigger.equal </code> description the compareversion method compares the version of an installed file or package with a specified version.
Timing element visibility with the Intersection Observer API - Web APIs
the first column (sized automatically based on its content) is used for the sidebar and the second column (which will be used for body content) is sized to be at least the width of the contents of the column and at most all remaining available space.
... the wrapper's width is fixed at 700px so that it will fit in the available space when presented inline on mdn below.
KeyboardEvent: code values - Web APIs
"f2" "f2" kvk_pagedown (0x79) "pagedown" "pagedown" kvk_f1 (0x7a) "f1" "f1" kvk_leftarrow (0x7b) "arrowleft" "arrowleft" kvk_rightarrow (0x7c) "arrowright" "arrowright" kvk_downarrow (0x7d) "arrowdown" "arrowdown" kvk_uparrow (0x7e) "arrowup" "arrowup" code values on linux (x11) (when scancode is available) note that x has too many keys and some of them are not testable with usual keyboard.
...0c3 "f17" "" 0x00c4 "f18" "" 0x00c5 "f19" "" 0x00c6 "f20" "" 0x00c7 "f21" "" 0x00c8 "f22" "" 0x00c9 "f23" "" 0x00ca "f24" "" 0x00cb ~ 0x00e0 "unidentified" "" 0x00e1 "browsersearch" "" code values on android and firefox os (when scancode is available) scancode gecko 0x0001 "escape" 0x0002 "digit1" 0x0003 "digit2" 0x0004 "digit3" 0x0005 "digit4" 0x0006 "digit5" 0x0007 "digit6" 0x0008 "digit7" 0x0009 "digit8" 0x000a "digit9" 0x000b "digit0" 0x000c "minus" 0x000d "equal...
LocalMediaStream - Web APIs
warning: this interface is no longer available in any mainstream browser.
...this method is no longer available with the deprecation of localmediastream.
MediaDevices.getDisplayMedia() - Web APIs
notfounderror no sources of screen video are available for capture.
... the specified constraints can't be used to limit the options available to the user.
MediaDevices.ondevicechange - Web APIs
this happens whenever the set of media devices available to the user agent and, by extension, to the web site or app has changed.
... you can at any time use enumeratedevices() to get the updated list of available devices.
MediaError - Web APIs
media_err_network 2 some kind of network error occurred which prevented the media from being successfully fetched, despite having previously been available.
...if no diagnostics are available, or no explanation can be provided, this value is an empty string ("").
MediaRecorder.onerror - Web APIs
recording stops, the mediarecorder's state becomes inactive, one last dataavailable event is sent to the mediarecorder with the remaining received data, and finally a stop event is sent.
... function recordstream(stream) { let recorder = null; let bufferlist = []; try { recorder = new mediarecorder(stream); } catch(err) { return err.name; /* return the error name */ } recorder.ondataavailable = function(event) { bufferlist.push(event.data); }; recorder.onerror = function(event) { let error = event.error; switch(error.name) { case invalidstateerror: shownotification("you can't record the video right " + "now.
MediaRecorder.onstop - Web APIs
in each case, the stop event is preceded by a dataavailable event, making the blob captured up to that point available for you to use in your application.
... mediarecorder.onstop = function(e) { console.log("data available after mediarecorder.stop() called."); var audio = document.createelement('audio'); audio.controls = true; var blob = new blob(chunks, { 'type' : 'audio/ogg; codecs=opus' }); var audiourl = window.url.createobjecturl(blob); audio.src = audiourl; console.log("recorder stopped"); } mediarecorder.ondataavailable = function(e) { chunks.push(e.data); } ...
MediaRecorder.stop() - Web APIs
raise a dataavailable event containing the blob of data that has been gathered.
... stop.onclick = function() { mediarecorder.stop(); console.log("recorder stopped, data available"); } ...
MediaSession.setActionHandler() - Web APIs
the following strings identify the currently available types of media session action: nexttrack advances playback to the next track.
...this action may or may not be available, depending on the platform and user agent, or may be disabled due to subscription level or other circumstances.
Media Session action types - Web APIs
the following strings identify the currently available types of media session action: nexttrack advances playback to the next track.
...this action may or may not be available, depending on the platform and user agent, or may be disabled due to subscription level or other circumstances.
MediaSessionActionDetails - Web APIs
the following strings identify the currently available types of media session action: nexttrack advances playback to the next track.
...this action may or may not be available, depending on the platform and user agent, or may be disabled due to subscription level or other circumstances.
MediaStream - Web APIs
also available via the onaddtrack property.
... also available via the onremovetrack property.
MediaStreamConstraints.audio - Web APIs
syntax var audioconstraints = true | false | mediatrackconstraints; value the value of the audio property can be specified as either of two types: boolean if a boolean value is specified, it simply indicates whether or not an audio track should be included in the returned stream; if it's true, an audio track is included; if no audio source is available or if permission is not given to use the audio source, the call to getusermedia() will fail.
...as long as an audio input device is available and the user allows it to be used, an audio track will be included in the resulting stream, and it will match the specified constraints as well as possible.
MediaStreamConstraints.video - Web APIs
syntax var videoconstraints = true | false | mediatrackconstraints; value the value of the video property can be specified as either of two types: boolean if a boolean value is specified, it simply indicates whether or not a video track should be included in the returned stream; if it's true, a video track is included; if no video source is available or if permission is not given to use the video source, the call to getusermedia() will fail.
...as long as a video input device is available and the user allows it to be used, a video track will be included in the resulting stream, and it will match the specified constraints as well as possible.
MediaStreamTrack.applyConstraints() - Web APIs
the advanced property further specifies that an image size of 1920 by 1280 is the preferred or an aspect ratio of 1.333 if that is not available.
... }) .catch(e => { // the constraints could not be satisfied by the available devices.
MediaStream Image Capture API - Web APIs
the example below simply says give me whatever video device is available, though the getusermedia() method allows more specific capabilities to be requested.
... photocapabilities provides available configuration options for an attached photographic device.
Using the MediaStream Recording API - Web APIs
const mediarecorder = new mediarecorder(stream); there are a series of methods available in the mediarecorder interface that allow you to control recording of the media stream; in web dictaphone we just make use of two, and listen to some events.
...we register an event handler to do this using mediarecorder.ondataavailable: let chunks = []; mediarecorder.ondataavailable = function(e) { chunks.push(e.data); } note: the browser will fire dataavailable events as needed, but if you want to intervene you can also include a timeslice when invoking the start() method — for example start(10000) — to control this interval, or call mediarecorder.requestdata() to trigger an event when you need it.
MediaTrackSettings - Web APIs
properties some or all of the following will be included in the object, either because it's not supported by the browser or because it's not available due to context.
...latency is the amount of time which elapses between the start of processing the audio and the data being available to the next stop in the audio utilization process.
Capabilities, constraints, and settings - Web APIs
to collect a list of the available devices, you can call navigator.mediadevices.enumeratedevices(), then for each device which meets the desired criteria, add its deviceid to the mediaconstraints object that eventually gets passed into getusermedia().
... below all of that, you'll see the video itself.</p> <p>click the "start" button to begin.</p> <h3>constrainable properties available:</h3> <ul id="supportedconstraints"> </ul> <div id="startbutton" class="button"> start </div> <div class="wrapper"> <div class="trackrow"> <div class="leftside"> <h3>requested video constraints:</h3> <textarea id="videoconstrainteditor" cols=32 rows=8></textarea> </div> <div class="rightside"> <h3>actual video settings:</h3> <textarea id="videosettingstext"...
MouseEvent.pageX - Web APIs
WebAPIMouseEventpageX
example more examples you can also see an example that demonstrates how to access the mouse position information in every available coordinate system.
... prior to being added to the cssom view specification, pagex and pagey were available on the uievent interface in a limited subset of browsers for a short time.
Navigator.xr - Web APIs
WebAPINavigatorxr
to determine if webxr is available, you can do something like this: if ("xr" in window.navigator) { /* webxr can be used!
... */ } else { /* webxr isn't available */ } specifications specification status comment webxr device apithe definition of 'navigator.xr' in that specification.
navigator.hardwareConcurrency - Web APIs
note: this feature is available in web workers.
... the navigator.hardwareconcurrency read-only property returns the number of logical processors available to run threads on the user's computer.
NetworkInformation.rtt - Web APIs
if no recent measurement data is available, the value is based on the properties of the underlying connection technology.
... note: this feature is available in web workers.
Node.getRootNode() - Web APIs
WebAPINodegetRootNode
the getrootnode() method of the node interface returns the context object's root, which optionally includes the shadow root if it is available.
...the available options are: composed: a boolean that indicates whether the shadow root should be returned (false, the default), or a root node beyond shadow root (true).
Node - Web APIs
WebAPINode
node.baseuriobject read only (not available to web content.) the nsiuri object representing the base uri for the element.
... node.getrootnode() returns the context object's root which optionally includes the shadow root if it is available.
Notification.Notification() - Web APIs
note: this feature is available in web workers.
... actions: an array of notificationactions representing the actions available to the user when the notification is presented.
Notification.requestPermission() - Web APIs
note: this feature is available in web workers.
... note: this feature is not available in sharedworker note: safari still uses the callback syntax to get the permission.
NotificationAction - Web APIs
note: this feature is available in web workers.
... properties instance properties these properties are available only on instances of the notification object.
Using the Notifications API - Web APIs
note: this feature is available in web workers.
...we did this using the following: function checknotificationpromise() { try { notification.requestpermission().then(); } catch(e) { return false; } return true; } we basically try to see if the .then() method is available on requestpermission().
OES_texture_float_linear - Web APIs
webgl extensions are available using the webglrenderingcontext.getextension() method.
... availability: this extension is available to both, webgl1 and webgl2 contexts.
OES_texture_half_float_linear - Web APIs
webgl extensions are available using the webglrenderingcontext.getextension() method.
... availability: this extension is available to both, webgl1 and webgl2 contexts.
OVR_multiview2 - Web APIs
for more information, see also: multiview on webxr three.js multiview demo multiview in babylon.js optimizing virtual reality: understanding multiview multiview webgl rendering for oculus browser 6.0+ webgl extensions are available using the webglrenderingcontext.getextension() method.
... this extension is only available to webgl 2 contexts as it needs glsl 3.00 and texture arrays.
OfflineAudioContext - Web APIs
note: the resume() method is still available — it is now defined on the baseaudiocontext interface (see baseaudiocontext.resume()) and thus can be accessed by both the audiocontext and offlineaudiocontext interfaces.
... also available using the oncomplete event handler property.
OscillatorNode.type - Web APIs
there are several common waveforms available, as well as an option to specify a custom waveform shape.
...the different available values are: sine a sine wave.
PaymentAddress.toJSON() - Web APIs
to change preferences in chrome, visit chrome://flags.edge full support 15firefox full support 62notes disabled full support 62notes disabled notes available only in nightly builds.
...to change preferences in chrome, visit chrome://flags.firefox android full support 62notes disabled full support 62notes disabled notes available only in nightly builds.
PaymentMethodChangeEvent.methodDetails - Web APIs
the value is null if no details are available.
... the default value is null, indicating that no additional details are available.
PaymentRequest.abort() - Web APIs
droid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetabort()chrome 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 preference (needs to be set to true).
... 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 preference (needs to be set to true).
PaymentRequest.canMakePayment() - Web APIs
viewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetcanmakepayment()chrome 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 preference (needs to be set to true).
... 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 preference (needs to be set to true).
PaymentRequest.onshippingaddresschange - Web APIs
ome for androidfirefox for androidopera for androidsafari on iossamsung internetonshippingaddresschangechrome 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 preference (needs to be set to true).
... 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 preference (needs to be set to true).
PaymentRequest.onshippingoptionchange - Web APIs
rome for androidfirefox for androidopera for androidsafari on iossamsung internetonshippingoptionchangechrome 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 preference (needs to be set to true).
... 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 preference (needs to be set to true).
PaymentRequest.shippingOption - Web APIs
ebviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetshippingoptionchrome 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 preference (needs to be set to true).
... 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 preference (needs to be set to true).
PaymentRequest.shippingType - Web APIs
webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetshippingtypechrome 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 preference (needs to be set to true).
... 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 preference (needs to be set to true).
PaymentRequestUpdateEvent - Web APIs
also available using the onshippingaddresschange event handler property.
... also available using the onshippingoptionchange event handler property.
PaymentResponse.complete() - Web APIs
id webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetcomplete()chrome 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 preference (needs to be set to true).
...to change preferences 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 preference (needs to be set to true).
PaymentResponse.details - Web APIs
droid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetdetailschrome 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 preference (needs to be set to true).
...to change preferences 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 preference (needs to be set to true).
PaymentResponse.payerEmail - Web APIs
id webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetpayeremailchrome 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 preference (needs to be set to true).
...to change preferences 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 preference (needs to be set to true).
PaymentRequest.payerName - Web APIs
oid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetpayernamechrome 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 preference (needs to be set to true).
... 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 preference (needs to be set to true).
PaymentResponse.requestId - Web APIs
oid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetrequestidchrome 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 preference (needs to be set to true).
... 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 preference (needs to be set to true).
PaymentResponse.shippingAddress - Web APIs
bviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetshippingaddresschrome 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 preference (needs to be set to true).
...to change preferences 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 preference (needs to be set to true).
PaymentResponse.shippingOption - Web APIs
ebviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetshippingoptionchrome 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 preference (needs to be set to true).
...to change preferences 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 preference (needs to be set to true).
Payment Request API - Web APIs
it is not a new way for paying for things; rather, it's a way for users to select their preferred way of paying for things, and make that information available to a merchant.
... note: the api is available inside cross-origin <iframe> elements only if they have had the allowpaymentrequest attribute set on them.
performance.now() - Web APIs
WebAPIPerformancenow
note: this feature is available in web workers.
... syntax t = performance.now(); example const t0 = performance.now(); dosomething(); const t1 = performance.now(); console.log(`call to dosomething took ${t1 - t0} milliseconds.`); unlike other timing data available to javascript (for example date.now), the timestamps returned by performance.now() are not limited to one-millisecond resolution.
PerformanceServerTiming - Web APIs
note: this feature is available in web workers.
...note that this interface is only available in secure contexts (https) in some browsers.
Permissions API - Web APIs
the permissions property has been made available on the navigator object, both in the standard browsing context and the worker context (workernavigator — so permission checks are available inside workers), and returns a permissions object that provides access to the permissions api functionality.
... examples we have made a simple example available called location finder.
PhotoCapabilities.fillLightMode - Web APIs
the filllightmode read-only property of the photocapabilities interface returns all available fill light options of the source device.
... syntax const lightmodes = photocapabilities.filllightmode value an array of available fill light modes.
PhotoCapabilities - Web APIs
the photocapabilities interface of the the mediastream image capture api provides available configuration options for an attached photographic device.
... photocapabilities.filllightmode read only returns an array of available fill light options.
Multi-touch interaction - Web APIs
a live version of this application is available on github.
... the source code is available on github; pull requests and bug reports are welcome.
Pinch zoom gestures - Web APIs
a live version of this application is available on github.
... the source code is available on github; pull requests and bug reports are welcome.
Using Pointer Events - Web APIs
a live version of this application is available on github.
... the source code is available on github and pull requests and bug reports are welcome.
PublicKeyCredential - Web APIs
publickeycredential.isuserverifyingplatformauthenticatoravailable()secure context a static method returning a promise which resolves to true if an authenticator bound to the platform is capable of verifying the user.
... with the current state of implementation, this method only resolves to true when windows hello is available on the system.
RTCConfiguration.certificates - Web APIs
the rtcconfiguration dictionary's optional certificates property is an array of rtccertificate objects providing the security certificates available for use when authenticating duing the connection process.
...]; let certificates = rtcconfiguration.certificates; value an array of rtccertificate objects, each specifying one security certificate available for use when connecting to a remote peer.
RTCConfiguration - Web APIs
you may find in some cases that connections can be established more quickly by allowing the ice agent to start fetching ice candidates before you start trying to connect, so that they're already available for inspection when rtcpeerconnection.setlocaldescription() is called.
...if this isn't specified, the connection attempt will be made with no stun or turn server available, which limits the connection to local peers.
RTCIceCandidatePairStats - Web APIs
in addition, it adds the following new properties: availableincomingbitrate optional provides an informative value representing the available inbound capacity of the network by reporting the total number of bits per second available for all of the candidate pair's incoming rtp streams.
... availableoutgoingbitrate optional provides an informative value representing the available outbound capacity of the network by reporting the total number of bits per second available for all of the candidate pair's outoing rtp streams.
RTCInboundRtpStreamStats.firCount - Web APIs
this statistic is available only for video tracks.
... the higher fircount is, the more often frames were dropped, which may be an indication that the media's bit rate is too high for the available bandwidth, or that the receiving device is overburdened and is therefore unable to process the incoming data.
RTCOutboundRtpStreamStats - Web APIs
only available for video streams.
...available only for video streams.
RTCPeerConnection() - Web APIs
you may find in some cases that connections can be established more quickly by allowing the ice agent to start fetching ice candidates before you start trying to connect, so that they're already available for inspection when rtcpeerconnection.setlocaldescription() is called.
...if this isn't specified, the connection attempt will be made with no stun or turn server available, which limits the connection to local peers.
RTCPeerConnection: peeridentity event - Web APIs
bubbles no cancelable no interface event event handler property onpeeridentity important: this event and its event handler have been removed from the specification and are no longer available.
... instead of using this event to detect when an identity is available, simply wait for the promise returned by rtcpeerconnection.peeridentity to be resolved.
RTCRtpReceiver.getStats() - Web APIs
the rtcrtpreceiver method getstats() asynchronously requests an rtcstatsreport object which provides statistics about incoming traffic on the owning rtcpeerconnection, returning a promise whose fulfillment handler will be called once the results are available.
... syntax var promise = rtcrtpreceiver.getstats(); return value a javascript promise which is fulfilled once the statistics are available.
RTCRtpSender.getStats() - Web APIs
the rtcrtpsender method getstats() asynchronously requests an rtcstatsreport object which provides statistics about outgoing traffic on the rtcpeerconnection which owns the sender, returning a promise which is fulfilled when the results are available.
... syntax var promise = rtcrtpsender.getstats(); return value a javascript promise which is fulfilled once the statistics are available.
RTCRtpStreamStats.firCount - Web APIs
this value is available only on receivers for video tracks.
... the higher fircount is, the more often frames were dropped, which may be an indication that the media's bit rate is too high for the available bandwidth, or that the receiving device is overburdened and is therefore unable to process the incoming data.
RTCStatsType - Web APIs
this report isn't available if there are no connected peers.
...this information considers only the outbound rtp stream, so any data which requires information about the state of the remote peers (such as round-trip time) is unavailable, since those values can't be computed without knowing about the other peers' states.
RTCTrackEvent - Web APIs
properties since rtctrackevent is based on event, its properties are also available.
... you can add a track event listener to be notified when the new track is available so that you can, for example, attach its media to a <video> element, using either rtcpeerconnection.addeventlistener() or the ontrack event handler property.
ReportingObserver() - Web APIs
the available options are: types: an array of strings representing the types of report to be collected by this observer.
... available types include deprecation, intervention, and crash (although this last type usually isn't retrievable via a reportingobserver).
Response - Web APIs
WebAPIResponse
body interface properties response implements body, so it also has the following properties available to it: body.body read only a simple getter exposing a readablestream of the body contents.
... body interface methods response implements body, so it also has the following methods available to it: body.arraybuffer() takes a response stream and reads it to completion.
Screen.availLeft - Web APIs
WebAPIScreenavailLeft
returns the first available pixel available from the left side of the screen.
... on windows, this property depends on which screen is set as your primary, returning the x coordinate of the leftmost available pixel relative to the primary screen.
Screen.height - Web APIs
WebAPIScreenheight
} notes note that not all of the height given by this property may be available to the window itself.
... widgets such as taskbars or other special application windows that integrate with the os (e.g., the spinner player minimized to act like an additional toolbar on windows) may reduce the amount of space available to browser windows and other applications.
Screen - Web APIs
WebAPIScreen
screen.availleft returns the first available pixel available from the left side of the screen.
... screen.availwidth returns the amount of horizontal space in pixels available to the window.
Sensor APIs - Web APIs
making all this information consistently available is costly to performance and battery life.
...notice that detection through the navigator interface is not one of the available options.
ServiceWorker - Web APIs
a serviceworker object is available in the serviceworkerregistration.active property, and the serviceworkercontainer.controller property — this is a service worker that has been activated and is controlling the page (the service worker has been successfully registered, and the controlled page has been reloaded.) the serviceworker interface is dispatched a set of lifecycle events — install and activate — and functional events including fetch.
...the service-worker.js file // might be unavailable or contain a syntax error.
ServiceWorkerRegistration.getNotifications() - Web APIs
notifications created by one service worker on the same origin will not be available to other active services workers on that same origin.
...the available options are: tag: a domstring representing a notification tag.
StorageQuota.supportedTypes - Web APIs
the supportedtypes read-only property of the storagequota interface returns a list of the available storage types.
... syntax var storagetypes = storagequota.supportedtypes value a frozen array of available storage types.
StorageQuota - Web APIs
properties storagequota.supportedtypes read only returns a list of the available storage types.
... methods storagequota.queryinfo returns a storageinfo object containting the current data usage and available quota information for the application.
Storage API - Web APIs
note: this feature is available in web workers.
... quotas are conservative estimates of the space available for the origin's use, and should be less than the available space on the device to help prevent overruns.
Streams API concepts - Web APIs
there are two methods available in the spec to facilitate this: readablestream.pipethrough() — pipes the stream through a transform stream, which is a pair comprised of a writable stream that has data written to it, and a readable stream that then has the data read out of it — this acts as a kind of treadmill that constantly takes data in and transforms it to a new state.
... note: this functionality isn't fully thought through yet, or available in many browsers.
msManipulationViewsEnabled - Web APIs
the msmanipulationviewsenabled read-only property returns true if manipulation features are support available, such as touch panning and zooming using css rules.
... value returns true if manipulation features are support available, such as touch panning and zooming using css rules.
TouchEvent - Web APIs
a demo is available on the google developer site.
... globaleventhandlers the globaleventhandlers mixin defines these events as global events that are available on any element in the dom that the user can interact with.
Multi-touch interaction - Web APIs
a live version of this application is available on github.
... the source code is available on github and pull requests and bug reports are welcome.
URL.createObjectURL() - Web APIs
note: this feature is available in web workers.
... note: this feature is not available in service workers due to its potential to create memory leaks.
URL.revokeObjectURL() - Web APIs
note: this feature is available in web workers.
... note: this method is not available from service workers, due to issues with the blob interface's life cycle and the potential for leaks.
VideoTrack.kind - Web APIs
WebAPIVideoTrackkind
see video track kind strings for a list of the kinds available for video tracks.
... video track kind strings the kinds available for video tracks are: "alternative" a potential alternative to the main track, such as a different video take or a version of the soundtrack with only the music and no dialogue.
VideoTrack.label - Web APIs
WebAPIVideoTracklabel
the read-only videotrack property label returns a string specifying the video track's human-readable label, if one is available; otherwise, it returns an empty string.
... syntax var videotracklabel = videotrack.label; value a domstring specifying the track's human-readable label, if one is available in the track metadata.
WEBGL_color_buffer_float - Web APIs
webgl extensions are available using the webglrenderingcontext.getextension() method.
... availability: this extension is available to webgl 1 contexts only.
WEBGL_compressed_texture_etc - Web APIs
webgl extensions are available using the webglrenderingcontext.getextension() method.
... availability: this extension is available to both, webgl1 and webgl2 contexts.
WEBGL_compressed_texture_etc1 - Web APIs
webgl extensions are available using the webglrenderingcontext.getextension() method.
... availability: this extension is available to both, webgl1 and webgl2 contexts.
WEBGL_compressed_texture_s3tc - Web APIs
webgl extensions are available using the webglrenderingcontext.getextension() method.
... availability: this extension is available to both, webgl1 and webgl2 contexts.
WEBGL_compressed_texture_s3tc_srgb - Web APIs
webgl extensions are available using the webglrenderingcontext.getextension() method.
... availability: this extension is available to both webgl1 and webgl2 contexts.
WEBGL_lose_context - Web APIs
webgl extensions are available using the webglrenderingcontext.getextension() method.
... availability: this extension is available to both, webgl1 and webgl2 contexts.
WebGLRenderingContext.blendEquationSeparate() - Web APIs
when using a webgl 2 context, the following values are available additionally: gl.min: minimum of source and destination, gl.max: maximum of source and destination.
... when using a webgl 2 context, the following values are available additionally: gl.min: minimum of source and destination, gl.max: maximum of source and destination.
WebGLRenderingContext.bufferData() - Web APIs
when using a webgl 2 context, the following values are available additionally: gl.copy_read_buffer: buffer for copying from one buffer object to another.
... when using a webgl 2 context, the following values are available additionally: gl.static_read: the contents are intended to be specified once by reading data from webgl, and queried many times by the application.
WebGLRenderingContext.enableVertexAttribArray() - Web APIs
these are only available to the javascript code and the vertex shader.
... with the index of the vertex position attribute now available in avertexposition, we call enablevertexattribarray() to enable the position attribute so it can be used by the shader program (in particular, by the vertex shader).
WebGLRenderingContext.framebufferRenderbuffer() - Web APIs
when using a webgl 2 context, the following values are available additionally: gl.draw_framebuffer: equivalent to gl.framebuffer.
... when using a webgl 2 context, the following values are available additionally: gl.color_attachment1 gl.color_attachment2 gl.color_attachment3 gl.color_attachment4 gl.color_attachment5 gl.color_attachment6 gl.color_attachment7 gl.color_attachment8 gl.color_attachment9 gl.color_attachment10 gl.color_attachment11 gl.color_attachment12 gl.color_attachment13 gl.color_attachment14 gl.color...
WebGLRenderingContext.framebufferTexture2D() - Web APIs
when using a webgl 2 context, the following values are available additionally: gl.draw_framebuffer: equivalent to gl.framebuffer.
... when using a webgl 2 context, the following values are available additionally: gl.depth_stencil_attachment: depth and stencil buffer.
WebGLRenderingContext.getBufferParameter() - Web APIs
when using a webgl 2 context, the following values are available additionally: gl.copy_read_buffer: buffer for copying from one buffer object to another.
... when using a webgl 2 context, the following values are available additionally: gl.static_read, gl.dynamic_read, gl.stream_read, gl.static_copy, gl.dynamic_copy, gl.stream_copy.
WebGLRenderingContext.texImage2D() - Web APIs
when using the webgl_depth_texture extension: gl.depth_component gl.depth_stencil when using the ext_srgb extension: ext.srgb_ext ext.srgb_alpha_ext when using a webgl 2 context, the following values are available additionally: gl.r8 gl.r16f gl.r32f gl.r8ui gl.rg8 gl.rg16f gl.rg32f gl.rg8ui gl.rg16ui gl.rg32ui gl.rgb8 gl.srgb8 gl.rgb565 gl.r11f_g11f_b10f gl.rgb9_e5 gl.rgb16f gl.rgb32f gl.rgb8ui gl.rgba8 gl.srgb8_alpha8 gl.rgb5_a1 gl.rgb10_a2 gl.rgba4 gl.rgba16f gl.rgba32f gl.rgba8ui width...
...bgl_depth_texture extension: gl.unsigned_short gl.unsigned_int ext.unsigned_int_24_8_webgl (constant provided by the extension) when using the oes_texture_float extension: gl.float when using the oes_texture_half_float extension: ext.half_float_oes (constant provided by the extension) when using a webgl 2 context, the following values are available additionally: gl.byte gl.unsigned_short gl.short gl.unsigned_int gl.int gl.half_float gl.float gl.unsigned_int_2_10_10_10_rev gl.unsigned_int_10f_11f_11f_rev gl.unsigned_int_5_9_9_9_rev gl.unsigned_int_24_8 gl.float_32_unsigned_int_24_8_rev (pixels must be null) pixels one of the following objects can be used as a pixel source for t...
WebGLRenderingContext.texSubImage2D() - Web APIs
when using the ext_srgb extension: ext.srgb_ext ext.srgb_alpha_ext when using a webgl 2 context, the following values are available additionally: gl.red gl.rg gl.red_integer gl.rg_integer gl.rgb_integer gl.rgba_integer type a glenum specifying the data type of the texel data.
... when using the oes_texture_float extension: gl.float when using the oes_texture_half_float extension: gl.half_float_oes when using a webgl 2 context, the following values are available additionally: gl.byte gl.unsigned_short gl.short gl.unsigned_int gl.int gl.half_float gl.float gl.unsigned_int_2_10_10_10_rev gl.unsigned_int_10f_11f_11f_rev gl.unsigned_int_5_9_9_9_rev gl.unsigned_int_24_8 gl.float_32_unsigned_int_24_8_rev (pixels must be null) pixels one of the following objects can be used as a pixel source for t...
Matrix math for the web - Web APIs
this article is also available as an mdn content kit.
... the live examples use a collection of utility functions available under a global object named mdn.
Animating textures in WebGL - Web APIs
we need both of these checks because it will produce an error if you upload a video to webgl that has no data available yet.
... checking for both of these events guarantees there is data available and it's safe to start uploading video to a webgl texture.
Getting started with WebGL - Web APIs
it's worth noting here that this series of articles introduces webgl itself; however, there are a number of frameworks available that encapsulate webgl's capabilities, making it easier to build 3d applications and games, such as three.js and babylon.js.
... // // start here // function main() { const canvas = document.queryselector("#glcanvas"); // initialize the gl context const gl = canvas.getcontext("webgl"); // only continue if webgl is available and working if (gl === null) { alert("unable to initialize webgl.
WebRTC connectivity - Web APIs
this is known as an ice candidate and details the available methods the peer is able to communicate (directly or through a turn server).
... generally, ice candidates using tcp are only going to be used when udp is not available or is restricted in ways that make it not suitable for media streaming.
WebRTC API - Web APIs
the library is also available as an npm package.
... datachannel a new rtcdatachannel is available following the remote peer opening a new data channel.
WebRTC Statistics API - Web APIs
the webrtc api has a vast array of statistics available, covering the entire breadth of the webrtc connectivity system, from sender to receiver and peer to peer.
...the table below shows the statistic categories and the corresponding dictionaries; for each statistic category, the full hierarchy of rtcstats-based dictionaries are listed, so you can easily find all the available values.
Web Video Text Tracks Format (WebVTT) - Web APIs
there is also a small api available to represent and manage these tracks and the data needed to perform the playback of the text at the correct times.
...we can categorize them for better understanding relating to each interface in webvtt: vttcue the methods which are available in this interface are: getcueashtml to get the html of that cue.
Web Animations API Concepts - Web APIs
it also provides a point of reference all browsers can adhere to with the currently available specs.
... we currently have only one animation effect type available: keyframeeffect.
Basic concepts behind Web Audio API - Web APIs
channel notation the number of audio channels available on a signal is frequently presented in a numeric format, such as 2.0 or 5.1.
...the web audio api has an analysernode available that doesn't alter the audio signal passing through it.
Example and tutorial: Simple synth keyboard - Web APIs
<div class="container"> <div class="keyboard"></div> </div> the <div> named "container" is the scrollable box that lets the keyboard be scrolled horiontally if it's too wide for the available space.
... the waveform picker on the right side of the settings bar, we place a label and a <select> element named "waveform" whose options correspond to the available waveforms.
Using the Web Audio API - Web APIs
all of this has stayed intact; we are merely allowing the sound to be available to the web audio api.
... more examples there are other examples available to learn more about the web audio api.
Web Authentication API - Web APIs
- the server is connected by https or is the localhost), and will not be available for use if the browser is not operating in a secure context.
... 0xee, 0xb9, 0x94, 0xc3, 0xc2, 0x15, 0x67, 0x65, 0x26, 0x22, 0xe3, 0xf3, 0xab, 0x3b, 0x78, 0x2e, 0xd5, 0x6f, 0x81, 0x26, 0xe2, 0xa6, 0x01, 0x7d, 0x74, 0x50 ]).buffer }, }; // register / create a new credential navigator.credentials.create(createcredentialdefaultargs) .then((cred) => { console.log("new credential", cred); // normally the credential ids available for an account would come from a server // but we can just copy them from above...
Web Speech API - Web APIs
generally you'll use the interface's constructor to create a new speechrecognition object, which has a number of event handlers available for detecting when speech is input through the device's microphone.
... speech synthesis speechsynthesis the controller interface for the speech service; this can be used to retrieve information about the synthesis voices available on the device, start and pause speech, and other commands besides.
Web Storage API - Web APIs
web storage concepts and usage the two mechanisms within web storage are as follows: sessionstorage maintains a separate storage area for each given origin that's available for the duration of the page session (as long as the browser is open, including page reloads and restores) stores data only for a session, meaning that the data is stored until the browser (or tab) is closed.
... these mechanisms are available via the window.sessionstorage and window.localstorage properties (to be more precise, in supporting browsers the window object implements the windowlocalstorage and windowsessionstorage objects, which the localstorage and sessionstorage properties hang off) — invoking one of these will create an instance of the storage object, through which data items can be set, retrieved and removed.
Window.open() - Web APIs
WebAPIWindowopen
return value a windowproxy object, which is basically a thin wrapper for the window object representing the newly created window, and has all its features available.
...some code snippets are available.
window.postMessage() - Web APIs
o http headers: cross-origin-opener-policy with same-origin as value (protects your origin from attackers) cross-origin-embedder-policy with require-corp as value (protects victims from your origin) cross-origin-opener-policy: same-origin cross-origin-embedder-policy: require-corp to check if cross origin isolation has been successful, you can test against the crossoriginisolated property available to window and worker contexts: if (crossoriginisolated) { // post sharedarraybuffer } else { // do something else } see also planned changes to shared memory which is starting to roll out to browsers (firefox 79, for example).
... using window.postmessage in extensions window.postmessage is available to javascript running in chrome code (e.g., in extensions and privileged code), but the source property of the dispatched event is always null as a security restriction.
WindowOrWorkerGlobalScope.fetch() - Web APIs
the fetch() method of the windoworworkerglobalscope mixin starts the process of fetching a resource from the network, returning a promise which is fulfilled once the response is available.
... windoworworkerglobalscope is implemented by both window and workerglobalscope, which means that the fetch() method is available in pretty much any context in which you might want to fetch resources.
WorkerGlobalScope.self - Web APIs
this provides a full list of the objects available to that worker scope, so it is quite a useful test if you want to see whether something is available to your worker or not.
... we also maintain a list of functions and classes available to web workers.
How to check the security state of an XMLHTTPRequest over SSL - Web APIs
the channel property becomes available only after the request is sent and the connection was established, that is, on readystate loaded, interactive or completed.
...ection\n"); } else if ((secinfo.securitystate & ci.nsiwebprogresslistener.state_is_broken) == ci.nsiwebprogresslistener.state_is_broken) { dump("unknown\n"); dump("\tsecurity description: " + secinfo.shortsecuritydescription + "\n"); dump("\tsecurity error message: " + secinfo.errormessage + "\n"); } } else { dump("\tno security info available for this channel\n"); } // print ssl certificate details if (secinfo instanceof ci.nsisslstatusprovider) { var cert = secinfo.queryinterface(ci.nsisslstatusprovider) .sslstatus.queryinterface(ci.nsisslstatus).servercert; dump("\tcommon name (cn) = " + cert.commonname + "\n"); dump("\tissuer = " + cert.issuerorganization + "\n"); ...
Using XMLHttpRequest - Web APIs
*/ however, more modern techniques are available, since the responsetype attribute now supports a number of additional content types, which makes sending and receiving binary data much easier.
...the upload events are fired on the xmlhttprequest.upload object, as shown below: var oreq = new xmlhttprequest(); oreq.upload.addeventlistener("progress", updateprogress); oreq.upload.addeventlistener("load", transfercomplete); oreq.upload.addeventlistener("error", transferfailed); oreq.upload.addeventlistener("abort", transfercanceled); oreq.open(); note: progress events are not available for the file: protocol.
XRBoundedReferenceSpace.boundsGeometry - Web APIs
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 xrboundedreferencespace's effective origiin.
...instead, it's meant to be used for one-room spaces with no more than around 15 meters of available movement space in any direction from the native origin.
XRInputSourcesChangeEvent() - Web APIs
the xrinputsourceschangeevent() constructor creates and returns a new xrinputsourceschangeevent object, representing an update to the list of available webxr input devices.
... event types inputsourceschange delivered to the xrsession when the set of input devices available to it changes.
XRInputSourcesChangeEventInit - Web APIs
properties added read only an array of zero or more xrinputsource objects, each representing one input device which is newly available to use.
... removed read only an array of zero or more xrinputsource objects representing the input devices which are no longer available.
XRPermissionDescriptor.optionalFeatures - Web APIs
sionmode, requiredfeatures: reqfeaturelist, optionalfeatures: optfeaturelist }; xrpermissiondescriptor.optionalfeatures = optfeaturelist; optfeaturelist = xrpermissiondescriptor.optionalfeatures; value an array of strings taken from the xrreferencespacetype 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 xrreferencespacetype enumerated type, indicating reference spaces the app rquires to be available.
XRSystem: devicechange event - Web APIs
example the example shown here handles the devicechange event by toggling the availability of the "enter xr" button based on whether or not any immersive devices are currently available.
...listener("devicechange", event => { navigator.xr.issessionsupported("immersive-vr") .then(immersiveok) => { if (immersiveok) { enablexrbutton.disabled = false; } else { enablexrbutton.disabled = true; } }); }); } when devicechange is received, the handler set up in this code calls the xr method issessionsupported() to find out if there's a device available that can handle immersive vr presentations.
XRWebGLLayer.framebuffer - Web APIs
opaque framebuffers are considered incomplete and are not available for rendering other than while executing the requestanimationframe() callback.
... opaque framebuffers will not have an alpha channel available unless the alpha property is true when creating the layer.
ARIA Test Cases - Accessibility
however, where things don't work we may test with nightly builds if they are available, in order to show what is already fixed in upcoming releases.
...optionally, when opening an item, announce the number of sub items that just became available.
ARIA annotations - Accessibility
this is useful when the element’s label is available in the ui, but for some reason a conventional <label> won’t work.
...the semantics for this have long been available in html, via the <ins> and <del> elements: <p>freida’s pet is a <del>black cat called luna</del><ins>purple tyrannosaurus rex called tiny</ins>.</p> with the new additions, you now have new roles available to provide the same semantics, should you be unable to use <ins> and <del> elements for some reason: <p>freida’s pet is a <span role="deletion">black cat called luna</span><span role="in...
ARIA: article role - Accessibility
always use native element if available.
... always use native element if available.
Implementing a Microsoft Active Accessibility (MSAA) Server - Accessibility
there's a very good chance they won't ask for more than the states marked [important]: state_unavailable [important] state_selected [important] state_focused [important] state_pressed state_checked [important] state_mixed state_readonly [important] state_hottracked state_default [important] state_expanded [important] state_collapsed [important] state_busy [important] state_floating state_marqueed state_animated state_invisible state_offs...
... not all msaa features utilized by 3rd party vendors problem: the assistive technology does not use 50% of what's available in msaa, e.g.
Accessibility Information for Web Authors - Accessibility
dive into accessibility by mark pilgrim an excellent, easy-to-understand resource (available in english and in 9 other languages) on accessible website authoring, which goes into greater depth.
...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.
Web Accessibility: Understanding Colors and Luminance - Accessibility
note that in that same section of the css color module 3, there are algorigthms available to translate the hsl to rgb.
... the implication is that web developers who seek to improve legibility of text in which the ambient conditions of a room have changed can take advantage of css media queries 5 environment media features, when these features become available.
Text labels and names - Accessibility
if the title is not available, they have to navigate the page to determine its content, which can be a time consuming and potentially confusing process.
... 2.4.9 link purpose (link only) (aaa) a mechanism is available to allow the purpose of each link to be identified from link text alone, except where the purpose of the link would be ambiguous to users in general.
any-pointer - CSS: Cascading Style Sheets
none no pointing device is available.
... note: more than one value can match if the available devices have different characteristics, although none only matches when none of them are pointing devices.
CSS Fonts - CSS: Cascading Style Sheets
WebCSSCSS Fonts
it lets you define the style of a font, such as its family, size and weight, line height, and the glyph variants to use when multiple are available for a single character.
...these are all referred to as opentype features, and are made available to use on the web via specific properties and a low-level control property — font-feature-settings.
Box alignment in CSS Grid Layout - CSS: Cascading Style Sheets
the two axes of a grid layout when working with grid layout you have two axes available to align things against – the block axis and the inline axis.
...if you have ever centered your layout in the viewport, by setting the right and left margin of the container block to auto, you know that an auto margin absorbs all of the available space.
Grid template areas - CSS: Cascading Style Sheets
id-area: ft; } .content { grid-area: main; } .sidebar { grid-area: sd; } .wrapper { display: grid; grid-auto-rows: minmax(100px, auto); grid-template-columns: 1fr; grid-template-areas: "hd" "main" "sd" "ft"; } we can then redefine that layout inside media queries to go to our two columns layout, and perhaps take it to a three column layout if the available space is even wider.
... </div> </div> grid definition shorthands having looked at various ways of placing items on our grids and many of the properties used to define grid, this is a good time to take a look at a couple of shorthands that are available for defining the grid and many things about it all in one line of css.
Realizing common layouts using CSS Grid Layout - CSS: Cascading Style Sheets
this means that the available space in the container is split into 6 and assigned in proportion to our three tracks – one part each to the side columns and 4 parts to the center.
...i want them never to become smaller than 200 pixels, and then to share any available remaining space equally – so we always get equal width column tracks.
Split Navigation - CSS: Cascading Style Sheets
an auto margin absorbs all available space in the direction it is applied.
... in this case the left auto margin takes up any available space and pushes the item over to the right.
appearance (-moz-appearance, -webkit-appearance) - CSS: Cascading Style Sheets
ist-button; appearance: textfield; /* "compat-auto" values, which have the same effect as 'auto' */ appearance: button; appearance: searchfield; appearance: textarea; appearance: push-button; appearance: slider-horizontal; appearance: checkbox; appearance: radio; appearance: square-button; appearance: menulist; appearance: listbox; appearance: meter; appearance: progress-bar; /* partial list of available values in gecko */ -moz-appearance: scrollbarbutton-up; -moz-appearance: button-bevel; /* partial list of available values in webkit/blink (as well as gecko and edge) */ -webkit-appearance: media-mute-button; -webkit-appearance: caret; values standard keywords value demo browser description none div{ color: black; -moz-appearance:none; -webkit-appeara...
...available on the web starting in ios 10.1 and macos 10.12.1 obsolete values the following values were at some point implemented for a prefixed property, but are no longer supported.
calc() - CSS: Cascading Style Sheets
WebCSScalc
.banner { position: absolute; left: 40px; width: calc(100% - 80px); border: solid black 1px; box-shadow: 1px 2px; background-color: yellow; padding: 6px; text-align: center; box-sizing: border-box; } <div class="banner">this is a banner!</div> automatically sizing form fields to fit their container another use case for calc() is to help ensure that form fields fit in the available space, without extruding past the edge of their container, while maintaining an appropriate margin.
... let's look at some css: input { padding: 2px; display: block; width: calc(100% - 1em); } #formbox { width: calc(100% / 6); border: 1px solid black; padding: 4px; } here, the form itself is established to use 1/6 of the available window width.
column-width - CSS: Cascading Style Sheets
the actual column width may differ from the specified value: it may be wider when necessary to fill available space, and narrower when the available space is too small.
... candidate recommendation adds intrinsic sizes via the keywords min-content, max-content, fill-available, and fit-content.
cursor - CSS: Cascading Style Sheets
WebCSScursor
links & status context-menu a context menu is available.
... help help information is available.
env() - CSS: Cascading Style Sheets
WebCSSenv
to tell the browser to use the whole available space on the screen, and so enabling us to use the env() variables, we need to add a new viewport meta value: <meta name="viewport" content="viewport-fit=cover" /> body { padding: env(safe-area-inset-top, 20px) env(safe-area-inset-right, 20px) env(safe-area-inset-bottom, 20px) env(safe-area-inset-left, 20px); } in addition, unlike custom properties, which cannot be used outsi...
...) examples the below example makes use of the optional second parameter of env(), which allows you to provide a fallback value in case the environment variable is not available.
font-size-adjust - CSS: Cascading Style Sheets
legibility can become an issue when the first-choice font-family is unavailable and its replacement has a significantly different aspect ratio (the ratio of the size of lowercase letters to the size of the font).
...this means that the first-choice font, when available, will appear the same size in browsers, whether or not they support font-size-adjust.
font-variant-position - CSS: Cascading Style Sheets
if, in a given run, one such glyph is not available for a character, all the characters in the run are rendered using synthesized glyphs.
...if, in a given run, one such glyph is not available for a character, all the characters in the run are rendered using synthesized glyphs.
Live streaming web audio and video - Developer guides
live streaming formats generally allow adaptive streaming by breaking streams into a series of small segments and making those segments available at different qualities and bit rates.
... note: shoutcast and icecast are among the most established and popular technologies, but there are many more streaming media systems available.
Video player styling basics - Developer guides
control visibility the first change is simple: the data-state for showing the video controls when javascript is available to the browser now needs to be set: // display the user defined video controls videocontrols.setattribute('data-state', 'visible'); progress bar support a check also needs to be made to set up the "fake" progress bar if the browser doesn't support the <progress> element: var supportsprogress = (document.createelement('progress').max !== undefined); if (!supportsprogress) progress.setattribute...
...in this case, the margins and padding on the <figure> element need to be removed so that all the available space is taken advantage of, and the buttons are a bit too small so this needs to be altered by setting a new height on the element that has the .controls class set on it: @media screen and (max-width:64em) { figure { padding-left:0; padding-right:0; height:auto; } .controls { height:1.876rem; } } this works well enough until it is viewed on a smaller screen...
Web Audio playbackRate explained - Developer guides
defaultplaybackrate and ratechange in addition to playbackrate, we also have a defaultplaybackrate property available, which lets us set the default playback rate: the playback rate to which the media resets; for example, if we change the source of the video, or (in some browsers) when an ended event is generated.
... there is also an event available called ratechange, which fires every time the playbackrate changes.
Overview of events and handlers - Developer guides
(the talk is available from several sources, including this one.) currently, all execution environments for javascript code use events and event handling.
... as a second example, much modern javascript integrated into web pages is wrapped into an event function call to ensure that the code is only executed when the html has been processed and is available for alteration or decoration.
Event developer guide - Developer guides
WebGuideEvents
there are many other sources of events defined by web browsers for which pages are not yet available in this guide.
...ing to incidents occurring when a browser accesses a web page, including events from preparing a web page for display, from interacting with the content of the web page, relating to the device on which the browser is running, and from many other causes such as media stream playback or animation timing.touch events (mozilla experimental)the experimental touch events api described on this page was available from gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) to gecko/firefox 17.
A hybrid approach - Developer guides
this hybrid approach centers around breaking down mobile development into its three goals, and then applying the best techniques available to tackle each goal individually.
... the good responsive web design is great — right now it is the best technique available for making layouts look as good as possible in a variety of circumstances.
User input and controls - Developer guides
recommendations available input mechanisms depend on the capabilities of the device running the application: some devices provide touchscreen displays: the web platform offers touch events to interpret finger activity on touch-based user interfaces.
... note: pointer events are not widely supported yet, but a pointer.js polyfill is available on mozilla github.
Writing forward-compatible websites - Developer guides
will have a window.event object available in event handlers.
... once a browser has shipped a feature unprefixed, however, you can use the prefixed version to target old releases by making sure to always use the unprefixed version of the feature when available.
<input type="url"> - HTML: Hypertext Markup Language
WebHTMLElementinputurl
non-standard attributes the following non-standard attributes are also available on some browsers.
...s"> <datalist id="defaulturls"> <option value="https://developer.mozilla.org/" label="mdn web docs"> <option value="http://www.google.com/" label="google"> <option value="http://www.microsoft.com/" label="microsoft"> <option value="https://www.mozilla.org/" label="mozilla"> <option value="http://w3.org/" label="w3c"> </datalist> validation there are two levels of content validation available for url inputs.
<menu> - HTML: Hypertext Markup Language
WebHTMLElementmenu
this might be in the form of an unordered list of <li> elements, or, if the element has no <li> element children, flow content describing available commands.
... toolbar menus consist of a <menu> element whose content is described in one of two ways: either as an unordered list of items represented by <li> elements (each representing a command or option the user can utilize), or (if there are no <li> elements), flow content describing the available commands and options.
<source>: The Media or Image Source element - HTML: Hypertext Markup Language
WebHTMLElementsource
picture example in this example, two <source> elements are included within the <picture>, providing versions of an image to use when the available space exceeds certain widths.
... if the available width is less than the smaller of these widths, the user agent will fall back to the image given by the <img> element.
Resource URLs - HTTP
resource urls, urls prefixed with the resource: scheme, are used by firefox and firefox browser extensions to load resources internally, but some of the information is available to sites the browser connects to as well.
... 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 preferences, which could be a serious security and privacy issue.
CORS errors - HTTP
WebHTTPCORSErrors
however, if the endpoint is meant to be available, some debugging is needed to succeed.
... note: for security reasons, specifics about what went wrong with a cors request are not available to javascript code.
Feature Policy - HTTP
this allows you to lock in best practices, even as the codebase evolves over time — as well as to more safely compose third-party content — by limiting which features are available.
...where available, the feature integrates with the permissions api, or feature-specific mechanisms to check if the feature is available.
Cross-Origin-Opener-Policy - HTTP
examples certain features depend on cross-origin isolation certain features like sharedarraybuffer objects or performance.now() with unthrottled timers are only available if your document has a coop header with the value same-origin value set.
... to check if cross-origin isolation has been successful, you can test against the crossoriginisolated property available to window and worker contexts: if (crossoriginisolated) { // post sharedarraybuffer } else { // do something else } specifications specification html living standardthe definition of 'cross-origin-opener-policy header' in that specification.
Retry-After - HTTP
there are three main cases this header is used: when sent with a 503 (service unavailable) response, this indicates how long the service is expected to be unavailable.
...it is useful to send it along with a 503 (service unavailable) response, so that search engines will keep indexing your site when the downtime is over.
Equality comparisons and sameness - JavaScript
even if your requirements involve having comparisons between two nan values evaluate to true, generally it is easier to special-case the nan checks (using the isnan method available from previous versions of ecmascript) than it is to work out how surrounding computations might affect the sign of any zeros you encounter in your comparison.
...however, since typed arrays are available, we can have distinct instances, which don't behave identically in all contexts.
Indexed collections - JavaScript
if callback needs access to the index of the item being processed, on access to the entire array, they are available as optional parameters.
... working with array-like objects some javascript objects, such as the nodelist returned by document.getelementsbytagname() or the arguments object made available within the body of a function, look and behave like arrays on the surface but do not share all of their methods.
Meta programming - JavaScript
additional examples are available on the proxy reference page.
... handlers and traps the following table summarizes the available traps available to proxy objects.
Unicode property escapes - JavaScript
note: as there are many properties and values available, we will not describe them exhaustively here but rather provide various examples rationale before es2018 there was no performance-efficient way to match characters from different sets based on scripts (like macedonian, greek, georgian etc.) or propertyname (like emoji etc) in javascript.
... examples general categories general categories are used to classify unicode characters and subcategories are available to define a more precise categorization.
Regular expressions - JavaScript
hh, \uhhhhh, [\b] character classes ^, $, x(?=y), x(?!y), (?<=y)x, (?<!y)x, \b, \b assertions (x), (?:x), (?<name>x), x|y, [xyz], [^xyz], \number groups and ranges *, +, ?, x{n}, x{n,}, x{n,m} quantifiers \p{unicodeproperty}, \p{unicodeproperty} unicode property escapes note: a larger cheatsheet is also available (only aggregating parts of those individual articles).
... 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.
Memory Management - JavaScript
node.js node.js offers additional options and tools for configuring and debugging memory issues that may not be available for javascript executed within a browser environment.
... v8 engine flags the max amount of available heap memory can be increased with a flag: node --max-old-space-size=6000 index.js we can also expose the garbage collector for debugging memory issues using a flag and the chrome debugger: node --expose-gc --inspect index.js see also ibm article on "memory leak patterns in javascript" (2007) kangax article on how to register event handler and avoid memory leaks (2010) performance ...
ReferenceError: "x" is not defined - JavaScript
this variable needs to be declared, or you need to make sure it is available in your current script or scope.
... var foo = 'bar'; foo.substring(1); // "ar" wrong scope a variable needs to be available in the current context of execution.
Intl.DateTimeFormat() constructor - JavaScript
implementations are required to support at least the following subsets: weekday, year, month, day, hour, minute, second weekday, year, month, day year, month, day year, month month, day hour, minute, second hour, minute implementations may support other subsets, and requests will be negotiated against all available subset-representation combinations to find the best match.
... two algorithms are available for this negotiation and selected by the formatmatcher property: a fully specified "basic" algorithm and an implementation-dependent "best fit" algorithm.
Intl.DateTimeFormat.prototype.formatToParts() - JavaScript
yearname the string used for the yearname in relevant contexts, for example "geng-zi" polyfill a polyfill for this feature is available in the proposal repository.
...: 'literal', value: ', ' }, { type: 'hour', value: '3' }, { type: 'literal', value: ':' }, { type: 'minute', value: '00' }, { type: 'literal', value: ':' }, { type: 'second', value: '42' }, { type: 'fractionalsecond', value: '000' }, { type: 'literal', value: ' ' }, { type: 'dayperiod', value: 'am' } ] now the information is available separately and it can be formatted and concatenated again in a customized way.
Promise - JavaScript
rejection reason console.log(`handle rejected promise (${reason}) here.`); }); // end log.insertadjacenthtml('beforeend', thispromisecount + ') promise made (sync code terminated)'); } if ("promise" in window) { let btn = document.getelementbyid("btn"); btn.addeventlistener("click",testpromise); } else { log = document.getelementbyid('log'); log.innerhtml = "live example not available as your browser doesn't support the <code>promise<code> interface."; } this example is started by clicking the button.
... loading an image with xhr another simple example using promise and xmlhttprequest to load an image is available at the mdn github js-examples repository.
Comparing Reflect and Object methods - JavaScript
some of the static functions that exist on reflect also correspond to methods available on object, which predates es2015.
... the table below details the differences between the methods available on the object and reflect apis.
SharedArrayBuffer - JavaScript
with a few security measures, postmessage() will no longer throw for sharedarraybuffer objects and shared memory across threads will be available: as a baseline requirement, your document needs to be in a secure context.
...late your site: cross-origin-opener-policy with same-origin as value (protects your origin from attackers) cross-origin-embedder-policy with require-corp as value (protects victims from your origin) cross-origin-opener-policy: same-origin cross-origin-embedder-policy: require-corp to check if cross origin isolation has been successful, you can test against the crossoriginisolated property available to window and worker contexts: if (crossoriginisolated) { // post sharedarraybuffer } else { // do something else } see also planned changes to shared memory which is starting to roll out to browsers (firefox 79, for example.) always use the new operator to create a sharedarraybuffer sharedarraybuffer constructors are required to be constructed with a new operator.
String.prototype.startsWith() - JavaScript
polyfill this method has been added to the ecmascript 2015 specification and may not be available in all javascript implementations yet.
...rawpos|0 : 0; return this.substring(pos, pos + search.length) === search; } }); } a more robust (fully es2015 specification compliant), but less performant and compact, polyfill is available on github by mathias bynens.
Symbol - JavaScript
if you really want to create a symbol wrapper object, you can use the object() function: let sym = symbol('foo') typeof sym // "symbol" let symobj = object(sym) typeof symobj // "object" shared symbols in the global symbol registry the above syntax using the symbol() function will not create a global symbol that is available in your whole codebase.
... to create symbols available across files and even across realms (each of which has its own global scope), use the methods symbol.for() and symbol.keyfor() to set and retrieve symbols from the global symbol registry.
Nullish coalescing operator (??) - JavaScript
"not available"); // "hi" console.log(foo.somebarprop?.touppercase() ??
... "not available"); // "not available" specifications specification ecmascript (ecma-262)the definition of 'nullish coalescing expression' in that specification.
Object initializer - JavaScript
you will see code like this: let a = 'foo', b = 42, c = {}; let o = { a: a, b: b, c: c } with ecmascript 2015, there is a shorter notation available to achieve the same: let a = 'foo', b = 42, c = {}; // shorthand property names (es2015) let o = {a, b, c} // in other words, console.log((o.a === {a}.a)) // true duplicate property names when using the same name for your properties, the second property will overwrite the first.
... let o = { property: function (parameters) {}, get property() {}, set property(value) {} } in ecmascript 2015, a shorthand notation is available, so that the keyword "function" is no longer necessary.
debugger - JavaScript
the debugger statement invokes any available debugging functionality, such as setting a breakpoint.
... if no debugging functionality is available, this statement has no effect.
export - JavaScript
; // note that we have the freedom to use import m instead of import k, because k was default export console.log(m); // will log 12 you can also rename named exports to avoid naming conflicts: export { myfunction as function1, myvariable as variable }; re-exporting / aggregating it is also possible to "import/export" from different modules in a parent module so that they are available to import from that module.
... this can be achieved with the "export from" syntax: export { default as function1, function2 } from 'bar.js'; which is comparable to a combination of import and export: import { default as function1, function2 } from 'bar.js'; export { function1, function2 }; but where function1 and function2 do not become available inside the current module.
try...catch - JavaScript
try { throw 'myexception'; // generates an exception } catch (e) { // statements to handle any exceptions logmyerrors(e); // pass exception object to error handler } the catch-block specifies an identifier (e in the example above) that holds the value of the exception; this value is only available in the scope of the catch-block.
...this identifier is only available in the catch-block's scope.
background_color - Web app manifests
this value is used by the user agent to draw the background color of a shortcut when the manifest is available before the stylesheet has loaded.
... note: the background_color member is only meant to improve the user experience while the main stylesheet is loading from the network or the storage media; it is not used by the user agent as the background-color css property when the progressive web app stylesheet is available.
MathML documentation index - MathML
WebMathMLIndex
more details for each attribute are available on particular element pages.
... 16 <mglyph> mathml, mathml reference, mathml:element the mathml <mglyph> element is used to display non-standard symbols where existing unicode characters are not available.
Image file type and format guide - Web media technologies
compression bmp-format icons nearly always use lossless compression, but lossy methods are available.
... licensing no license required; source code is openly available.
Handling media support issues in web content - Web media technologies
one of the realities of working with audio and video presentation and manipulation on the web is that there are a number of media formats available, of varying degrees of popularity and with a variety of capabilities.
... a similar concept can be applied to still images; if an image you wish to present is very large and may take time to download (especially for slower devices or connections), you can offer a lower-resolution or alternate version that will be displayed until the full-quality version is available to be displayed.
Web media technologies
today, there are a large number of apis available, as well as html elements, dom interfaces, and other features that make it possible to not only perform these tasks, but use media in tandem with other technologies to do truly remarkable things.
... guide to media types and formats on the web a guide to the file types and codecs available for images, audio, and video media on the web.
Recommended Web Performance Timings: How long is too long? - Web Performance
if the thread is busy doing complex javascript execution, the main thread will not be available to react to user input, such as pressing a button.
...this makes the thread available for user interactions.
Web API reference - Web technology reference
WebReferenceAPI
there's also a listing of all available events in the event reference.
... device apis this set of apis allows access to various hardware features available to web pages and applications.
SVG Event Attributes - SVG: Scalable Vector Graphics
WebSVGAttributeEvents
the global event attributes are available on all svg elements.
... other event attributes are available on a case by case basis for each elements.
Introduction - SVG: Scalable Vector Graphics
svg does offer benefits, some of which include having a dom interface available for it, and not requiring third-party extensions.
... before you start there are a number of drawing applications available such as inkscape which are free and use svg as their native file format.
Paths - SVG: Scalable Vector Graphics
WebSVGTutorialPaths
there are an infinite number of bézier curves, but only two simple ones are available in <path> elements: a cubic one, called with c, and a quadratic one, called with q.
...along either of those circles, there are two possible paths that can be taken to connect the points—so in any situation, there are four possible arcs available.
Patterns - SVG: Scalable Vector Graphics
WebSVGTutorialPatterns
there are also x and y attributes available if you want to offset the start point of this rectangle somewhere within your drawing.
...all three of the preceding examples are shown below on a rectangle that has been slightly elongated to a height of 300px, but i should note that it's not an exhaustive picture, and there are other options available depending on your application.
How to fix a website with blocked mixed content - Web security
for other domains, use the site's https version if available.
... if https is not available, you can try contacting the domain and asking them if they can make the content available via https.
Same-origin policy - Web security
error details for syntax errors are only available for same-origin scripts.
...the browser will make a cookie available to the given domain including any sub-domains, no matter which protocol (http/https) or port is used.
Web Components
documentorshadowroot a mixin defining features that are available across document and shadow roots.
... relevant node additions additions to the node interface relevant to shadow dom: the node.getrootnode() method returns the context object's root, which optionally includes the shadow root if it is available.
Index - XPath
WebXPathIndex
26 element-available xslt, xslt_reference the element-available function determines if an element is available and returns true or false.
... 30 function-available xslt, xslt_reference the function-available function determines if a given function is available and returns boolean true or false.
Using the WebAssembly JavaScript API - WebAssembly
next, let’s create a simple html file called index.html in the same directory as your wasm file (can use our simple template if you haven’t got one easily available).
... unlike a native c/c++ program, however, where the available memory range spans the entire process, the memory accessible by a particular webassembly instance is confined to one specific — potentially very small — range contained by a webassembly memory object.
Compiling an Existing C Module to WebAssembly - WebAssembly
the source for the webp codec is written in c and available on github as well as some extensive api documentation.
...api.destroy_buffer(p); encode the image the image is now available in wasm.
2015 MDN Fellowship Program - Archive of obsolete content
github: jdm twitter: @lastontheboat service workers brief project description service workers essentially act as proxy servers that sit between web applications, the browser and (when available) the network.
Navigator.mozNotification - Archive of obsolete content
mobile only in gecko 2.0 available only in firefox mobile as of gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) provides support for creating notification objects, which are used to display desktop notification alerts to the user.
Window: userproximity event - Archive of obsolete content
the userproximity event is fired when fresh data is available from a proximity sensor (indicates whether the nearby object is near the device or not).
Communicating With Other Scripts - Archive of obsolete content
the web content has no access to objects created by the content script, unless the content script explicitly makes them available.
Reddit Example - Archive of obsolete content
this example uses the action button api, which is only available from firefox 29 onwards.
Modules - Archive of obsolete content
in contrast, compartments with content privileges can only use those features available to ordinary websites.
SDK and XUL Comparison - Archive of obsolete content
user experience best practices the ui components available in the sdk are designed to align with the usability guidelines for firefox, giving your users a better, more consistent experience.
Testing the Add-on SDK - Archive of obsolete content
from mozilla-central repository with a checkout of the mozilla-central source code, one can always cd addon-sdk/source and use any of the methods described above, but in addtion to that there are a couple of mach commands available, and ofcourse there is the try server if you have access to that.
Guides - Archive of obsolete content
two types of scripts this article explains the differences between the apis available to your main add-on code and those available to content scripts.
indexed-db - Archive of obsolete content
example this example uses the action button api, which is only available from firefox 29 onwards.
self - Archive of obsolete content
all files in this directory will be copied into the xpi and made available through the data object.
tabs - Archive of obsolete content
you can use the tab's readystate property to determine whether the tab's content and url will be available: if readystate is uninitialized or loading, then you can't access the tab's properties and must wait for the tab's ready event.
windows - Archive of obsolete content
} }); returns the window that was opened: var windows = require("sdk/windows").browserwindows; var example = windows.open("http://www.example.com"); require("sdk/ui/button/action").actionbutton({ id: "read", label: "read", icon: "./read.png", onclick: function() { example.close(); } }); this example uses the action button api, which is only available from firefox 29 onwards.
/loader - Archive of obsolete content
uire, loader, module } = require('toolkit/loader'); let loader = loader(options); let requirer = module(requirerid, requireruri); let require = require(loader, requirer); let boostrap = require(bootstrapid); built-in modules each loader instance exposes the following built-in pseudo modules in addition to those passed via modules: chrome this pseudo module exposes everything that is typically available for js contexts with system principals under the components global.
dev/panel - Archive of obsolete content
any data sent with the notification is available to the event listener in the event.data property.
test/utils - Archive of obsolete content
usage before and after helper functions before() and after() are available for running a function before or after each test in a suite.
ui/button/action - Archive of obsolete content
however, the icons in the toolbar will not quite fill the space available, so you can instead supply four icons: icon: { "18": "./addon18.png", // toolbar icon non hidpi "32": "./addon32.png", // menu panel icon non hidpi "36": "./addon36.png", // toolbar icon hidpi "64": "./addon64.png" // menu panel icon hidpi } optional options: name type disabled boolean determines whether t...
ui/button/toggle - Archive of obsolete content
however, the icons in the toolbar will not quite fill the space available, so you can instead supply four icons: icon: { "18": "./addon18.png", // toolbar icon non hidpi "32": "./addon32.png", // menu panel icon non hidpi "36": "./addon36.png", // toolbar icon hidpi "64": "./addon64.png" // menu panel icon hidpi } optional options: name type disabled boolean determines whether t...
console - Archive of obsolete content
console.error(object[, object, ...]) logs the arguments to the console, preceded by "error:" and the name of your add-on: console.error("this is an error message"); error: my-addon: this is an error message console.exception(exception) logs the given exception instance as an error, outputting information about the exception's stack traceback if one is available.
Chrome Authority - Archive of obsolete content
the object returned by require("chrome"), when unpacked with the destructuring assignment feature available in the mozilla js environment, will provide the usual components.* aliases: cc an alias for components.classes.
Creating Reusable Modules - Archive of obsolete content
once you've done this, you can package the modules and distribute them independently of your add-on, making them available to other add-on developers and effectively extending the sdk itself.
Unit Testing - Archive of obsolete content
unfortunately these functions are attached to the window object: since this object is not available in your main add-on code, atob() and btoa() aren't available either.
Localization - Archive of obsolete content
using localized strings in html this example uses the action button api, which is only available from firefox 29 onwards.
Bookmarks - Archive of obsolete content
the documentation for the new api is available at places.
Dialogs and Prompts - Archive of obsolete content
nsipromptservice is an xpcom interface available to c++ and chrome javascript code (not to web pages' js), that provides methods for displaying a few simple types of dialogs.
Downloading Files - Archive of obsolete content
ull); var stream = channel.open(); if (channel instanceof components.interfaces.nsihttpchannel && channel.responsestatus != 200) { return ""; } var bstream = components.classes["@mozilla.org/binaryinputstream;1"] .createinstance(components.interfaces.nsibinaryinputstream); bstream.setinputstream(stream); var size = 0; var file_data = ""; while(size = bstream.available()) { file_data += bstream.readbytes(size); } return file_data; } see also nsidownloadprogresslistener saving an arbitrary url to a local file customizing the download progress bar appearance ...
Drag & Drop - Archive of obsolete content
"\n")[0], null, null); } else { var file = data.value.queryinterface(components.interfaces.nsifile); if (file) uri = _ios.newfileuri(file); } } if (uri) uris.push(uri); } // use the array of file uris } the _dragover function checks the drag data to see if a simple text file or general purpose file types are available.
HTML to DOM - Archive of obsolete content
the code snippets on this page will let your site work until these new features are more widely available.
JS XPCOM - Archive of obsolete content
sometimes javascript is clever enough to know all the interfaces available on a component, but in most cases you will have to explicitly check for an interface.
Progress Listeners - Archive of obsolete content
instead, you receive those events that the tabbrowser is interested in, except that the onlinkiconavailable and onrefreshattempted notifications are optional.
QuerySelector - Archive of obsolete content
// if you'd like to convert it to a array for convenience, use this instead: // return array.prototype.slice.call(el.queryselectorall(selector)); } alert($('#myid').id); (note that while using the firefox web console, the above functions are available automatically.) both xul and even xml can be easily made supportable (an alternative approach to the following would be to add chromewindow.prototype or window.prototype, accessing this.document.queryselector, or following the jquery style of chaining by returning 'this' within each prototype method of $()): htmldocument.prototype.$ = function (selector) { // only for html return this.queryse...
Sidebar - Archive of obsolete content
this means that the function is available in all browser windows.
StringView - Archive of obsolete content
tcode = stringview.loadutf8charcode; } else if (this.encoding === "utf-16") { fgetincr = stringview.getutf16charlength; fgetcode = stringview.loadutf16charcode; } for (var nchr, nlen = this.rawdata.length, nidx = 0; nidx < nlen; nidx += fgetincr(nchr)) { nchr = fgetcode(this.rawdata, nidx); sview += string.fromcharcode(nchr); } return sview; }; the code above is also available on github.
Delayed Execution - Archive of obsolete content
t loop when a task needs to be only briefly delayed, such that it runs after the current call chain returns, it can be added directly to the main thread's event queue rather than scheduled as a timeout: function executesoon(func) { services.tm.mainthread.dispatch(func, ci.nsithread.dispatch_normal); } using nsitimers to schedule tasks in instances where settimeout() and setinterval() are unavailable, or insufficient, tasks can be scheduled with delays using nsitimer instances.
JavaScript timers - Archive of obsolete content
functions available to workers in addition to the standard javascript set of functions (such as string, array, object, json etc), there are a variety of functions available from the dom to workers.
Code snippets - Archive of obsolete content
this is a quick list of useful code snippets (small code samples) available for developers of extensions for the various mozilla applications.
Downloading JSON and JavaScript in extensions - Archive of obsolete content
the json decoding methods available to extension developers protect the extension from malicious json and javascript.
Extension Etiquette - Archive of obsolete content
when available, these methods should always be used to prevent conflicts with third-party code.
Inline options - Archive of obsolete content
this functionality originally appeared in firefox mobile and is now available in firefox on the desktop as well.
Installing Extensions and Themes From Web Pages - Archive of obsolete content
available parameters for the install object the installtrigger.install method accepts a javascript object as a parameter, with several properties on that object used to affect the install.
Jetpack Processes - Archive of obsolete content
if a crash report minidump is available, the context.dumpid property will list the minidump id of the crash report that was collected.
Appendix: What you should know about open-source software licenses - Archive of obsolete content
this report is available online (in japanese) at http://www.meti.go.jp/kohosys/press/0004397/ the ipa has also established an open-source software center to promote and cultivate oss http://www.ipa.go.jp/software/open/o...ish/index.html ...
Chapter 3: Introduction to XUL—How to build a more intuitive UI - Archive of obsolete content
the rowspan and colspan attributes available in html tables are not available in xul grids.
Chapter 5: Let's build a Firefox extension - Archive of obsolete content
in general, details (idl) on the xpcom interface are available from the mozilla cross-reference7, which includes source code with full-text searching available.
Adding menus and submenus - Archive of obsolete content
it is now implemented as a radio menu where you pick one of the 3 available choices.
Adding sidebars - Archive of obsolete content
you can still have plenty of content available in your sidebar, you just need to organize it in a way that doesn't take too much space.
Appendix A: Add-on Performance - Archive of obsolete content
add-ons can have extra features that are only available depending on user preferences.
Connecting to Remote Content - Archive of obsolete content
mponents.interfaces.nsifileinputstream); let xsltprocessor = components.classes["@mozilla.org/document-transformer;1?type=xslt"] .createinstance(components.interfaces.nsixsltprocessor); let xsldocument; filestream.init(somexslfile, -1, 0x01, 0444); // read only // parse from the xslt stylesheet file stream xsldocument = domparser.parsefromstream( filestream, null, filestream.available(), "text/xml"); // import the xslt stylesheet to the xslt processor xsltprocessor.importstylesheet(xsldocument); finally, you can either use nsixsltprocessor.transformtodocument() or nsixsltprocessor.transformtofragment() methods to transform the xml document.
Custom XUL Elements with XBL - Archive of obsolete content
you can do almost anything from xbl code, including using xpcom components, js code modules and available chrome scripts.
Introduction - Archive of obsolete content
xulrunner is available in binary form at the xulrunner page, and it is the base for several projects, such as songbird, miro and eudora.
Setting Up a Development Environment - Archive of obsolete content
we chose make because this is the same system used by mozilla to build firefox, and it is available for all operating systems.
Extensions support in SeaMonkey 2 - Archive of obsolete content
these are so commonly available that developers often forget that they are not built-ins.
Signing an XPI - Archive of obsolete content
*assumes you have a zip utility available on your system path.
Supporting search suggestions in search plugins - Archive of obsolete content
these can be any additional information the search engine might want to return to be displayed by the browser, such as the number of results available for that search.
Firefox addons developer guide - Archive of obsolete content
this is available from the style drop-down menu in the editor.
Promises - Archive of obsolete content
it is also available for use off-main-thread in workers as a synchronous api.
Using the Stylesheet Service - Archive of obsolete content
backwards compatibility you can check for the availability and the functionality of the stylesheet service: if("@mozilla.org/content/style-sheet-service;1" in components.classes) { if(components.id('{41d979dc-ea03-4235-86ff-1e3c090c5630}') .equals(components.interfaces.nsistylesheetservice)) { // stylesheet service is available, but changes won't apply until reload // (firefox 1.5 and 2 behaviour) } else { // stylesheet service is available and changes will apply immediately // (firefox 3 behaviour) } } else { // stylesheet service is not available (pre-firefox 1.5 behaviour) } ...
Add-ons - Archive of obsolete content
this functionality originally appeared in firefox mobile and is now available in firefox on the desktop as well.
An Interview With Douglas Bowman of Wired News - Archive of obsolete content
our ad-serving partner basically requires that we use iframes to dynamically pull in ads from available inventory.
MozOrientation - Archive of obsolete content
notes this event is only dispatched if an accelerometer is available on the current device.
Events - Archive of obsolete content
archived event pages domsubtreemodifiedmozaudioavailablemozbeforeresizemozorientationcachedchargingchangechargingtimechangecheckingdischargingtimechangedownloadingerrorlevelchangenoupdateobsoleteprogressupdateready ...
Install.js - Archive of obsolete content
the majority of this api is now deprecated and as of gecko 1.9 no longer available.
JXON - Archive of obsolete content
the following code is also available on github.
MMgc - Archive of obsolete content
when memory mapping is not available gcheap can fall back on a malloc/free approach for obtaining memory if a memory mapping api like virtualalloc or mmap is not available.
No Proxy For configuration - Archive of obsolete content
original document information author(s): benjamin chuang last updated date: november 2, 2005 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
Using XML Data Islands in Mozilla - Archive of obsolete content
here is a complete demo (also available as an attachment): <!doctype html> <html> <head> <title>xml data block demo</title> <script id="purchase-order" type="application/xml"> <purchaseorder xmlns="http://example.mozilla.org/purchaseorderml"> <lineitem> <name>line item 1</name> <price>1.25</price> </lineitem> <lineitem> <name>line item 2</name> <price>2.48</price> </lineitem> </purchaseorder> </script> <script> ...
Using content preferences - Archive of obsolete content
the content preferences service, implemented by nsicontentprefservice, offers functions for setting and retrieving preferences for specific sites or in the global preference space; global preferences are used whenever a site-specific preference isn't available.
Autodial for Windows NT - Archive of obsolete content
original document information author(s): benjamin chuang last updated date: october 2, 2002 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
How Mozilla finds its configuration files - Archive of obsolete content
if you have trouble gettings these scripts to work on your system, there is also an online version available.
Locked config settings - Archive of obsolete content
if you have trouble getting the moz-byteshift.pl script to work locally, there is also an online version available.
Building TransforMiiX standalone - Archive of obsolete content
original document information author: axel hecht last updated date: april 5, 2004 copyright information: portions of this content are © 1998–2006 by individual mozilla.org contributors; content available under a creative commons license ...
Structure of an installable bundle - Archive of obsolete content
for example, if a plugin vendor wanted to make a plugin available for consumer computers running linux(of the form: /platform/linux*/), macintosh(of the form: /platform/darwin*/), and windows(of the form: /platform/win*/), it would provide the following files: /platform/linux_x86-gcc3/plugins/libmyplugin.so /platform/winnt_x86-msvc/plugins/myplugin.dll /platform/darwin_ppc-gcc3/plugins/libmyplugin.dylib because xpt files are not platform-specific, any associ...
Tinderbox - Archive of obsolete content
it consists of a set of client machines that continuously build and test mozilla and report their results back to a server that makes those results available via a web page.
Creating a Mozilla Extension - Archive of obsolete content
enabling the behavior - updating the status periodically making it into a static overlay making it into a dynamic overlay and packaging it up for distribution conclusion next » original document information author(s): myk melez last updated date: september 19, 2006 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
Creating a hybrid CD - Archive of obsolete content
original document information author(s): dawn endico last updated date: may 1, 2001 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
Creating a Release Tag - Archive of obsolete content
-name cvs | xargs -l -p10 cvs tag -l mozilla_0_9_4_1_release >& ../taglog original document information author(s): dawn endico last updated date: november 1, 2005 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
In-Depth - Archive of obsolete content
this is only a list of properties which may be useful to you; it is in no way all of the mozilla specific properties available.
Dehydra Function Reference - Archive of obsolete content
see the dehydra object reference for details on the available object properties.
Developing New Mozilla Features - Archive of obsolete content
original document information author(s): mitchell baker last updated date: october 30, 2004 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
Devmo 1.0 Launch Roadmap - Archive of obsolete content
further details on smaller tasks being done are available at user:dria:todo page.
Drag and Drop - Archive of obsolete content
the following properties and methods are available: candrop set this property to true if the element the mouse is currently over can accept the object currently being dragged to be dropped on it.
Documentation for BiDi Mozilla - Archive of obsolete content
the implementation is based on ibm's international components for unicode (icu), which was chosen after comparing and testing the available open-source implementations.
Layout FAQ - Archive of obsolete content
instructions are available at jprof readme on more recent linux versions sysprof can also be used.
Style System Overview - Archive of obsolete content
(but beware didsetstylecontext) the style system style sheets & rules ↓ rule tree ↓ style context interface original document information author(s): david baron last updated date: june 6, 2003 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
Firefox Sync - Archive of obsolete content
full instructions are available at http://docs.services.mozilla.com/howtos/run-sync.html.
GRE Registration - Archive of obsolete content
when installing a gre via the command line <tt>xulrunner.exe -register-global</tt>, xulrunner will detect that there is already an installation at hklm/software/mozilla.org/gre/<version> and will try alternate keys <version>_1 _2 until an available key is found.
Gecko Coding Help Wanted - Archive of obsolete content
original document information author(s): fantasai last updated date: may 4, 2004 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
HTTP Class Overview - Archive of obsolete content
implements nsihttpauthenticator generates basic auth credentials from user:pass nshttpdigestauth implements nsihttpauthenticator generates digest auth credentials from user:pass original document information author(s): darin fisher last updated date: august 5, 2002 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
Creating a Help Content Pack - Archive of obsolete content
the data source specified by toc will always be displayed, while the other data sources may only be available by searching through the loaded content pack.
Isp Data - Archive of obsolete content
getting started first take a look at the number of examples available: http://infosec.ufl.edu/tbird/gatorlink.xml mailnews/base/ispdata/aol.rdf see the thunderbird isp hooks for more details.
generateCRMFRequest() - Archive of obsolete content
"authenticator" a value that the user can authenticate with in the future when their private key is not available.
JavaScript crypto - Archive of obsolete content
most of these services are available via the dom window object as window.crypto.
Libraries - Archive of obsolete content
the following libraries are available: twitter ...
Enabling Experimental Jetpack Features - Archive of obsolete content
to get a list of mount paths that are available, see the method below.
Enabling - Archive of obsolete content
to get a list of mount paths that are available, see the method below.
Settings - Archive of obsolete content
with the above manifest the following stored properties are available in the jetpack's code: * jetpack.storage.settings.twitter.username * jetpack.storage.settings.twitter.password * jetpack.storage.settings.facebook.username * jetpack.storage.settings.facebook.password * jetpack.storage.settings.music * jetpack.storage.settings.volume see also simple storage jep 24 ...
Settings - Archive of obsolete content
with the above manifest the following stored properties are available in the jetpack's code: jetpack.storage.settings.twitter.username jetpack.storage.settings.twitter.password jetpack.storage.settings.facebook.username jetpack.storage.settings.facebook.password jetpack.storage.settings.music jetpack.storage.settings.volume ...
Clipboard - Archive of obsolete content
jetpack.import.future("clipboard");var mycontent = "<i>this is some italic text</i>";jetpack.clipboard.set( mycontent, "html" ); getcurrentflavors()returns an array of available jetpack clipboard flavors, for the current system clipboard state.
Clipboard Test - Archive of obsolete content
jetpack.import.future("clipboard");var mycontent = "<i>this is some italic text</i>";jetpack.clipboard.set( mycontent, "html" ); getcurrentflavors()returns an array of available jetpack clipboard flavors, for the current system clipboard state.
Clipboard - Archive of obsolete content
jetpack.import.future("clipboard"); var mycontent = "<i>this is some italic text</i>"; jetpack.clipboard.set( mycontent, "html" ); getcurrentflavors()returns an array of available jetpack clipboard flavors, for the current system clipboard state.
Enabling Experimental Jetpack Features - Archive of obsolete content
ArchiveMozillaJetpackdocsMetaFuture
to get a list of mount paths that are available, see the method below.
Clipboard - Archive of obsolete content
jetpack.import.future("clipboard"); var mycontent = "<i>this is some italic text</i>"; jetpack.clipboard.set( mycontent, "html" ); getcurrentflavors()returns an array of available jetpack clipboard flavors, for the current system clipboard state.
Metro browser chrome tests - Archive of obsolete content
helper functions the eventutils helper functions are available on the eventutils object defined in the global scope.
Microsummary topics - Archive of obsolete content
in the future, firefox may access source urls to download updated versions of generators, so unless you are installing generators which are available from urls, you should not use this form for your programmatically-installed generators.
Mozilla Application Framework - Archive of obsolete content
original document information author(s): myk melez last updated date: march 3, 2003 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
New Security Model for Web Services - Archive of obsolete content
these scripts may legitimately require access to external resources, but permitting them to access internal resources permits the compromise of these resources that would normally not be available to applications outside of the firewall.
BundleLibrary - Archive of obsolete content
not the cleanest, but it got all my plugins at once) istylr: istylr.webapp online web design tool (full win installer bundled with prism is available here - thanks to lars eric for his nsis script) meebo: meebo.webapp miro guide: miroguide.webapp motor0: motor0.webapp useful webapp on maintenance and fuel consumptions managment pandora: pandora@prism.app.webapp internet radio that only plays music you like.
FAQ - Archive of obsolete content
ArchiveMozillaPrismFAQ
at the same time, we're also working to increase the capabilities of those apps by adding features to the web itself, like support for offline data storage and access to 3d graphics hardware, that will be available to web applications in both prism and firefox.
Scripting - Archive of obsolete content
the following code can be used by web content to determine whether it is running in prism: if ("platform" in window) { // prism-specific code goes here } see the nsiplatformglue idl definition file for details of the methods available to prism apps.
Priority Content - Archive of obsolete content
the list of completed documents is available through the devedge page.
Proxy UI - Archive of obsolete content
the currently available modes are based on "network.proxy.type".
RDF Datasource How-To - Archive of obsolete content
each datasource that is listed will be loaded, and the assertions contained in the datasource will be made available to the tree control for display.
Frequently Asked Questions - Archive of obsolete content
original document information author(s): jonathan watt last updated date: november 6, 2006 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
Standalone XPCOM - Archive of obsolete content
api freeze and documentation original document information author: suresh duddi last updated date: 15 may 2000 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
String Quick Reference - Archive of obsolete content
alue; // 64-character buffer on stack getstringvalue(value); // call getstringvalue(char** out); nsxpidlcstring result; getstringvalue(getter_copies(result)); // result will free automatically original document information author: alec flett last updated date: april 30, 2003 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
Supporting private browsing mode - Archive of obsolete content
private browsing notifications there are notifications available that allow you to easily watch for changes to the status of the private browsing mode, including detecting when it turns on and off.
Table Cellmap - Archive of obsolete content
original document information author(s): bernd mielke last updated date: september 27, 2003 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
Table Layout Regression Tests - Archive of obsolete content
original document information author(s): bernd mielke other contributors: boris zbarsky last updated date: february 5, 2007 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
Table Layout Strategy - Archive of obsolete content
original document information author(s): bernd mielke last updated date: september 27, 2003 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
Running Tamarin performance tests - Archive of obsolete content
performance test options there are a variety of options available with runtests.py - here is the help text followed by explanations for some options: $ ./runtests.py -h usage: runtests.py [options] [tests] -v --verbose enable additional output -e --avm avmplus command to use -a --asc compiler to use -g --globalabc deprecated but still works - use builtin.abc (used to be location of global.abc) -b --builtinabc location of builtin...
Tamarin Acceptance Testing - Archive of obsolete content
successfully build release and debug versions of the shell with the debugger enabled [info] successfully run the following test suites: acceptance test suite [info] self tests [info] submit a sandbox build request to test against platforms that you may not have locally [info] available tamarin acceptance test suites actionscript acceptance tests: actionscript acceptance tests running tamarin acceptance tests abc assembler tests cmdline tests performance tests actionscript performance tests running tamarin performance tests built-in self tests see instructions in doc/selftest.html in the tamarin repository.
Tamarin Build System Documentation - Archive of obsolete content
the phases run when slaves are available and the other phases do not wait for completion to start the next build.
Tamarin - Archive of obsolete content
tamarin is available under the mpl/gpl/lgpl tri-license.
The Download Manager schema - Archive of obsolete content
this information is available using nsidownloadmanager methods to retrieve nsidownload objects for each download entry; however, if you feel like poking directly into the table, you can do so using the storage api.
The life of an HTML HTTP request - Archive of obsolete content
original document information author(s): alexander larsson last updated date: october 8, 1999 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
Treehydra Manual - Archive of obsolete content
in this case, gimple asts will not be available, as gcc does not save earlier intermediate representations--they are modified in place.
URIs and URLs - Archive of obsolete content
original document information author(s): andreas otte last updated date: january 2, 2002 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
Mozilla Web Developer Community - Archive of obsolete content
mozilla developer news feed actually, there are no other feeds available for developer.mozilla.org.
Binding Attachment and Detachment - Archive of obsolete content
the methods and properties of the binding are installed on the element and become available to scripts that reference the bound element.
XBL - Archive of obsolete content
unfortunately, the actual implementation in mozilla is different from the specification, and there's no known document available describing the differences.
Install Wizards (aka: Stub Installers) - Archive of obsolete content
complete details about this library is available at libxpnet: architecture and api overview.
File Object - Archive of obsolete content
the majority of this api is now deprecated and as of gecko 1.9 no longer available.
compareTo - Archive of obsolete content
the following constants are defined and available for checking the value returned by compareto: installversion.major_diff installversion.minor_diff installversion.rel_diff installversion.bld_diff installversion.equal installversion.major_diff_minus installversion.minor_diff_minus installversion.rel_diff_minus installversion.bld_diff_minus example this code uses the compareto method...
execute - Archive of obsolete content
the blocking parameter is not available as part of this method in versions of netscape before 6.1/mozilla 0.9.3.
getComponentFolder - Archive of obsolete content
this parameter is available in netscape 6 and may be case sensitive (depending on the operating system).
getFolder - Archive of obsolete content
this parameter is available in netscape 6 or later and may be case sensitive (depending on the operating system).
Methods - Archive of obsolete content
the majority of this api is now deprecated and as of gecko 1.9 no longer available.
Properties - Archive of obsolete content
the majority of this api is now deprecated and as of gecko 1.9 no longer available.
Install Object - Archive of obsolete content
the majority of this api is now deprecated and as of gecko 1.9 no longer available.
Methods - Archive of obsolete content
the majority of this api is now deprecated and as of gecko 1.9 no longer available.
WinProfile Object - Archive of obsolete content
the majority of this api is now deprecated and as of gecko 1.9 no longer available.
Methods - Archive of obsolete content
the majority of this api is now deprecated and as of gecko 1.9 no longer available.
WinReg Object - Archive of obsolete content
the majority of this api is now deprecated and as of gecko 1.9 no longer available.
XTech 2006 Presentations - Archive of obsolete content
an html version of the paper is available here.
droppedLinkHandler - Archive of obsolete content
droppedlinkhandler(event, uri, name) -- firefox 51 or older droppedlinkhandler(event, links) -- firefox 52 or newer event -- drop event, or null if no event is available uri -- uri string of the dropped link name -- name string of the dropped link links -- array of the dropped items with nsidroppedlinkitem interface ...
enablehistory - Archive of obsolete content
enablehistory new in thunderbird 1requires seamonkey 2.0 type: boolean if true, an arrow button will appear on the end of the textbox which, when pressed, will open a dropdown menu of all available results.
icon - Archive of obsolete content
ArchiveMozillaXULAttributeicon
see the appearance of the different icons on some available platforms.
onsearchcomplete - Archive of obsolete content
« xul reference home onsearchcomplete new in thunderbird 3requires seamonkey 2.0 type: script code this event handler is called when the autocomplete search is finished and results are available.
preference - Archive of obsolete content
more information is available in the preferences system article.
reserved - Archive of obsolete content
setting this attribute to "true" indicates that the command is reserved for chrome code and is not available for use in the content.
script.type - Archive of obsolete content
note: if the javascript file is in chrome://, setting this attribute to application/javascript will always use the latest available javascript version.
showpopup - Archive of obsolete content
if false, the popup will not be shown, but the autocomplete results will still be available.
textbox.disablehistory - Archive of obsolete content
« xul reference home disablehistory obsolete since gecko 2.0 type: boolean note: applies to: thunderbird and seamonkeyif false, an arrow button will appear on the end of the textbox which will open a dropdown menu of all available results.
treecol.width - Archive of obsolete content
specifying widths for your columns causes gecko to allow the tree to be scrolled horizontally if it is wider than the available space.
findbar - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] in gecko 1.9, the findbar widget moved into toolkit, so it's available to any xul application, as well as extensions.
getDefaultSession - Archive of obsolete content
« xul reference home getdefaultsession return type: session name returns the name of the first session with available results.
getElementsByAttribute - Archive of obsolete content
note that this method is only available on xul elements; it is not part of the w3c dom.
getElementsByAttributeNS - Archive of obsolete content
note that this method is only available on xul elements and is not part of the dom.
Floating Panels - Archive of obsolete content
in the future, a distinction will be available to support titlebars of differing styles.
MenuItems - Archive of obsolete content
this allows the user to discover what shortcut keys are available by looking at the menus.
MoveResize - Archive of obsolete content
sometimes, a menu will be larger than the available space on the screen; in this situation, the menu may be moved such that it will fit on screen.
Special per-platform menu considerations - Archive of obsolete content
for instance, the edit menu always starts with the undo command if such a feature is available in the application, followed by redo, cut, copy, paste, and so forth.
Tooltips - Archive of obsolete content
note that tooltips can only be activated using the mouse, so they should never contain important information that isn't available elsewhere.
Popup Guide - Archive of obsolete content
working with popups the following additional information is available about manipulating menus and popups.
boxObject - Archive of obsolete content
« xul reference boxobject type: nsiboxobject this property is available for elements that are derived from boxes, which is most displayable xul elements.
contentView - Archive of obsolete content
for trees that are not built with a content builder, the functions of nsitreecontentview will not be available, since there are no dom nodes to retrieve.
currentIndex - Archive of obsolete content
(all trees have seltype="multiple" by default.) to reliably change or determine a selection, instead use the nsitreeselection interface methods available via tree.view.selection.
listBoxObject - Archive of obsolete content
most of the features of the list box are already available directly in the listbox, so you will rarely have need to use this box object directly.
popupBoxObject - Archive of obsolete content
you wouldn't normally need to use this property as all of its functions are available via the popup itself.
selected - Archive of obsolete content
this property is available for menuitem and menuseparator elements in firefox 3.
view - Archive of obsolete content
ArchiveMozillaXULPropertyview
functions available in the view allow one to retrieve the data within the cells, and determine which rows are nested within others.
Actions - Archive of obsolete content
so far we have only been using the ?relateditem variable since that is really the only useful variable that is available.
Additional Navigation - Archive of obsolete content
after the first triple is examined, the data network will look like the following: (?start = http://www.daml.org/2001/09/countries/iso#it, ?countrytitle = italy) only one result is present since there is only one title available.
Filtering - Archive of obsolete content
we will need to add some information to the datasource in order to specify the list of countries that are available.
Introduction - Archive of obsolete content
naturally, since there is no data yet, no results will be available, so the builder ends up building nothing.
Multiple Queries - Archive of obsolete content
om/ndeakin/images/t/canal.jpg) (?start = http://www.xulplanet.com/rdf/myphotos, ?photo = http://www.xulplanet.com/ndeakin/images/t/palace.jpg) (?start = http://www.xulplanet.com/rdf/myphotos, ?photo = http://www.xulplanet.com/ndeakin/images/t/canal.jpg) (?start = http://www.xulplanet.com/rdf/myphotos, ?photo = http://www.xulplanet.com/ndeakin/images/t/obelisk.jpg) so four possible results are available, one from the first query and three from the second.
RDF Modifications - Archive of obsolete content
assuming that the 'obelisk' photo doesn't have a description already, adding the triple listed above should cause a new result to be available for this photo.
Sorting Results - Archive of obsolete content
when the rdf datasource changes, and a new result is available, the new content is inserted at the right location.
Special Condition Tests - Archive of obsolete content
note that both the iscontainer and isempty attributes are only available for rdf datasources and for rules that use the simple syntax.
Template and Tree Listeners - Archive of obsolete content
these two methods are available for tree builders and will convert between an index in the tree and the associated member resource for the item at the index.
Things I've tried to do with XUL - Archive of obsolete content
var available_width = document.getelementbyid("invisible_element").clientwidth; ...
Creating toolbar buttons (Customize Toolbar Window) - Archive of obsolete content
another tutorial, which walks you through the entire process from the beginning, is also available.
Custom toolbar button - Archive of obsolete content
name the packed file with the extension .xpi and make it available to other users.
Adding Event Handlers - Archive of obsolete content
for example, you may use urls of the following form: <script src="findfile.js"/> <script src="chrome://findfiles/content/help.js"/> <script src="http://www.example.com/js/items.js"/> this tutorial does not attempt to describe how to use javascript (except as related to event handling) as this is a fairly large topic and there are plenty of other resources that are available for this.
Adding Methods to XBL-defined Elements - Archive of obsolete content
methods are only available to call after the page is rendered, which may cause problems if using createelement.
Adding Style Sheets - Archive of obsolete content
the following list summarizes some of the selectors available: button matches all button tags.
Additional Install Features - Archive of obsolete content
in addition to the install object, a file object is also available during an installation script.
Anonymous Content - Archive of obsolete content
properties, methods and other aspects of xbl are still available whether the content is from xbl or whether the xul provides its own content.
Box Objects - Archive of obsolete content
as the name implies, they are available for all box-based elements.
Creating an Installer - Archive of obsolete content
the majority of this api is now deprecated and as of gecko 1.9 no longer available.
Custom Tree Views - Archive of obsolete content
note that the view object is also available for trees using the built-in content view.
Keyboard Shortcuts - Archive of obsolete content
not all of the keys are available on all keyboards.
Manipulating Lists - Archive of obsolete content
these three methods are also available for several other xul elements and work in the same manner.
Modifying a XUL Interface - Archive of obsolete content
the properties available are listed in the element reference as those available are different for each element.
More Event Handlers - Archive of obsolete content
mouse button event properties when a mouse button event occurs, a number of additional properties are available to determine which mouse buttons were pressed and the location of the mouse pointer.
Numeric Controls - Archive of obsolete content
these elements are only available in firefox 3 and later.
Templates - Archive of obsolete content
here, we only use the name of the bookmark but numerous other fields are available.
Using Spacers - Archive of obsolete content
available space will be divided into 10 parts for the find button and one part for the cancel button.
XPCOM Examples - Archive of obsolete content
see also more examples are available below.
Using spell checking in XUL - Archive of obsolete content
spell checking functionality is available starting in firefox 2.
XUL Accesskey FAQ and Policies - Archive of obsolete content
on macintosh, accesskeys are available only in html not in xul, and they are activated using ctrl+letter instead of alt.
XUL FAQ - Archive of obsolete content
there are no production-quality visual editors available for xul.
XUL Template Primer - Bindings - Archive of obsolete content
unlike the <conditions>, bindings do not affect whether or not a rule matches: they just "pull through" additional information if it is available.
XUL accessibility tool - Archive of obsolete content
future versions of the extension will be available from addons.mozilla.org.
arrowscrollbox - Archive of obsolete content
more information is available in the xul tutorial.
bindings - Archive of obsolete content
more information is available in the template guide.
box - Archive of obsolete content
ArchiveMozillaXULbox
more information is available in the xul tutorial.
broadcaster - Archive of obsolete content
more information is available in the broadcasters and observers xul tutorial.
broadcasterset - Archive of obsolete content
more information is available in the xul tutorial.
browser - Archive of obsolete content
droppedlinkhandler(event, uri, name) -- firefox 51 or older droppedlinkhandler(event, links) -- firefox 52 or newer event -- drop event, or null if no event is available uri -- uri string of the dropped link name -- name string of the dropped link links -- array of the dropped items with nsidroppedlinkitem interface homepage type: url this attribute allows you to set a homepage for the browser element.
caption - Archive of obsolete content
more information is available in the xul tutorial.
colorpicker - Archive of obsolete content
more information is available in the preferences system article.
column - Archive of obsolete content
more information is available in the xul tutorial.
columns - Archive of obsolete content
more information about columns is available in the xul tutorial.
commandset - Archive of obsolete content
more information is available in the xul tutorial.
conditions - Archive of obsolete content
more information is available in the xul tutorial.
datepicker - Archive of obsolete content
three types are available, which can be specified using the type attribute.
deck - Archive of obsolete content
ArchiveMozillaXULdeck
more information is available in the xul tutorial.
description - Archive of obsolete content
more information is available in the xul tutorial.
dialog - Archive of obsolete content
more information is available in the xul tutorial and dialogs and prompts (code snippets).
grid - Archive of obsolete content
ArchiveMozillaXULgrid
more information is available in the xul tutorial.
grippy - Archive of obsolete content
more information is available in the xul tutorial.
groupbox - Archive of obsolete content
more information is available in the xul tutorial.
hbox - Archive of obsolete content
ArchiveMozillaXULhbox
more information is available in the xul tutorial.
iframe - Archive of obsolete content
more information is available in the xul tutorial.
image - Archive of obsolete content
ArchiveMozillaXULimage
more information is available in the xul tutorial.
key - Archive of obsolete content
ArchiveMozillaXULkey
more information is available in the xul tutorial.
keyset - Archive of obsolete content
more information is available in the xul tutorial.
label - Archive of obsolete content
ArchiveMozillaXULlabel
more information is available in the xul tutorial.
listcell - Archive of obsolete content
by default it only contains text but iconic and checkbox listcells are also available.
member - Archive of obsolete content
more information is available in the xul tutorial.
menubar - Archive of obsolete content
more information is available in the xul tutorial.
notificationbox - Archive of obsolete content
also it is possible to call function with the same name (they are different) of global object gbrowser: notifybox = gbrowser.getnotificationbox() examples <notificationbox flex="1"> <browser src="http://www.mozilla.org"/> </notificationbox> there is a more complex code available in the code snippets area.
observes - Archive of obsolete content
more information is available in the xul tutorial.
panel - Archive of obsolete content
ArchiveMozillaXULpanel
you wouldn't normally need to use this property as all of its functions are available via the popup itself.
popupset - Archive of obsolete content
more information is available in the xul tutorial.
preference - Archive of obsolete content
more information is available in the preferences system article.
prefwindow - Archive of obsolete content
more information is available in the preferences system article.
progressmeter - Archive of obsolete content
more information is available in the xul tutorial.
richlistbox - Archive of obsolete content
more information is available in the preferences system article.
richlistitem - Archive of obsolete content
this property is available for menuitem and menuseparator elements in firefox 3.
row - Archive of obsolete content
ArchiveMozillaXULrow
more information is available in the xul tutorial.
rows - Archive of obsolete content
ArchiveMozillaXULrows
more information is available in the xul tutorial.
scrollbar - Archive of obsolete content
more information is available in the xul tutorial.
spacer - Archive of obsolete content
more information is available in the xul tutorial.
splitter - Archive of obsolete content
more information is available in the xul tutorial.
stack - Archive of obsolete content
ArchiveMozillaXULstack
more information is available in the xul tutorial.
stringbundle - Archive of obsolete content
more information is available in the xul tutorial.
tabbox - Archive of obsolete content
more information is available in the xul tutorial.
tabpanel - Archive of obsolete content
more information is available in the xul tutorial.
tabpanels - Archive of obsolete content
more information is available in the xul tutorial.
tabs - Archive of obsolete content
ArchiveMozillaXULtabs
more information is available in the xul tutorial.
template - Archive of obsolete content
more information is available in the xul tutorial.
toolbar - Archive of obsolete content
more information is available in the xul tutorial.
toolbarbutton - Archive of obsolete content
more information is available in the xul tutorial.
toolbargrippy - Archive of obsolete content
more information is available in the xul tutorial.
toolbarpalette - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] firefox only the item is a palette of available toolbar items.
toolbox - Archive of obsolete content
more information is available in the xul tutorial.
treecell - Archive of obsolete content
more information is available in the xul tutorial.
treechildren - Archive of obsolete content
more information is available in the xul tutorial.
treecols - Archive of obsolete content
more information is available in the xul tutorial.
treeitem - Archive of obsolete content
more information is available in the xul tutorial.
treerow - Archive of obsolete content
more information is available in the xul tutorial.
triple - Archive of obsolete content
more information is available in the xul tutorial.
vbox - Archive of obsolete content
ArchiveMozillaXULvbox
more information is available in the xul tutorial.
window - Archive of obsolete content
more information is available in the xul tutorial.
wizard - Archive of obsolete content
more information is available in the xul tutorial.
wizardpage - Archive of obsolete content
more information is available in the xul tutorial.
CommandLine - Archive of obsolete content
for the sake of simplicity, the proposed solution involves the observer service to notify observers that the updated arguments are available.
XULRunner FAQ - Archive of obsolete content
this is a developer preview release: additional features for installing and deploying xulrunner and applications based on xulrunner will be available in future releases.
Getting started with XULRunner - Archive of obsolete content
the contents of omni.ja are available to xulrunner applications and are what make it possible to build amazing applications easily!
Using LDAP XPCOM with XULRunner - Archive of obsolete content
actually, the ldap interfaces are available (for exemple, components.interfaces.nsildapconnection is not null), but the components can't be loaded (for example, components.classes["@mozilla.org/network/ldap-connection;1"] is null).
Windows and menus in XULRunner - Archive of obsolete content
menus and toolbars most desktop applications are complex enough to require some sort of menu and/or toolbar to structure the application’s available commands.
XUL Application Packaging - Archive of obsolete content
optional - default is 0 note: this option does not add menu items that make the extension/theme manager available in the ui; that is the responsibility of the application author.
application/http-index-format specification - Archive of obsolete content
:31%20gmt 201: bar.html 9683 text/html file tue,%2025%20oct%201994%2008:12:31%20gmt 201: foobar 0 application/http-index-format directory tue,%2025%20oct%201994%2008:12:31%20gmt original document information author(s): christian biesinger last updated date: may 10, 2004 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
Mozprofile - Archive of obsolete content
in addition, subclasses firefoxprofile and thundebirdprofile are available with preset preferences for those applications.
2006-11-10 - Archive of obsolete content
currently there is a work-around extension available at bug 357101 to temporarily solve this problem.
2006-10-06 - Archive of obsolete content
summary: mozilla.dev.apps.calendar - september 29 - october 6, 2006 announcements sunbird and lightning 0.3rc1 available gordon announced the candidate (rc) builds for sunbird and lightning 0.3 are released.
2006-11-03 - Archive of obsolete content
ff 1.5 hiding a user adds their "two cents" about firefox 1.5 now being easily available for download.
2006-11-04 - Archive of obsolete content
1.5 hiding a user adds their "two cents" about firefox 1.5 now being easily available for download.
2006-09-29 - Archive of obsolete content
summary: mozilla.dev.apps.thunderbird - september 22-29, 2006 announcements development for thunderjudge extension is put on hold the author of the thunderjudge extension is currently putting the development of the extension on hold due to several issues (more details available at the website).
2006-10-27 - Archive of obsolete content
he also mentioned that the tinderbox is just a virtual machine, so you can easily allocate more space to it as need, assuming the host has some available.
2006-09-22 - Archive of obsolete content
meetings no meeting information available for this period.
2006-10-27 - Archive of obsolete content
summary: mozilla.dev.l10n - october 27, 2006 announcements drafts of eulas for several lanugages available for review drafts of eulas for several lanugages available for review final ff release already announced a french site has already announced final ff 2.0 and gives download links on its own site.
2006-12-01 - Archive of obsolete content
summary: mozilla.dev.l10n - december 1, 2006 announcements langpacks for sunbird nightly builds available for testing langpacks for sunbird nightly builds available for testing seamonkey 1.1 late string changes for mail content policy the fix to bug 360288 has landed.
2006-10-20 - Archive of obsolete content
firefox 2 release candidate 3 is now available for download ff2 rc3 available for download.
2006-10-27 - Archive of obsolete content
announcements firefox 2.0 available firefox 2.0 is now available for download.
2006-09-29 - Archive of obsolete content
summary of newsgroup moz.dev.platform summary: mozilla.dev.platform - september 22 - 29, 2006 announcements firefox 2 release candidate 1 is now available for download announcing that firefox 2 rc 1 is available for download discussions xulrunner fails without feedback on osx intel 10.4.7 will morton is trying to port a xul application to osx.
2006-11-10 - Archive of obsolete content
james leigh points out that resources are available at o'reily, in the creating applications with mozilla section.
2006-10-27 - Archive of obsolete content
summary: mozilla.dev.quality - october 20-october 27, 2006 announcements firefox & thunderbird 1.5.0.8 candidate builds available for testing!
2006-09-22 - Archive of obsolete content
announcements java port of jsdriver.pl for rhino available david p.
JS-Engine FAQ - Archive of obsolete content
domparser is not part of js but part of mozilla browser which makes it available to script in the browser using xpconnect.
2006-09-29 - Archive of obsolete content
* * @param aavailwidth the available width into which the element is * being placed (i.e., the width of its containing * block).
2006-10-13 - Archive of obsolete content
summary: mozilla.dev.apps.calendar - october 6 - october 13, 2006 announcements sunbird and lightning 0.3rc2 available matthew willis announced the second release candidate builds for sunbird and lightning 0.3 are released.
2006-11-17 - Archive of obsolete content
discussions itip and imip new designs for sending invitations available for comment discussion about the new interface designs for itip.
Monitoring plugins - Archive of obsolete content
summary a new component of the plugin system is now available to measure how long it takes plugins (e.g., adobe flash) to execute their calls.
NPN_GetURL - Archive of obsolete content
the rest of the the browser interface keeps running until the data is available.
NPN_MemAlloc - Archive of obsolete content
if insufficient memory is available, the plug-in returns null.
NPP_WriteReady - Archive of obsolete content
the browser can write a smaller amount of data if desired or necessary; for example, if only 8k of data is available in a network buffer.
NPStream - Archive of obsolete content
this field is only available if the np version is greater than or equal to npvers_has_response_headers.
NP_Shutdown - Archive of obsolete content
note: if enough memory is available, the browser can keep the plug-in library loaded if it expects to create more instances in the near future.
NPAPI plug-in side API - Archive of obsolete content
this chapter describes methods in the plug-in api that are available from the plug-in object; these allow plug-ins to interact with the browser.
NPAPI plugin reference - Archive of obsolete content
npapi plug-in side api this chapter describes methods in the plug-in api that are available from the plug-in object; these allow plug-ins to interact with the browser.
Adobe Flash - Archive of obsolete content
when information about when this problem on mac os x will be addressed becomes available, the constant can be updated to reflect something less arbitrary.
Shipping a plugin as a Toolkit bundle - Archive of obsolete content
one of the new features that is available in firefox 1.5 is the ability to place browser plugins in a toolkit bundle.
Atomic RSS - Archive of obsolete content
ArchiveRSSModuleAtom
references atomic rss element list examples none available at this time community none available at this time tools none available at this time other resources tim bray's atom rss article rss, atom, rdf, xml ...
Content - Archive of obsolete content
references rss content module element list examples none available at this time community none available at this time tools none available at this time other resources rss content module spec rss, rdf, xml ...
Slash - Archive of obsolete content
ArchiveRSSModuleSlash
references rss slash module element list examples none available at this time community none available at this time tools none available at this time other resources rss slash module slash slashdot rss, rdf, xml ...
Well-Formed Web - Archive of obsolete content
references rss well-formed web module element list examples none available at this time community none available at this time tools none available at this time other resources well-formed web spec rss, rdf, xml ...
Confidentiality, Integrity, and Availability - Archive of obsolete content
if an attacker is not able to compromise the first two elements of information security (see above) they may try to execute attacks like denial of service that would bring down the server, making the website unavailable to legitimate users due to lack of availability.
Security - Archive of obsolete content
for an overview of ssl, see "introduction to ssl." for an overview of encryption and decryption, see "encryption and decryption." information on digital signatures is available from "digital signatures." introduction to sslthis document introduces the secure sockets layer (ssl) protocol.
Making sure your theme works with RTL locales - Archive of obsolete content
of the languages firefox and thunderbird are shipped in, that includes arabic and hebrew, with persian available as beta, for a total population in excess of 100 million potential users.
Settings - Archive of obsolete content
show original sources enabling this option will make the debugger use source maps, if they are available, to display the original source for code which has been combined, minified, or even compiled to javascript from a language like coffeescript.
Using IO Timeout And Interrupt On NT - Archive of obsolete content
unfortunately, <tt>cancelio()</tt> is not available on nt 3.51.
References - Archive of obsolete content
it is also available in french.
Using the W3C DOM - Archive of obsolete content
css 1 forward-compatible parsing css 2.1 rules for handling parsing errors changing an element's text using the dom the text of an element is available as the textcontent or innertext property (some browsers support both).
Using Web Standards in your Web Pages - Archive of obsolete content
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.
-ms-scrollbar-3dlight-color - Archive of obsolete content
code example: http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/refs/scrollbarcolor.htm <!doctype html> <html> <head> <title>scrollbar-3dlight-color</title> <style> .blue3dlight { -ms-scrollbar-3dlight-color: blue; scrollbar-3dlight-color: blue; /* use the standard when available.
-ms-wrap-flow - Archive of obsolete content
maximum inline flow content can wrap on the side of the exclusion with the largest available space for the given line, and must leave empty the other side of the exclusion.
-moz-windows-compositor - Archive of obsolete content
note: since firefox 58, this media feature is no longer available to web content — it is only available internally (e.g.
:-moz-system-metric(images-in-menus) - Archive of obsolete content
note: since firefox 58, this pseudo-class is no longer available to web content — it is only available internally (e.g.
:-moz-system-metric(mac-graphite-theme) - Archive of obsolete content
note: since firefox 58, this pseudo-class is no longer available to web content — it is only available internally (e.g.
:-moz-system-metric(scrollbar-end-backward) - Archive of obsolete content
note: since firefox 58, this pseudo-class is no longer available to web content — it is only available internally (e.g.
:-moz-system-metric(scrollbar-end-forward) - Archive of obsolete content
note: since firefox 58, this pseudo-class is no longer available to web content — it is only available internally (e.g.
:-moz-system-metric(scrollbar-start-backward) - Archive of obsolete content
note: since firefox 58, this pseudo-class is no longer available to web content — it is only available internally (e.g.
:-moz-system-metric(scrollbar-start-forward) - Archive of obsolete content
note: since firefox 58, this pseudo-class is no longer available to web content — it is only available internally (e.g.
:-moz-system-metric(scrollbar-thumb-proportional) - Archive of obsolete content
note: since firefox 58, this pseudo-class is no longer available to web content — it is only available internally (e.g.
:-moz-system-metric(touch-enabled) - Archive of obsolete content
note: since firefox 58, this pseudo-class is no longer available to web content — it is only available internally (e.g.
:-moz-system-metric(windows-default-theme) - Archive of obsolete content
note: since firefox 58, this pseudo-class is no longer available to web content — it is only available internally (e.g.
:-moz-system-metric() - Archive of obsolete content
note: since firefox 58, this pseudo-class is no longer available to web content — it is only available internally (e.g.
::-ms-fill - Archive of obsolete content
this pseudo-element is available only in internet explorer 10, internet explorer 11, and microsoft edge.
-moz-mac-graphite-theme - Archive of obsolete content
note: since firefox 58, this media feature is no longer available to web content — it is only available internally (e.g.
-moz-os-version - Archive of obsolete content
note: since firefox 58, this media feature is no longer available to web content — it is only available internally (e.g.
-moz-scrollbar-end-backward - Archive of obsolete content
note: since firefox 58, this media feature is no longer available to web content — it is only available internally (e.g.
-moz-scrollbar-end-forward - Archive of obsolete content
note: since firefox 58, this media feature is no longer available to web content — it is only available internally (e.g.
-moz-scrollbar-start-backward - Archive of obsolete content
note: since firefox 58, this media feature is no longer available to web content — it is only available internally (e.g.
-moz-scrollbar-start-forward - Archive of obsolete content
note: since firefox 58, this media feature is no longer available to web content — it is only available internally (e.g.
-moz-scrollbar-thumb-proportional - Archive of obsolete content
note: since firefox 58, this media feature is no longer available to web content — it is only available internally (e.g.
-moz-windows-accent-color-in-titlebar - Archive of obsolete content
note: since firefox 58, this media feature is no longer available to web content — it is only available internally (e.g.
-moz-windows-classic - Archive of obsolete content
note: since firefox 58, this media feature is no longer available to web content — it is only available internally (e.g.
-moz-windows-default-theme - Archive of obsolete content
note: since firefox 58, this media feature is no longer available to web content — it is only available internally (e.g.
-moz-windows-glass - Archive of obsolete content
note: since firefox 58, this media feature is no longer available to web content — it is only available internally (e.g.
-moz-windows-theme - Archive of obsolete content
note: since firefox 58, this media feature is no longer available to web content — it is only available internally (e.g.
Displaying notifications (deprecated) - Archive of obsolete content
to see how to use the standard api, please read: using web notifications mobile only in gecko 2.0 available only in firefox mobile as of gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) firefox offers support for "desktop notifications"; these are notifications that are displayed to the user outside the context of the web content, using the standard notification system provided by the operating system.
Namespaces - Archive of obsolete content
qname is a global constructor available in javascript implementations supporting e4x.
Array comprehensions - Archive of obsolete content
this means that they will not be available outside of the comprehension.
ECMAScript 2016 to ES.Next support in Mozilla - Archive of obsolete content
(may 2019) the following features are already implemented, but only available in the firefox nightly channel and not yet included in a draft edition of an ecmascript specification.
Legacy generator function expression - Archive of obsolete content
description an overview of the usage is available on the iterators and generators page.
Legacy generator function - Archive of obsolete content
description an overview of the usage is available on the iterators and generators page.
ActiveXObject - Archive of obsolete content
for example, for the local intranet zone, you typically need to change a custom setting to "initialize and script activex controls not marked as safe for scripting." to identify members of an automation object that you can use in your code, you may need to use a com object browser, such as the ole/com object viewer, if no reference documentation is available for the automation object.
New in JavaScript 1.5 - Archive of obsolete content
when non-capturing parentheses are used, matched subexpressions are not available as back-references.
New in JavaScript 1.8.5 - Archive of obsolete content
strict mode support array.tostring() now works even on non-arrays by either returning the result of calling its join() method if one is available or by calling its tostring() method.
Object.prototype.__noSuchMethod__ - Archive of obsolete content
the __nosuchmethod__ property used to reference a function to be executed when a non-existent method is called on an object, but this function is no longer available.
arguments.caller - Archive of obsolete content
description this property is not available anymore, but you can still use function.caller.
Archived JavaScript Reference - Archive of obsolete content
you can use the more general proxy object instead.object.prototype.__count__the __count__ property used to store the count of enumerable properties on the object, but it has been removed.object.prototype.__nosuchmethod__the __nosuchmethod__ property used to reference a function to be executed when a non-existent method is called on an object, but this function is no longer available.object.prototype.__parent__the __parent__ property used to point to an object's context, but it has been removed.object.prototype.eval()the object.eval() method used to evaluate a string of javascript code in the context of an object, however, this method has been removed.object.prototype.unwatch()the unwatch() method removes a watchpoint set with the watch() method.object.prototype.watch()the wa...
JSException - Archive of obsolete content
the getwrappedexception method was not available.
LiveConnect - Archive of obsolete content
standard java objects are also available for creation and manipulation by javascript code (e.g.
ParallelArray - Archive of obsolete content
the higher-order functions available on parallelarray attempted to execute in parallel, though they may fall back to sequential execution if necessary.
Standards-Compliant Authoring Tools - Archive of obsolete content
macromedia™ dreamweaver™ cs6 style master and layout master by western civilisation some caveats: it appears that tools currently available from namo generate ie-specific or netscape 4-specific code that may require extra debugging for compatibility with standards-based browsers.
Styling the Amazing Netscape Fish Cam Page - Archive of obsolete content
with just the few elements i had available in this example, there were any number of possibilities for design effects, and i think you'll find the same to be true for your own designs if you just give this sort of approach a try.
Window.importDialog() - Archive of obsolete content
this function was only available in the original, xul-based version of firefox for android, which is no longer supported; for that reason, this function is obsolete and should never be used.
Writing JavaScript for XHTML - Archive of obsolete content
given the direction away from formatting attributes and the possibility of xhtml becoming eventually more prominent (or at least the document author having the possibility of later wanting to make documents available in xhtml for browsers that support it), one may wish to avoid features which are not likely to stay compatible into the future.
XForms Input Element - Archive of obsolete content
these inheriting types are: xsd:integer xsd:nonpositiveinteger xsd:negativeinteger xsd:long xsd:int xsd:short xsd:byte xsd:nonnegativeinteger xsd:unsignedlong xsd:unsignedint xsd:unsignedshort xsd:unsignedbyte xsd:positiveinteger analogous widget is <xul:textbox type="number"/> (will be available in fx 3.0) specific handling of attributes incremental - if "true", the bound instance node will be updated when the user clicks on the up or down spin buttons or directly edits the field and then sets focus elsewhere.
XForms Output Element - Archive of obsolete content
characteristics the bound instance node is of type xsd:date or a type derived from it in addition, the appearance attribute must also contain the value "full" firefox 2.0 doesn't currently have any similar widgets available for use with xhtml or xul.
XForms Range Element - Archive of obsolete content
characteristics analogous widget is <xul:scale/>, which is available in fx 3.0 only if the incremental attribute has the value true, the value of the bound node will be updated upon each movement of the slider's thumb.
XForms Select Element - Archive of obsolete content
the data binding restriction to simple content may be relaxed when an itemset element is used, which allows the available choices to be obtained from an xforms model.
XForms Select1 Element - Archive of obsolete content
the data binding restriction to simple content may be relaxed when an itemset element is used, which allows the available choices to be obtained from an xforms model.
XForms - Archive of obsolete content
the last official release has been done for firefox 3.6 and is available for download on addons.mozilla.org.
Archived open Web documentation - Archive of obsolete content
the higher-order functions available on parallelarray attempted to execute in parallel, though they may fall back to sequential execution if necessary.
Styling Abbreviations and Acronyms - Archive of obsolete content
removing the underline from these elements will rob readers of an indication that there is extra information available.
Using the Right Markup to Invoke Plugins - Archive of obsolete content
future netscape browsers based on mozilla source code will allow the use of a special param element to specify where to get plugins that are not present, but this feature is not available in netscape 7.
Obsolete: XPCOM-based scripting for NPAPI plugins - Archive of obsolete content
ranganathan last updated date: october 26, 2001 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
XQuery - Archive of obsolete content
a simple usage example is available.
Archive of obsolete content
starting with firefox 2, a sax parser is available to xul applications and extensions.
Examples - Game development
experience both available on 2d screens and on vr hmds (settings / switch to vr mode).
Game monetization - Game development
some publisher websites have that information easily available, while some others are harder to find.
Publishing games - Game development
you have to let the world know that you have made something interesting available, which people will enjoy playing.
Building up a basic demo with PlayCanvas - Game development
it is open sourced on github, with an editor available online and good documentation.
Desktop mouse and keyboard controls - Game development
there's also the phaser.keycode object, which contains all the available keyboard keys: in the main menu of the game we can add an extra way to begin playing.
Implementing game control mechanisms - Game development
pure javascript demo there's also a small online demo with full source code available on github where the basic support for the control mechanisms described in the articles is implemented in pure javascript.
Square tilemaps implementation: Scrolling maps - Game development
there's another demo available, that shows how to make the camera follow a character.
Create the Canvas and draw on it - Game development
this is because, just as with css, color can be specified as a hexadecimal value, a color keyword, the rgba() function, or any of the other available color methods.
Finishing up - Game development
drawing the life counter looks almost the same as drawing the score counter — add the following function to your code, below the drawscore() function: function drawlives() { ctx.font = "16px arial"; ctx.fillstyle = "#0095dd"; ctx.filltext("lives: "+lives, canvas.width-65, 20); } instead of ending the game immediately, we will decrease the number of lives until they are no longer available.
Track the score and win - Game development
it's the main purpose of the game after all, so you should display a winning message if all available points have been collected.
Extra lives - Game development
when the number of available lives reaches zero, the game is over and the game over alert message will be shown.
Load the assets and print them on screen - Game development
(note that the file name does not also have to be the same, but we'd recommend it, as it makes everything easier to follow.) of course, to load the image, it must be available in our code directory.
Plug-in Development Overview - Gecko Plugin API Reference
the plug-in can select one of these transmission modes: normal mode: the browser sends the stream data sequentially to the plug-in as the data becomes available.
API - MDN Web Docs Glossary: Definitions of Web-related terms
the geolocation api can be used to retrieve location information from whatever service the user has available on their device (e.g.
Hoisting - MDN Web Docs Glossary: Definitions of Web-related terms
console.log(x + " " + y); // '1 undefined' // this prints value of y as undefined as javascript only hoists declarations var y = 2; // declare and initialize y // example 2 // no hoisting, but since initialization also causes declaration (if not already declared), variables are available.
Java - MDN Web Docs Glossary: Definitions of Web-related terms
the jvm is available across many platforms, which allows java programs to run almost everywhere without the need to be compiled or packaged again.
Key - MDN Web Docs Glossary: Definitions of Web-related terms
the public key is freely available, whereas the private key is kept secret.
Layout viewport - MDN Web Docs Glossary: Definitions of Web-related terms
essentially, it represents what is available to be seen, while the visual viewport represents what is currently visible on the user's display device.
Main Axis - MDN Web Docs Glossary: Definitions of Web-related terms
on the main axis you can control the sizing of flex items by adding any available space to the items themselves, by way of flex properties on the items.
Mixin - MDN Web Docs Glossary: Definitions of Web-related terms
for example, the windoworworkerglobalscope mixin is used to provide methods and properties that need to be available on both the window and workerglobalscope interfaces.
Mutable - MDN Web Docs Glossary: Definitions of Web-related terms
on appending the "immutablestring" with a string value, following events occur: existing value of "immutablestring" is retrieved "world" is appended to the existing value of "immutablestring" the resultant value is then allocated to a new block of memory "immutablestring" object now points to the newly created memory space previously created memory space is now available for garbage collection.
Network throttling - MDN Web Docs Glossary: Definitions of Web-related terms
firefox's developer tools for example have a drop-down menu available in both the network monitor and responsive design mode containing network speed options (e.g.
Scope - MDN Web Docs Glossary: Definitions of Web-related terms
if a variable or other expression is not "in the current scope," then it is unavailable for use.
Semantics - MDN Web Docs Glossary: Definitions of Web-related terms
semantic elements these are some of the roughly 100 semantic elements available: <article> <aside> <details> <figcaption> <figure> <footer> <header> <main> <mark> <nav> <section> <summary> <time> learn more html element reference on mdn using html sections and outlines on mdn the meaning of semantics in computer science on wikipedia ...
TCP slow start - MDN Web Docs Glossary: Definitions of Web-related terms
tcp slow start is an algorithm used to detect the available bandwidth for packet transmission, and balances the speed of a network connection.
Time to interactive - MDN Web Docs Glossary: Definitions of Web-related terms
although available in some performance monitoring tools, tti is not a part of any official web specification at the time of writing.
Brotli - MDN Web Docs Glossary: Definitions of Web-related terms
it compresses data using a combination of a modern variant of the lz77 algorithm, huffman coding, and second-order context modeling, providing a compression ratio comparable to the best currently available general-purpose compression methods.
Cascade and inheritance - Learn web development
try setting the value of all to some of the other available values and observe what the difference is.
Organizing your CSS - Learn web development
build systems for css another way to organise css is to take advantage of some of the tooling that is available for front-end developers, which allows you to take a slightly more programmatic approach to writing css.
Pseudo-classes and pseudo-elements - Learn web development
use this as a reference to see the kind of things that are available for you to target.
Type, class, and ID selectors - Learn web development
previous overview: building blocks next in this lesson we will take a look at the simplest selectors that are available, which you will probably use the most in your work.
Sizing items in CSS - Learn web development
with no percentage applied our <div> would take up 100% of the available space, as it is a block level element.
Styling tables - Learn web development
it is useful to have multiple nested elements available so you can layer styles on top of one another.
Floats - Learn web development
there are newer, better layout techniques available and so use of floats in this way should be regarded as a legacy technique.
Test your skills: floats - Learn web development
use the most up to date method available to cause the box background to extend to below the float as in the image.
Test your skills: Grid Layout - Learn web development
the grid should have three columns sharing the available space equally, and a 20-pixel gap between the column and row tracks.
Positioning - Learn web development
position: sticky there is another position value available called position: sticky, which is somewhat newer than the others.
CSS layout - Learn web development
guides these articles will provide instruction on the fundamental layout tools and techniques available in css.
How CSS works - Learn web development
since the only rule available in the css has a span selector, the browser will be able to sort the css very quickly!
Learn to style HTML using CSS - Learn web development
this module looks at the cascade and inheritance, all the selector types we have available, units, sizing, styling backgrounds and borders, debugging, and lots more.
What do common web layouts contain? - Learn web development
active learning there is no active learning available yet.
What is accessibility? - Learn web development
active learning there is no active learning available yet.
Advanced form styling - Learn web development
in the next article of this module, we will explore the different ui pseudo-classes available to us in modern browsers for styling forms in different states.
Test your skills: Advanced styling - Learn web development
we've made one available in the same directory as our html files — see search-24px.png — plus a <div> element after the search input to help you attach it, should you need it.
Web forms — Working with user data - Learn web development
the different form controls basic native form controls we start off this section by looking at the functionality of the the original html <input> types in detail, looking at what options are available to collect different types of data.
CSS basics - Learn web development
(here, auto is a special value that divides the available horizontal space evenly between left and right).
How the Web works - Learn web development
a simplified diagram of how they interact might look like this: clients are the typical web user's internet-connected devices (for example, your computer connected to your wi-fi, or your phone connected to your mobile network) and web-accessing software available on those devices (usually a web browser like firefox or chrome).
Installing basic software - Learn web development
there are loads of (s)ftp programs available including cyberduck, fetch and filezilla.
The web and web standards - Learn web development
this allows the web to remain a freely-available public resource.
Add a hitmap on top of an image - Learn web development
alt text only displays when the image is unavailable.
Tips for authoring fast-loading HTML pages - Learn web development
<img href="./images/footerlogo.jpg" loading="lazy"> note that lazily-loaded images may not be available when the load event is fired.
Use JavaScript within a webpage - Learn web development
to make javascript work in your favor, it's worth knowing about certain best practices for adding javascript: make all content available as (structured) text.
What’s in the head? Metadata in HTML - Learn web development
some content management systems have facilities to automatically extract page author information and make it available for such purposes.
Adding vector graphics to the Web - Learn web development
<img src="equilateral.svg" alt="triangle with all three sides equal" height="87" width="100" /> pros quick, familiar image syntax with built-in text equivalent available in the alt attribute.
Images in HTML - Learn web development
in fact, having alt text available to describe images is useful to most users.
Mozilla splash page - Learn web development
starting point to start off this assessment, you need to grab the html and all the images available in the mdn-splash-page-start directory on github.
Video and audio content - Learn web development
preload used for buffering large files; it can take one of three values: "none" does not buffer the file "auto" buffers the media file "metadata" buffers only the metadata for the file you can find the above example available to play live on github (also see the source code.) note that we haven't included the autoplay attribute in the live version — if the video starts to play as soon as the page loads, you don't get to see the poster!
HTML table advanced features and accessibility - Learn web development
to give you some interesting examples, in the case of a long table you could make the table header and footer repeat on every printed page, and you could make the table body display on a single page and have the contents available by scrolling up and down.
Assessment: Structuring planet data - Learn web development
an html data table would be ideal — you need to take the raw data you have available and turn it into a table, following the steps below.
Structuring the web with HTML - Learn web development
html is used to specify whether your web content should be recognized as a paragraph, list, heading, link, image, multimedia player, form, or one of many other available elements or even a new element that you define.
Asynchronous JavaScript - Learn web development
cooperative asynchronous javascript: timeouts and intervals here we look at the traditional methods javascript has available for running code asychronously after a set time period has elapsed, or at a regular interval (e.g.
Test your skills: Functions - Learn web development
functions 2 for our second functions-related task, you need to create a function that draws a rectangle on the provided <canvas> (reference variable canvas, context available in ctx), based on the five provided input variables: x — the x coordinate of the rectangle.
Making decisions in your code — conditionals - Learn web development
cheese available for making cheese on toast.'); } else { console.log('no cheese on toast for you today.'); } and, returning to our previous example about the child doing a chore for their parent, you could write it like this: let shoppingdone = false; if (shoppingdone) { // don't need to explicitly specify '=== true' let childsallowance = 10; } else { let childsallowance = 5; } nesting if ...
Handling text — strings in JavaScript - Learn web development
in the next article, we'll build on this, looking at some of the built-in methods available to strings in javascript and how we can use them to manipulate our strings into just the form we want.
Test your skills: Strings - Learn web development
use a combination of the variables you have and available string properties/methods to trim down the original quote to "i do not like green eggs and ham.", and store it in a variable called revisedquote.
Storing the information you need — Variables - Learn web development
you may not fully understand the syntax we are using (yet!), but you should be able to get the idea — if we didn't have variables available, we'd have to implement a giant code block that checked what the entered name was, and then display the appropriate message for any name.
What is JavaScript? - Learn web development
there's a lot more available, too!
Multimedia: video - Learn web development
this is the ffmpeg command string to remove audio: ffmpeg -i original.mp4 -an -c:v copy audiofreeversion.mp4 video preload the preload attribute has three available options: auto|metadata|none.
Server-side website programming first steps - Learn web development
after reading this article, you'll understand the additional power available to websites through server-side coding.
Server-side website programming - Learn web development
for example, imagine how many products are available on amazon, and imagine how many posts have been written on facebook.
Ember Interactivity: Footer functionality, conditional rendering - Learn web development
note that here we need this.incomplete.length, not this.todos.incomplete.length, because we are doing this inside the service, where the incomplete() getter is available directly (in the template, the contents of the service has been made available as todos via the @service('todo-data') todos; line inside the footer class, hence it being this.todos.incomplete.length there).
Framework main features - Learn web development
at this point you can choose which framework you'd like to start learning first: react ember vue note: we only have three framework tutorial series available now, but we hope to have more available in the future.
Componentizing our React app - Learn web development
the final line of src/index.js should read like this: reactdom.render(<app tasks={data} />, document.getelementbyid("root")); this array is now available to the app component as props.tasks.
Beginning our React todo list - Learn web development
once we have put our styles in place, though, any element with this class will be hidden from sighted users and still available to screen reader users — this is because these words are not needed by sighted users; they are there to provide more information about what the button does for screenreader users that do not have the extra visual context to help them.
Starting our Svelte Todo list app - Learn web development
once we have put our styles in place, though, any element with this class will be hidden from sighted users and still available to screen reader users — this is because these words are not needed by sighted users; they are there to provide more information about what the button does for screenreader users that do not have the extra visual context to help them.
Working with Svelte stores - Learn web development
have a look at the ease visualizer to explore the various ease functions available.
Dynamic behavior in Svelte: working with variables and props - Learn web development
explore the previous link to see what other modifiers are available.
Focus management with Vue refs - Learn web development
data and events are not yet available.
Rendering a list of Vue components - Learn web development
this way you have some data available for rendering using v-for.
Vue resources - Learn web development
only what you return from this function is available in your <template>s.
Understanding client-side JavaScript frameworks - Learn web development
as a beginner, trying to choose what to focus on out of the huge number of choices available is a very real problem.
Introduction to cross browser testing - Learn web development
there are commercial tools available such as sauce labs, browser stack, endtest, lambdatest, testingbot, and crossbrowsertesting that do this kind of thing for you, without you having to worry about the setup, if you wish to invest some money in your testing.
Cross browser testing - Learn web development
in this article, we look at what is available, how to use task runners, and the basics of how to use commercial browser test automation apps such as sauce labs and browser stack.
Deploying our app - Learn web development
there’s many great tutorials and books available, and our git and github page is a good place to start.
Understanding client-side web development tools - Learn web development
client-side tooling overview in this article we provide an overview of modern web tooling, what kinds of tools are available and where you’ll meet them in the lifecycle of web app development, and how to find help with individual tools.
ChromeWorkers and the Chrome worker loader
that makes it available not only to the application itself, but also to add-ons.
Mozilla accessibility architecture
the shared code makes itself available to the toolkit-specific code via generic xpcom interfaces that return information about objects we want to expose.
Accessibility information for UI designers and developers
there are also plug-ins available for design software, like stark for sketch.
Information for users
features include assistive technology support on windows (like window-eyes, jaws, etc.), firefox keyboard support, available accessibility extensions like fire vox and other extensions.
Links and Resources
online accessibility validators there are now a few available and excellent online accessibility validators which check single webpages according to checkpoints of wcag guidelines and then reports errors or warnings.
Mozilla Plugin Accessibility
all browser keys unavailable when plugin has focus focused plugins currently have no choice but to consume all keyboard events.
Software accessibility: Where are we today?
enter open source software microsoft was on the right track with microsoft active accessibility, but because the source code to most popular desktop applications which are used in large corporations is not publicly available, they were never made fully accessible.
Add-ons
language packs let you have more languages available for the user interface of firefox.
Adding a new CSS property
this document assumes that you have a specifcation for the property available.
Benchmarking
normally you would want to leave acceleration enabled while profiling, but on linux you may wish to disable accelerated graphics (preferences -> advanced -> general -> use hardware acceleration when available).
Browser chrome tests
the eventutils helper functions are available on the eventutils object defined in the global scope.
Testopia
if you find bugs in the code available from the git repository, please report it to us so that we can fix most critical ones on time for testopia 3.0.
Chrome registration
in order to inform the chrome registry of the available chrome, a text manifest is used: this manifest is "chrome.manifest" in the root of an extension, or theme, or xulrunner application.
Cookies Preferences in Mozilla
e old prefs are network.cookie.lifetime.enabled, network.cookie.lifetime.behavior, and network.cookie.warnaboutcookies.) true = prefs have been migrated false = migrate prefs on next startup original document information author(s): mike connor last updated date: may 22, 2004 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
Cookies in Mozilla
original document information author(s): mike connor last updated date: march 15, 2004 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
Creating reftest-based unit tests
the helper functions snapshotwindow and comparesnapshots are available in testing/mochitest/tests/simpletest/windowsnapshot.js.
Debugging Table Reflow
it can be invoked by set gecko_block_debug_flags=reflow the available options are: reflow really-noisy-reflow max-element-size space-manager verify-lines damage-repair lame-paint-metrics lame-reflow-metrics disable-resize-opt these options can be combined with a comma separated list messages generated by the reflow switch: block(div)(1)@00be5ac4: reflowing dirty lines computedwidth=9000 computedheight=1500 this message is generated inside of nsresult nsblockfra...
Debugging on Mac OS X
that are added may not be immediately available.
HTTP logging
using about:networking this is available starting with firefox 52.
Simple Sunbird build
building sunbird building sunbird requires at least 2.5 gb of disk space, 500 mb of ram, and lots of available swap space.
ESLint
vcs hooks hooks are available for mercurial & git, see using a vcs hook for more details.
Gecko Logging
the log crate lists the available log levels: log level purpose rust logging levels error designates very serious errors.
Displaying Places information using views
ecol id="title" label="title" flex="1" primary="true" /> <splitter class="tree-splitter" /> <treecol anonid="fulluri" label="fulluri" flex="1" /> <splitter class="tree-splitter" /> <treecol id="indexinparent" label="indexinparent" /> <splitter class="tree-splitter" /> <treecol id="parity" label="parity" /> </treecols> <treechildren /> </tree> the full code listing is available in the files section of the page below.
Linux compatibility matrix
the following table lists the available library versions for the mozilla.org-distributed firefox builds dependencies, and/or to build firefox.
Multiple Firefox profiles
available browser development channels there are four available browser channels, each at a different level of stability and development.
Cross Process Object Wrappers
as a migration aid, the messaging framework enables frame scripts to make content objects available to chrome through a wrapper called a cross process object wrapper, also known as a cpow.
Limitations of frame scripts
there is a shim for this that makes the content of about: pages registered by the add-on transparently available in the content process.
Process scripts
if you do, you must call removedelayedprocessscript() when your extension is disabled or removed the message-passing apis are the same: sendasyncmessage() is available in both directions, while sendsyncmessage() is available from content to chrome only process scripts are system-privileged, and have access to the components object.
Site Identity Button
use of a weak cipher - in this case, you're using tls but a strong cipher was not available.
Using the Browser API
MozillaGeckoChromeAPIBrowser APIUsing
it was originally used in firefox os to implement browser applications before that project was cancelled; since firefox 47 it is available to desktop chrome code and used in places like the firefox devtools.
HTMLIFrameElement.download()
the available options are: filename: the filename to save the downloaded file as.
HTMLIFrameElement.getContentDimensions()
the x and y dimensions are available in the request.result.x and request.result.y properties, respectively.
HTMLIFrameElement.getMuted()
the muted value is available in the request.result property, and is a boolean value — true means muted, and false means unmuted.
HTMLIFrameElement.getVolume()
the volume value is available in the request.result property, and is a floating point number between 0 and 1.
HTMLIFrameElement.goBack()
by calling this method, the browser <iframe> changes its location for the previous location available in its navigation history, which sends a series of related events: mozbrowserlocationchange, mozbrowserloadstart, and so on.
HTMLIFrameElement.goForward()
by calling this method, the browser <iframe> changes its location to the next location available in its navigation history, which sends a series of related events: mozbrowserlocationchange, mozbrowserloadstart and so on.
mozbrowsercaretstatechanged
its properties are canselectall: a boolean indicating whether the selectall command is available (true) or not (false.) cancut: a boolean indicating whether the cut command is available (true) or not (false.) cancopy: a boolean indicating whether the copy command is available (true) or not (false.) canpaste: a boolean indicating whether the paste command is available (true) or not (false.) reason a domstring that defines the reason for the state being changed.
mozbrowserscrollareachanged
the mozbrowserscrollareachanged event is fired when the available scrolling area in the browser <iframe> changes.
mozbrowserscrollviewchange
details the details property returns an anonymous javascript object with the following properties: state a domstring representing the current state of scrolling in the viewport — available values are started and stopped.
HTMLIFrameElement.sendTouchEvent()
note: this method is available for touch-enabled devices only.
ChromeWorker
it works exactly like a standard worker, except that it has access to js-ctypes via a global ctypes object available in the global scope of the worker.
Chrome-only API reference
MozillaGeckoChromeAPI
it works exactly like a standard worker, except that it has access to js-ctypes via a global ctypes object available in the global scope of the worker.
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 preference is enabled.
Chrome-only Events reference
this page lists events that are only available in gecko chrome code (and sometimes in other privileged circumstances, eg.
Roll your own browser: An embedding how-to
uses gtkmozembed widget, part of the kdebindings module and available from http://websvn.kde.org/trunk/kde/kdebindings/xparts/.
Getting Started with Chat
the following are some other options available to you: windows mac linux colloquy ● irssi ● ● ●* xchat ● ○ ● key: ● — binary or executable program available ○ — only available by downloading and compiling source code ●* — binary or executable may be available.
How to get a process dump with Windows Task Manager
a firefox nightly or release you need a firefox version for which symbols are available from the mozilla symbol server.
How to get a stacktrace for a bug report
alternative ways to get a stacktrace if the mozilla crash reporter doesn't come up or isn't available you will need to obtain a stacktrace manually: windows see the article create a stacktrace with windbg for information on how to do this.
How to Report a Hung Firefox
this is only useful if you have firefox debug symbols, which are available on windows from the mozilla symbol server.
Extending a Protocol
it just includes the defintion and makes it available to pwindowglobal.ipdl.
PBackground
pbackground is a mechanism available since gecko 30 (see bug 956218) that builds on top of ipdl to provide a solution to common problems that arise when handling multiple threads in the chrome process, for example communication between workers and multiple child processes and other parent-process worker threads.
IPDL Tutorial
get(); } virtual bool toplevelchild::deallocpexample(pexamplechild* actor) { ns_release(static_cast<examplechild*>(actor)); return true; } if an object that implements a protocol can't be constructed inside allocpfoo, has been previously constructed and doesn't require an ipdl connection throughout its lifetime, or implements a refcounted protocol where the first form of constructor is not available, there is a second form of sendpfooconstructor which can be used: class examplechild { public: void dosomething() { amanagerchild->sendpexampleconstructor(this, ...); } }; internally, the first constructor form simply calls pexample(parent|child)* actor = allocpexample(...); sendpexampleconstructor(actor, ...); return actor; with the same effect.
Implementing QueryInterface
original document information author(s): scott collins last updated date: may 8, 2003 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
Implementing Download Resuming
(it is possible to pass an empty string as the id; however, this means that you have no assurance that the file remained unchanged) now, you can open the channel as usual (using nsichannel.asyncopen() in the common case) and write to the file in the ondataavailable notifications.
Integrated Authentication
original document information author(s): darin fisher last updated date: december 27, 2005 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
JavaScript-DOM Prototypes in Mozilla
moreover, no specification guarantees that there will be a globally available htmlimageelement, or that such object will be the constructor for any arbitrary image's [[prototype]].
AddonManager
addonlistcallback() a callback that is passed an array of addons void addonlistcallback( in addon addons[] ) parameters addons the array of addons passed back from the asynchronous request constants addoninstall states constant description state_available an install that is waiting to be started.
Code Samples
"yes!" : "no"); alert("let's pretend i did, it's available from the url " + addon.getresourceuri("file.txt").spec); }); uninstall an add-on components.utils.import("resource://gre/modules/addonmanager.jsm"); addonmanager.getaddonbyid("youraddon@youraddon.com", function(addon) { addon.uninstall(); }); disable an add-on components.utils.import("resource://gre/modules/addonmanager.jsm"); addonmanager.getaddonbyid("youraddon@youraddon.com", functio...
UpdateCheckListener
void onupdatecheckcomplete( in updateinfo results[] ) parameters results an array of updateinfo objects representing the available add-on versions onupdatecheckerror() called when the update check fails.
UpdateInfo
updateinfo objects hold information about available versions of add-ons and are generated as a result of an update check performed by addonupdatechecker.
Add-on Repository
the add-on repository is responsible for finding available add-ons; it provides an interface for interacting with the addons.mozilla.org (amo) site.
API-provided widgets
this document details the available properties.
Downloads.jsm
close the message to stop."); } finally { yield list.remove(download); yield download.finalize(true); } } finally { yield list.removeview(view); } }).then(null, components.utils.reporterror); conversion from nsidownloadmanager starting in firefox for desktop version 26, the nsidownloadmanager and nsidownload interfaces are not available anymore.
Following the Android Toasts Tutorial from a JNI Perspective
it will use the jni.jsm module that is available in firefox for android since version 17.
JavaScript OS
at the time of this writing, some of the features of this module are available only to chrome workers.
Examples
newpromise.then(null, components.utils.reporterror); note: more examples for consuming promises are available in the promise object documentation.
PromiseWorker.jsm
if the ownership of an object is transferred, it becomes unusable (neutered) in the context it was sent from, and it becomes available only to the worker it was sent to.
Using JavaScript code modules
any modifications to data, objects, or functions will be available in any scope that has imported the module.
Using workers in JavaScript code modules
it works exactly like a standard worker, except that it has access to js-ctypes via a global ctypes object available in the global scope of the worker obsolete since gecko 8.0 (firefox 8.0 / thunderbird 8.0 / seamonkey 2.5)this feature is obsolete.
Webapps.jsm
n() getwebappsbasepath: function() _islaunchable: function(aapp) _notifycategoryandobservers: function(subject, topic, data, msg) registerbrowserelementparentforapp: function(amsg, amn) receiveappmessage: function(appid, message) _clearprivatedata: function(appid, browseronly, msg) _sendprogressevent: function() updatestatechanged: function appobs_update(aupdate, astate) applicationcacheavailable: function appobs_cacheavail(aapplicationcache) ...
L10n Checks
an tell l10n checks to look only for missing and obsolete entities and files, by setting the -t parameter, e.g.: check-l10n-completeness -t suite/locales/l10n.ini ../l10n/ de check access keys in all modes you can tell l10n checks to check if the access keys are set properly, by setting the -a parameter, e.g.: check-l10n-completeness -a 1 suite/locales/l10n.ini ../l10n/ de there are three modes available: 1: show just errors 2: show errors and important warnings 3: show all errors and warnings spell checking in all modes you can tell l10n checks to search for spelling errors, by setting the -c parameter, e.g.: check-l10n-completeness -c suite/locales/l10n.ini ../l10n/ de spell checking requires enchant and pyenchant to be installed on the system.
Localization and Plurals
after installing the extension, it should be available from the tools menu.
QA phase
quota: 979.7 kb in use, 150.0 mb available (0.64% used) your changeset has been successfully pushed to your repository!
Translation phase
please note the pontoon is not available for all web projects yet.
Creating localizable web applications
bad: if you wish to use a non-standard font (as in the image above), take advantage of the css's on-line fonts feature available via @font-face.
Creating localizable web content
if however the screenshot shows a third-party application or website, it's acceptable to use the english version if it's not available in the target language.
Mozilla Framework Based on Templates (MFBT)
(the <stdint.h> standard header is not available on all platforms and so cannot be used directly.
Fonts for Mozilla's MathML engine
linux install the latin modern math, stix or xits fonts, which are generally available from your package manager.
MathML3Testsuite
ablesandmatrices tokenelements topics accents bidi elementarymathexamples embellishedop largeop linebreak nesting stretchychars whitespace torturetests errorhandling original document information author(s): frédéric wang other contributors: last updated date: may 26, 2010 copyright information: portions of this content are © 2010 by individual mozilla.org contributors; content available under a creative commons license | details.
Mozilla MathML Status
original document information author(s): frédéric wang other contributors: copyright information: portions of this content are © 2010 by individual mozilla.org contributors; content available under a creative commons license | details.
Updates
documentation is now available on mdc and wiki.mozilla.org.
Mozilla MathML Project
sidje other contributors: frédéric wang last updated date: april 4, 2010 copyright information: portions of this content are © 1999–2010 by individual mozilla.org contributors; content available under a creative commons license | details.
Using the viewport meta tag to control layout on mobile browsers
when the screen is more than 500 pixels wide, the browser will expand the viewport (rather than zoom in) to fit the screen: <meta name="viewport" content="width=500, initial-scale=1"> other attributes that are available are minimum-scale, maximum-scale, and user-scalable.
Mozilla Port Blocking
more information nsioservice.cpp gbadportlist bug 83401 vulnerability note vu#476267 dougt@netscape.com original document information author(s): doug turner last updated date: august 15, 2007 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
Mozilla Development Strategies
cvs commit client.mak nmake -f client.mak original document information author(s): seth spitzer and alec flett last updated date: september 3, 2006 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
Mozilla Quirks Mode Behavior
to correspond, their width is computed as though only the remaining available space is the containing block width (bug 99461).
Mozilla Style System Documentation
david baron last updated date: june 6, 2003 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
Leak-hunting strategies and tips
for example, on fedora, these are in *-debuginfo rpms (which are available in yum repositories that are disabled by default, but easily enabled by editing the system configuration).
Power profiling overview
pp1: an uncore device, usually the gpu (not available on all processor models.) dram: main memory (not available on all processor models.) the following relationship holds: pp0 + pp1 <= pkg.
about:memory
there is also "vsize-max-contiguous" (not measured on all platforms, and not shown in this example), which indicates the largest single chunk of available virtual address space.
tools/power/rapl
tools/power/rapl (or rapl for short) is a command-line utility in the mozilla tree that periodically reads and prints all available intel rapl power estimates.
Performance
it is available on all platforms and release channels, and also supports remote profiling b2g and fennec.
Phishing: a short definition
web authentication supports millions of readily avilable fido u2f usb security keys, and will support the more advanced fido 2.0 keys, once made available.
Preference reference
cache is serialized and saved between mozilla sessions in the xul fastload file, which saves a “compiled” version of the xul and javascript in a document to disk for faster startup the next time the application runs.reader.parse-on-load.force-enabledthe preference reader.parse-on-load.force-enabled controls if the reader mode used in firefox mobile should be enabled independent of the memory available in the device.
Preferences system
reference information about them is available below: preferences system documentation: introduction: getting started | examples | troubleshooting reference: prefwindow | prefpane | preferences | preference | xul attributes use code for a typical preferences window may look like this: <prefwindow id="apppreferences" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <prefpane id="pane1" label="&pane1.title;"> <preferences> <preference id="pref1" name="pref.name" ty...
Preferences
this api is not available for add-ons, but if you're working on a gecko application, this api is the preferred way to access preferences.
Profile Manager
the version of firefox which will be launched is indicated in the "firefox version" dropdown in the launch options box: there are several additional launch options available for firefox.
Emscripten
emscripten makes native code immediately available on the web: a platform that is standards-based, has numerous independent compatible implementations, and runs everywhere from pcs to ipads.
Firefox Sync
there are also some notes in a google document (that we really must move to its own wiki page) there's also information available to help debug and diagnose android sync issues.
MailNews automated testing
this page and its sub-pages describe (and link to) the available test mechanisms within mailnews, and provide supporting information for developers and testers.
Midas
once midas is invoked, a few more methods of the document object become available.
Creating a Cookie Log
original document information author(s): mike connor last updated date: december 4, 2004 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
I/O Functions
pr_open pr_delete pr_getfileinfo pr_getfileinfo64 pr_rename pr_access type praccesshow functions that act on file descriptors pr_close pr_read pr_write pr_writev pr_getopenfileinfo pr_getopenfileinfo64 pr_seek pr_seek64 pr_available pr_available64 pr_sync pr_getdesctype pr_getspecialfd pr_createpipe directory i/o functions pr_opendir pr_readdir pr_closedir pr_mkdir pr_rmdir socket manipulation functions the network programming interface presented here is a socket api modeled after the popular berkeley sockets.
Memory Management Operations
memory allocation macros macro versions of the memory allocation functions are available, as well as additional macros that provide programming convenience: pr_malloc pr_new pr_realloc pr_calloc pr_newzap pr_delete pr_freeif ...
NSPR Error Handling
pr_address_not_available_error the network address (prnetaddr) is not available (probably in use).
PRLogModuleLevel
the enumerated type prlogmodulelevel defines levels of logging available to application programs.
PR_AttachThread
if unsuccessful, for example if system resources are not available, null.
PR_CreateThread
if unsuccessful, (for example, if system resources are unavailable), null.
PR_FindSymbol
getting a pointer to a symbol in a library does indicate that the library is available when the search was made.
PR_GetErrorTextLength
otherwise, the value returned is sufficient to contain the error text currently available.
PR_GetRandomNoise
a return value of zero means that pr_getrandomnoise is not implemented on this platform, or there is no available noise to be returned at the time of the call.
PR_NewCondVar
if unsuccessful (for example, if system resources are unavailable), null.
PR_NewMonitor
if unsuccessful (for example, if some operating system resource is unavailable), null.
PR_Wait
this has the effect of making the monitor available to other threads.
Process Management and Interprocess Communication
note that the functions described in this chapter are not available for macos or win16 operating systems.
NSPR
legacy nspr content older nspr content is available in svn for browsing and/or migration to this site getting nspr nspr is available in various source and binary packages, depending on your platform: windows: build the source package, using the nspr build instructions.
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.
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.
JSS
MozillaProjectsNSSJSS
jss is available under the mozilla public license, the gnu general public license, and the gnu lesser general public license.
JSS 4.4.0 Release Notes
jss 4.4.0 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/jss/releases/jss_4_4_0_rtm/src/ new in jss 4.40 new functionality new functions new macros notable changes in jss 4.40 picks up work done downstream for fedora and rhel and used by various linux distributions with includes:.
NSS 3.14.1 release notes
nss 3.14.1 source distributions are also available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_14_1_rtm/src/ new in nss 3.14.1 new functionality nss now has the ability to create signed ocsp responses.
NSS 3.14.2 release notes
the release is available for download from https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_14_2_rtm/src/ for the primary nss documentation pages please visit /docs/nss new in nss 3.14.2 nss will now make use of the intel aes-ni and avx instruction sets for hardware-accelerated aes-gcm on 64-bit linux systems.
NSS 3.14.3 release notes
nss 3.14.3 source distributions are also available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_14_3_rtm/src/ new in nss 3.14.3 new functionality no new major functionality is introduced in this release.
NSS 3.14.4 release notes
nss 3.14.4 source distributions are also available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_14_4_rtm/src/ security advisories the following security-relevant bugs have been resolved in nss 3.14.4.
NSS 3.14.5 release notes
nss 3.14.5 source distributions are also available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_14_5_rtm/src/ security advisories the following security-relevant bugs have been resolved in nss 3.14.5.
NSS 3.15.1 release notes
distribution information nss 3.15.1 source distributions are also available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_15_1_rtm/src/ new in nss 3.15.1 new functionality tls 1.2: tls 1.2 (rfc 5246) is supported.
NSS 3.15.2 release notes
distribution information nss 3.15.2 source distributions are also available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_15_2_rtm/src/ security advisories the following security-relevant bugs have been resolved in nss 3.15.2.
NSS 3.15.3.1 release notes
nss 3.15.3.1 source distributions are also available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_15_3_1_rtm/src/ security advisories the following security-relevant bugs have been resolved in nss 3.15.3.1.
NSS 3.15.3 release notes
nss 3.15.3 source distributions are also available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_15_3_rtm/src/ security advisories the following security-relevant bugs have been resolved in nss 3.15.3.
NSS 3.15.4 release notes
nss 3.15.4 source distributions are also available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_15_4_rtm/src/ security advisories the following security-relevant bugs have been resolved in nss 3.15.4.
NSS 3.15.5 release notes
nss 3.15.5 source distributions are also available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_15_5_rtm/src/ new in nss 3.15.5 new functionality added support for the tls application layer protocol negotiation (alpn) extension.
NSS 3.16.1 release notes
nss 3.16.1 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_16_1_rtm/src/ new in nss 3.16.1 new functionality added the "ecc" flag for modutil to select the module used for elliptic curve cryptography (ecc) operations.
NSS 3.16.2.1 release notes
nss 3.16.2.1 source distributions are also available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_16_2_1_rtm/src/ security advisories the following security-relevant bugs have been resolved in nss 3.16.2.1.
NSS 3.16.2.2 release notes
nss 3.16.2.2 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_16_2_2_rtm/src/ new in nss 3.16.2.2 new functionality no new functionality is introduced in this release.
NSS 3.16.2.3 release notes
nss 3.16.2.3 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_16_2_3_rtm/src/ new in nss 3.16.2.3 this patch release fixes a bug and contains a backport of the tls_fallback_scsv feature, which was originally made available in nss 3.17.1.
NSS 3.16.2 release notes
nss 3.16.2 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_16_2_rtm/src/ new in nss 3.16.2 new functionality dtls 1.2 is supported.
NSS 3.16.3 release notes
nss 3.16.3 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_16_3_rtm/src/ new in nss 3.16.3 this release consists primarily of ca certificate changes as listed below, and fixes an issue with a recently added utility function.
NSS 3.16.4 release notes
nss 3.16.4 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_16_4_rtm/src/ new in nss 3.16.4 this release consists primarily of ca certificate changes as listed below, and includes a small number of bug fixes.
NSS 3.16.5 release notes
nss 3.16.5 source distributions are also available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_16_5_rtm/src/ security advisories the following security-relevant bugs have been resolved in nss 3.16.5.
NSS 3.16.6 release notes
nss 3.16.6 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_16_6_rtm/src/ new in nss 3.16.6 new functionality no new functionality is introduced in this release.
NSS 3.16 release notes
nss 3.16 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_16_rtm/src/ new in nss 3.16 new functionality supports the linux x32 abi.
NSS 3.17.1 release notes
nss 3.17.1 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_17_1_rtm/src/ security advisories the following security-relevant bugs have been resolved in nss 3.17.1.
NSS 3.17.2 release notes
nss 3.17.2 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_17_2_rtm/src/ new in nss 3.17.2 new functionality no new functionality is introduced in this release.
NSS 3.17.3 release notes
nss 3.17.3 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_17_3_rtm/src/ new in nss 3.17.3 new functionality support for tls_fallback_scsv has been added to the ssltap and tstclnt utilities.
NSS 3.17.4 release notes
nss 3.17.4 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_17_4_rtm/src/ new in nss 3.17.4 new functionality no new functionality is introduced in this release.
NSS 3.17 release notes
nss 3.17 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_17_rtm/src/ new in nss 3.17 new functionality when using ecdhe, the tls server code may be configured to generate a fresh ephemeral ecdh key for each handshake, by setting the ssl_reuse_server_ecdhe_key socket option to pr_false.
NSS 3.18.1 release notes
nss 3.18.1 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_18_1_rtm/src/ new in nss 3.18.1 no new functionality is introduced in this release.
NSS 3.18 release notes
nss 3.18 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_18_rtm/src/ new in nss 3.18 new functionality when importing certificates and keys from a pkcs#12 source, it's now possible to override the nicknames, prior to importing them into the nss database, using new api sec_pkcs12decoderrenamecertnicknames.
NSS 3.19.1 release notes
nss 3.19.1 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_19_1_rtm/src/ security fixes in nss 3.19.1 bug 1138554 / cve-2015-4000 - the minimum strength of keys that libssl will accept for finite field algorithms (rsa, diffie-hellman, and dsa) have been increased to 1023 bits.
NSS 3.19.2.1 release notes
nss 3.19.2.1 and nspr 4.10.10 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_19_2_1_rtm/src/ https://ftp.mozilla.org/pub/nspr/releases/v4.10.10/src/ security advisories the following security-relevant bugs have been resolved in nss 3.19.2.1.
NSS 3.19.2.2 release notes
nss 3.19.2.2 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_19_2_2_rtm/src/ security fixes in nss 3.19.2.2 bug 1158489 / cve-2015-7575 - prevent md5 downgrade in tls 1.2 signatures.
NSS 3.19.2.3 release notes
nss 3.19.2.3 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_19_2_3_rtm/src/ new in nss 3.19.2.3 new functionality no new functionality is introduced in this release.
NSS 3.19.2.4 release notes
nss 3.19.2.4 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_19_2_4_rtm/src/ new in nss 3.19.2.4 new functionality no new functionality has been introduced in this release.
NSS 3.19.2 release notes
nss 3.19.2 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_19_2_rtm/src/ new in nss 3.19.2 new functionality no new functionality is introduced in this release.
NSS 3.19.3 release notes
nss 3.19.3 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_19_3_rtm/src/ new in nss 3.19.3 no new functionality is introduced in this release.
NSS 3.19.4 release notes
nss 3.19.4 and nspr 4.10.10 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_19_4_rtm/src/ https://ftp.mozilla.org/pub/nspr/releases/v4.10.10/src/ security advisories the following security-relevant bugs have been resolved in nss 3.19.4.
NSS 3.19 release notes
nss 3.19 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_19_rtm/src/ security fixes in nss 3.19 bug 1086145 / cve-2015-2721 - fixed a bug related to the ordering of tls handshake messages.
NSS 3.20.1 release notes
nss 3.20.1 and nspr 4.10.10 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_20_1_rtm/src/ https://ftp.mozilla.org/pub/nspr/releases/v4.10.10/src/ security advisories the following security-relevant bugs have been resolved in nss 3.20.1.
NSS 3.20.2 release notes
nss 3.20.2 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_20_2_rtm/src/ security fixes in nss 3.20.2 bug 1158489 / cve-2015-7575 - prevent md5 downgrade in tls 1.2 signatures.
NSS 3.20 release notes
nss 3.20 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_20_rtm/src/ new in nss 3.20 new functionality the tls library has been extended to support dhe ciphersuites in server applications.
NSS 3.21.1 release notes
nss 3.21.1 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_21_1_rtm/src/ new in nss 3.21.1 new functionality no new functionality is introduced in this release.
NSS 3.21.2 release notes
nss 3.21.2 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_21_2_rtm/src/ new in nss 3.21.2 new functionality no new functionality is introduced in this release.
NSS 3.21.3 release notes
nss 3.21.3 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_21_3_rtm/src/ new in nss 3.21.3 new functionality no new functionality is introduced in this release.
NSS 3.21.4 release notes
nss 3.21.4 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_21_4_rtm/src/ new in nss 3.21.4 no new functionality is introduced in this release.
NSS 3.22.2 release notes
nss 3.22.2 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_22_2_rtm/src/ new in nss 3.22.2 new functionality no new functionality is introduced in this release.
NSS 3.22.3 release notes
nss 3.22.3 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_22_3_rtm/src/ new in nss 3.22.3 new functionality no new functionality is introduced in this release.
NSS 3.22 release notes
nss 3.22 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_22_rtm/src/ new in nss 3.22 new functionality rsa-pss signatures are now supported (bug 1215295) new functions pk11_signwithmechanism() and pk11_signwithmechanism() are provided to allow rsa keys to be used with pss.
NSS 3.23 release notes
nss 3.23 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_23_rtm/src/ new in nss 3.23 new functionality chacha20/poly1305 cipher and tls cipher suites now supported (bug 917571, bug 1227905) experimental-only support tls 1.3 1-rtt mode (draft-11).
NSS 3.24 release notes
nss 3.24 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_24_rtm/src/ new in nss 3.24 nss 3.24 includes two nss softoken updates, a new function to configure ssl/tls server sockets, and two functions to improve the use of temporary arenas.
NSS 3.25.1 release notes
nss 3.25.1 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_25_1_rtm/src/ new in nss 3.25.1 new functionality no new functionality is introduced in this release.
NSS 3.25 release notes
nss 3.25 source distributions are available on ftp.mozilla.org for secure https download at the following location.
NSS 3.26.2 release notes
nss 3.26.2 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_26_2_rtm/src/ new in nss 3.26.2 new functionality no new functionality is introduced in this release.
NSS 3.26 release notes
nss 3.26 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_26_rtm/src/ new in nss 3.26 new functionality the selfserv test utility has been enhanced to support alpn (http/1.1) and 0-rtt added support for the system-wide crypto policy available on fedora linux, see http://fedoraproject.org/wiki/changes/cryptopolicy introduced build flag nss_disable_libpkix which allows compilation of nss without the libpkix library notable changes in nss 3.2...
NSS 3.27.2 Release Notes
nss 3.27.2 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_27_2_rtm/src/ new in nss 3.27.2 new functionality no new functionality is introduced in this release.
NSS 3.27 release notes
nss 3.27 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_27_rtm/src/ new in nss 3.27 new functionality allow custom named group priorities for tls key exchange handshake (ssl_namedgroupconfig).
NSS 3.28.1 release notes
nss 3.28.1 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_28_1_rtm/src/ new in nss 3.28.1 no new functionality is introduced in this release.
NSS 3.28.2 release notes
nss 3.28.2 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_28_2_rtm/src/ incorrect version number note the version numbers embedded in the nss 3.28.2 are wrong (it reports itself as version 3.28.1).
NSS 3.28.3 release notes
nss 3.28.3 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/security/nss/releases/nss_3_28_3_rtm/src/ new in nss 3.28.3 new functionality no new functionality is introduced in this release.
NSS 3.28.4 release notes
nss 3.28.4 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_28_4_rtm/src/ new in nss 3.28.4 no new functionality is introduced in this release.
NSS 3.28.5 release notes
nss 3.28.5 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_28_5_rtm/src/ new in nss 3.28.5 no new functionality is introduced in this release.
NSS 3.28 release notes
nss 3.28 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_28_rtm/src/ new in nss 3.28 new functionality nss includes support for tls 1.3 draft -18.
NSS 3.29.1 release notes
nss 3.29.1 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/security/nss/releases/nss_3_29_1_rtm/src/ new in nss 3.29.1 new functionality no new functionality is introduced in this release.
NSS 3.29.2 release notes
nss 3.29.2 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/security/nss/releases/nss_3_29_2_rtm/src/ new in nss 3.29.2 new functionality no new functionality is introduced in this release.
NSS 3.29.3 release notes
nss 3.29.3 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_29_3_rtm/src/ new in nss 3.29.3 no new functionality is introduced in this release.
NSS 3.29.5 release notes
nss 3.29.5 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_29_5_rtm/src/ new in nss 3.29.5 no new functionality is introduced in this release.
NSS 3.29 release notes
nss 3.29 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_29_rtm/src/ notable changes in nss 3.29 fixed a nss 3.28 regression in the signature scheme flexibility that causes connectivity issues between ios 8 clients and nss servers with ecdsa certificates (bug1334114).
NSS 3.30.1 release notes
nss 3.30.1 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_30_1_rtm/src/ new in nss 3.30.1 no new functionality is introduced in this release.
NSS 3.30.2 release notes
nss 3.30.2 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_30_2_rtm/src/ new in nss 3.30.2 no new functionality is introduced in this release.
NSS 3.30 release notes
nss 3.30 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_30_rtm/src/ new in nss 3.30 new functionality in the pkcs#11 root ca module (nssckbi), cas with positive trust are marked with a new boolean attribute, cka_nss_mozilla_ca_policy, set to true.
NSS 3.31.1 release notes
nss 3.31.1 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_31_1_rtm/src/ new in nss 3.31.1 no new functionality is introduced in this release.
NSS 3.31 release notes
nss 3.31 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_31_rtm/src/ new in nss 3.31 new functionality allow certificates to be specified by rfc7512 pkcs#11 uris.
NSS 3.32 release notes
nss 3.32 source distributions are available on ftp.mozilla.org, for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_32_rtm/src/ notable changes in nss 3.32 various minor improvements and correctness fixes.
NSS 3.33 release notes
nss 3.33 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_33_rtm/src/ notable changes in nss 3.33 tls compression is no longer supported.
NSS 3.34.1 release notes
nss 3.34.1 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_34_1_rtm/src/ notable changes in nss 3.34.1 the following ca certificate was re-added.
NSS 3.34 release notes
nss 3.34 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_34_rtm/src/ notable changes in nss 3.34 the following ca certificates were added: cn = gdca trustauth r5 root sha-256 fingerprint: bf:ff:8f:d0:44:33:48:7d:6a:8a:a6:0c:1a:29:76:7a:9f:c2:bb:b0:5e:42:0f:71:3a:13:b9:92:89:1d:38:93 trust flags: websites cn = ssl.com root certification authority rsa sha-256 fingerprint: 85:66:6a:56:2e:e0:be:5c:e9:25...
NSS 3.36.1 release notes
nss 3.36.1 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/security/nss/releases/nss_3_36_1_rtm/src/ new in nss 3.xx new functionality no new functionality is introduced in this release.
NSS 3.36.2 release notes
nss 3.36.2 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/security/nss/releases/nss_3_36_2_rtm/src/ new in nss 3.36.2 new functionality no new functionality is introduced in this release.
NSS 3.36.4 release notes
nss 3.36.4 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/security/nss/releases/nss_3_36_4_rtm/src/ new in nss 3.36.4 new functionality no new functionality is introduced in this release.
NSS 3.36.5 release notes
nss 3.36.5 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_36_5_rtm/src/ new in nss 3.36.5 new functionality no new functionality is introduced in this release.
NSS 3.36.6 release notes
nss 3.36.6 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_36_6_rtm/src/ new in nss 3.36.6 new functionality no new functionality is introduced in this release.
NSS 3.36.7 release notes
nss 3.36.7 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_36_7_rtm/src/ other releases are available in nss releases.
NSS 3.36.8 release notes
nss 3.36.8 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_36_8_rtm/src/ other releases are available in nss releases.
NSS 3.36 release notes
nss 3.36 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_36_rtm/src/ (make a link) new in nss 3.36 new functionality experimental apis for tls session cache handling.
NSS 3.37.1 release notes
nss 3.37.1 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/security/nss/releases/nss_3_37_1_rtm/src/ new in nss 3.37.1 new functionality no new functionality is introduced in this release.
NSS 3.37.3 release notes
nss 3.37.3 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/security/nss/releases/nss_3_37_3_rtm/src/ new in nss 3.37.3 new functionality no new functionality is introduced in this release.
NSS 3.39 release notes
nss 3.39 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_39_rtm/src/ new in nss 3.39 new functionality the tstclnt and selfserv utilities added support for configuring the enabled tls signature schemes using the -j parameter.
NSS 3.40.1 release notes
nss 3.40 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_40_1_rtm/src/ new in nss 3.40.1 new functionality no new functionality is introduced in this release.
NSS 3.40 release notes
nss 3.40 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_40_rtm/src/ new in nss 3.40 new functionality the draft-00 version of encrypted sni support is implemented tstclnt now takes -n option to specify encrypted sni key new functions none notable changes in nss 3.40 the mozilla::pkix library has been ported from mozilla psm to nss.
NSS 3.41.1 release notes
nss 3.41.1 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_41_1_rtm/src/ other releases are available in nss releases.
NSS 3.41 release notes
nss 3.41 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_41_rtm/src/ new in nss 3.41 new functionality bug 1252891 - implemented eku handling for ipsec ike.
NSS 3.42.1 release notes
nss 3.42.1 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_42_1_rtm/src/ other releases are available in nss releases.
NSS 3.42 release notes
nss 3.42 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_42_rtm/src/ other releases are available in nss releases.
NSS 3.43 release notes
nss 3.43 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_43_rtm/src/ other releases are available in nss releases.
NSS 3.44.1 release notes
nss 3.44.1 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_44_1_rtm/src/ other releases are available in nss releases.
NSS 3.44.2 release notes
nss 3.44.2 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_44_2_rtm/src/ other releases are available in nss releases.
NSS 3.44.3 release notes
nss 3.44.3 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_44_3_rtm/src/ other releases are available in nss releases.
NSS 3.44.4 release notes
nss 3.44.4 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_44_4_rtm/src/ other releases are available in nss releases.
NSS 3.44 release notes
nss 3.44 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_44_rtm/src/ other releases are available in nss releases.
NSS 3.45 release notes
nss 3.45 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_45_rtm/src/ other releases are available in nss releases.
NSS 3.46.1 release notes
nss 3.46.1 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_46_1_rtm/src/ other releases are available in nss releases.
NSS 3.46 release notes
nss 3.46 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_46_rtm/src/ other releases are available in nss releases.
NSS 3.47.1 release notes
nss 3.47.1 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_47_1_rtm/src/ other releases are available in nss releases.
NSS 3.47 release notes
nss 3.47 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_47_rtm/src/ other releases are available in nss releases.
NSS 3.48.1 release notes
nss 3.48.1 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_48_1_rtm/src/ other releases are available in nss releases.
NSS 3.48 release notes
nss 3.48 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_48_rtm/src/ other releases are available in nss releases.
NSS 3.49.1 release notes
nss 3.49.1 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_49_1_rtm/src/ other releases are available in nss releases.
NSS 3.49.2 release notes
nss 3.49.2 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_49_2_rtm/src/ other releases are available in nss releases.
NSS 3.49 release notes
nss 3.49 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_49_rtm/src/ other releases are available in nss releases.
NSS 3.51.1 release notes
nss 3.51.1 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_51_1_rtm/src/ other releases are available in nss releases.
NSS 3.51 release notes
nss 3.51 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_51_rtm/src/ other releases are available in nss releases.
NSS 3.52.1 release notes
nss 3.52.1 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_52_1_rtm/src/ other releases are available in nss releases.
NSS 3.52 release notes
nss 3.52 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_52_rtm/src/ other releases are available in nss releases.
NSS 3.53.1 release notes
nss 3.53.1 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_53_1_rtm/src/ other releases are available in nss releases.
NSS 3.53 release notes
nss 3.53 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_53_rtm/src/ other releases are available in nss releases.
NSS 3.55 release notes
nss 3.55 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_55_rtm/src/ other releases are available in nss releases.
NSS 3.56 release notes
nss 3.56 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_56_rtm/src/ other releases are available in nss releases.
NSS Sample Code Sample1
encodedersubjectpublickeyinfo(pubkey); if (!*pubkeydata) { rv = 1; goto done; } done: if (pubkey) seckey_destroypublickey(pubkey); return rv; } int server::exportkeys(secitem *pubkeydata, secitem **wrappedenckey, secitem **wrappedmackey) { int rv; certsubjectpublickeyinfo *keyinfo = 0; seckeypublickey *pubkey = 0; secitem *data = 0; // make sure the keys are available (server running) if (!menckey || !mmackey) { rv = 1; goto done; } // import the public key of the other server keyinfo = seckey_decodedersubjectpublickeyinfo(pubkeydata); if (!keyinfo) { rv = 1; goto done; } pubkey = seckey_extractpublickey(keyinfo); if (!pubkey) { rv = 1; goto done; } // export the encryption key rv = wrapkey(menckey, pubkey, &data); if (rv) goto done; //...
nss tech note1
if the component in the input data does not match this template, the decoder will continue processing the input data using the next available template.
nss tech note2
for example, to log the softoken on windows, use: set nss_debug_pkcs11_module=nss internal pkcs #11 module the logger is available by default in debug builds.
nss tech note4
ert = ssl_localcertificate(prfiledesc *fd); if ssl client, this will get you the client cert's handle, if client auth happened if ssl server, this will get you the server's cert handle don't forget to clean up the cert handle when you're done with it void cert_destroycertificate(certcertificate *cert); some info is readily available cert->subjectname (char*) cert->issuername (char*) cert->emailaddr (char*) or char *cert_getcertificateemailaddress(certcertificate *cert); cert->keyusage (unsigned int) to break the issuer and subject names into components pass &(cert->issuer) or &(cert->subject) to the following functions char *cert_getcommonname(certname ...
nss tech note7
(this api pretty much consists of what was needed to implement ssl and s/mime, plus a few enhancements over the years to support jss.) when using the pk11_ interfaces, the same principal applies: use the highest available function.
NSS release notes template
nss 3.xx source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_xx_rtm/src/ (make a link) new in nss 3.xx new functionality either: no new functionality is introduced in this release.
NSS environment variables
before 3.0 use_pthreads boolean (1 to enable) on platforms where posix threads are available, but are not the os'es preferred threads library, this tells nss and nspr to build using pthreads.
NSS tools : crlutil
reasoncode non-critical code where: reasoncode: identifies the name of an extension non-critical: should be set to 0 since this is non-critical extension code: the following codes are available: unspecified (0), keycompromise (1), cacompromise (2), affiliationchanged (3), superseded (4), cessationofoperation (5), certificatehold (6), removefromcrl (8), privilegewithdrawn (9), aacompromise (10) * add invalidity date extension: the invalidity date is a non-critical crl entry extension that provides the date on which it is known or suspected that the private key was compromised or t...
OLD SSL Reference
the sample code and makefiles are available via lxr in the sslsamples directory.
sslerr.html
n." sec_error_crl_unknown_critical_extension -8043 "issuer's v2 certificate revocation list has an unknown critical extension." sec_error_unknown_object_type -8042 "unknown object type specified." sec_error_incompatible_pkcs11 -8041 "pkcs #11 driver violates the spec in an incompatible way." sec_error_no_event -8040 "no new slot event is available at this time." sec_error_crl_already_exists -8039 "crl already exists." sec_error_not_initialized -8038 "nss is not initialized." sec_error_token_not_logged_in -8037 "the operation failed because the pkcs#11 token is not logged in." sec_error_ocsp_responder_cert_invalid -8036 "the configured ocsp responder's certificate is invalid." ...
sslintro.html
a variety of additional ssl functions are available, however.
ssltyp.html
managing secitem memory these functions are available for managing the memory associated with secitem structures and the structures to which they point.
SSL 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.
NSS Tools
the links will become active when information is available.
Utility 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.
NSS Tools pk12util
availability see the release notes for the platforms this tool is available on.
NSS tools : crlutil
MozillaProjectsNSStoolscrlutil
reasoncode non-critical code where: reasoncode: identifies the name of an extension non-critical: should be set to 0 since this is non-critical extension code: the following codes are available: unspecified (0), keycompromise (1), cacompromise (2), affiliationchanged (3), superseded (4), cessationofoperation (5), certificatehold (6), removefromcrl (8), privilegewithdrawn (9), aacompromise (10) * add invalidity date extension: the invalidity date is a non-critical crl entry extension that provides the date on which it is known or suspected that the private key was ...
The Necko HTTP module
original document information last updated date: may 12, 2003 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details ...
Multithreading in Necko
original document information author(s): darin fisher last updated date: december 10, 2001 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
Proxies in Necko
original document information author(s): christian biesinger last updated date: april 8, 2005 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
Rhino downloads archive
(pre-java 1.5 users can use dom3 using java's endorsed standards override mechanism if they have a dom3-capable xml parser.) if neither xmlbeans nor dom3 are present, e4x is not available.
Rhino JavaScript compiler
note that the top-level functions available to the shell (such as print) are not available to compiled scripts when they are run outside the shell.
Rhino optimization
if the optimization package is not available, then optimization acts as if it is always -1.
Rhino overview
numerous books and tutorials on javascript are available.
Functions
because arguments and locals can't be deleted, this optimization is available to all functions, and eval does not interfere with it.
Exact Stack Rooting
instead, spidermonkey has a convenient suite of c++ raii classes to do this for you, called js::rootedt: rootedstring str1(cx, js_valuetostring(cx, val)); rootedstring str2(rt, js_valuetostring(cx, val)); note 1: c++ insists that an initializing assignment (e.g., the default constructor followed by operator=) must have a copy constructor available, even if it is not used.
JS::Handle
there are typedefs available for the main types: namespace js { typedef handle<jsfunction*> handlefunction; typedef handle<jsid> handleid; typedef handle<jsobject*> handleobject; typedef handle<jsscript*> handlescript; typedef handle<jsstring*> handlestring; typedef handle<js::symbol*> handlesymbol; // added in spidermonkey 38 typedef handle<value> handlevalue; } see also mxr id search for js::handle...
JS::MutableHandle
there are typedefs available for the main types: namespace js { typedef mutablehandle<jsfunction*> mutablehandlefunction; typedef mutablehandle<jsid> mutablehandleid; typedef mutablehandle<jsobject*> mutablehandleobject; typedef mutablehandle<jsscript*> mutablehandlescript; typedef mutablehandle<jsstring*> mutablehandlestring; typedef mutablehandle<js::symbol*> mutablehandlesymbol; typedef mutablehandle<value> ...
JS::PersistentRooted
there are typedefs available for the main types: namespace js { typedef persistentrooted<jsfunction*> persistentrootedfunction; typedef persistentrooted<jsid> persistentrootedid; typedef persistentrooted<jsobject*> persistentrootedobject; typedef persistentrooted<jsscript*> persistentrootedscript; typedef persistentrooted<jsstring*> persistentrootedstring; typedef persistentrooted<js::symbol*> persistentrooteds...
JS::Rooted
there are typedefs available for the main types: namespace js { typedef rooted<jsobject*> rootedobject; typedef rooted<jsfunction*> rootedfunction; typedef rooted<jsscript*> rootedscript; typedef rooted<jsstring*> rootedstring; typedef rooted<js::symbol*> rootedsymbol; // added in spidermonkey 38 typedef rooted<jsid> rootedid; typedef rooted<js::value> rootedvalue; } see also ...
JSNative
full documentation of how to define a jsnative (or a jsfastnative, the equivalent typedef which preceded it) is available in the api header "js/callargs.h" added in spidermonkey 24.
JS_AddArgumentFormatter
(at the moment, js_addargumentformatter fails only if there is no memory available to record the registration.) js_addargumentformatter does not copy format, it points at the string storage allocated by the caller, which is typically a string constant.
JS_BeginRequest
jsapi 1.7 and earlier js_beginrequest and js_endrequest are available only in js_threadsafe builds.
JS_ClearContextThread
js_setcontextthread and js_clearcontextthread are available only in js_threadsafe builds.
JS_CompileUTF8FileHandle
it should be the name of the file that contains the script, if available.
JS_ConvertArguments
each element of the array indicates the c type into which to convert the next available js value.
JS_GetContextThread
js_getcontextthread is available only if the engine is built with js_threadsafe.
JS_GetFunctionCallback
note: this method is only available if moz_trace_jscalls was defined at compile time using --enable-trace-jscalls.
JS_LockGCThing
js_lockgcthing and js_unlockgcthing are available only for backward compatibility with existing applications.
JS_NewObject
if the global object's class's flags include jsclass_global_flags, then the global object always retains the original constructors for each standard class; we use these original constructors when they are available.
JS_SET_TRACING_DETAILS
when printer is not null, the arg and index arguments are available to the callback as the debugprinterarg and debugprintindex fields of trc.
JS_SetFunctionCallback
note: this method is only available if moz_trace_jscalls was defined at compile time using --enable-trace-jscalls.
JS_SetGCZeal
this function is available only in debug builds.
JS_SuspendRequest
jsapi 1.7 and earlier js_suspendrequest and js_resumerequest are available only in js_threadsafe builds.
JS_YieldRequest
jsapi 1.7 and earlier js_yieldrequest is available only in js_threadsafe builds.
SpiderMonkey 24
— dec 16, 2013 the download url still available, but spidermonkey not release alone!
Running Automated JavaScript Tests
most of the options in the jstests harness are also available for this one, but a few have different names.
Thread Sanitizer
public builds note: no public builds are available at this time yet.
compare-locales
options to get a brief list of available options, use the --help flag: $ compare-locales --help the output the output of compare-locales shows the missing and obsolete strings in a pseudo-diff format.
Redis Tips
they will sit there and quietly do nothing until there is a value available on the list for them to pop.
Handling Mozilla Security Bugs
to establish, for each bug, the amount of information a distributor can reveal immediately (before a fix is available) without putting other distributors and their customers at risk.
Gecko events
this includes for example most of the attributes available via the iaccessiblecomponent interface.
Implementation Details
instead, the same information is available via theisimpledomdocument interface.
XForms Accessibility
instance node states are mapped to accessibility state constants declared in nsiaccessiblestates interface like it shown below: relevant - state_unavailable readonly - state_readonly required - state_required invalid - state_invalid out of range - state_invalid attributes redefines datatype aria attribute.
Embedded Dialog API
the print dialogs should be available soon.) dialogs posed by the embedding app ("down calls") some components will not pose dialogs directly, but maintain a database of information an embedding app may wish to display as a dialog.
Mork
MozillaTechMork
versions 1.0-1.3 were never used in any publicly-available source code.
Places Expiration
algorithm expiration is based on hardware specs, specifically on memory size and available disk space.
Querying Places
ng two queries and an options object: let querystring = placesutils.history.queriestoquerystring([query1, query2], 2, options); let queriesref = { }; let querycountref = { }; let optionsref = { }; placesutils.history.querystringtoqueries(querystring, queriesref, querycountref, optionsref); // now use queriesref.value, optionsref.value see places query uris for more information about the terms available for "place:" uris.
Using the Places annotation service
adatalen, amimetype); getitemannotationstring(aitemid, aname); getitemannotationint32(aitemid, aname); getitemannotationint64(aitemid, aname); getitemannotationdouble(aitemid, aname); getitemannotationbinary(aitemid, aname, adata, adatalen, amimetype); from javascript: getpageannotation(auri, aname); getitemannotation(aitemid, aname); these functions will return/throw ns_error_not_available if the annotation requested does not exist.
Using the Places keywords API
using the keywords api the keywords api is a promise-based api available through the placesutils module: components.utils.import("resource://gre/modules/xpcomutils.jsm"); xpcomutils.definelazymodulegetter(this, "placesutils", "resource://gre/modules/placesutils.jsm"); setting a keyword for an url the insert() method accepts a keyword entry object describing the keyword to insert.
Creating a Python XPCOM component
(note that some details may be missing.) preparation if a binary of pyxpcom is not available, you will need to build it - see building pyxpcom.
XPCOM glue
MozillaTechXPCOMGlue
internal linkage will be unavailable to extension authors in xulrunner 1.9 (firefox 3) because the nonfrozen symbols will not be exported from libxul.
An Overview of XPCOM
using a freely available public initialization method, as the example below suggests, can cause problems.
Finishing the Component
all of the mozilla source code is publicly available, and interfaces can be used easily enough.
Preface
if you already have a mozilla build or the source from mozilla 1.2 or later, then you can use the xpcom framework available there.
Using XPCOM Utilities to Make Things Easier
for a complete listing of all available options you can look at the complete reference in the xpcom api reference.
Making cross-thread calls using runnables
instead, we want to run it on a new thread and be notified when the result is available.
XPCOM hashtable guide
there are a number of builtin hash keys available in nshashkeys.h, the more useful of which are listed below.
Receiving startup notifications
most application features are not yet available at this point, but xpcom itself is.
How To Pass an XPCOM Object to a New Window
a more useful example is available in the source code: toolkit/components/help/content/contexthelp.js#61 if you want to be able to call functions within an xpcom object from a xul window's code, you can do so if you pass the xpcom object as one of the arguments to the window creation method.
Components.Constructor
the component is then returned immediately, with only the base interface nsisupports available on it; you must call nsisupports.queryinterface() on it to call methods on the object.
Components.classes
all of the properties and methods of the nsijscid and its ancestor interface nsijsid are available for use on the objects contained in this object.
Components.utils.createObjectIn
this function is made available as a global in sandboxes which have the wantexporthelpers option set in the sandbox() constructor.
Components.utils.evalInSandbox
in the constructor you define the security principal for code running in the sandbox, and can make various properties available to code running in the sandbox.
Components.utils.exportFunction
exportfunction() is made available as a global in sandboxes which have the wantexporthelpers option set in the sandbox() constructor.
nsIProfile
this interface is obsolete; you should use nsitoolkitprofileservice instead; however, reference documentation for nsiprofile is available if you're working with old code.
HOWTO
"component returned failure code: 0x80040111 (ns_error_not_available) [nsixpccomponents_utils.import]" nsresult: "0x80040111 (ns_error_not_available)" location: "js frame :: file.js :: <top_level> :: line 12" data: no] solution 1 var loader = components.classes["@mozilla.org/moz/jssubscript-loader;1"] .getservice(components.interfaces.mozijssubscriptloader); loader.loadsubscript("chrome://myall/content/file.jsm"); see: http://mxr.mozilla.org/comm-central/...
XPCShell Reference
original document information author: david bradley <dbradley@netscape.com> last updated date: 17 march 2003 copyright information: portions of this content are © 1998–2008 by individual mozilla.org contributors; content available under a creative commons license.
xpcshell
it should be executed under the window command prompt source_directory/obj-xxxxx/dist/bin> xpcshell.exe using the latest version of javascript at present, xpcshell doesn't use the latest version of javascript, so newer language features, such as the let statement introduced in javascript 1.7, are not available.
Language bindings
the following bridging layers are currently available: components objectthe components object is the object through which xpconnect functionality is reflected into javascript.
NS_InitXPCOM2
many of the xpcom glue functions and classes are also available prior to xpcom initialization, including for example nsembedcstring and nscomptr.
NS_InitXPCOM3
many of the xpcom glue functions and classes are also available prior to xpcom initialization, including for example nsembedcstring and nscomptr.
Append
remarks if insufficient memory is available to perform the assignment, then the string's internal buffer will point to a static empty (zero-length) buffer.
Assign
remarks if insufficient memory is available to perform the assignment, then the string's internal buffer will point to a static empty (zero-length) buffer.
Insert
remarks if insufficient memory is available to perform the assignment, then the string's internal buffer will point to a static empty (zero-length) buffer.
Replace
remarks if insufficient memory is available to perform the assignment, then the string's internal buffer will point to a static empty (zero-length) buffer.
Append
remarks if insufficient memory is available to perform the assignment, then the string's internal buffer will point to a static empty (zero-length) buffer.
Assign
remarks if insufficient memory is available to perform the assignment, then the string's internal buffer will point to a static empty (zero-length) buffer.
Insert
remarks if insufficient memory is available to perform the assignment, then the string's internal buffer will point to a static empty (zero-length) buffer.
Replace
remarks if insufficient memory is available to perform the assignment, then the string's internal buffer will point to a static empty (zero-length) buffer.
nsAutoRef
no copy constructor nor copy assignment operators are available, so the handle to the resource will be held until released on destruction of the nsautoref or until explicitly reset() or transferred through provided methods.
nsCOMPtr
the class itself and the supporting functions that are used with it are not frozen, but they are available as part of the xpcom glue library for easy reuse.
imgICache
ns_error_not_available if a uri was unable to be removed from the cache.
jsdIStackFrame
once a jsdistackframe has been invalidated all method and property accesses will throw a ns_error_not_available exception.
mozIAsyncHistory
if there's no information available for a given place, acallback is called with a stub place info object, containing just the provided data (guid or uri).
mozIRegistry
original document information author: bill law last updated date: january 21, 1999 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
mozIStorageAggregateFunction
it allows consumers to add aggregate functions that are available to sql queries and triggers.
mozIStorageError
last changed in gecko 1.9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0) inherits from: nsisupports attributes attribute type description message autf8string a human readable error string with details; this may be null if no details are available.
mozIStorageFunction
it allows consumers to add functions that are available to sql queries and triggers.
mozIStorageStatementWrapper
throws an exception if no row is currently available.
accessibleDocument
this content is now available at nsiaccessnode.attributes.
DOMNode
this content is now available at nsiaccessnode.attributes.
firstChildNode
this content is now available at nsiaccessnode.attributes.
GetChildNodeAt
this content is now available at nsiaccessnode.getchildnodeat().
GetComputedStyleCSSValue
this content is now available at nsiaccessnode.getcomputedstylecssvalue().
GetComputedStyleValue
this content is now available at nsiaccessnode.getcomputedstylevalue().
language
this content is now available at nsiaccessnode.attributes.
lastChildNode
this content is now available at nsiaccessnode.attributes.
nextSiblingNode
this content is now available at nsiaccessnode.attributes.
numChildren
this content is now available at nsiaccessnode.attributes.
parentNode
this content is now available at nsiaccessnode.attributes.
previousSiblingNode
this content is now available at nsiaccessnode.attributes.
scrollTo
this content is now available at nsiaccessnode.scrollto().
scrollToPoint
this content is now available at nsiaccessnode.scrolltopoint().
GetLink
this content is now available at nsiaccessiblehypertext.getlink().
GetLinkIndex
this content is now available at nsiaccessiblehypertext.getlinkindex().
LinkCount
this content is now available at nsiaccessiblehypertext.attributes.
GetImagePosition
this content is now available at nsiaccessibleimage.getimageposition().
GetImageSize
this content is now available at nsiaccessibleimage.getimagesize().
nsIAccessibleImage
void getimageposition( in unsigned long coordtype, out long x, out long y ); parameters coordtype specifies coordinates origin (for available constants refer to nsiaccessiblecoordinatetype).
GetTarget
this content is now available at nsiaccessiblerelation.gettarget().
GetTargets
this content is now available at nsiaccessiblerelation.gettargets().
RelationType
this content is now available at nsiaccessiblerelation.attributes.
TargetsCount
this content is now available at nsiaccessiblerelation.attributes.
nsIAppShellService
; var docshell = webnav.queryinterface(ci.nsiinterfacerequestor).getinterface(ci.nsidocshell); var systemprincipal = cc["@mozilla.org/systemprincipal;1"].createinstance(ci.nsiprincipal); docshell.createaboutblankcontentviewer(systemprincipal); var contentwindow = docshell.contentviewer.domdocument.defaultview; // when you are done with it, destroy it if (webnav.close) { webnav.close() }; // only available in firefox 46+, and is needed for good measure webnav = null; // in firefox <= 45 setting to null will cause it to get gc'ed which will destroy it registertoplevelwindow() add a window to the application's registry of windows.
nsIApplicationCacheChannel
66 introduced gecko 1.9.1 inherits from: nsiapplicationcachecontainer last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) method overview void markofflinecacheentryasforeign(); attributes attribute type description chooseapplicationcache boolean when true, the channel will choose an application cache if one was not explicitly provided and none is available from the notification callbacks.
nsIAuthPromptProvider
exceptions thrown ns_error_not_available if no prompt is allowed or available for the given reason.
nsIAutoCompleteInput
minresultsforpopup unsigned long specifies a minimum number of search results that must be available before the autocomplete popup will open.
nsIBinaryInputStream
warning: this method is available from javascript; however javascript does not support 64-bit integers.
nsIBlocklistPrompt
xpcom/system/nsiblocklistservice.idlscriptable this interface is used, if available, by the default implementation of nsiblocklistservice to display a confirmation user interface to the user before blocking extensions or plugins.
nsICacheService
at the time of writing there is no documentation for nsicachestorageservice but comments are available in the source.
nsICacheSession
instead, the listener will be notified when the descriptor is available.
addCategoryEntry
this content is now available at nsicategorymanager.addcategoryentry().
deleteCategory
this content is now available at nsicategorymanager.deletecategory().
deleteCategoryEntry
this content is now available at nsicategorymanager.deletecategoryentry().
enumerateCategories
this content is now available at nsicategorymanager.enumeratecategories().
enumerateCategory
this content is now available at nsicategorymanager.enumeratecategory().
getCategoryEntry
this content is now available at nsicategorymanager.getcategoryentry().
nsICategoryManager
exceptions thrown ns_error_not_available indicates that either the category or entry is undefined.
nsIChannelEventSink
1.0 66 introduced gecko 1.8 inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) channels will try to get this interface from a channel's notificationcallbacks or, if not available there, from the loadgroup's notificationcallbacks.
nsICharsetResolver
if the charset cannot be resolved, but the implementation of nsicharsetresolver wants to be notified of the final resolved charset when one is available, it can set awantcharset to true.
nsIChromeFrameMessageManager
aallowdelayedload if true, the script will be loaded when the remote frame becomes available; otherwise, the script will only be loaded if the frame is already available.
classDescription
this content is now available at nsiclassinfo.attributes.
classID
this content is now available at nsiclassinfo.attributes.
classIDNoAlloc
this content is now available at nsiclassinfo.attributes.
flags
this content is now available at nsiclassinfo.attributes.
getHelperForLanguage
this content is now available at nsiclassinfo.gethelperforlanguage().
getInterfaces
this content is now available at nsiclassinfo.getinterfaces().
implementationLanguage
this content is now available at nsiclassinfo.attributes.
nsIClipboard
return value returns true if kselectionclipboard is available.
nsIClipboardDragDropHooks
inherits from: nsisupports last changed in gecko 1.7 embedders who want to have these hooks made available should implement nsiclipboarddragdrophooks and use the command manager to send the appropriate commands with these parameters/settings: command: cmd_clipboarddragdrophook params value type possible values "addhook" isupports nsiclipboarddragdrophooks as nsisupports "removehook" isupports nsiclipboarddragdrophooks as nsisupports note: overrides/hooks need to be added to eac...
createInstanceByContractID
this content is now available at nsicomponentmanager.createinstancebycontractid().
getClassObject
this content is now available at nsicomponentmanager.getclassobject ().
getClassObjectByID
this content is now available at nsicomponentmanager.getclassobjectbyid().
CIDToContractID
this content is now available at nsicomponentregistrar.cidtocontractid().
autoRegister
this content is now available at nsicomponentregistrar.autoregister().
autoUnregister
this content is now available at nsicomponentregistrar.autounregister().
contractIDToCID
this content is now available at nsicomponentregistrar.contractidtocid().
enumerateCIDs
this content is now available at nsicomponentregistrar.enumeratecids().
enumerateContractIDs
this content is now available at nsicomponentregistrar.enumeratecontractids().
isCIDRegistered
this content is now available at nsicomponentregistrar.iscidregistered().
isContractIDRegistered
this content is now available at nsicomponentregistrar.iscontractidregistered().
registerFactory
this content is now available at nsicomponentregistrar.registerfactory().
registerFactoryLocation
this content is now available at nsicomponentregistrar.registerfactorylocation().
unregisterFactory
this content is now available at nsicomponentregistrar.unregisterfactory().
unregisterFactoryLocation
this content is now available at nsicomponentregistrar.unregisterfactorylocation().
nsIController
return value return true if the specified command is currently available to be used; otherwise, it should return false.
nsIDNSService
alistener the listener to be notified when the result is available.
nsIDOMGeoPosition
1.0 66 introduced gecko 1.9.1 inherits from: nsisupports last changed in gecko 1.9.2 (firefox 3.6 / thunderbird 3.1 / fennec 1.0) attributes attribute type description address nsidomgeopositionaddress the address of the user's current location, if available.
nsIDOMGeoPositionAddress
this information may or may not be available, depending on the geolocation service being used.
nsIDOMGeoPositionError
position_unavailable 2 unable to access location data.
nsIDOMOfflineResourceList
updateready 4 there is a new version of the application cache available.
nsIDOMParser
to create a domparser when the constructor is not available (e.g., from a js xpcom component, a js module, or an xpcshell test), use: var parser = components.classes["@mozilla.org/xmlextras/domparser;1"] .createinstance(components.interfaces.nsidomparser); // optionally, call parser.init(principal, documenturi, baseuri); principals, document and base uri note: this section covers changes introduced to domparser in gecko 1.9.
nsIDOMStorageList
1.0 66 introduced gecko 1.8 inherits from: nsisupports last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) method overview nsidomstorage nameditem(in domstring domain); methods nameditem() called when the list of available access points changes.
nsIDOMWindow
66 introduced gecko 1.0 deprecated gecko 44 inherits from: nsisupports last changed in gecko 7.0 (firefox 7.0 / thunderbird 7.0 / seamonkey 2.4) starting with firefox 44, this file is empty as its features were either no longer used or are only available from c++ code; see dom/base/nspidomwindow.h for those.
nsIDOMWindowInternal
however, they are not guaranteed to document all available arguments (i.e.
nsIDOMXPathException
type_err 52 an attempt was made to reference an unavailable type.
nsIDOMXULElement
gets or creates a box object for the element; browser, editor, iframe, listbox, menu, menupopup, scrollbox, tooltip and tree elements receive specialized box objects allowing access to additional properties not normally available from script.
nsIDeviceMotionListener
1.0 66 introduced gecko 1.9.2 inherits from: nsisupports last changed in gecko 6.0 (firefox 6.0 / thunderbird 6.0 / seamonkey 2.3) method overview void onmotionchange(in nsidevicemotiondata amotiondata); methods onmotionchange() called when new orientation or acceleration data is available.
init
this content is now available at nsidirectoryservice.init().
registerProvider
this content is now available at nsidirectoryservice.registerprovider().
unregisterProvider
this content is now available at nsidirectoryservice.unregisterprovider().
nsIDownloadManager
exceptions thrown ns_error_not_available the download is not in the database.
nsIDownloader
netwerk/base/public/nsidownloader.idlscriptable a special implementation of a nsistreamlistener that will make the contents of the stream available as a file.
createInstance
this content is now available at nsifactory.createinstance().
lockFactory
this content is now available at nsifactory.lockfactory().
nsIFaviconDataCallback
1.0 66 introduced gecko 2.0 inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) method overview void oncomplete(in nsiuri auri, in unsigned long adatalen, [const,array,size_is(adatalen)] in octet adata, in autf8string amimetype); methods oncomplete() called when the required favicon's information is available.
nsIFeedEntry
note, that the related updated attribute is available from the nsifeedcontainer interface.
nsIFeedProgressListener
in other words, by the time this method is called, it is most likely that most or all of the feed-level metadata has been processed and is available in the received nsifeedresult object.
nsIFeedResult
stylesheet nsiuri an xslt stylesheet available to transform the source of the feed.
nsIFeedResultListener
even if an error occurred during processing, there may be valid data available for feed-level data or entries processed before the error occurred.
append
this content is now available at nsifile.append().
appendNative
this content is now available at nsifile.appendnative().
clone
this content is now available at nsifile.clone().
contains
this content is now available at nsifile.contains().
copyTo
this content is now available at nsifile.copyto().
copyToFollowingLinks
this content is now available at nsifile.copytofollowinglinks().
copyToFollowingLinksNative
this content is now available at nsifile.copytofollowinglinksnative().
copyToNative
this content is now available at nsifile.copytonative().
create
this content is now available at nsifile.create().
createUnique
this content is now available at nsifile.createunique().
directoryEntries
this content is now available at nsifile.attributes.
equals
this content is now available at nsifile.equals().
exists
this content is now available at nsifile.exists().
fileSize
this content is now available at nsifile.attributes.
fileSizeOfLink
this content is now available at nsifile.attributes.
isDirectory
this content is now available at nsifile.isdirectory().
isExecutable
this content is now available at nsifile.isexecutable().
isFile
this content is now available at nsifile.isfile().
isHidden
this content is now available at nsifile.ishidden().
isReadable
this content is now available at nsifile.isreadable().
isSpecial
this content is now available at nsifile.isspecial().
isSymlink
this content is now available at nsifile.issymlink().
isWritable
this content is now available at nsifile.iswritable().
lastModifiedTime
this content is now available at nsifile.attributes.
lastModifiedTimeOfLink
this content is now available at nsifile.attributes.
leafName
this content is now available at nsifile.attributes.
moveTo
this content is now available at nsifile.moveto().
moveToNative
this content is now available at nsifile.movetonative().
nativeLeafName
this content is now available at nsifile.attributes.
nativePath
this content is now available at nsifile.attributes.
nativeTarget
this content is now available at nsifile.attributes.
normalize
this content is now available at nsifile.normalize().
parent
this content is now available at nsifile.attributes.
path
MozillaTechXPCOMReferenceInterfacensIFilepath
this content is now available at nsifile.attributes.
permissions
this content is now available at nsifile.attributes.
permissionsOfLink
this content is now available at nsifile.attributes.
remove
this content is now available at nsifile.remove().
target
this content is now available at nsifile.attributes.
nsIFile
diskspaceavailable print64 the number of bytes available to non-superuser on the disk volume containing the nsifile.
nsIFileInputStream
(the file will only be reopened if it is closed for some reason.) defer_open 1<<4 if this is set, the file will be opened (i.e., a call to pr_open() done) only when we do an actual operation on the stream, or more specifically, when one of the following is called: seek() tell() available() read() readline() defer_open is useful if we use the stream on a background thread, so that the opening and possible stating of the file happens there as well.
nsIGlobalHistory3
this function is preferred if nsiglobalhistory3 is available.
nsIIOService
when in offline mode, attempts to access the network will fail (although this does not necessarily correlate with whether there is actually a network available -- that's hard to detect without causing the dialer to come up).
close
this content is now available at nsiinputstream.close().
isNonBlocking
this content is now available at nsiinputstream.isnonblocking().
read
this content is now available at nsiinputstream.read().
readSegments
this content is now available at nsiinputstream.readsegments().
getInterface
this content is now available at nsiinterfacerequestor.getinterface().
nsIInterfaceRequestor
exceptions thrown ns_error_no_interface the requested interface is not available.
nsILocalFile
void reveal(); void setrelativedescriptor(in nsilocalfile fromfile, in acstring relativedesc); attributes attribute type description diskspaceavailable print64 the number of bytes available to non-superuser on the disk volume containing the nsilocalfile.
nsILocale
a locale code is of the form language[-country[-region]], where "language" is an iso 639 language code (two letter codes preferred over three letter codes when available), "country" is an iso 3166 two letter country code, and "region" is a string of up to 5 letters.
nsILoginManager
fillform() fills out a form with login information, if appropriate information is available.
nsIMIMEInputStream
the value of the content-length is automatically calculated using the available() method on the data stream.
alloc
this content is now available at nsimemory.alloc().
free
this content is now available at nsimemory.free().
heapMinimize
this content is now available at nsimemory.heapminimize().
isLowMemory
this content is now available at nsimemory.islowmemory().
realloc
this content is now available at nsimemory.realloc().
nsIMemoryReporterManager
this reporter is special-cased because it is interesting, is available on all platforms, and returns a meaningful result on all common platforms.
canUnload
this content is now available at nsimodule.canunload().
getClassObject
this content is now available at nsimodule.getclassobject().
registerSelf
this content is now available at nsimodule.registerself().
unregisterSelf
this content is now available at nsimodule.unregisterself().
nsIModule
exceptions thrown ns_error_factory_not_registered indicates that the requested class is not available.
nsIMsgFilterCustomAction
*/ attribute boolean allowduplicates; /* * the custom action itself * * generally for the apply method, folder-based methods give correct * results and are preferred if available.
nsIMsgIncomingServer
loginatstartup boolean logonfallback boolean maxmessagesize long offlinesupportlevel long password acstring passwordpromptrequired boolean if the password for the server is available either via authentication in the current session or from password manager stored entries, return false.
nsINavBookmarksService
if no item title is available it will return a void string (null in js environment).
nsINavHistoryObserver
both titles are always included in this notification, even though only one is changed each time it is called, since often consumers will want to display the user title if available, falling back to the title specified by the page's <title> element if there is no user title.
nsINetworkLinkService
as of gecko 28.0 android support is available again, see bug 939680.
addObserver
this content is now available at nsiobserverservice.addobserver().
enumerateObservers
this content is now available at nsiobserverservice.enumerateobservers().
notifyObservers
this content is now available at nsiobserverservice.notifyobservers().
removeObserver
this content is now available at nsiobserverservice.removeobserver().
close
this content is now available at nsioutputstream.close().
flush
this content is now available at nsioutputstream.flush().
isNonBlocking
this content is now available at nsioutputstream.isnonblocking().
write
this content is now available at nsioutputstream.write().
writeFrom
this content is now available at nsioutputstream.writefrom().
writeSegments
this content is now available at nsioutputstream.writesegments().
nsIOutputStream
exceptions thrown ns_base_stream_would_block a non-blocking stream may throw this exception when written to if space for the data is not immediately available.
nsIProcess
this value is only available after the process has started; in addition, some platforms may not offer this value at all.
get
this content is now available at nsiproperties.get().
getKeys
this content is now available at nsiproperties.getkeys().
has
this content is now available at nsiproperties.has().
set
this content is now available at nsiproperties.set().
undefine
this content is now available at nsiproperties.undefine().
nsIProtocolHandler
uri_does_not_return_data 1<<11 channels using this protocol never call ondataavailable() on the listener passed to asyncopen(), and therefore do not return any usable data.
nsIRequest
requests that use nsistreamlistener must not call ondataavailable anymore after cancel has been called.
nsISHistory
ner(in nsishistorylistener alistener); nsishentry getentryatindex(in long index, in boolean modifyindex); void purgehistory(in long numentries); void reloadcurrententry(); void removeshistorylistener(in nsishistorylistener alistener); attributes attribute type description count long the number of toplevel documents currently available in session history.
nsIScriptError
that subclass offered the nsiscripterror.initwithwindowid() method for that purpose; that method is now available in this interface, however.
close
this content is now available at nsiscriptableinputstream.close().
init
this content is now available at nsiscriptableinputstream.init().
read
this content is now available at nsiscriptableinputstream.read().
nsIScriptableUnescapeHTML
1.0 66 introduced gecko 1.8 obsolete gecko 14.0 inherits from: nsisupports last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) note: as of firefox 14, this interface is obsolete (but still available for compatibility with legacy extensions) and all its functionality is available with more configuration options via the nsiparserutils interface.
nsIScriptableUnicodeConverter
if the other apis you are reading data from or writing data to don't require you to use this legacy representation, you should use textdecoder and textencoder (available to chrome javascript via components.utils.importglobalproperties) instead of this api.
nsISelection2
void scrollintoview(in short aregion, in boolean aissynchronous, in short avpercent, in short ahpercent); attributes attribute type description type short returns the type of the selection (see nsiselectioncontroller for available constants).
nsISelectionPrivate
interlineposition boolean type short returns the type of the selection (see nsiselectioncontroller for available constants).
getServiceByContractID
this content is now available at nsiservicemanager.getservicebycontractid().
isServiceInstantiated
this content is now available at nsiservicemanager.isserviceinstantiated().
isServiceInstantiatedByContractID
this content is now available at nsiservicemanager.isserviceinstantiatedbycontractid().
nsISessionStartup
constants session type constants constant value description no_session 0 there's no data available from the previous session.
nsISocketTransport
this attribute is only available once the socket is connected.
nsISocketTransportService
this will fail with the error code ns_error_not_available if the maximum number of sockets is already reached.
nsIStringBundleService
this string bundle has functions available on it.
nsISupports
exceptions thrown ns_error_no_interface the requested interface is not available.
data
this content is now available at nsisupportscstring.attributes.
toString
this content is now available at nsisupportscstring.tostring().
data
this content is now available at nsisupportschar.attributes.
toString
this content is now available at nsisupportschar.tostring().
data
this content is now available at nsisupportsdouble.attributes.
toString
this content is now available at nsisupportsdouble.tostring().
data
this content is now available at nsisupportsfloat.attributes.
toString
this content is now available at nsisupportsfloat.tostring().
data
this content is now available at nsisupportsid.attributes.
toString
this content is now available at nsisupportsid.tostring().
data
this content is now available at nsisupportsinterfacepointer.attributes.
dataIID
this content is now available at nsisupportsinterfacepointer.attributes.
toString
this content is now available at nsisupportsinterfacepointer.tostring().
data
this content is now available at nsisupportsprbool.attributes.
toString
this content is now available at nsisupportsprbool.tostring().
data
this content is now available at nsisupportsprint16.attributes.
toString
this content is now available at nsisupportsprint16.tostring().
data
this content is now available at nsisupportsprint32.attributes.
toString
this content is now available at nsisupportsprint32.tostring().
data
this content is now available at nsisupportsprint64.attributes.
toString
this content is now available at nsisupportsprint64.tostring().
data
this content is now available at nsisupportsprtime.attributes.
toString
this content is now available at nsisupportsprtime.tostring().
data
this content is now available at nsisupportspruint16.attributes.
toString
this content is now available at nsisupportspruint16.tostring().
data
this content is now available at nsisupportspruint32.attributes.
toString
this content is now available at nsisupportspruint32.tostring().
data
this content is now available at nsisupportspruint64.attributes.
toString
this content is now available at nsisupportspruint64.tostring().
data
this content is now available at nsisupportspruint8.attributes.
toString
this content is now available at nsisupportspruint8.tostring().
data
this content is now available at nsisupportsstring.attributes.
toString
this content is now available at nsisupportsstring.tostring().
getWeakReference
this content is now available at nsisupportsweakreference.getweakreference().
nsISupports proxies
ns_release(ptestobj); pproxy->bar(); ns_release(pproxy); original document information author: doug turner last updated date: january 27, 2007 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
nsIToolkitProfile
the unlocker object is only available in gecko 34 or later when running on windows vista or later.
nsITransferable
this can be set to null if a load context is not available.
nsITransport
this means that if the stream has no data and is not closed, then reading from it will block the calling thread until at least one byte is available or until the stream is closed.
nsIUpdate
toolkit/mozapps/update/nsiupdateservice.idlscriptable an interface that describes an object representing an available update to the current application - this update may have several available patches from which one must be selected to download and install, for example we might select a binary difference patch first and attempt to apply that, then if the application process fails fall back to downloading a complete file-replace patch.
nsIUpdateCheckListener
updates an array of nsiupdate objects describing the available updates.
nsIUpdateChecker
methods checkforupdates() checks for available updates, notifying a listener of the results.
nsIUpdateTimerManager
1.0 66 introduced gecko 1.8 inherits from: nsisupports last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) method overview void registertimer(in astring id, in nsitimercallback callback, in unsigned long interval); methods registertimer() presents a user interface that checks for and displays the available updates.
nsIUploadChannel
acontentlength a value of -1 indicates that the length of the stream should be determined by calling the stream's available method.
nsIUploadChannel2
acontentlength a value of -1 indicates that the length of the stream should be determined by calling the stream's available method.
nsIUserInfo
the domain portion of the email address, if available.
queryReferent
this content is now available at nsiweakreference.queryreferent().
nsIWeakReference
ns_error_no_interface the requested interface is not available.
nsIWebProgressListener
the document corresponding to a document request is available via the domwindow attribute of onstatechange()'s awebprogress parameter.
nsIWifiMonitor
netwerk/wifi/nsiwifimonitor.idlscriptable this interface can be used to be alerted when the list of available wifi access points changes.
nsIWinTaskbar
createjumplistbuilder(); nsitaskbartabpreview createtaskbartabpreview(in nsidocshell shell, in nsitaskbarpreviewcontroller controller); nsitaskbarprogress gettaskbarprogress(in nsidocshell shell); nsitaskbarwindowpreview gettaskbarwindowpreview(in nsidocshell shell); void setgroupidforwindow(in nsidomwindow aparent, in astring aidentifier); attributes attribute type description available boolean returns true if the operating system supports windows 7 or later taskbar features; you can use this instead of in-place operating system version checking.
nsIWindowCreator
gecko will/may call this method, if made available to it, to create new windows.
nsIWindowWatcher
example for example, in a xul application or mozilla extension, if the window object is unavailable (for example, when opening a window from xpcom component code), you might want to use this interface for opening a new window: var ww = components.classes["@mozilla.org/embedcomp/window-watcher;1"] .getservice(components.interfaces.nsiwindowwatcher); var win = ww.openwindow(null, "chrome://myextension/content/about.xul", "aboutmyextension", "chrome,...
nsIWindowsRegKey
key hkey this attribute exposes the native hkey and is available to provide c++ consumers with the flexibility of making other windows registry api calls that are not exposed via this interface.
nsIXPCException
message - a custom message set by the thrower (defaults to 'exception') result - the nsresult associated with this exception (defaults to components.results.ns_error_failure) stack - the stack chain (defaults to the current stack) data - additional data object of your choice (defaults to null) inner - an inner exception that triggered this, if available ...
nsIXULBrowserWindow
note: the xulbrowserwindow object offered to javascript code provides a great many more methods and attributes than those listed here, which are only the ones available to c++ code.
nsIXULTemplateBuilder
addresult() informs the template builder that a new result is available.
nsIXULTemplateQueryProcessor
if the query processor needs to load the datasource asynchronously, it may set the ashoulddelaybuilding returned parameter to true to delay building the template content, and call the builder's rebuild method when the data is available.
nsIXmlRpcClient
warning: this interface was removed from firefox 3 and is no longer available.
nsMsgViewCommandType
reload or print preview) are available.
Performance
as of april 10, 2006, mozilla uses sqlite 3.3.4, but the latest precompiled version of the command line tools is not available for all platforms.
The Thread Manager
when you dispatch an event to the pool, the pool selects an available worker thread to process the event.
Troubleshooting XPCOM components registration
note that even your version of msvc may matter; your test machine may not have the c runtime libraries (msvcr70.dll / msvcp70.dll for msvc 7.0, and similarly named files for 7.1 and 8.0) available.
Using IndexedDB in chrome
if you are creating a sandbox, and want indexeddb to be available in it, use the wantglobalproperties option in the sandbox constructor: var options = { "wantglobalproperties": ["indexeddb"] } var principal = cc["@mozilla.org/systemprincipal;1"].createinstance(ci.nsiprincipal); var sandbox = components.utils.sandbox(principal, options); // the sandbox will have access to indexeddb var sandboxscript = 'var req = indexeddb.open("my-database");'; components.ut...
Getting Started Guide
nscomptrs for non-interface classes appropriately formatted answer to come, in the meanwhile, the full details are available in this news posting (via google groups).
Using nsCOMPtr
portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
Using nsIClassInfo
original document information authors: mike shaver, justin lebar last updated date: july 25, 2011 copyright information: portions of this content are © 1998–2011 by individual mozilla.org contributors; content available under a creative commons license | details.
Using nsIDirectoryService
related pages code_snippets:file_i/o original document information authors: conrad carlen, doug turner last updated date: september 26, 2000 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
Using nsIPasswordManager
nsiloginmanager, available in toolkit 1.9, does let you include input field names.
Using the Gecko SDK
(more information on xpcom is available at the xpcom project page.) the intent of this guide is to help you build your components "the right way" such that they will remain compatible with future versions of mozilla.
Weak reference
see also the source xpcom/base/nsiweakreference.idl xpcom/glue/nsweakreference.h xpcom/glue/nsweakreference.cpp xpcom ownership guidelines using nscomptr original document information author: scott collins last updated date: september 23, 2000 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
XPCOM ABI
r console (accessible through tools | error console) and evaluate the following javascript code: components.classes["@mozilla.org/xre/app-info;1"] .getservice(components.interfaces.nsixulruntime) .xpcomabi if either the cpu architecture or the c++ compiler are unknown, the application wouldn't have an xpcom abi string and attempts to get it will result in error ns_error_not_available.
XPCOM ownership guidelines
portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
XPCOM tasks
original document information author(s): unknown last updated date: may 8, 2003 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
nsCOMPtr versus RefPtr
do_queryinterface versus do_queryobject the do_queryinterface helper is only available when assigning to nscomptr.
XUL Overlays
MozillaTechXULOverlays
when you load an overlay explicitly, it means that you intend to make it available every time the base file is loaded.
Mozilla technologies
the xml extras module is built by default on all platforms, and is included in the browser installers so it is available in the nightly builds.xpcomxpcom is a cross platform component object model, similar to microsoft com.
Address Book examples
the following options are available.
Address book sync client design
pizzarro <rhp@netscape.com> contents overview client side sync logic public interfaces overview there is an component available in the mozilla tree for performing synchronization operations against a server based address book.
Creating a gloda message query
the max number of messages which are returned is governed by a preference: "mailnews.database.global.search.msg.limit" although you can deal with the messages as they show up via the listener, the list of messages in the collection is available in collection.items.
nsIMsgCloudFileProvider
remainingfilespace long long readonly: the remaining storage space available for this account in bytes.
LDAP Support
original document information author(s): scott macgregor copyright information: portions of this content are © 1998–2010 by individual mozilla.org contributors; content available under a creative commons license | details.
Mailnews and Mail code review requirements
if an automated test framework is needed but is not yet available, the developer is encouraged to write appropriate test code and commit it.
Building a Thunderbird extension 3: install manifest
this cannot be higher than the currently available version.
Creating a Custom Column
one of the new and exciting features available to thunderbird extension developers in thunderbird 2.0 is the ability to easily create and handle custom columns in thunderbird's main view.
Theme Packaging
see the install.rdf reference for more information: em:id em:version em:type em:targetapplication em:name em:internalname optional install.rdf properties em:description em:creator em:contributor em:homepageurl em:updateurl note that if your theme will be made available on the https://addons.mozilla.org website, it may not include an updateurl.
Using Mozilla code in other projects
there are also modules that aren't used in firefox but are available for use by other applications; an example of this is rhino, the javascript engine written in java.
Using the Mozilla symbol server
symbols are available for at least 30 previous days worth of nightly builds, and firefox releases from 2.0.0.4.
Using js-ctypes
standard alert in 64bit os x carbon is not available in 64bit versions of os x, therefore core foundation must be used.
ABI
ctypes.thiscall_abi more information is available at bugzilla :: 552533.
ArrayType
properties inherited from ctype these properties are available on all ctype objects.
FunctionType
properties inherited from ctype these properties are available on all ctype objects.
PointerType
properties inherited from ctype these properties are available on all ctype objects.
StructType
properties inherited from ctype these properties are available on all ctype objects.
js-ctypes
note: js-ctypes is only available from chrome code; that is, ctypes is not available to websites, only application and extension code.
Browser Side Plug-in API - Plugins
« previousnext » this chapter describes methods in the plug-in api that are available from the browser.
Plug-in Development Overview - Plugins
the plug-in can select one of these transmission modes: normal mode: the browser sends the stream data sequentially to the plug-in as the data becomes available.
Plug-in Side Plug-in API - Plugins
« previousnext » this chapter describes methods in the plug-in api that are available for the plug-in object.
URLs - Plugins
uniform resource locator (url) protocols provide a means for locating and accessing resources that are available on the internet and on intranets.
Version, UI, and Status Information - Plugins
if an essential feature is unavailable, the developer must arrange for alternative behavior, shut down the plug-in, or give the user a chance to decide what to do.
Preferences System
reference information about them is available below: preferences system documentation: introduction: getting started | examples | troubleshooting reference: prefwindow | prefpane | preferences | preference | xul attributes use code for a typical preferences window may look like this: <prefwindow id="apppreferences" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <prefpane id="pane1" label="&pane1.title;"> <preferences> <preference id="pref1" name="pref.name" ty...
DOM Inspector FAQ - Firefox Developer Tools
original document information author(s): christopher aillon last updated date: november 11, 2003 copyright information: portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a creative commons license | details.
DOM Inspector internals - Firefox Developer Tools
(internally, a panel may be loosely referred to as a "pane", but a panelset is always referred to as a "panelset".) a panel's purpose is to manage available viewers.
DOM Inspector - Firefox Developer Tools
(thunderbird users browsing amo in firefox should save the installation link, or visit the dom inspector for thunderbird page.) thunderbird 2 dom inspector for thunderbird 2 is available from thunderbird add-ons.
Add-ons - Firefox Developer Tools
this add-on is no longer available, as it requires older versions of firefox.
Pretty-print a minified file - Firefox Developer Tools
after you click the icon, the source code looks like this: the pretty print source icon is available only if the source file is minified (i.e., not an original file), and is not already "prettified".
Set a breakpoint - Firefox Developer Tools
there are a few options available here: add breakpoint: add a standard unconditional breakpoint at this line number (see below).
Step through code - Firefox Developer Tools
the thinking here is that if you've got your devtools open in a separate window, as many people do, it can be easier to have the buttons available right there to move the code forward while you are looking at the result.
Set a logpoint - Firefox Developer Tools
you can use any variable or function available in the current scope.
Set event listener breakpoints - Firefox Developer Tools
logging on events in firefox 71 onwards, the “log” checkbox is available in the event listener breakpoints list.
Debugger.Object - Firefox Developer Tools
if the referent is a host function for which parameter names are not available, return an array with one element per parameter, each of which is undefined.
Tutorial: Show Allocations Per Call Path - Firefox Developer Tools
this function is available in the browser // console.
Tutorial: Set a breakpoint - Firefox Developer Tools
since the debugger api is only available to privileged javascript code, you’ll need to use the browser content toolbox to try it out.
Deprecated tools - Firefox Developer Tools
alternatives remote debugging is available in about:debugging as of firefox 68.
Measure a portion of the page - Firefox Developer Tools
from the available toolbox buttons check the measure a portion of the page checkbox.
Dominators view - Firefox Developer Tools
sometimes you'll see "(no stack available)" here.
Page inspector 3-pane mode - Firefox Developer Tools
feature summary from firefox 62 onwards, the page inspector has a new mode available — 3-pane mode.
CSS Flexbox Inspector: Examine Flexbox layouts - Firefox Developer Tools
discovering flex containers when an html element on your page has display: flex applied to it, a number of features are made available in the devtools to provide easy access to flexbox layout features.
CSS Grid Inspector: Examine grid layouts - Firefox Developer Tools
discovering css grids when an html element on your page has display: grid applied to it, a number of features are made available in the devtools to provide easy access to grid features.
UI Tour - Firefox Developer Tools
the following image shows the 2-pane layout: in 2-pane mode, the inspector includes the html pane, and the css pane, which can contain one of six tools: rules view layout view computed view changes view compatibility view (firefox developer edition 77 and later) fonts view animations view the following image shows the 3-pane mode (available from firefox 62 onwards) which moves the css rules view into a separate pane in the center of the inspector.
Intensive JavaScript - Firefox Developer Tools
the main limitation of web workers is that dom apis are not available to code running in a worker.
Rulers - Firefox Developer Tools
to be able to toggle rulers for a page, you first need to enable the button by going to the settings page for the developer tools and checking "toggle rulers for the page" under available toolbox buttons.
Settings - Firefox Developer Tools
available toolbox buttons this group of checkboxes determines which tools get an icon in the toolbox's toolbar.
Storage Inspector - Firefox Developer Tools
add and refresh storage you'll also have buttons available to add a new storage entry or refresh the view of the currently viewed storage type where applicable (you can't add new entries to indexeddb or cache): sidebar when you select any row in the storage table widget, the sidebar is shown with details about that row.
Style Editor - Firefox Developer Tools
this is where the source for the selected style sheet is available for you to read and edit.
Taking screenshots - Firefox Developer Tools
to enable it: visit the settings page find the section labeled "available toolbox buttons" check the box labeled "take a screenshot of the entire page".
Tips - Firefox Developer Tools
help opens the mdn page describing the available commands.
Rich output - Firefox Developer Tools
click on the triangle, and the object will be expanded to show its contents: starting with firefox 67 (available now in firefox developer) you can use the arrow keys on your keyboard to navigate through objects displayed in the console.
The JavaScript input interpreter - Firefox Developer Tools
instant evaluation this feature is available in firefox nightly, in versions labeled 74 and later.
Web Console remoting - Firefox Developer Tools
] } notice that the consoleactor is also available as a global actor.
about:debugging - Firefox Developer Tools
service workers can be unavailable if the dom.serviceworkers.enable preference is set to false in about:config.
ANGLE_instanced_arrays.drawArraysInstancedANGLE() - Web APIs
note: when using webgl2, this method is available as gl.drawarraysinstanced() by default.
ANGLE_instanced_arrays.drawElementsInstancedANGLE() - Web APIs
note: when using webgl2, this method is available as gl.drawelementsinstanced() by default.
ANGLE_instanced_arrays.vertexAttribDivisorANGLE() - Web APIs
note: when using webgl2, this method is available as gl.vertexattribdivisor() by default.
AbortSignal: abort event - Web APIs
bubbles no cancelable no interface event event handler onabort examples in the following snippets, we create a new abortcontroller object, and get its abortsignal (available in the signal property).
AbortSignal.aborted - Web APIs
syntax var isaborted = abortsignal.aborted; value a boolean examples in the following snippet, we create a new abortcontroller object, and get its abortsignal (available in the signal property).
AbortSignal.onabort - Web APIs
}; examples in the following snippet, we create a new abortcontroller object, and get its abortsignal (available in the signal property).
AbortSignal - Web APIs
also available via the onabort property.
AbsoluteOrientationSensor - Web APIs
model.quaternion.fromarray(sensor.quaternion).inverse(); }); sensor.addeventlistener('error', error => { if (event.error.name == 'notreadableerror') { console.log("sensor is not available."); } }); sensor.start(); permissions example using orientation sensors requires requesting permissions for multiple device sensors.
AddressErrors - Web APIs
a description of the total amount being requested (including a label and the currency used), a list of the line items (in this case only one, "original donation amount"), and a list of shipping options available; in this case only one.
Attr - Web APIs
WebAPIAttr
where available, the appropriate replacement is noted.
AudioBuffer() - Web APIs
rangeerror there isn't enough memory available to allocate the buffer.
AudioBuffer - Web APIs
you can find the full source code at our webaudio-examples repository; a running live version is also available.
AudioContext() - Web APIs
available properties are as follows: latencyhint optional the type of playback that the context will be used for, as a value from the audiocontextlatencycategory enum or a double-precision floating-point value indicating the preferred maximum latency of the context in seconds.
AudioContext.outputLatency - Web APIs
it varies depending on the platform and the available hardware.
AudioParamDescriptor - Web APIs
under this name the audioparam will be available in the parameters property of the node, and under this name the audioworkletprocessor.process method will acquire the calculated values of this audioparam.
AudioParamMap - Web APIs
in addition, there are the following properties available: size ?
AudioScheduledSourceNode - Web APIs
also available using the onended event handler property.
AudioTrack.language - Web APIs
function getavailablelanguages(el) { var tracklist = []; const wantedkinds = [ "main", "translation" ]; el.audiotracks.foreach(function(track) { if (wantedkinds.includes(track.kind)) { tracklist.push({ id: track.id, kind: track.kind, language: track.language }); } }); return tracklist; } specifications specification status comment ...
AudioTrackList.onaddtrack - Web APIs
in this scenario, that function's role is to add the new track to a list of audio tracks available to choose from.
AudioWorkletGlobalScope - Web APIs
each baseaudiocontext has a single audioworklet available under the audioworklet property, which runs its code in a single audioworkletglobalscope.
AudioWorkletNode() - Web APIs
available properties are as follows: numberofinputs optional the value to initialize the numberofinputs property to.
AudioWorkletNode.port - Web APIs
note: the port at the other end of the channel is available under the port property of the processor.
AudioWorkletProcessor() - Web APIs
available properties are as follows: numberofinputs optional the value to initialize the numberofinputs property to.
AudioWorkletProcessor.parameterDescriptors (static getter) - Web APIs
under this name the audioparam will be available in the parameters property of the node, and under this name the audioworkletprocessor.process method will acquire the calculated values of this audioparam.
AudioWorkletProcessor.port - Web APIs
note: the port at the other end of the channel is available under the port property of the node.
AudioWorkletProcessor.process - Web APIs
if there is no active node connected to the n-th input of the node, inputs[n] will be an empty array (zero input channels available).
AudioWorkletProcessor - Web APIs
the other end is available under the port property of the node.
AuthenticatorAttestationResponse - Web APIs
the array may be empty if the information is not available.
BaseAudioContext.createBuffer() - Web APIs
rangeerror there isn't enough memory available to allocate the buffer.
BasicCardRequest - Web APIs
} once the payment flow has been triggered using paymentrequest.show() and the promise resolves successfully, the paymentresponse object available inside the fulfilled promise (instrumentresponse above) will have a paymentresponse.details property that will contain response details.
Bluetooth.getAvailability() - Web APIs
examples the following snippet prints out a message in the console specifying wheter or not bluetooth is supported: navigator.bluetooth.getavailability().then(available => { if (available) console.log("this device supports bluetooth!"); else console.log("doh!
Bluetooth.onavailabilitychanged - Web APIs
the onavailabilitychanged property of the bluetooth interface is an eventhandler that processes availabilitychanged events that fire when the bluetooth system as a whole becomes available or unavailable to the user agent.
Bluetooth.requestDevice() - Web APIs
the available options are: filters[]: an array of bluetoothscanfilters.
Bluetooth - Web APIs
WebAPIBluetooth
a bluetoothdevice representing the beacon would be available through navigator.bluetooth.referringdevice.
BluetoothRemoteGATTCharacteristic.readValue() - Web APIs
the bluetoothremotegattcharacteristic.readvalue() method returns a promise that resolves to a dataview holding a duplicate of the value property if it is available and supported.
BluetoothRemoteGATTCharacteristic - Web APIs
bluetoothremotegattcharacteristic.readvalue() returns a promise that resolves to an arraybuffer holding a duplicate of the value property if it is available and supported.
readValue() - Web APIs
the bluetoothremotegattdescriptor.readvalue() method returns a promise that resolves to an arraybuffer holding a duplicate of the value property if it is available and supported.
BluetoothRemoteGATTDescriptor - Web APIs
methods bluetoothremotegattdescriptor.readvalue() returns a promise that resolves to an arraybuffer holding a duplicate of the value property if it is available and supported.
BroadcastChannel() - Web APIs
note: this feature is available in web workers.
BroadcastChannel.close() - Web APIs
note: this feature is available in web workers.
BroadcastChannel.name - Web APIs
note: this feature is available in web workers.
BroadcastChannel.onmessage - Web APIs
note: this feature is available in web workers.
BroadcastChannel.onmessageerror - Web APIs
note: this feature is available in web workers.
BroadcastChannel.postMessage() - Web APIs
note: this feature is available in web workers.
Broadcast Channel API - Web APIs
note: this feature is available in web workers.
BudgetService - Web APIs
it is available in both document and worker environments.
CSS Font Loading API - Web APIs
it defines the fontfacesources.fonts property available to document and workerglobalscope.
Managing screen orientation - Web APIs
locking the screen orientation warning: this api is experimental and currently available on firefox os and firefox for android with a moz prefix, and for internet explorer on windows 8.1 and above with a ms prefix.
Using the CSS Typed Object Model - Web APIs
there are other types available: an <image> will return a cssimagevalue.
Cache.delete() - Web APIs
WebAPICachedelete
the available options are: ignoresearch: a boolean that specifies whether the matching process should ignore the query string in the url.
Cache.keys() - Web APIs
WebAPICachekeys
the available options are: ignoresearch: a boolean that specifies whether the matching process should ignore the query string in the url.
Cache.match() - Web APIs
WebAPICachematch
the available options are: ignoresearch: a boolean that specifies whether to ignore the query string in the url.
Cache.matchAll() - Web APIs
WebAPICachematchAll
the available options are: ignoresearch: a boolean that specifies whether the matching process should ignore the query string in the url.
Cache - Web APIs
WebAPICache
cache quota usage estimates are available via the storageestimate api.
CacheStorage.match() - Web APIs
the available options are: ignoresearch: a boolean that specifies whether the matching process should ignore the query string in the url.
CanvasRenderingContext2D.drawImage() - Web APIs
ns_error_not_available the image is not loaded yet.
CanvasRenderingContext2D.fillText() - Web APIs
however, if this value is provided, the user agent will adjust the kerning, select a more horizontally condensed font (if one is available or can be generated without loss of quality), or scale down to a smaller font size in order to fit the text in the specified width.
CanvasRenderingContext2D.strokeText() - Web APIs
however, if this value is provided, the user agent will adjust the kerning, select a more horizontally condensed font (if one is available or can be generated without loss of quality), or scale down to a smaller font size in order to fit the text in the specified width.
CanvasRenderingContext2D - Web APIs
this method is available in multiple formats, providing a great deal of flexibility in its use.
Using images - Web APIs
var img = new image(); // create new img element img.src = 'data:image/gif;base64,r0lgodlhcwalaiaaaaaa3pn/zih5baeaaaealaaaaaalaasaaaiuha+hkcuo4lmnvindo7qyrixigbyaow=='; one advantage of data urls is that the resulting image is available immediately without another round trip to the server.
Using channel messaging - Web APIs
note: this feature is available in web workers.
Channel Messaging API - Web APIs
note: this feature is available in web workers.
Clipboard - Web APIs
WebAPIClipboard
readtext() requests text from the system clipboard; returns a promise which is resolved with a domstring containing the clipboard's text once it's available.
ClipboardItem - Web APIs
types read only returns an array of mime types available within the clipboarditem.
Comment - Web APIs
WebAPIComment
the comment interface represents textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view.
console.assert() - Web APIs
WebAPIConsoleassert
note: this feature is available in web workers.
console.count() - Web APIs
WebAPIConsolecount
note: this feature is available in web workers.
Console.countReset() - Web APIs
note: this feature is available in web workers.
console.debug() - Web APIs
WebAPIConsoledebug
note: this feature is available in web workers.
Console.dir() - Web APIs
WebAPIConsoledir
note: this feature is available in web workers.
Console.error() - Web APIs
WebAPIConsoleerror
note: this feature is available in web workers.
Console.group() - Web APIs
WebAPIConsolegroup
note: this feature is available in web workers.
Console.groupCollapsed() - Web APIs
note: this feature is available in web workers.
Console.groupEnd() - Web APIs
WebAPIConsolegroupEnd
note: this feature is available in web workers.
Console.info() - Web APIs
WebAPIConsoleinfo
note: this feature is available in web workers.
console.log() - Web APIs
WebAPIConsolelog
note: this feature is available in web workers.
Console.profile() - Web APIs
WebAPIConsoleprofile
note: this feature is available in web workers.
Console.profileEnd() - Web APIs
note: this feature is available in web workers.
Console.table() - Web APIs
WebAPIConsoletable
note: this feature is available in web workers.
Console.time() - Web APIs
WebAPIConsoletime
note: this feature is available in web workers.
Console.timeEnd() - Web APIs
WebAPIConsoletimeEnd
note: this feature is available in web workers.
Console.timeLog() - Web APIs
WebAPIConsoletimeLog
note: this feature is available in web workers.
Console.timeStamp() - Web APIs
WebAPIConsoletimeStamp
note: this feature is available in web workers.
console.trace() - Web APIs
WebAPIConsoletrace
note: this feature is available in web workers.
Console.warn() - Web APIs
WebAPIConsolewarn
note: this feature is available in web workers.note: in chrome and firefox, warnings have a small exclamation point icon next to them in the web console log.
Console API - Web APIs
find out about these at: google chrome devtools implementation safari devtools implementation usage is very simple — the console object — available via window.console, or workerglobalscope.console in workers; accessible using just console — contains many methods that you can call to perform rudimentary debugging tasks, generally focused around logging various values to the browser's web console.
Constraint validation API - Web APIs
reportvalidity() htmlformelement method checks the element's value against its constraints and also reports the validity status; if the value is invalid, it fires an invalid event at the element, returns false, and then reports the validity status to the user in whatever way the user agent has available.
ContentIndex - Web APIs
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.
ContentIndexEvent.id - Web APIs
the contentindexevent is only available to the {domxref('serviceworkerglobalscope','global scope')}} of a serviceworker.
CredentialsContainer.create() - Web APIs
the available options are: id: (required) usvstring inherited from credentialdata.
CredentialsContainer.get() - Web APIs
the available options are: providers: an array of domstring instances of identity providers to search for.
Crypto.getRandomValues() - Web APIs
examples /* assuming that window.crypto.getrandomvalues is available */ var array = new uint32array(10); window.crypto.getrandomvalues(array); console.log("your lucky numbers:"); for (var i = 0; i < array.length; i++) { console.log(array[i]); } specification specification status comment web cryptography api recommendation initial definition ...
CustomElementRegistry - Web APIs
extcontent = count; // append it to the shadow root shadow.appendchild(text); // update count when element content changes setinterval(function() { var count = 'words: ' + countwords(wcparent); text.textcontent = count; }, 200) } } // define the new element customelements.define('word-count', wordcount, { extends: 'p' }); note: the customelementregistry is available through the window.customelements property.
CustomEvent() - Web APIs
note: this feature is available in web workers.
CustomEvent.detail - Web APIs
note: this feature is available in web workers.
CustomEvent - Web APIs
note: this feature is available in web workers.
DOMHighResTimeStamp - Web APIs
this method is available in both window and worker contexts.
DOMMatrix - Web APIs
WebAPIDOMMatrix
this interface should be available inside web workers, though some implementations don't allow it yet.
DOMMatrixReadOnly - Web APIs
this interface should be available inside web workers, though some implementations doesn't allow it yet.
DOMPointReadOnly - Web APIs
note: this feature is available in web workers.
DataTransfer.clearData() - Web APIs
s draggable.removeeventlistener('dragstart', dragstarthandler); draggable.removeeventlistener('dragend', dragendhandler); dropable.removeeventlistener('dragover', dragoverhandler); dropable.removeeventlistener('dragleave', dragleavehandler); dropable.removeeventlistener('drop', drophandler); } } function dragoverhandler (event) { status.innerhtml = 'drop available'; event.preventdefault(); } function dragleavehandler (event) { status.innerhtml = 'drag in process (drop was available)'; event.preventdefault(); } function drophandler (event) { dropped = true; status.innerhtml = 'drop done'; event.preventdefault(); // get data linked to event format « text » var _data = event.datatransfer.getdata('text/plain'); ...
DedicatedWorkerGlobalScope.onmessageerror - Web APIs
note: this feature is available in web workers.
DedicatedWorkerGlobalScope.postMessage() - Web APIs
if the ownership of an object is transferred, it becomes unusable (neutered) in the context it was sent from and it becomes available only to the main thread it was sent to.
DeprecationReportBody - Web APIs
this typically matches the message a browser will display in its devtools console when a deprecated feature is used, if one is available.
DeviceMotionEvent.accelerationIncludingGravity - Web APIs
this value is not typically as useful as devicemotionevent.acceleration, but may be the only value available on devices that aren't able of removing gravity from the acceleration data, such as on devices that don't have a gyroscope.
Device Memory API - Web APIs
capabilities of the client devices largely depend on the amount of available ram.
DisplayMediaStreamConstraints - Web APIs
processing information is specified using mediatrackconstraints objects providing options which are applied to the track after the media data is received but before it is made available on the mediastream.
Document.cookie - Web APIs
WebAPIDocumentcookie
notes starting with firefox 2, a better mechanism for client-side storage is available - whatwg dom storage.
Document.createElementNS() - Web APIs
custom elements are an experimental feature only available in some browsers.
Document.createNSResolver() - Web APIs
this adapter works like the dom level 3 method lookupnamespaceuri on nodes in resolving the namespaceuri from a given prefix using the current information available in the node's hierarchy at the time lookupnamespaceuri is called.
Document.defaultView - Web APIs
in browsers, document.defaultview returns the window object associated with a document, or null if none is available.
Document.getElementById() - Web APIs
unlike some other element-lookup methods such as document.queryselector() and document.queryselectorall(), getelementbyid() is only available as a method of the global document object, and not available as a method on all element objects in the dom.
Document.queryCommandEnabled() - Web APIs
the 'paste' command return false not only if the feature is unavailable, but also if the script calling it has insufficient privileges to perform the action.
Document.queryCommandSupported() - Web APIs
notes the 'paste' command return false not only if the feature is unavailable, but also if the script calling it has insufficient privileges to perform the action [1] example var flg = document.querycommandsupported("selectall"); if(flg) { // ...do something } specifications specification status comment execcommand ...
Document: touchcancel event - Web APIs
bubbles yes cancelable no interface touchevent event handler property ontouchcancel examples code samples for those events are available on the dedicated page: touch events.
Document: touchend event - Web APIs
bubbles yes cancelable yes interface touchevent event handler property ontouchend examples code samples for those events are available on the dedicated page: touch events.
Document: touchmove event - Web APIs
bubbles yes cancelable yes interface touchevent event handler property ontouchmove examples code samples for those events are available on the dedicated page: touch events.
Document: touchstart event - Web APIs
bubbles yes cancelable yes interface touchevent event handler property ontouchstart examples code samples for those events are available on the dedicated page: touch events.
Document.write() - Web APIs
WebAPIDocumentwrite
more information is available in the w3c xhtml faq.
Document.writeln() - Web APIs
WebAPIDocumentwriteln
more information is available in the w3c xhtml faq.
DocumentOrShadowRoot.elementFromPoint() - Web APIs
the elementfrompoint() method—available on both the document and shadowroot objects—returns the topmost element at the specified coordinates (relative to the viewport).
DocumentOrShadowRoot.nodeFromPoint() - Web APIs
currently this method is only implemented in firefox, and only available to chrome code.
DocumentOrShadowRoot.nodesFromPoint() - Web APIs
currently this method is only implemented in firefox, and only available to chrome code.
Events and the DOM - Web APIs
for cross-browser compatibility, use one of the many javascript libraries available.
Traversing an HTML table with JavaScript and DOM Interfaces - Web APIs
example: setting the background color of a paragraph getelementsbytagname(tagnamevalue) is a method available in any dom element or the root document element.
Using the W3C DOM Level 1 Core - Web APIs
david baron <dbaron at dbaron dot org> copyright information: © 1998-2005 by individual mozilla.org contributors; content available under a creative commons license ...
How whitespace is handled by HTML, CSS, and in the DOM - Web APIs
blocks occupy the full width available and are stacked on top of each other, which means that we end up with a layout composed of this list of blocks: <block>⏎⇥</block> <block>◦◦hello◦◦</block> <block>⏎◦◦◦</block> <block>◦◦world!◦◦</block> <block>◦◦⏎</block> this is then simplified further by applying the processing rules for whitespace in inline formatting contexts to these blocks: <block...
EffectTiming.easing - Web APIs
available values include: linear a constant rate of change, neither accelerating nor deccelerating.
Element: DOMMouseScroll event - Web APIs
use the standardized wheel event if available.
Element.attachShadow() - Web APIs
when a non-focusable part of the shadow dom is clicked, the first focusable part is given focus, and the shadow host is given any available :focus styling.
Element.currentStyle - Web APIs
it is available in old versions of microsoft internet explorer.
Element: fullscreenchange event - Web APIs
if (document.fullscreenelement) { console.log(`element: ${document.fullscreenelement.id} entered fullscreen mode.`); } else { console.log('leaving full-screen mode.'); } }); document.getelementbyid('toggle-fullscreen').addeventlistener('click', (event) => { if (document.fullscreenelement) { // exitfullscreen is only available on the document object.
Element.openOrClosedShadowRoot - Web APIs
note: this api is available only to webextensions.
Element.runtimeStyle - Web APIs
it is available in old versions of microsoft internet explorer.
Element.scrollTop - Web APIs
WebAPIElementscrollTop
if set to a value greater than the maximum available for the element, scrolltop settles itself to the maximum value.
Element: select event - Web APIs
bubbles yes cancelable no interface uievent if generated from a user interface, event otherwise event handler property onselect the event is not available for all elements in all languages.
Element: touchcancel event - Web APIs
bubbles yes cancelable no interface touchevent event handler property ontouchcancel examples code samples for those events are available on the dedicated page: touch events.
Element: touchend event - Web APIs
bubbles yes cancelable yes interface touchevent event handler property ontouchend examples code samples for those events are available on the dedicated page: touch events.
Element: touchmove event - Web APIs
bubbles yes cancelable yes interface touchevent event handler property ontouchmove examples code samples for those events are available on the dedicated page: touch events.
Element: touchstart event - Web APIs
bubbles yes cancelable yes interface touchevent event handler property ontouchstart examples code samples for those events are available on the dedicated page: touch events.
Comparison of Event Targets - Web APIs
use of explicitoriginaltarget and originaltarget todo: only available in a mozilla-based browser?
Event.currentTarget - Web APIs
s an event handler: this === e.currenttarget } var ps = document.getelementsbytagname('p'); for(var i = 0; i < ps.length; i++){ // console: print the clicked <p> element ps[i].addeventlistener('click', hide, false); } // console: print <body> document.body.addeventlistener('click', hide, false); // click around and make paragraphs disappear note: the value of event.currenttarget is only available while the event is being handled.
Event.msConvertURL() - Web APIs
if (!filelist) { console.log("filelist is null."); return; } for (var i = 0; i < filelist.length; i++) { var file = filelist[i]; var url = url.createobjecturl(file); if (evt.converturl) { // use standard if available.
Event.type - Web APIs
WebAPIEventtype
for a list of available event types, see the event reference.
File.File() - Web APIs
WebAPIFileFile
available options are as follows: type: a domstring representing the mime type of the content that will be put into the file.
File - Web APIs
WebAPIFile
file implements blob, so it also has the following properties available to it: file.prototype.size read only returns the size of the file in bytes.
FileReader.onload - Web APIs
WebAPIFileReaderonload
the filereader.onload property contains an event handler executed when the load event is fired, when content read with readasarraybuffer, readasbinarystring, readasdataurl or readastext is available.
FileReader.readAsArrayBuffer() - Web APIs
newer api available the blob.arraybuffer() method is a newer promise-based api to read a file as an array buffer.
FileReaderSync.readAsArrayBuffer() - Web APIs
this interface is only available in workers as it enables synchronous i/o that could potentially block.
FileReaderSync.readAsBinaryString() - Web APIs
this interface is only available in workers as it enables synchronous i/o that could potentially block.
FileReaderSync.readAsDataURL() - Web APIs
this interface is only available in workers as it enables synchronous i/o that could potentially block.
FileReaderSync.readAsText() - Web APIs
this interface is only available in workers as it enables synchronous i/o that could potentially block.
FileSystem - Web APIs
it's not available for use in file or folder picker panels (such as when you use an <input> element with the htmlinputelement.webkitdirectory attribute.firefox full support 50ie no support noopera full support 15prefixed full support 15p...
FileSystemEntry.toURL() - Web APIs
example if you have a filesystemfileentry corresponding to an image file in a file system available to your web site or app, you can call tourl() to get its url for use in html.
Introduction to the File and Directory Entries API - Web APIs
temporary storage transient storage is available to any web app.
FontFace.featureSettings - Web APIs
the featuresettings property of the fontface interface retrieves or sets infrequently used font features that are not available from a font's variant properties.
FontFace - Web APIs
WebAPIFontFace
fontface.featuresettings a cssomstring that retrieves or sets infrequently used font features that are not available from a font's variant properties.
Force Touch events - Web APIs
event properties the following property is known to be available on the webkitmouseforcewillbegin, mousedown, webkitmouseforcechanged, webkitmouseforcedown, webkitmouseforceup, mousemove, and mouseup event objects: mouseevent.webkitforce read only the amount of pressure currently being applied to the trackpad/touchscreen constants these constants are useful for determining the relative intensity of the pressure indicated by mouseevent.webkitforce: ...
FormData() - Web APIs
WebAPIFormDataFormData
note: this feature is available in web workers.
Using FormData Objects - Web APIs
em.addeventlistener('formdata', (e) => { console.log('formdata fired'); // get the form data from the event object let data = e.formdata; for (var value of data.values()) { console.log(value); } // submit the data via xhr let request = new xmlhttprequest(); request.open("post", "/formhandler"); request.send(data); }); note: the formdata event and formdataevent object are available in chrome from version 77 (and other equivalent chromiums), and firefox 72 (first available behind the dom.formdata.event.enabled pref in firefox 71).
FormData.append() - Web APIs
WebAPIFormDataappend
note: this method is available in web workers.
FormData.delete() - Web APIs
WebAPIFormDatadelete
note: this method is available in web workers.
FormData.entries() - Web APIs
WebAPIFormDataentries
note: this method is available in web workers.
FormData.get() - Web APIs
WebAPIFormDataget
note: this method is available in web workers.
FormData.getAll() - Web APIs
WebAPIFormDatagetAll
note: this method is available in web workers.
FormData.has() - Web APIs
WebAPIFormDatahas
note: this method is available in web workers.
FormData.keys() - Web APIs
WebAPIFormDatakeys
note: this method is available in web workers.
FormData.set() - Web APIs
WebAPIFormDataset
note: this method is available in web workers.
FormData.values() - Web APIs
WebAPIFormDatavalues
note: this method is available in web workers.
FormData - Web APIs
WebAPIFormData
note: this feature is available in web workers.
Frame Timing API - Web APIs
the observer (callback) will be notified when new "frame" events are added to the browser's performance timeline and the frame's duration (length of time) will be available.
Gamepad.hapticActuators - Web APIs
the hapticactuators read-only property of the gamepad interface returns an array containing gamepadhapticactuator objects, each of which represents haptic feedback hardware available on the controller.
Gamepad - Web APIs
WebAPIGamepad
gamepad.hapticactuators read only an array containing gamepadhapticactuator objects, each of which represents haptic feedback hardware available on the controller.
GamepadButton - Web APIs
the gamepadbutton interface defines an individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device.
GamepadHapticActuator.type - Web APIs
syntax var myactuatortype = gamepadhapticactuatorinstance.type; value an enum of type gamepadhapticactuatortype; currently available types are: vibration — vibration hardware, which creates a rumbling effect.
GamepadHapticActuator - Web APIs
the gamepadhapticactuator interface of the gamepad api represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware.
Gamepad API - Web APIs
experimental gamepad extensions gamepadhapticactuator represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware.
GeolocationPositionError.code - Web APIs
2 position_unavailable the acquisition of the geolocation failed because one or several internal sources of position returned an internal error.
GeolocationPositionError - Web APIs
2 position_unavailable the acquisition of the geolocation failed because at least one internal source of position returned an internal error.
GlobalEventHandlers.onabort - Web APIs
for ie, onabort is only available with <img> tags.
GlobalEventHandlers.onblur - Web APIs
it's available on element, document, and window.
GlobalEventHandlers.onformdata - Web APIs
onformdata is available on htmlformelement.
GlobalEventHandlers.onkeypress - Web APIs
*/ alert("yesss!!!"); location.assign("https://developer.mozilla.org/"); } return true; }; })(); note: a more complete framework for capturing the typing of hidden words is available on github.
GlobalEventHandlers.onmousemove - Web APIs
e.textcontent = event.target.dataset.tooltip; node.removeattribute('hidden'); }; this.hide = function() { node.setattribute('hidden', ''); }; })(); const links = document.queryselectorall('a'); links.foreach(link => { link.onmouseover = tooltip.show; link.onmousemove = tooltip.follow; link.onmouseout = tooltip.hide; }); result draggable elements we also have an example available showing the use of the onmousemove event handler with draggable objects — view the example in action.
HTMLAreaElement - Web APIs
the htmlareaelement interface provides special properties and methods (beyond those of the regular object htmlelement interface it also has available to it by inheritance) for manipulating the layout and presentation of <area> elements.
HTMLBaseFontElement - Web APIs
the htmlbasefontelement interface provides special properties (beyond the regular htmlelement interface it also has available to it by inheritance) for manipulating <basefont> elements.
HTMLButtonElement - Web APIs
the htmlbuttonelement interface provides properties and methods (beyond the regular htmlelement interface it also has available to it by inheritance) for manipulating <button> elements.
HTMLCanvasElement - Web APIs
this context is only available on browsers that implement webgl.
HTMLDListElement - Web APIs
the htmldlistelement interface provides special properties (beyond those of the regular htmlelement interface it also has available to it by inheritance) for manipulating definition list (<dl>) elements.
HTMLDataElement - Web APIs
the htmldataelement interface provides special properties (beyond the regular htmlelement interface it also has available to it by inheritance) for manipulating <data> elements.
HTMLDataListElement - Web APIs
the htmldatalistelement interface provides special properties (beyond the htmlelement object interface it also has available to it by inheritance) to manipulate <datalist> elements and their content.
HTMLDetailsElement - Web APIs
the htmldetailselement interface provides special properties (beyond the regular htmlelement interface it also has available to it by inheritance) for manipulating <details> elements.
HTMLDialogElement.open - Web APIs
the open property of the htmldialogelement interface is a boolean reflecting the open html attribute, indicating whether the dialog is available for interaction.
HTMLDivElement - Web APIs
the htmldivelement interface provides special properties (beyond the regular htmlelement interface it also has available to it by inheritance) for manipulating <div> elements.
HTMLEmbedElement - Web APIs
the htmlembedelement interface provides special properties (beyond the regular htmlelement interface it also has available to it by inheritance) for manipulating <embed> elements.
HTMLFieldSetElement - Web APIs
the htmlfieldsetelement interface provides special properties and methods (beyond the regular htmlelement interface it also has available to it by inheritance) for manipulating the layout and presentation of <fieldset> elements.
HTMLHRElement - Web APIs
the htmlhrelement interface provides special properties (beyond those of the htmlelement interface it also has available to it by inheritance) for manipulating <hr> elements.
HTMLHyperlinkElementUtils.origin - Web APIs
note: this feature is available in web workers.
HTMLIFrameElement - Web APIs
the htmliframeelement interface provides special properties and methods (beyond those of the htmlelement interface it also has available to it by inheritance) for manipulating the layout and presentation of inline frame elements.
HTMLImageElement.complete - Web APIs
the image element has previously determined that the image is fully available and ready for use.
HTMLImageElement.decode() - Web APIs
at that time, you can then replace the low-resolution image with the full-resolution one that's now available.
HTMLImageElement.longDesc - Web APIs
syntax descurl = htmlimageelement.longdesc; htmlimageelement.longdesc = descurl; value a domstring which may be either an empty string (indicating that no long description is available) or the url of a file containing a long form description of the image's contents.
HTMLImageElement.sizes - Web APIs
three versions of the image are also available, with their widths specified.
HTMLInputElement.mozGetFileNameArray() - Web APIs
note: this method is gecko-specific and is not available in other browsers.
HTMLInputElement.mozSetFileNameArray() - Web APIs
note: this method is gecko-specific and is not available in other browsers.
HTMLInputElement.multiple - Web APIs
example // fileinput is a <input type=file multiple> let fileinput = document.getelementbyid('myfileinput'); if (fileinput.multiple == true) { for (let i = 0; i < fileinput.files.length; i++) { // loop fileinput.files } // only one file available } else { let file = fileinput.files.item(0); } ...
HTMLIsIndexElement - Web APIs
the htmlisindexelement interface provides special properties (beyond the regular htmlelement interface it also has available to it by inheritance) for manipulating <isindex> elements.
HTMLKeygenElement - Web APIs
the <keygen> elements expose the htmlkeygenelement interface, which provides special properties and methods (beyond the regular element object interface they also have available to them by inheritance) for manipulating the layout and presentation of keygen elements.
HTMLLIElement - Web APIs
the htmllielement interface exposes specific properties and methods (beyond those defined by regular htmlelement interface it also has available to it by inheritance) for manipulating list elements.
HTMLMapElement - Web APIs
the htmlmapelement interface provides special properties and methods (beyond those of the regular object htmlelement interface it also has available to it by inheritance) for manipulating the layout and presentation of map elements.
HTMLMediaElement.autoplay - Web APIs
the htmlmediaelement.autoplay property reflects the autoplay html attribute, indicating whether playback should automatically begin as soon as enough media is available to do so without interruption.
HTMLMediaElement.buffered - Web APIs
note: this feature is not available in web workers.
HTMLMediaElement.currentTime - Web APIs
setting currenttime to a new value seeks the media to the given time, if the media is available.
HTMLMediaElement.duration - Web APIs
if no media data is available, the value nan is returned.
HTMLMenuElement - Web APIs
the htmlmenuelement interface provides special properties (beyond those defined on the regular htmlelement interface it also has available to it by inheritance) for manipulating <menu> elements.
HTMLMenuItemElement - Web APIs
the htmlmenuitemelement interface provides special properties (beyond those defined on the regular htmlelement interface it also has available to it by inheritance) for manipulating <menuitem> elements.
HTMLMeterElement - Web APIs
the html <meter> elements expose the htmlmeterelement interface, which provides special properties and methods (beyond the htmlelement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <meter> elements.
HTMLModElement - Web APIs
the htmlmodelement interface provides special properties (beyond the regular methods and properties available through the htmlelement interface they also have available to them by inheritance) for manipulating modification elements, that is <del> and <ins>.
HTMLOListElement - Web APIs
the htmlolistelement interface provides special properties (beyond those defined on the regular htmlelement interface it also has available to it by inheritance) for manipulating ordered list elements.
HTMLObjectElement - Web APIs
the htmlobjectelement interface provides special properties and methods (beyond those on the htmlelement interface it also has available to it by inheritance) for manipulating the layout and presentation of <object> element, representing external resources.
HTMLOptGroupElement - Web APIs
the htmloptgroupelement interface provides special properties and methods (beyond the regular htmlelement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <optgroup> elements.
HTMLOptionElement - Web APIs
htmloptionelement.disabled is a boolean representing the value of the disabled html attribute, which indicates that the option is unavailable to be selected.
HTMLOrForeignElement.dataset - Web APIs
this access is available both in html and within the dom.
HTMLPreElement - Web APIs
the htmlpreelement interface exposes specific properties and methods (beyond those of the htmlelement interface it also has available to it by inheritance) for manipulating a block of preformatted text (<pre>).
HTMLProgressElement - Web APIs
the htmlprogresselement interface provides special properties and methods (beyond the regular htmlelement interface it also has available to it by inheritance) for manipulating the layout and presentation of <progress> elements.
HTMLQuoteElement - Web APIs
the htmlquoteelement interface provides special properties and methods (beyond the regular htmlelement interface it also has available to it by inheritance) for manipulating quoting elements, like <blockquote> and <q>, but not the <cite> element.
HTMLScriptElement.referrerPolicy - Web APIs
if a higher-level policy is not available, the empty string is treated as being equivalent to no-referrer-when-downgrade.
HTMLSelectElement.form - Web APIs
syntax edit aform = aselectelement.form.selectname; example html <form action="http://www.google.com/search" method="get"> <label>google: <input type="search" name="q"></label> <input type="submit" value="search..."> </form> javascript a property available on all form elements, "type" returns the type of the calling form element.
HTMLSlotElement.assignedElements() - Web APIs
the available options are: flatten: a boolean indicating whether to return the assigned elements of any available child <slot> elements (true) or not (false).
HTMLSlotElement.assignedNodes() - Web APIs
the available options are: flatten: a boolean indicating whether to return the assigned nodes of any available child <slot> elements (true) or not (false).
HTMLSourceElement - Web APIs
the htmlsourceelement interface provides special properties (beyond the regular htmlelement object interface it also has available to it by inheritance) for manipulating <source> elements.
HTMLTableCaptionElement - Web APIs
the htmltablecaptionelement interface special properties (beyond the regular htmlelement interface it also has available to it by inheritance) for manipulating table caption elements.
HTMLTableCellElement - Web APIs
the htmltablecellelement interface provides special properties and methods (beyond the regular htmlelement interface it also has available to it by inheritance) for manipulating the layout and presentation of table cells, either header or data cells, in an html document.
HTMLTableColElement - Web APIs
the htmltablecolelement interface provides special properties (beyond the htmlelement interface it also has available to it inheritance) for manipulating single or grouped table column elements.
HTMLTableElement.bgColor - Web APIs
also available on dom tbody, row and cell objects.
HTMLTableElement.deleteRow() - Web APIs
return value no return value errors thrown if the number of the row to delete, specified by the parameter, is greater or equal to the number of available rows, or if it is negative and not equal to the special index -1, representing the last row of the table, the exception index_size_err is thrown.
HTMLTableElement - Web APIs
the htmltableelement interface provides special properties and methods (beyond the regular htmlelement object interface it also has available to it by inheritance) for manipulating the layout and presentation of tables in an html document.
HTMLTableRowElement - Web APIs
the htmltablerowelement interface provides special properties and methods (beyond the htmlelement interface it also has available to it by inheritance) for manipulating the layout and presentation of rows in an html table.
HTMLTableSectionElement - Web APIs
the htmltablesectionelement interface provides special properties and methods (beyond the htmlelement interface it also has available to it by inheritance) for manipulating the layout and presentation of sections, that is headers, footers and bodies, in an html table.
HTMLTextAreaElement - Web APIs
disabled boolean: returns / sets the element's disabled attribute, indicating that the control is not available for interaction.
HTMLTimeElement - Web APIs
the htmltimeelement interface provides special properties (beyond the regular htmlelement interface it also has available to it by inheritance) for manipulating <time> elements.
HTMLUListElement - Web APIs
the htmlulistelement interface provides special properties (beyond those defined on the regular htmlelement interface it also has available to it by inheritance) for manipulating unordered list elements.
In depth: Microtasks and the JavaScript runtime environment - Web APIs
it was designed in an era in which this was a positive choice; there were few multi-processor computers available to the general public, and the expected amount of code that would be handled by javascript was relatively low at that time.
Drag Operations - Web APIs
(naturally, though, you would likely know that the right type of data was available, as it was previously checked during a dragover event.) in the example here, once the data has been retrieved, we insert the string as the textual content of the target.
File drag and drop - Web APIs
the full source code is available in mdn's drag-and-drop repository (pull requests and/or issues are welcome).
Recommended Drag Types - Web APIs
as some contexts may only include some of these types, it is important to check which type is made available when receiving dropped images.
Headers.entries() - Web APIs
WebAPIHeadersentries
note: this method is available in web workers.
Headers.keys() - Web APIs
WebAPIHeaderskeys
note: this method is available in web workers.
Headers.values() - Web APIs
WebAPIHeadersvalues
note: this method is available in web workers.
Headers - Web APIs
WebAPIHeaders
note: you can find more out about the available headers by reading our http headers reference.
Ajax navigation example - Web APIs
425: "unassigned", 426: "upgrade required", 427: "unassigned", 428: "precondition required", 429: "too many requests", 430: "unassigned", 431: "request header fields too large", 500: "internal server error", 501: "not implemented", 502: "bad gateway", 503: "service unavailable", 504: "gateway timeout", 505: "http version not supported", 506: "variant also negotiates (experimental)", 507: "insufficient storage", 508: "loop detected", 509: "unassigned", 510: "not extended", 511: "network authentication required" }; var oreq, bisloading = false, bupdateurl...
IDBCursor.advance() - Web APIs
WebAPIIDBCursoradvance
note: this feature is available in web workers.
IDBCursor.continue() - Web APIs
note: this feature is available in web workers.
IDBCursor.continuePrimaryKey() - Web APIs
note: this feature is available in web workers.
IDBCursor.delete() - Web APIs
WebAPIIDBCursordelete
note: this feature is available in web workers.
IDBCursor.direction - Web APIs
note: this feature is available in web workers.
IDBCursor.key - Web APIs
WebAPIIDBCursorkey
note: this feature is available in web workers.
IDBCursor.primaryKey - Web APIs
note: this feature is available in web workers.
IDBCursor.source - Web APIs
WebAPIIDBCursorsource
note: this feature is available in web workers.
IDBCursor.update() - Web APIs
WebAPIIDBCursorupdate
note: this feature is available in web workers.
IDBCursorWithValue.value - Web APIs
note: this feature is available in web workers.
IDBDatabase.close() - Web APIs
WebAPIIDBDatabaseclose
note: this feature is available in web workers.
IDBDatabase.createObjectStore() - Web APIs
note: this feature is available in web workers.
IDBDatabase.deleteObjectStore() - Web APIs
note: this feature is available in web workers.
IDBDatabase.name - Web APIs
WebAPIIDBDatabasename
note: this feature is available in web workers.
IDBDatabase.objectStoreNames - Web APIs
note: this feature is available in web workers.
IDBDatabase.onabort - Web APIs
note: this feature is available in web workers.
IDBDatabase.onclose - Web APIs
note: this feature is available in web workers.
IDBDatabase.onerror - Web APIs
note: this feature is available in web workers.
IDBDatabase.onversionchange - Web APIs
note: this feature is available in web workers.
IDBDatabase.transaction() - Web APIs
note: this feature is available in web workers.
IDBDatabase.version - Web APIs
note: this feature is available in web workers.
IDBFactory.cmp() - Web APIs
WebAPIIDBFactorycmp
note: this feature is available in web workers.
IDBFactory.deleteDatabase() - Web APIs
note: this feature is available in web workers.
IDBIndex.count() - Web APIs
WebAPIIDBIndexcount
note: this feature is available in web workers.
IDBIndex.get() - Web APIs
WebAPIIDBIndexget
note: this feature is available in web workers.
IDBIndex.getKey() - Web APIs
WebAPIIDBIndexgetKey
note: this feature is available in web workers.
IDBIndex.keyPath - Web APIs
WebAPIIDBIndexkeyPath
note: this feature is available in web workers.
IDBIndex.multiEntry - Web APIs
note: this feature is available in web workers.
IDBIndex.name - Web APIs
WebAPIIDBIndexname
note: this feature is available in web workers.
IDBIndex.objectStore - Web APIs
note: this feature is available in web workers.
IDBIndex.openCursor() - Web APIs
note: this feature is available in web workers.
IDBIndex.unique - Web APIs
WebAPIIDBIndexunique
note: this feature is available in web workers.
IDBKeyRange.bound() - Web APIs
WebAPIIDBKeyRangebound
note: this feature is available in web workers.
IDBKeyRange.includes() - Web APIs
note: this feature is available in web workers.
IDBKeyRange.lower - Web APIs
WebAPIIDBKeyRangelower
note: this feature is available in web workers.
IDBKeyRange.lowerBound() - Web APIs
note: this feature is available in web workers.
IDBKeyRange.lowerOpen - Web APIs
note: this feature is available in web workers.
IDBKeyRange.only() - Web APIs
WebAPIIDBKeyRangeonly
note: this feature is available in web workers.
IDBKeyRange.upper - Web APIs
WebAPIIDBKeyRangeupper
note: this feature is available in web workers.
IDBKeyRange.upperBound() - Web APIs
note: this feature is available in web workers.
IDBKeyRange.upperOpen - Web APIs
note: this feature is available in web workers.
IDBObjectStore.add() - Web APIs
note: this feature is available in web workers.
IDBObjectStore.autoIncrement - Web APIs
note: this feature is available in web workers.
IDBObjectStore.clear() - Web APIs
note: this feature is available in web workers.
IDBObjectStore.count() - Web APIs
note: this feature is available in web workers.
IDBObjectStore.createIndex() - Web APIs
note: this feature is available in web workers.
IDBObjectStore.delete() - Web APIs
note: this feature is available in web workers.
IDBObjectStore.deleteIndex() - Web APIs
note: this feature is available in web workers.
IDBObjectStore.get() - Web APIs
note: this feature is available in web workers.
IDBObjectStore.getKey() - Web APIs
note: this feature is available in web workers.
IDBObjectStore.index() - Web APIs
note: this feature is available in web workers.
IDBObjectStore.indexNames - Web APIs
note: this feature is available in web workers.
IDBObjectStore.keyPath - Web APIs
note: this feature is available in web workers.
IDBObjectStore.name - Web APIs
note: this feature is available in web workers.
IDBObjectStore.openCursor() - Web APIs
note: this feature is available in web workers.
IDBObjectStore.transaction - Web APIs
note: this feature is available in web workers.
IDBOpenDBRequest.onblocked - Web APIs
note: this feature is available in web workers.
IDBOpenDBRequest.onupgradeneeded - Web APIs
note: this feature is available in web workers.
IDBTransaction.abort() - Web APIs
note: this feature is available in web workers.
IDBTransaction.commit() - Web APIs
note: this feature is available in web workers.
IDBTransaction.db - Web APIs
WebAPIIDBTransactiondb
note: this feature is available in web workers.
IDBTransaction.error - Web APIs
note: this feature is available in web workers.
IDBTransaction.mode - Web APIs
note: this feature is available in web workers.
IDBTransaction.objectStore() - Web APIs
note: this feature is available in web workers.
IDBTransaction.onabort - Web APIs
note: this feature is available in web workers.
IDBTransaction.oncomplete - Web APIs
note: this feature is available in web workers.
IDBTransaction.onerror - Web APIs
note: this feature is available in web workers.
IDBVersionChangeEvent.newVersion - Web APIs
note: this feature is available in web workers.
IDBVersionChangeEvent.oldVersion - Web APIs
note: this feature is available in web workers.
IDBVersionChangeEvent - Web APIs
note: this feature is available in web workers.
IIRFilterNode() - Web APIs
the filter needs these values to work and with the vast range of filters available, there is no default.
IIRFilterNode - Web APIs
it includes some different coefficient values for different lowpass frequencies — you can change the value of the filternumber constant to a value between 0 and 3 to check out the different available effects.
IdleDeadline.didTimeout - Web APIs
idle callbacks support the concept of a timeout in order to ensure that whatever task they're meant to perform actually happens, even if the user agent never has enough idle time available.
ImageBitmapRenderingContext - Web APIs
this interface is available in both the window and the worker context.
ImageCapture.getPhotoCapabilities() - Web APIs
the getphotocapabilities() method of the imagecapture interface returns a promise that resolves with a photocapabilities object containing the ranges of available configuration options.
ImageCapture.getPhotoSettings() - Web APIs
redeyereduction: a boolean indicating whether the red-eye reduction should be used if it is available.
ImageCapture - Web APIs
imagecapture.getphotocapabilities() returns a promise that resolves with a photocapabilities object containing the ranges of available configuration options.
ImageData - Web APIs
WebAPIImageData
note that this is the most common way to create such an object in workers as createimagedata() is not available there.
Basic concepts - Web APIs
indexeddb uses dom events to notify you when results are available.
IndexedDB API - Web APIs
note: this feature is available in web workers.
InputEvent.inputType - Web APIs
for a complete list of the available input types, see the attributes section of the input events level 1 spec.
InstallEvent.InstallEvent() - Web APIs
available options are as follows: activeworker: the serviceworker that is currently actively controlling the page.
getVersion - Web APIs
the majority of this api is now deprecated and as of gecko 1.9 no longer available.
InterventionReportBody - Web APIs
this typically matches the message a browser will display in its devtools console when an intervention is imposed, if one is available.
KeyboardEvent.initKeyboardEvent() - Web APIs
web applications should use constructor instead of this if it's available.
Keyboard API - Web APIs
blue keys are present on all standard keyboards while green keys are only available on some keyboards.
Location: origin - Web APIs
WebAPILocationorigin
note: this feature is available in web workers.
MIDIConnectionEvent - Web APIs
this occurs any time a new port becomes available, or when a previously available port becomes unavailable.
MIDIInputMap - Web APIs
the midiinputmap read-only interface of the web midi api provides a map-like interface to the currently available midi input ports.
MIDIOutputMap - Web APIs
the midioutputmap read-only interface of the web midi api provides a map-like interface to the currently available midi output ports.
MediaCapabilitiesInfo - Web APIs
the mediacapabilitiesinfo interface of the media capabilities api is made available when the promise returned by the mediacapabilities.encodinginfo() or mediacapabilities.decodinginfo() methods of the mediacapabilities interface fulfills, providing information as to whether the media type is supported, and whether encoding or decoding such media would be smooth and power efficient.
MediaDeviceInfo.label - Web APIs
only available during active mediastream use, or when persistent permissions have been granted.
MediaError.code - Web APIs
WebAPIMediaErrorcode
media_err_network 2 some kind of network error occurred which prevented the media from being successfully fetched, despite having previously been available.
MediaError.message - Web APIs
if no specific details are available, this string is empty.
MediaQueryList - Web APIs
also available using the onchange event handler property.
MediaQueryListEvent.MediaQueryListEvent() - Web APIs
the available properties are: media: a domstring representing a serialized media query.
MediaQueryListEvent - Web APIs
the mediaquerylistevent object stores information on the changes that have happened to a mediaquerylist object — instances are available as the event object on a function referenced by a mediaquerylist.onchange property or mediaquerylist.addlistener() call.
MediaRecorder.pause() - Web APIs
stop gathering data into the current blob, but keep it available so that recording can be resumed later on.
MediaRecorderErrorEvent.error - Web APIs
function recordstream(stream) { let recorder = null; let bufferlist = []; try { recorder = new mediarecorder(stream); } catch(err) { /* exception while trying to create the recorder; handle that */ } recorder.ondataavailable = function(event) { bufferlist.push(event.data); }; recorder.onerror = function(event) { let error = event.error; }; recorder.start(100); /* 100ms time slices per buffer */ return recorder; } specifications specification status comment mediastream recordingthe definition of 'mediarecordererrorevent.error' in that specification.
MediaSession.playbackState - Web APIs
the value may be one of the following: none the browsing context doesn't currently know the current playback state, or the playback state is not available at this time.
MediaSessionActionDetails.action - Web APIs
this action may or may not be available, depending on the platform and user agent, or may be disabled due to subscription level or other circumstances.
active - Web APIs
when that stream becomes available (that is, when the returned promise is fulfilled, a button on the page is updated based on whether or not the stream is currently active.
MediaStreamTrack: ended event - Web APIs
the ended event of the mediastreamtrack interface is fired when playback or streaming has stopped because the end of the media was reached or because no further data is available.
MediaStreamTrack: mute event - Web APIs
you can also use the onmute event handler property to set up a handler for this event; similarly, the onunmute event handler is available for setting up a handler for the unmute event.
MediaStreamTrack: unmute event - Web APIs
you can also use the onunmute event handler property to set up a handler for this event; similarly, the onmute event handler is available for setting up a handler for the mute event.
MediaTrackConstraints.latency - Web APIs
in audio processing, latency is the time between the start of processing (when sound occurs in the real world, or is generated by a hardware device) and the data being made available to the next step in the audio input or output process.
MediaTrackConstraints.logicalSurface - Web APIs
syntax var constraintsobject = { logicalsurface: constraint }; constraintsobject.logicalsurface = constraint; value a constrainboolean which is true if logical surfaces should be permitted among the selections available to the user.
MediaTrackSupportedConstraints.logicalSurface - Web APIs
it adds the logicalsurface constraint (requesting that only logical display surfaces—those which may not be entirely visible onscreen—be included among the options available to the user) only if it is known to be supported by the browser.
MediaTrackSupportedConstraints - Web APIs
properties specific to shared screen tracks for tracks containing video sources from the user's screen contents, the following additional properties are may be included in addition to those available for video tracks.
Media Session API - Web APIs
the user agent provides default behaviors, when no page-defined behavior is available.
MessageChannel() - Web APIs
note: this feature is available in web workers.
MessageChannel.port1 - Web APIs
note: this feature is available in web workers.
MessageChannel.port2 - Web APIs
note: this feature is available in web workers.
MessageChannel - Web APIs
note: this feature is available in web workers.
MessageEvent - Web APIs
note: this feature is available in web workers.
MessagePort.close() - Web APIs
WebAPIMessagePortclose
note: this feature is available in web workers.
MessagePort.onmessage - Web APIs
note: this feature is available in web workers.
MessagePort.onmessageerror - Web APIs
note: this feature is available in web workers.
MessagePort.postMessage() - Web APIs
note: this feature is available in web workers.
MessagePort.start() - Web APIs
WebAPIMessagePortstart
note: this feature is available in web workers.
Metadata - Web APIs
WebAPIMetadata
this interface isn't available through the global scope; instead, you obtain a metadata object describing a filesystementry using the method filesystementry.getmetadata().
MimeTypeArray - Web APIs
example the following example tests whether a plugin is available for the application/pdf mime type and if so, which plugin that is.
msFirstPaint - Web APIs
it is available from javascript and can be reported from the field.
MutationObserver.disconnect() - Web APIs
example this example creates an observer, then disconnects from it, leaving it available for possible reuse.
NDEFReader.onreading - Web APIs
the onreading property of ndefreader interface of the web nfc api is called whenever a new reading is available from compatible nfc devices, e.g.
NDEFReader - Web APIs
ndefreader.scan() called to activate the reader (after ensuring hardware and ua compatibility and obtaining permission from the user) or get an error explaining why feature is not available.
NDEFReadingEvent - Web APIs
ndefreadingevent.serialnumber read only represents the serial number of the device used for anti-collision and identification, or empty string in case none is available.
NDEFWriter.write() - Web APIs
WebAPINDEFWriterwrite
notsupportederror there is no nfc adapter compatible with web nfc, or the available nfc adapter does not support pushing messages, or connection can not be established.
NDEFWriter - Web APIs
methods ndefwriter.write() called to write ndef message to a tag (after ensuring hardware and ua compatibility and obtaining permission from the user) or get an error explaining why feature is not available.
Using Navigation Timing - Web APIs
for a list of the available timing values you can look for in performancetiming, see the performancetiming interface's properties section.
Navigator.mediaSession - Web APIs
note that the code begins by ensuring that the navigator.mediasession property is available before attempting to use it.
Navigator.msLaunchUri() - Web APIs
usage notes if a default protocol handler is available on the system that matches the uri, the successcallback is invoked, otherwise, the nohandlercallback is called.
Navigator.requestMediaKeySystemAccess() - Web APIs
notsupportederror either the specified keysystem isn't supported by the platform or the browser, or none of the configurations specified by supportedconfigurations can be satisfied (if, for example, none of the codecs specified in contenttype are available).
Navigator.sendBeacon() - Web APIs
window.addeventlistener("unload", function logdata() { navigator.sendbeacon("/log", analyticsdata); }); the beacon sends an http request via the post method, with all relevant cookies available when called.
Navigator.serviceWorker - Web APIs
the feature may not be available in private mode.
Navigator.share() - Web APIs
WebAPINavigatorshare
available options are: url: a usvstring representing a url to be shared.
NavigatorID - Web APIs
not available in workers.
NavigatorPlugins.plugins - Web APIs
a list of plugins is also available by entering about:plugins in the browser's location bar.
NavigatorStorage.storage - Web APIs
the returned object lets you examine and configure persistence of data stores and learn approximately how much more space your browser has available for local storage use.
NavigatorStorage - Web APIs
the navigatorstorage mixin adds to the navigator and workernavigator interfaces the navigator.storage property, which provides access to the storagemanager singleton used for controlling the persistence of data stores as well as obtaining information note: this feature is available in web workers.
NetworkInformation.downlinkMax - Web APIs
note: this feature is available in web workers.
NetworkInformation.type - Web APIs
note: this feature is available in web workers.
NetworkInformation - Web APIs
note: this feature is available in web workers.
Network Information API - Web APIs
note: this feature is available in web workers.
Node.baseURI - Web APIs
WebAPINodebaseURI
details the base url of a document the base url of a document defaults to the document's address (as displayed by the browser and available in window.location), but it can be changed: when an html <base> tag is found in the document when the document is new (created dynamically) see the base urls section of the html living standard for details.
Node.getUserData() - Web APIs
WebAPINodegetUserData
the node.setuserdata and node.getuserdata methods are no longer available from web content.
Node.setUserData() - Web APIs
WebAPINodesetUserData
the node.getuserdata and node.setuserdata methods are no longer available from web content.
Notification.actions - Web APIs
note: this feature is available in web workers.
Notification.badge - Web APIs
note: this feature is available in web workers.
Notification.body - Web APIs
WebAPINotificationbody
note: this feature is available in web workers.
Notification.close() - Web APIs
note: this feature is available in web workers.
Notification.data - Web APIs
WebAPINotificationdata
note: this feature is available in web workers.
Notification.dir - Web APIs
WebAPINotificationdir
note: this feature is available in web workers.
Notification.icon - Web APIs
WebAPINotificationicon
note: this feature is available in web workers.
Notification.image - Web APIs
note: this feature is available in web workers.
Notification.lang - Web APIs
WebAPINotificationlang
note: this feature is available in web workers.
Notification.maxActions - Web APIs
note: this feature is available in web workers.
Notification.onclick - Web APIs
note: this feature is available in web workers.
Notification.onclose - Web APIs
note: this feature is available in web workers.
Notification.onerror - Web APIs
note: this feature is available in web workers.
Notification.onshow - Web APIs
note: this feature is available in web workers.
Notification.permission - Web APIs
note: this feature is available in web workers.
Notification.renotify - Web APIs
note: this feature is available in web workers.
Notification.requireInteraction - Web APIs
note: this feature is available in web workers.
Notification.silent - Web APIs
note: this feature is available in web workers.
Notification.tag - Web APIs
WebAPINotificationtag
note: this feature is available in web workers.
Notification.timestamp - Web APIs
note: this feature is available in web workers.
Notification.title - Web APIs
note: this feature is available in web workers.
Notification.vibrate - Web APIs
note: this feature is available in web workers.
NotificationEvent.action - Web APIs
example self.registration.shownotification("new articles available", { actions: [{action: "get", title: "get now."}] }); self.addeventlistener('notificationclick', function(event) { event.notification.close(); if (event.action === 'get') { synchronizereader(); } else { clients.openwindow("/reader"); } }, false); specifications specification status comment notifications apithe definition of 'action' in that specifi...
Notifications API - Web APIs
note: this feature is available in web workers.
OffscreenCanvas - Web APIs
it is available in both the window and worker contexts.
OrientationSensor - Web APIs
model.quaternion.fromarray(sensor.quaternion).inverse(); }); sensor.addeventlistener('error', error => { if (event.error.name == 'notreadableerror') { console.log("sensor is not available."); } }); sensor.start(); permissions example using orientation sensors requires requsting permissions for multiple device sensors.
PageTransitionEvent - Web APIs
the pagetransitionevent event object is available inside handler functions for the pageshow and pagehide events, fired when a document is being loaded or unloaded.
Page Visibility API - Web APIs
budget-based background timeout throttling is now available in modern browsers (firefox 58+, chrome 57+), placing an additional limit on background timer cpu usage.
ParentNode.prepend() - Web APIs
var parent = document.createelement("div"); with(parent) { prepend("foo"); } // referenceerror: prepend is not defined polyfill you can polyfill the prepend() method if it's not available: // source: https://github.com/jserz/js_piece/blob/master/dom/parentnode/prepend()/prepend().md (function (arr) { arr.foreach(function (item) { if (item.hasownproperty('prepend')) { return; } object.defineproperty(item, 'prepend', { configurable: true, enumerable: true, writable: true, value: function prepend() { var argarr = array.prototype.sl...
PaymentAddress.country - Web APIs
syntax var paymentcountry = paymentaddress.country; value a domstring which contains the iso3166-1 alpha-2 code identifying the country in which the address is located, or an empty string if no country is available, which frequently can be assumed to mean "same country as the site owner." usage notes if the payment handler validates the address and determines that the value of country is invalid, a call to paymentrequestupdateevent.updatewith() will be made with a details object containing a shippingaddresserrors field.
PaymentAddress.dependentLocality - Web APIs
this may be an empty string if no sublocality is available or required.
PaymentAddress.phone - Web APIs
if no phone number is available, this value is an empty string.
PaymentAddress.recipient - Web APIs
if no name is available, this string is empty.
PaymentAddress - Web APIs
"success" : "failure"; await response.complete(result); } dopaymentrequest(); once the payment flow has been triggered using paymentrequest.show() and the promise resolves successfully, the paymentresponse object available inside the fulfilled promise (instrumentresponse above) will have a paymentresponse.details property that will contain response details.
PaymentDetailsBase - Web APIs
shippingoptionsoptional an array of paymentshippingoption objects, each describing one available shipping option from which the user may choose.
PaymentDetailsUpdate - Web APIs
shippingoptions optional an array of paymentshippingoption objects, each describing one available shipping option from which the user may choose.
PaymentMethodChangeEvent - Web APIs
methoddetails optional an object providing payment method-specific information describing the changes made to the payment, or null if there is no additional information available or required.
PaymentMethodChangeEvent - Web APIs
if no such information is available, this value is null.
PaymentRequest: shippingoptionchange event - Web APIs
for payment requests that request shipping information, and for which shipping options are offered, the shippingoptionchange event is sent to the paymentrequest whenever the user chooses a shipping option from the list of available options.
PaymentRequestUpdateEvent.updateWith() - Web APIs
shippingoptions optional an array of paymentshippingoption objects, each describing one available shipping option from which the user may choose.
PaymentResponse - Web APIs
also available via the onpayerdetailchange property.
performance.clearMarks() - Web APIs
note: this feature is available in web workers.
performance.clearMeasures() - Web APIs
note: this feature is available in web workers.
performance.clearResourceTimings() - Web APIs
note: this feature is available in web workers.
performance.getEntries() - Web APIs
note: this feature is available in web workers.
performance.getEntriesByName() - Web APIs
note: this feature is available in web workers.
performance.getEntriesByType() - Web APIs
note: this feature is available in web workers.
performance.mark() - Web APIs
WebAPIPerformancemark
note: this feature is available in web workers.
performance.measure() - Web APIs
note: this feature is available in web workers.
Performance.memory - Web APIs
syntax timinginfo = performance.memory attributes jsheapsizelimit the maximum size of the heap, in bytes, that is available to the context.
Performance.navigation - Web APIs
this property is not available in workers.
Performance.onresourcetimingbufferfull - Web APIs
note: this feature is available in web workers.
performance.setResourceTimingBufferSize() - Web APIs
note: this feature is available in web workers.
Performance.timeOrigin - Web APIs
note: this feature is available in web workers.
Performance.timing - Web APIs
this property is not available in workers.
performance.toJSON() - Web APIs
note: this feature is available in web workers.
PerformanceEntry.duration - Web APIs
note: this feature is available in web workers.
PerformanceEntry.entryType - Web APIs
note: this feature is available in web workers.
PerformanceEntry.name - Web APIs
note: this feature is available in web workers.
PerformanceEntry.startTime - Web APIs
note: this feature is available in web workers.
PerformanceEntry.toJSON() - Web APIs
note: this feature is available in web workers.
PerformanceEntry - Web APIs
performanceentry instances will always be one of the following subtypes: performancemark performancemeasure performanceframetiming performancenavigationtiming performanceresourcetiming performancepainttiming note: this feature is available in web workers.
PerformanceEventTiming - Web APIs
function sendtoanalytics(data) { const body = json.stringify(data); // use `navigator.sendbeacon()` if available, falling back to `fetch()`.
PerformanceObserver - Web APIs
note: this feature is available in web workers.
PerformanceObserverEntryList.getEntries() - Web APIs
the list is available in the observer's callback function (as the first parameter in the callback).
PerformanceObserverEntryList.getEntriesByName() - Web APIs
the list is available in the observer's callback function (as the first parameter in the callback).
PerformanceObserverEntryList.getEntriesByType() - Web APIs
the list is available in the observer's callback function (as the first parameter in the callback).
PerformanceResourceTiming.connectEnd - Web APIs
note: this feature is available in web workers.
PerformanceResourceTiming.connectStart - Web APIs
note: this feature is available in web workers.
PerformanceResourceTiming.decodedBodySize - Web APIs
note: this feature is available in web workers.
PerformanceResourceTiming.domainLookupEnd - Web APIs
note: this feature is available in web workers.
PerformanceResourceTiming.domainLookupStart - Web APIs
note: this feature is available in web workers.
PerformanceResourceTiming.encodedBodySize - Web APIs
note: this feature is available in web workers.
PerformanceResourceTiming.fetchStart - Web APIs
note: this feature is available in web workers.
PerformanceResourceTiming.initiatorType - Web APIs
note: this feature is available in web workers.
PerformanceResourceTiming.nextHopProtocol - Web APIs
note: this feature is available in web workers.
PerformanceResourceTiming.redirectEnd - Web APIs
note: this feature is available in web workers.
PerformanceResourceTiming.redirectStart - Web APIs
note: this feature is available in web workers.
PerformanceResourceTiming.requestStart - Web APIs
note: this feature is available in web workers.
PerformanceResourceTiming.responseEnd - Web APIs
note: this feature is available in web workers.
PerformanceResourceTiming.responseStart - Web APIs
note: this feature is available in web workers.
PerformanceResourceTiming.secureConnectionStart - Web APIs
note: this feature is available in web workers.
PerformanceResourceTiming.transferSize - Web APIs
note: this feature is available in web workers.
PerformanceResourceTiming.workerStart - Web APIs
note: this feature is available in web workers.
PerformanceResourceTiming - Web APIs
target="_top"><rect x="201" y="1" width="250" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="326" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">performanceresourcetiming</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} note: this feature is available in web workers.
Permissions.query() - Web APIs
WebAPIPermissionsquery
the available options are: name: the name of the api whose permissions you want to query.
Permissions.revoke() - Web APIs
the available options are: name: the name of the api whose permissions you want to query.
Using the Permissions API - Web APIs
these should hopefully be available soon.
PluginArray - Web APIs
the pluginarray interface is used to store a list of plugin objects describing the available plugins; it's returned by the window.navigator.plugins property.
Pointer Lock API - Web APIs
unlocked state the parameters movementx and movementy are valid regardless of the mouse lock state, and are available even when unlocked for convenience.
PositionOptions.timeout - Web APIs
the default value is infinity, meaning that getcurrentposition() won't return until the position is available.
PositionOptions - Web APIs
the default value is infinity, meaning that getcurrentposition() won't return until the position is available.
Proximity Events - Web APIs
note: obviously, the api requires the device to have a proximity sensor, which are mostly available only on mobile devices.
PublicKeyCredential.getClientExtensionResults() - Web APIs
note: this method may only be used in top-level contexts and will not be available in an <iframe> for example.
PublicKeyCredential.id - Web APIs
note: this property may only be used in top-level contexts and will not be available in an <iframe> for example.
PublicKeyCredential.rawId - Web APIs
note: this property may only be used in top-level contexts and will not be available in an <iframe> for example.
PublicKeyCredential.response - Web APIs
note: this property may only be used in top-level contexts and will not be available in an <iframe> for example.
PublicKeyCredentialCreationOptions.authenticatorSelection - Web APIs
note: see publickeycredential.isuserverifyingplatformauthenticatoravailable() which resolves to true when a user-verifiying platform authenticator is available.
PublicKeyCredentialCreationOptions.extensions - Web APIs
if no matching authenticator is available, the credential is still generated with another available authenticator.
PushManager.getSubscription() - Web APIs
(no live demo is available.) // we need the service worker registration to check for a subscription navigator.serviceworker.ready.then(function(serviceworkerregistration) { // do we already have a push message subscription?
PushManager.subscribe() - Web APIs
ready.then( function(serviceworkerregistration) { var options = { uservisibleonly: true, applicationserverkey: applicationserverkey }; serviceworkerregistration.pushmanager.subscribe(options).then( function(pushsubscription) { console.log(pushsubscription.endpoint); // the push subscription details needed by the application // server are now available, and can be sent to it using, // for example, an xmlhttprequest.
PushManager - Web APIs
} navigator.serviceworker.register('serviceworker.js').then( function(serviceworkerregistration) { serviceworkerregistration.pushmanager.subscribe().then( function(pushsubscription) { console.log(pushsubscription.endpoint); // the push subscription details needed by the application // server are now available, and can be sent to it using, // for example, an xmlhttprequest.
RTCDTMFSender - Web APIs
also available using the ontonechange event handler property.
RTCErrorEvent - Web APIs
properties in addition to the standard properties available on the event interface, rtcerrorevent also includes the following: error read only an rtcerror object specifying the error which occurred; this object includes the type of error that occurred, information about where the error occurred (such as which line number in the sdp or what sctp cause code was at issue).
RTCIceCandidate.address - Web APIs
doing so prevents the remote user's address from being exposed, but reduces the pool of available candidates to choose from.
RTCIceCandidate.foundation - Web APIs
as such, the foundation can be used to correlate candidates that are present on multiple rtcicetransport objects syntax var foundation = rtcicecandidate.foundation; value a domstring which uniquely identifies the candidate across all rtcicetransports on which it is available.
RTCIceCandidate.sdpMLineIndex - Web APIs
syntax var sdpmlineindex = rtcicecandidate.sdpmlineindex; value a number containing a 0-based index into the set of m-lines providing media descriptions, indicating which media source is associated with the candidate, or null if no such association is available.
RTCIceCandidateInit.sdpMLineIndex - Web APIs
value a number containing a 0-based index into the set of m-lines providing media descriptions, indicating which media source is associated with the candidate, or null if no such association is available.
RTCIceCandidatePairStats.writable - Web APIs
note: this property was removed from the specification in early 2017 because you can determine whether or not an incoming ice request is available to read by checking to see if responsesreceived is greater than 0 and that the time specified by consentexpiredtimestamp has not passed: if (icpstats.responsesreceived > 0 && icpstats.consentexpiredtimestamp < performance.now()) { /* at least one ice response has been received */ } ...
RTCIceCandidateStats.address - Web APIs
otherwise, the address is presumed to be a fully-qualified domain name, which is resolved first using an aaaa record (assuming ipv6 is available), then using an a record (if no result is found or the device onlu supports ipv4).
RTCIceCandidateStats.url - Web APIs
this property is only available for local candidates.
RTCIceServers.urls - Web APIs
WebAPIRTCIceServerurls
this is useful if the server is, for example, available both on "turn" and "turns" schemes, or if there's a fallback address available for the server.
RTCIceTransport.getSelectedCandidatePair() - Web APIs
from that time forward, the best matching pair of candidates will always be available by calling getselectedcandidatepair().
RTCIceTransportState - Web APIs
if the restart occured during a transient "disconnected" state, the state transitions to "checking" the disconnected state "disconnected" is a transient state that occurs when the connection between the two peers fails in a manner that the webrtc infrastructure can automatically correct once the connection is available again.
RTCInboundRtpStreamStats.perDscpPacketsReceived - Web APIs
note: not all operating systems make data available on a per-dscp basis, so this property shouldn't be relied upon on those systems.
RTCInboundRtpStreamStats.pliCount - Web APIs
this information is only available for video streams.
RTCInboundRtpStreamStats.qpSum - Web APIs
note: this value is only available for video media.
RTCOfferOptions.iceRestart - Web APIs
you should ideally do this by calling the rtcpeerconnection's restartice() method, if it's available.
RTCOutboundRtpStreamStats.perDscpPacketsSent - Web APIs
note: not all operating systems make data available on a per-dscp basis, so this property shouldn't be relied upon on those systems.
RTCOutboundRtpStreamStats.pliCount - Web APIs
this is often achieved by methods such as increasing the compression or lowering resolution, although the mechanisms available to reduce the bit rate of the stream vary from codec to codec.
RTCOutboundRtpStreamStats.qpSum - Web APIs
note: this value is only available for video media.
RTCPeerConnection.getStreamById() - Web APIs
example var stream = pc.getstreambyid(mytrackid); if (stream) { console.log("found stream: " + stream.id); } polyfill running the following code before any other code will create rtcpeerconnection.prototype.getstreambyid() if it's not natively available.
RTCPeerConnection: iceconnectionstatechange event - Web APIs
the new ice connection state is available in the object's iceconnectionstate} property.
RTCPeerConnection: icecandidateerror event - Web APIs
the 701 error is fired only once per server url from the list of available stun or turn servers provided when creating the rtcpeerconnection.
RTCPeerConnectionIceErrorEvent.address - Web APIs
for example, on a mobile phone, there are typically at least two network interfaces available: the cellular connection and a wifi connection.
RTCRemoteOutboundRtpStreamStats.localId - Web APIs
try it and fork it this example is available on glitch for you to try out, examine, or remix.
RTCRtpCapabilities - Web APIs
fec (forward error correction) an fec component handles error correction data; its media type may also vary due to there being advanced versions of the standard available, but it will always end with fec.
RTCRtpContributingSource.audioLevel - Web APIs
audiolevel may be absent from rtcrtpcontributingsource objects, which indicates that no volume level was provided by the source; however, it is required and always available on all rtcrtpsynchronizationsource objects.
RTCRtpEncodingParameters.scaleResolutionDownBy - Web APIs
this property is only available for tracks whose kind is video.
RTCRtpReceiver.getCapabilities() static function - Web APIs
because the set of capabilities available tend to be stable for a length of time (people don't install and uninstall codecs and the like very often), the media capabilities can in whole or in part provide a cross-origin method for identifying a user.
RTCRtpSender.getCapabilities() static function - Web APIs
because the set of capabilities available tend to be stable for a length of time (people don't install and uninstall codecs and the like very often), the media capabilities can in whole or in part provide a cross-origin method for identifying a user.
RTCRtpSender.setParameters() - Web APIs
the available options are: degradationpreference specifies the preferred way the webrtc layer should handle optimizing bandwidth against quality in constrained-bandwidth situations; the value comes from the rtcdegradationpreference enumerated string type, and the default is balanced.
RTCRtpStreamStats.nackCount - Web APIs
note: this value is only available on the receiver.
RTCRtpStreamStats.pliCount - Web APIs
note: this value is only available on the receiver, and only for video media.
RTCRtpStreamStats.qpSum - Web APIs
note: this value is only available for video media.
RTCRtpSynchronizationSource - Web APIs
since rtcrtpsynchronizationsource implements rtcrtpcontributingsource, its properties are also available.
Range.commonAncestorContainer - Web APIs
to change the ancestor container of a node, consider using the various methods available to set the start and end positions of the range, such as range.setstart() and range.setend().
Range - Web APIs
WebAPIRange
there also is the range() constructor available.
ReadableStream.pipeThrough() - Web APIs
available options are: preventclose: if this is set to true, the source readablestream closing will no longer cause the destination writablestream to be closed.
ReadableStream.pipeTo() - Web APIs
available options are: preventclose: if this is set to true, the source readablestream closing will no longer cause the destination writablestream to be closed.
ReadableStreamBYOBReader.read() - Web APIs
the different possibilities are as follows: if a chunk is available, the promise will be fulfilled with an object of the form { value: thechunk, done: false }.
ReadableStreamDefaultReader.read() - Web APIs
the different possibilities are as follows: if a chunk is available, the promise will be fulfilled with an object of the form { value: thechunk, done: false }.
RelativeOrientationSensor - Web APIs
model.quaternion.fromarray(sensor.quaternion).inverse(); }); sensor.addeventlistener('error', error => { if (event.error.name == 'notreadableerror') { console.log("sensor is not available."); } }); sensor.start(); permissions example using orientation sensors requires requsting permissions for multiple device sensors.
Report.type - Web APIs
WebAPIReporttype
currently the available types are deprecation, intervention, and crash.
ReportingObserverOptions - Web APIs
available types include deprecation, intervention, and crash.
Request.cache - Web APIs
WebAPIRequestcache
the available values are: default — the browser looks for a matching request in its http cache.
Request.context - Web APIs
WebAPIRequestcontext
note: you can find a full list of the different available contexts including associated context frame types, csp directives, and platform feature examples in the fetch spec request context section.
Request.credentials - Web APIs
this is similar to xhr’s withcredentials flag, but with three available values instead of two.
Request.mode - Web APIs
WebAPIRequestmode
the associated mode, available values of which are: same-origin — if a request is made to another origin with this mode set, the result is simply an error.
Request - Web APIs
WebAPIRequest
request implements body, so it also has the following methods available to it: body.arraybuffer() returns a promise that resolves with an arraybuffer representation of the request body.
Using the Resource Timing API - Web APIs
a live version of the examples is available on github, as is the source code.
Resource Timing API - Web APIs
if the resource is loaded via a secure connection a secureconnectionstart timestamp will be available between the connection start and end events.
Response.type - Web APIs
WebAPIResponsetype
no useful information describing the error is available.
SVGPreserveAspectRatio - Web APIs
svg preserveaspectratio interface the svgpreserveaspectratio interface corresponds to the preserveaspectratio attribute, which is available for some of svg's elements.
SVGTextContentElement - Web APIs
svgtextcontentelement.getnumberofchars() returns a long representing the total number of addressable characters available for rendering within the current element, regardless of whether they will be rendered.
Screen.availWidth - Web APIs
WebAPIScreenavailWidth
the screen.availwidth property returns the amount of horizontal space (in pixels) available to the window.
Screen.width - Web APIs
WebAPIScreenwidth
syntax lwidth = window.screen.width example // crude way to check that the screen is at least 1024x768 if (window.screen.width >= 1024 && window.screen.height >= 768) { // resolution is 1024x768 or above } notes note that not all of the width given by this property may be available to the window itself.
ScriptProcessorNode - Web APIs
also available via the onaudioprocess event handler property.
ServiceWorkerContainer.register() - Web APIs
currently available options are: scope: a usvstring representing a url that defines a service worker's registration scope; that is, what range of urls a service worker can control.
ServiceWorkerGlobalScope.onpush - Web APIs
the data payload of the push message is available in the event object's data property (pushevent.data, which contains a pushmessagedata object.) self.addeventlistener('push', function(event) { if (!(self.notification && self.notification.permission === 'granted')) { return; } var data = {}; if (event.data) { data = event.data.json(); } var title = data.title || "something has happened"; var message = data.message || "here...
ServiceWorkerGlobalScope.onsync - Web APIs
the attempt to sync is made either immediately if the network is available or as soon as the network becomes available.
ServiceWorkerRegistration.active - Web APIs
an active worker controls a serviceworkerclient if the client's url falls within the scope of the registration (the scope option set when serviceworkercontainer.register is first called.) note: this feature is available in web workers.
ServiceWorkerRegistration.installing - Web APIs
note: this feature is available in web workers.
ServiceWorkerRegistration.onupdatefound - Web APIs
note: this feature is available in web workers.
ServiceWorkerRegistration.pushManager - Web APIs
} navigator.serviceworker.register('serviceworker.js').then( function(serviceworkerregistration) { serviceworkerregistration.pushmanager.subscribe().then( function(pushsubscription) { console.log(pushsubscription.subscriptionid); console.log(pushsubscription.endpoint); // the push subscription details needed by the application // server are now available, and can be sent to it using, // for example, an xmlhttprequest.
ServiceWorkerRegistration.scope - Web APIs
note: this feature is available in web workers.
ServiceWorkerRegistration.showNotification() - Web APIs
note: this feature is available in web workers.
ServiceWorkerRegistration.unregister() - Web APIs
note: this feature is available in web workers.
ServiceWorkerRegistration.update() - Web APIs
note: this feature is available in web workers.
ServiceWorkerRegistration.waiting - Web APIs
note: this feature is available in web workers.
ServiceWorkerRegistration - Web APIs
note: this feature is available in web workers.
ShadowRoot.delegatesFocus - Web APIs
this is currently an experimental non-standard feature, available only in chrome.
SharedWorker() - Web APIs
available properties are as follows: type: a domstring specifying the type of worker to create.
SharedWorkerGlobalScope.applicationCache - Web APIs
important: application cache is deprecated as of firefox 44, and is no longer available in insecure contexts from firefox 60 onwards (bug 1354175, currently nightly/beta only).
SourceBuffer.mode - Web APIs
WebAPISourceBuffermode
the two available values are: segments: the media segment timestamps determine the order in which the segments are played.
SourceBuffer.trackDefaults - Web APIs
the trackdefaults property of the sourcebuffer interface specifies the default values to use if kind, label, and/or language information is not available in the initialization segment of the media to be appended to the sourcebuffer.
SourceBuffer - Web APIs
sourcebuffer.trackdefaults specifies the default values to use if kind, label, and/or language information is not available in the initialization segment of the media to be appended to the sourcebuffer.
SpeechSynthesis.getVoices() - Web APIs
the getvoices() method of the speechsynthesis interface returns a list of speechsynthesisvoice objects representing all the available voices on the current device.
SpeechSynthesisUtterance.voice - Web APIs
if not set by the time the utterance is spoken, the voice used will be the most suitable default voice available for the utterance's lang setting.
StaticRange - Web APIs
abstractrange and staticrange are not available from web workers.
StorageManager - Web APIs
the storagemanager interface of the the storage api provides an interface for managing persistance permissions and estimating available storage.
StorageQuota.queryInfo - Web APIs
the queryinfo() property of the storagequota interface returns a storageinfo object containting the current data usage and available quota information for the application.
Storage Access API - Web APIs
as an example, federated logins often require access to authentication cookies stored in first-party storage, and will require the user to sign in on each site separately (or completely break) if those cookies are not available.
Using writable streams - Web APIs
this currently only has one method available on it — writablestreamdefaultcontroller.error(), which when invoked causes future interactions with the stream to error.
SubtleCrypto - Web APIs
importing and exporting keys to make keys available outside your app, you need to export the key, and that's what exportkey() is for.
SyncManager.register() - Web APIs
the available options are: allowonbattery: a boolean that determines whether synchronization is allowed when the user agent is on a battery-powered device.
TextEncoder.prototype.encodeInto() - Web APIs
t encodedresults = textencoder.encodeinto(string, utf8); resultpara.textcontent += 'bytes read: ' + encodedresults.read + ' | bytes written: ' + encodedresults.written + ' | encoded result: ' + utf8; polyfill the polyfill below may be a bit long because of the switch cases and utilization of native textencoder.prototype.encode in safari when available, but it is well worth the length because of the gains in performance.
TextTrack.mode - Web APIs
WebAPITextTrackmode
however, to ensure that the track's cues are available, we first set mode to showing.
TextTrack - Web APIs
WebAPITextTrack
also available via the oncuechange property.
TextTrackList.onaddtrack - Web APIs
in this scenario, that function's role is to add the new track to a list of video tracks available to choose from.
URL() - Web APIs
WebAPIURLURL
note: this feature is available in web workers.
URL.hash - Web APIs
WebAPIURLhash
note: this feature is available in web workers.
URL.host - Web APIs
WebAPIURLhost
note: this feature is available in web workers.
URL.hostname - Web APIs
WebAPIURLhostname
note: this feature is available in web workers.
URL.href - Web APIs
WebAPIURLhref
note: this feature is available in web workers.
URL.origin - Web APIs
WebAPIURLorigin
note: this feature is available in web workers.
URL.password - Web APIs
WebAPIURLpassword
note: this feature is available in web workers.
URL.pathname - Web APIs
WebAPIURLpathname
note: this feature is available in web workers.
URL.pathname - Web APIs
note: this feature is available in web workers.
URL.port - Web APIs
WebAPIURLport
note: this feature is available in web workers.
URL.protocol - Web APIs
WebAPIURLprotocol
note: this feature is available in web workers.
URL.search - Web APIs
WebAPIURLsearch
note: this feature is available in web workers.
URL.search - Web APIs
WebAPIURLsearch?q=123
note: this feature is available in web workers.
URL.searchParams - Web APIs
WebAPIURLsearchParams
note: this feature is available in web workers.
URL.toJSON() - Web APIs
WebAPIURLtoJSON
note: this feature is available in web workers.
URL.toString() - Web APIs
WebAPIURLtoString
note: this feature is available in web workers.
URL.username - Web APIs
WebAPIURLusername
note: this feature is available in web workers.
URL - Web APIs
WebAPIURL
note: this feature is available in web workers.
URLSearchParams() - Web APIs
note: this feature is available in web workers.
URLSearchParams.append() - Web APIs
note: this feature is available in web workers.
URLSearchParams.delete() - Web APIs
note: this feature is available in web workers.
URLSearchParams.entries() - Web APIs
note: this feature is available in web workers.
URLSearchParams.forEach() - Web APIs
note: this feature is available in web workers.
URLSearchParams.get() - Web APIs
note: this feature is available in web workers.
URLSearchParams.getAll() - Web APIs
note: this feature is available in web workers.
URLSearchParams.has() - Web APIs
note: this feature is available in web workers.
URLSearchParams.keys() - Web APIs
note: this method is available in web workers.
URLSearchParams.set() - Web APIs
note: this feature is available in web workers.
URLSearchParams.sort() - Web APIs
note: this feature is available in web workers.
URLSearchParams.toString() - Web APIs
note: this feature is available in web workers.
URLSearchParams.values() - Web APIs
note: this feature is available in web workers.
URLSearchParams - Web APIs
an object implementing urlsearchparams can directly be used in a for...of structure, for example the following two lines are equivalent: for (const [key, value] of mysearchparams) {} for (const [key, value] of mysearchparams.entries()) {} note: this feature is available in web workers.
USBDevice.controlTransferIn() - Web APIs
the available options are: requesttype: must be one of three values specifying whether the tranfer is "standard" (common to all usb devices) "class" (common to an industry-standard class of devices) or "vendor".
USBDevice.controlTransferOut() - Web APIs
the available options are: requesttype: must be one of three values specifying whether the tranfer is "standard" (common to all usb devices) "class" (common to an industry-standard class of devices) or "vendor".
Using the User Timing API - Web APIs
a live version of the examples is available on github, as is the source code.
VideoTrackList.onaddtrack - Web APIs
in this scenario, that function's role is to add the new track to a list of video tracks available to choose from.
WEBGL_draw_buffers.drawBuffersWEBGL() - Web APIs
note: when using webgl2, this method is available as gl.drawbuffers() by default and the constants are named gl.color_attachment1 etc.
WakeLock.request() - Web APIs
WebAPIWakeLockrequest
exceptions notallowederror thrown when wake lock is not available, which can happen because: document is not allowed to use screen wake lock due to screen-wake-lock policy.
WebGL2RenderingContext.createQuery() - Web APIs
webglquery objects are not available in webgl 1.
WebGL2RenderingContext.createSampler() - Web APIs
webglsampler objects are not available in webgl 1.
WebGL2RenderingContext.createTransformFeedback() - Web APIs
webgltransformfeedback objects are not available in webgl 1.
WebGL2RenderingContext.deleteQuery() - Web APIs
webglquery objects are not available in webgl 1.
WebGL2RenderingContext.deleteSampler() - Web APIs
webglsampler objects are not available in webgl 1.
WebGL2RenderingContext.deleteSync() - Web APIs
webglsync objects are not available in webgl 1.
WebGL2RenderingContext.deleteTransformFeedback() - Web APIs
webgltransformfeedback objects are not available in webgl 1.
WebGL2RenderingContext.fenceSync() - Web APIs
webglsync objects are not available in webgl 1.
WebGL2RenderingContext.getQueryParameter() - Web APIs
gl.query_result_available: returns a glboolean indicating whether or not a query result is available.
WebGL2RenderingContext.isQuery() - Web APIs
webglquery objects are not available in webgl 1.
WebGL2RenderingContext.isSampler() - Web APIs
webglsampler objects are not available in webgl 1.
WebGL2RenderingContext.isSync() - Web APIs
webglsync objects are not available in webgl 1.
WebGL2RenderingContext.isTransformFeedback() - Web APIs
webgltransformfeedback objects are not available in webgl 1.
WebGLContextEvent.statusMessage - Web APIs
the read-only webglcontextevent.statusmessage property contains additional event status information, or is an empty string if no additional information is available.
WebGLRenderingContext.bindBuffer() - Web APIs
when using a webgl 2 context, the following values are available additionally: gl.copy_read_buffer: buffer for copying from one buffer object to another.
WebGLRenderingContext.bindFramebuffer() - Web APIs
when using a webgl 2 context, the following values are available additionally: gl.draw_framebuffer: equivalent to gl.framebuffer.
WebGLRenderingContext.bindTexture() - Web APIs
when using a webgl 2 context, the following values are available additionally: gl.texture_3d: a three-dimensional texture.
WebGLRenderingContext.blendEquation() - Web APIs
when using a webgl 2 context, the following values are available additionally: gl.min: minimum of source and destination, gl.max: maximum of source and destination.
WebGLRenderingContext.bufferSubData() - Web APIs
when using a webgl 2 context, the following values are available additionally: gl.copy_read_buffer: buffer for copying from one buffer object to another.
WebGLRenderingContext.checkFramebufferStatus() - Web APIs
when using a webgl 2 context, the following values are available additionally: gl.draw_framebuffer: equivalent to gl.framebuffer.
WebGLRenderingContext.compressedTexImage[23]D() - Web APIs
pixels); // additionally available in webgl 2: // read from buffer bound to gl.pixel_unpack_buffer void gl.compressedteximage2d(target, level, internalformat, width, height, border, glsizei imagesize, glintptr offset); void gl.compressedteximage2d(target, level, internalformat, width, height, border, arraybufferview srcdata, optional srcoffset, optional srclengthoverride); // read from buffer bound t...
WebGLRenderingContext.compressedTexSubImage2D() - Web APIs
pixels); // additionally available in webgl 2: void gl.compressedtexsubimage2d(target, level, xoffset, yoffset, width, height, format, imagesize, offset); void gl.compressedtexsubimage2d(target, level, xoffset, yoffset, width, height, format, arraybufferview srcdata, optional srcoffset, optional srclengthoverride); parameters target a glenum specifying the binding point (target) of the active compressed texture.
WebGLRenderingContext.disable() - Web APIs
when using a webgl 2 context, the following values are available additionally: constant description gl.rasterizer_discard deactivates that primitives are discarded immediately before the rasterization stage, but after the optional transform feedback stage.
WebGLRenderingContext.enable() - Web APIs
when using a webgl 2 context, the following values are available additionally: constant description gl.rasterizer_discard primitives are discarded immediately before the rasterization stage, but after the optional transform feedback stage.
WebGLRenderingContext.generateMipmap() - Web APIs
when using a webgl 2 context, the following values are available additionally: gl.texture_3d: a three-dimensional texture.
WebGLRenderingContext.getParameter() - Web APIs
webgl extensions you can query the following pname parameters when using webgl extensions: constant returned type extension description ext.max_texture_max_anisotropy_ext glfloat ext_texture_filter_anisotropic maximum available anisotropy.
WebGLRenderingContext.getProgramParameter() - Web APIs
when using a webgl 2 context, the following values are available additionally: gl.transform_feedback_buffer_mode: returns a glenum indicating the buffer mode when transform feedback is active.
WebGLRenderingContext.getRenderbufferParameter() - Web APIs
when using a webgl 2 context, the following value is available additionally: gl.renderbuffer_samples: returns a glint indicating the number of samples of the image of the currently bound renderbuffer.
WebGLRenderingContext.getUniform() - Web APIs
oolean (with 3 elements) vec4 float32array (with 4 elements) ivec4 int32array (with 4 elements) bvec4 array of glboolean (with 4 elements) mat2 float32array (with 4 elements) mat3 float32array (with 9 elements) mat4 float32array (with 16 elements) sampler2d glint samplercube glint additionally available in webgl 2 uint gluint uvec2 uint32array (with 2 elements) uvec3 uint32array (with 3 elements) uvec4 uint32array (with 4 elements) mat2x3 float32array (with 6 elements) mat2x4 float32array (with 8 elements) mat3x2 float32array (with 6 elements) mat3x4 float32array (with 12 elements) mat4x2 ...
WebGLRenderingContext.getVertexAttrib() - Web APIs
when using a webgl 2 context, the following values are available additionally: gl.vertex_attrib_array_integer: returns a glboolean indicating whether or not an integer data type is in the vertex attribute array at the given index.
WebGLRenderingContext.hint() - Web APIs
when using a webgl 2 context, the following values are available additionally: gl.fragment_shader_derivative_hint: same as ext.fragment_shader_derivative_hint_oes mode sets the behavior.
WebGLRenderingContext.isEnabled() - Web APIs
when using a webgl 2 context, the following values are available additionally: constant description gl.rasterizer_discard primitives are discarded immediately before the rasterization stage, but after the optional transform feedback stage.
WebGLRenderingContext.lineWidth() - Web APIs
examples setting the line width: gl.linewidth(5); getting the line width: gl.getparameter(gl.line_width); getting the range of available widths.
WebGLRenderingContext.pixelStorei() - Web APIs
glenum gl.browser_default_webgl gl.browser_default_webgl, gl.none webgl when using a webgl 2 context, the following values are available additionally: constant description type default value allowed values (for param) specified in gl.pack_row_length number of pixels in a row.
WebGLRenderingContext.renderbufferStorage() - Web APIs
gl.depth_stencil when using a webgl 2 context, the following values are available additionally: gl.r8 gl.r8ui gl.r8i gl.r16ui gl.r16i gl.r32ui gl.r32i gl.rg8 gl.rg8ui gl.rg8i gl.rg16ui gl.rg16i gl.rg32ui gl.rg32i gl.rgb8 gl.rgba8 gl.srgb8_alpha8 (also available as an extension for webgl 1, see below) gl.rgb10_a2 gl.rgba8ui gl.rgba8i gl.rgb10_a2ui gl.rgba16ui gl.rgba16i gl.rgba32...
WebGLRenderingContext.vertexAttribPointer() - Web APIs
possible values: gl.byte: signed 8-bit integer, with values in [-128, 127] gl.short: signed 16-bit integer, with values in [-32768, 32767] gl.unsigned_byte: unsigned 8-bit integer, with values in [0, 255] gl.unsigned_short: unsigned 16-bit integer, with values in [0, 65535] gl.float: 32-bit ieee floating point number when using a webgl 2 context, the following values are available additionally: gl.half_float: 16-bit ieee floating point number normalized a glboolean specifying whether integer data values should be normalized into a certain range when being cast to a float.
WebGLRenderingContext - Web APIs
" + "your browser or device may not support webgl."; return; } gl.viewport(0, 0, gl.drawingbufferwidth, gl.drawingbufferheight); gl.enable(gl.scissor_test); gl.scissor(30, 10, 60, 60); gl.clearcolor(1.0, 1.0, 0.0, 1.0); gl.clear(gl.color_buffer_bit); }); }, false); the source code of this example is also available on github.
WebGLSampler - Web APIs
webglsampler objects are not available in webgl 1.
WebGLSync - Web APIs
WebAPIWebGLSync
webglsync objects are not available in webgl 1.
WebGLTransformFeedback - Web APIs
webgltransformfeedback objects are not available in webgl 1.
A basic 2D WebGL animation example - Web APIs
with the index of the vertex position attribute now available in avertexposition, we call enablevertexattribarray() to enable the position attribute so it can be used by the shader program (in particular, by the vertex shader).
Basic scissoring - Web APIs
gl.clearcolor(1.0, 1.0, 0.0, 1.0); gl.clear(gl.color_buffer_bit); }, false); the source code of this example is also available on github.
Boilerplate 1 - Web APIs
"); if (!gl) { var paragraph = document.queryselector("p"); paragraph.innerhtml = "failed to get webgl context." + "your browser or device may not support webgl."; return null; } gl.viewport(0, 0, gl.drawingbufferwidth, gl.drawingbufferheight); gl.clearcolor(0.0, 0.0, 0.0, 1.0); gl.clear(gl.color_buffer_bit); return gl; } the source code of this example is also available on github.
Canvas size and WebGL - Web APIs
" + "your browser or device may not support webgl."; return; } gl.viewport(0, 0, gl.drawingbufferwidth, gl.drawingbufferheight); gl.enable(gl.scissor_test); gl.scissor(30, 10, 60, 60); gl.clearcolor(1.0, 1.0, 0.0, 1.0); gl.clear(gl.color_buffer_bit); }); }, false); the source code of this example is also available on github.
Clearing by clicking - Web APIs
function getrandomcolor() { return [math.random(), math.random(), math.random()]; } }, false); the source code of this example is also available on github.
Clearing with colors - Web APIs
gl.clear(gl.color_buffer_bit); }, false); the source code of this example is also available on github.
Color masking - Web APIs
t.innerhtml="off"; gl.colormask(mask[0], mask[1], mask[2], true); drawanimation(); }; function drawanimation () { var color = getrandomcolor(); gl.clearcolor(color[0], color[1], color[2], 1.0); gl.clear(gl.color_buffer_bit); } function getrandomcolor() { return [math.random(), math.random(), math.random()]; } }, false); the source code of this example is also available on github.
Detect WebGL - Web APIs
" + "your browser or device may not support webgl."; } } }, false); the source code of this example is also available on github.
Hello GLSL - Web APIs
gl) { var paragraph = document.queryselector("p"); paragraph.innerhtml = "failed to get webgl context." + "your browser or device may not support webgl."; return null; } gl.viewport(0, 0, gl.drawingbufferwidth, gl.drawingbufferheight); gl.clearcolor(0.0, 0.0, 0.0, 1.0); gl.clear(gl.color_buffer_bit); return gl; } })(); the source code of this example is also available on github.
Hello vertex attributes - Web APIs
gl) { var paragraph = document.queryselector("p"); paragraph.innerhtml = "failed to get webgl context." + "your browser or device may not support webgl."; return null; } gl.viewport(0, 0, gl.drawingbufferwidth, gl.drawingbufferheight); gl.clearcolor(0.0, 0.0, 0.0, 1.0); gl.clear(gl.color_buffer_bit); return gl; } })(); the source code of this example is also available on github.
Raining rectangles - Web APIs
gl) { var paragraph = document.queryselector("p"); paragraph.innerhtml = "failed to get webgl context." + "your browser or device may not support webgl."; return null; } gl.viewport(0, 0, gl.drawingbufferwidth, gl.drawingbufferheight); gl.clearcolor(0.0, 0.0, 0.0, 1.0); gl.clear(gl.color_buffer_bit); return gl; } })(); the source code of this example is also available on github.
Scissor animation - Web APIs
gl) { var paragraph = document.queryselector("p"); paragraph.innerhtml = "failed to get webgl context." + "your browser or device may not support webgl."; return null; } gl.viewport(0, 0, gl.drawingbufferwidth, gl.drawingbufferheight); gl.clearcolor(0.0, 0.0, 0.0, 1.0); gl.clear(gl.color_buffer_bit); return gl; } })(); the source code of this example is also available on github.
Simple color animation - Web APIs
function getrandomcolor() { return [math.random(), math.random(), math.random()]; } }, false); the source code of this example is also available on github.
Textures from code - Web APIs
gl) { var paragraph = document.queryselector("p"); paragraph.innerhtml = "failed to get webgl context." + "your browser or device may not support webgl."; return null; } gl.viewport(0, 0, gl.drawingbufferwidth, gl.drawingbufferheight); gl.clearcolor(0.0, 0.0, 0.0, 1.0); gl.clear(gl.color_buffer_bit); return gl; } })(); the source code of this example is also available on github.
Adding 2D content to a WebGL context - Web APIs
the complete source code for this project is available on github.
Lighting in WebGL - Web APIs
gl.uniformmatrix4fv( programinfo.uniformlocations.normalmatrix, false, normalmatrix); update the shaders now that all the data the shaders need is available to them, we need to update the code in the shaders themselves.
Signaling and video calling - Web APIs
there are a few other events available that we're not using in this example, as well.
A simple RTCDataChannel sample - Web APIs
next steps you should try out this example and take a look at the webrtc-simple-datachannel source code, available on github.
Using WebRTC data channels - Web APIs
firefox support for ndata is in the process of being implemented; see bug 1381145 to track it becoming available for general use.
Writing WebSocket client applications - Web APIs
note: this feature is available in web workers.
Writing WebSocket servers - Web APIs
fragmentation is only available on opcodes 0x0 to 0x2.
The WebSocket API (WebSockets) - Web APIs
signalr: signalr will use websockets under the covers when it's available, and gracefully fallback to other techniques and technologies when it isn't, while your application code stays the same.
Viewpoints and viewers: Simulating cameras in WebXR - Web APIs
you can tell which eye a given xrview represents by checking the value of its eye property, which is a string whose value is left or right (a third possible value, none, theoretically may be used to represent another point of view, but support for this is not entirely available in the current api).
Lighting a WebXR setting - Web APIs
this involves the collection of data that may come from various sensors (including the accelerometer and compass, if available), cameras, and potentially others.
Spaces and reference spaces: Spatial tracking in WebXR - Web APIs
because getviewerpose() is only available in an xrframe, you will need to begin this process in your rendering callback, possibly using a worker to do the computations in order to reduce frame dropping.
Targeting and hit detection - Web APIs
testing for collisions with the real world is a different problem, which may involve not only interpreting the imagery from the device's camera (if available) but also potentially multiple additional sensors.
Using the Web Animations API - Web APIs
browser support the basic web animations api features discussed in this article are available by default in firefox 48+ and chrome 36+.
Tools for analyzing Web Audio usage - Web APIs
this article discusses tools available to help you do that.
Visualizations with Web Audio API - Web APIs
we have one available in voice-change-o-matic; let's look at how it's done.
Web Budget API - Web APIs
it is available in both document and worker environments.
Web Crypto API - Web APIs
in order to avoid confusion, methods and properties of this interface have been removed from browsers implementing the web crypto api, and all web crypto api methods are available on a new interface: subtlecrypto.
Web Locks API - Web APIs
ifavailable: if specified, the lock request will fail if the lock cannot be granted immediately without waiting.
Window.applicationCache - Web APIs
important: application cache is deprecated as of firefox 44, and is no longer available in insecure contexts from firefox 60 onwards (bug 1354175, currently nightly/beta only).
Window.content - Web APIs
WebAPIWindowcontent
note: since firefox 57 (initially nightly-only), both the content and _content variants are only available to chrome (privileged) code, and not available to the web anymore.
Window.crypto - Web APIs
WebAPIWindowcrypto
although window.crypto is available on all windows, the returned crypto object only has one usable feature in insecure contexts: the getrandomvalues() method.
Window: devicemotion event - Web APIs
it also provides information about the rate of rotation, if available.
Window: deviceorientation event - Web APIs
the deviceorientation event is fired when fresh data is available from an orientation sensor about the current orientation of the device as compared to the earth coordinate frame.
Window.history - Web APIs
WebAPIWindowhistory
the closest available solution is the location.replace() method, which replaces the current item of the session history with the provided url.
Window.innerHeight - Web APIs
both innerheight and innerwidth are available on any window or any object that behaves like a window, such as a tab or frame.
Window.innerWidth - Web APIs
WebAPIWindowinnerWidth
the innerwidth property is available on any window or object that behaves like a window, such as a frame or tab.
Window.isSecureContext - Web APIs
if (window.issecurecontext) { // page is a secure context so service workers are now available navigator.serviceworker.register("/offline-worker.js").then(function () { ...
window.location - Web APIs
WebAPIWindowlocation
see location for all available properties.
Window.requestFileSystem() - Web APIs
the returned filesystem is then available for use with the other file system apis.
window.requestIdleCallback() - Web APIs
the callback function is passed an idledeadline object describing the amount of time available and whether or not the callback has been run because the timeout period expired.
Window.resizeTo() - Web APIs
WebAPIWindowresizeTo
example this function resizes the window so that it takes up one quarter of the available screen.
Window.routeEvent() - Web APIs
WebAPIWindowrouteEvent
the window method routeevent(), which is obsolete and no longer available, used to be called to forward an event to the next object that has asked to capture events.
Window.setCursor() - Web APIs
WebAPIWindowsetCursor
this function is unavailable to web pages, which can use the css cursor property instead.
Window.showModalDialog() - Web APIs
arguments is an optional variant containing values passed to the dialog; these are made available in the window object's window.dialogarguments property.
Window.speechSynthesis - Web APIs
after defining some necessary variables, we retrieve a list of the voices available using speechsynthesis.getvoices() and populate a select menu with them so the user can choose what voice they want.
Window: unhandledrejection event - Web APIs
the event includes two useful pieces of information: promise the actual promise which was rejected with no handler available to deal with the rejection.
WindowEventHandlers.onmessageerror - Web APIs
note: this feature is available in web workers.
self.createImageBitmap() - Web APIs
the available options are: imageorientation: specifies whether the image should be presented as is or flipped vertically.
WindowOrWorkerGlobalScope.queueMicrotask() - Web APIs
ototype.loaddata = function (url) { if (this._cache[url]) { queuemicrotask(() => { this._setdata(this._cache[url]); this.dispatchevent(new event("load")); }); } else { fetch(url).then(res => res.arraybuffer()).then(data => { this._cache[url] = data; this._setdata(data); this.dispatchevent(new event("load")); }); } }; when queuemicrotask() isn't available the code below is basically a monkey-patch for queuemicrotask() for modern engines.
WindowOrWorkerGlobalScope.setInterval() - Web APIs
the following code is also available on github.
WindowOrWorkerGlobalScope.setTimeout() - Web APIs
// recommended window.settimeout(function() { alert('hello world!'); }, 500); // not recommended window.settimeout("alert('hello world!');", 500); a string passed to settimeout is evaluated in the global context, so local symbols in the context where settimeout() was called will not be available when the string is evaluated as code.
Worker() - Web APIs
WebAPIWorkerWorker
available properties are as follows: type: a domstring specifying the type of worker to create.
Worker.onmessage - Web APIs
WebAPIWorkeronmessage
note: the message payload is available in the message event's data property.
Worker.onmessageerror - Web APIs
note: this feature is available in web workers.
Worker.prototype.postMessage() - Web APIs
if the ownership of an object is transferred, it becomes unusable (neutered) in the context it was sent from and becomes available only to the worker it was sent to.
WorkerGlobalScope.performance - Web APIs
not all performance properties and methods are available to web workers.
WorkerLocation - Web APIs
such an object is initialized for each worker and is available via the workerglobalscope.location property obtained by calling self.location.
Synchronous and asynchronous requests - Web APIs
when fetch with keepalive isn't available, you can consider using the navigator.sendbeacon() api, which can support these use cases while typically delivering a good ux.
XMLHttpRequest.mozBackgroundRequest - Web APIs
note: this method is not available from web content.
XMLHttpRequest.openRequest() - Web APIs
this mozilla-specific method is available only from within privileged code, and is only called from a c++ context in order to initialize an xmlhttprequest.
XMLHttpRequest.readyState - Web APIs
2 headers_received send() has been called, and headers and status are available.
XMLHttpRequest.responseXML - Web APIs
this property isn't available to workers.
XPathEvaluator.createNSResolver() - Web APIs
this adapter works like the dom level 3 method node.lookupnamespaceuri() in resolving the namespace uri from a given prefix using the current information available in the node's hierarchy at the time the method is called, also correctly resolving the implicit xml prefix.
XPathResult.booleanValue - Web APIs
note: this feature is available in web workers.
XPathResult.invalidIteratorState - Web APIs
note: this feature is available in web workers.
XPathResult.numberValue - Web APIs
note: this feature is available in web workers.
XPathResult.resultType - Web APIs
note: this feature is available in web workers.
XPathResult.singleNodeValue - Web APIs
note: this feature is available in web workers.
XPathResult.snapshotLength - Web APIs
note: this feature is available in web workers.
XPathResult.stringValue - Web APIs
note: this feature is available in web workers.
XRInputSource.profiles - Web APIs
each string: has no spaces; instead, words are separated by hyphen ("-") characters if the platform makes it available, the usb vendor and product id may be provided but cannot be relied upon does not uniquely identify a specific device; rather, it identifies a configuration that the product is capable of using does not provide information about handedness of the device, if applicable the webxr input profiles registry is used by device developers and browser developers to attempt to ensure that a given device...
XRInputSourceEvent.frame - Web APIs
however, since the event frame isn't an animation frame, there is no viewer pose available to represent the viewer's current point of view; the results of calling getviewerpose() will be an xrviewerpose with an empty views list.
XRInputSourcesChangeEvent.added - Web APIs
the read-only xrinputsourceschangeevent property added is a list of zero or more input sources, each identified using an xrinputsource object, which have been newly made available for use.
XRInputSourcesChangeEventInit.added - Web APIs
the xrinputsourceschangeeventinit property added specifies a list of input sources, each identified using an xrinputsource object, which the represented inputsourceschange event is to indicate are newly available for use.
XRPermissionDescriptor.mode - Web APIs
inline sessions can be presented in either mono or stereo mode, and may or may not have viewer tracking available.
XRPose.emulatedPosition - Web APIs
no information is available about movement forward, backward, or to the sides.
XRReferenceSpace: reset event - Web APIs
the event is sent before any animation frame callbacks are executed to render the pending frame, to ensure that those callbacks have the updated coordinate system available.
XRReferenceSpaceEvent - Web APIs
properties in addition to inheriting the properties available on the parent interface, event, xrreferencespaceevent objects include the following properties: referencespace read only an xrreferencespace indicating the reference space that generated the event.
XRReferenceSpaceEventInit - Web APIs
since the properties are read-only, this is the only opportunity available to set their values.
XRRenderState.baseLayer - Web APIs
examples you can set the xrwebgllayer used for rendering by calling updaterenderstate(), like this: let canvas = document.queryselector("canvas"); gl = canvas.getcontext("webgl", { xrcompatible: true }); setnewwebgllayer(); function setnewwebgllayer(gl) { if (!gl) { /* webgl not available */ return; } xrsession.updaterenderstate({ baselayer: new xrwebgllayer(xrsession, gl); }); }; here, the canvas obtained in the first line is the canvas into which webgl is going to draw.
XRRenderState - Web APIs
properties the followiing properties are available on xrrenderstate objects.
XRSession.inputSources - Web APIs
the read-only inputsources property of the xrsession interface returns an xrinputsourcearray object which lists all controllers and input devices which are expressly associated with the xr device and are currently available.
XRSession: inputsourceschange event - Web APIs
the inputsourceschange event is sent to an xrsession when the set of available webxr input devices changes.
XRSessionEvent - Web APIs
constructor xrsessionevent() creates and returns a new xrsessionevent object configured using the specified xrsessioneventinit object's values as available.
XRSystem: isSessionSupported() - Web APIs
if the no devices are available or the browser doesn't have permission to use the xr device, the promise is rejected with an appropriate domexception.
XRViewerPose.views - Web APIs
syntax let viewlist = xrviewerpose.views; value an array of xrview objects, one for each view available as part of the scene for the current viewer pose.
XRViewport - Web APIs
usage notes currently, the only type of surface available is the xrwebgllayer.
XRWebGLLayer() - Web APIs
the options available are: alpha optional the frame buffer's color buffer will be established with an alpha channel if the alpha boolean property is true.
XRWebGLLayer.ignoreDepthValues - Web APIs
as a parameter you're likely to set yourself, it is unlikely you'll need to read it later, but it's available if the need arises.
XRWebGLLayerInit.ignoreDepthValues - Web APIs
the default value, false, means the depth buffer will be used, if available.
XSL Transformations in Mozilla FAQ - Web APIs
original document information author(s): axel hecht last updated date: february 2, 2005 copyright information: portions of this content are © 1998–2006 by individual mozilla.org contributors; content available under a creative commons license ...
msGetRegionContent - Web APIs
this is only available to regions that are document elements and not to regions that are pseudo-elements.
msRegionOverflow - Web APIs
however, it is only available to regions that are document elements and not to regions that are pseudo-elements.
msWriteProfilerMark - Web APIs
this method is also available in the web worker global scope.
msthumbnailclick - Web APIs
syntax event property object.onmsthumbnailclick = handler; addeventlistener method object.addeventlistener("msthumbnailclick", handler, usecapture) general info synchronous no bubbles no cancelable no note the onmsthumbnailclick event is available only to documents that are launched from a pinned site shortcut.
ARIA: contentinfo role - Accessibility
content is available under <a href="#">these licenses</a>.</p> </div> </body> accessibility concerns use sparingly landmark roles are intended to identify larger overall sections of the document.
ARIA: document role - Accessibility
generally placed within an application role or other interactive widget role, the document role is used to indicate a section of a complex composit widget that an assistive technology user should read using its browse or virtual reading mode, if available.
ARIA: switch role - Accessibility
when the aria-checked attribute's value changes, an accessible event is fired using the system's accessibility api if one is available and it supports the switch role.
ARIA: button role - Accessibility
a third mixed state is available for toggle buttons that control other elements, such as other toggle buttons or checkboxes, which do not all share the same value.
Basic form hints - Accessibility
required and invalid fields note: now that required is available to more than 97% of users globally, it is no longer recommended that you use both required and aria-required.
Multipart labels: Using ARIA for labels with embedded fields inside them - Accessibility
it is very useful and shows that some techniques that have been available for years escape even the gurus sometimes.
ARIA - Accessibility
unfortunately, there isn't a more semantic tag available to developers in html 4, so we need to include aria roles and properties.
Accessibility: What users can do to browse more safely - Accessibility
to reverse it, you will have to change the value back to "normal" use browser extensions gif blocker for chrome, gif blocker is an extension available at the web store.
An overview of accessible web applications and widgets - Accessibility
roles describe widgets that aren't otherwise available in html 4, such as sliders, menu bars, tabs, and dialogs.
-moz-context-properties - CSS: Cascading Style Sheets
to do this the embedding element needs to list the properties that are to be made available to the image by listing them as values of the -moz-context-properties property, and the image needs to opt in to using those properties by using values such as the context-fill value.
::-webkit-scrollbar - CSS: Cascading Style Sheets
::-webkit-scrollbar is only available in blink- and webkit-based browsers (e.g., chrome, edge, opera, safari, all browsers on ios, and others).
::placeholder - CSS: Cascading Style Sheets
with this implementation, the hint content is available even if information is entered into the input field, and the input appears free of preexisting input when the page is loaded.
:target - CSS: Cascading Style Sheets
WebCSS:target
note: a more complete pure-css lightbox based on the :target pseudo-class is available on github (demo).
@document - CSS: Cascading Style Sheets
WebCSS@document
the functions available are: url(), which matches an exact url.
font-weight - CSS: Cascading Style Sheets
there are generally limited weights available for a particular font family.
unicode-range - CSS: Cascading Style Sheets
the unicode-range css descriptor sets the specific range of characters to be used from a font defined by @font-face and made available for use on the current page.
-ms-high-contrast - CSS: Cascading Style Sheets
the available color keywords are: windowtext: controls the color of text content.
display-mode - CSS: Cascading Style Sheets
display mode description fallback display mode fullscreen all of the available display area is used and no user agent chrome is shown.
forced-colors - CSS: Cascading Style Sheets
color fill stroke text-decoration-color text-emphasis-color border-color outline-color column-rule-color scrollbar-color -webkit-tap-highlight-color box-shadow text-shadow you can use system color keywords with any property other than those listed above, to ensure that the rest of the page integrates with the restricted color palette available in forced colors mode.
size - CSS: Cascading Style Sheets
WebCSS@pagesize
size may either be defined with a "scalable" keyword (in this case the page will fill the available dimensions) or with absolute dimensions.
Coordinate systems - CSS: Cascading Style Sheets
whenever the mouse enters, moves around inside, or exits the inner box, the corresponding event is handled by updating a set of informational messages within the box, listing out the current mouse coordinates in each of the four available coordinate systems.
Using CSS animations - CSS: Cascading Style Sheets
we’ve now got to the end of the available duration values, so we start from the beginning again — bounce therefore gets a duration of 2.5s.
Box alignment for block, absolutely positioned and table layout - CSS: Cascading Style Sheets
a margin of auto will absorb all available space in that dimension, therefore setting a left and right margin of auto, you can push a block into the center: .container { width: 20em; margin-left: auto; margin-right: auto; } in table layout, you have access to the vertical-align property to align the contents of a cell inside that cell.
Basic Concepts of Multicol - CSS: Cascading Style Sheets
the column box will only shrink to be smaller than the declared column width in the case of a single column with less available width than the value of column-width.
Using multi-column layouts - CSS: Cascading Style Sheets
if column-count is not also set, then the browser will automatically make as many columns as fit in the available width.
Mastering Wrapping of Flex Items - CSS: Cascading Style Sheets
single-dimensional layout explained as we have seen from the above examples if our items are allowed to grow and shrink, when there are fewer items in the last row or column then those items grow to fill the available space.
Using CSS gradients - CSS: Cascading Style Sheets
however, the repeating-linear-gradient(), repeating-radial-gradient(), and repeating-conic-gradient() functions are available to offer this functionality.
Consistent list indentation - CSS: Cascading Style Sheets
in order to avoid this and get some indentation, there are really only three options available to browser implementors.
Logical properties for margins, borders and padding - CSS: Cascading Style Sheets
margin shorthands as we can now target both sides of a box — either both inline sides or both block sides — there are new shorthands available, margin-inline and margin-block, which accept two values.
Browser compatibility and Scroll Snap - CSS: Cascading Style Sheets
in such cases we can end up with implementations of older versions available alongside newer versions as browsers are in the process of updating.
Grid wrapper - CSS: Cascading Style Sheets
the outer two columns have a maximum size of 1fr, meaning that they will each expand to fill the remaining available space in the grid container.
Sticky footers - CSS: Cascading Style Sheets
the 1fr track will take up all available space and so grows to fill the gap.
Mozilla CSS extensions - CSS: Cascading Style Sheets
trad-chinese-informal -moz-urdu overflow -moz-scrollbars-none -moz-scrollbars-horizontal -moz-scrollbars-vertical -moz-hidden-unscrollable text-align -moz-center -moz-left -moz-right text-decoration -moz-anchor-decoration -moz-user-select -moz-all -moz-none width, min-width, and max-width -moz-min-content -moz-fit-content -moz-max-content -moz-available pseudo-elements and pseudo-classes a – d ::-moz-anonymous-block eg@:- bug 331432 ::-moz-anonymous-positioned-block :-moz-any :-moz-any-link [matches :link and :visited] :-moz-broken ::-moz-canvas ::-moz-color-swatch ::-moz-cell-content :-moz-drag-over f – i :-moz-first-node ::-moz-focus-inner ::-moz-focus-outer :-moz-focusring :-moz-full-screen :-moz-full-scr...
background-size - CSS: Cascading Style Sheets
the image can be left to its natural size, stretched, or constrained to fit the available space.
border-bottom-style - CSS: Cascading Style Sheets
ted; border-bottom-style: dashed; border-bottom-style: solid; border-bottom-style: double; border-bottom-style: groove; border-bottom-style: ridge; border-bottom-style: inset; border-bottom-style: outset; /* global values */ border-bottom-style: inherit; border-bottom-style: initial; border-bottom-style: unset; the border-bottom-style property is specified as a single keyword chosen from those available for the border-style property.
border-left-style - CSS: Cascading Style Sheets
border-left-style: dotted; border-left-style: dashed; border-left-style: solid; border-left-style: double; border-left-style: groove; border-left-style: ridge; border-left-style: inset; border-left-style: outset; /* global values */ border-left-style: inherit; border-left-style: initial; border-left-style: unset; the border-left-style property is specified as a single keyword chosen from those available for the border-style property.
border-right-style - CSS: Cascading Style Sheets
-style: dotted; border-right-style: dashed; border-right-style: solid; border-right-style: double; border-right-style: groove; border-right-style: ridge; border-right-style: inset; border-right-style: outset; /* global values */ border-right-style: inherit; border-right-style: initial; border-right-style: unset; the border-right-style property is specified as a single keyword chosen from those available for the border-style property.
border-top-style - CSS: Cascading Style Sheets
le: hidden; border-top-style: dotted; border-top-style: dashed; border-top-style: solid; border-top-style: double; border-top-style: groove; border-top-style: ridge; border-top-style: inset; border-top-style: outset; /* global values */ border-top-style: inherit; border-top-style: initial; border-top-style: unset; the border-top-style property is specified as a single keyword chosen from those available for the border-style property.
columns - CSS: Cascading Style Sheets
WebCSScolumns
the actual width may be wider or narrower to fit the available space.
Adapting to the new two-value syntax of display - CSS: Cascading Style Sheets
it has become a block-level box taking up all available space in the inline direction.
<easing-function> - CSS: Cascading Style Sheets
examples easing function comparison this example creates an animation that can be started and stopped again using the provided button, and a select menu that can be used to switch its easing function between the available keywords, plus a couple of cubic-bezier() and steps() options.
flex - CSS: Cascading Style Sheets
WebCSSflex
the flex css shorthand property sets how a flex item will grow or shrink to fit the space available in its flex container.
font-feature-settings - CSS: Cascading Style Sheets
zero { font-feature-settings: "zero"; } /* enable historical forms */ .hist { font-feature-settings: "hist"; } /* disable common ligatures, usually on by default */ .noligs { font-feature-settings: "liga" 0; } /* enable tabular (monospaced) figures */ td.tabular { font-feature-settings: "tnum"; } /* enable automatic fractions */ .fractions { font-feature-settings: "frac"; } /* use the second available swash character */ .swash { font-feature-settings: "swsh" 2; } /* enable stylistic set 7 */ .fancystyle { font-family: gabriola; /* available on windows 7, and on mac os */ font-feature-settings: "ss07"; } specifications specification status comment css fonts module level 3the definition of 'font-feature-settings' in that specification.
font-smooth - CSS: Cascading Style Sheets
auto - let the browser decide (uses subpixel anti-aliasing when available; this is the default) none - turn font smoothing off; display text with jagged sharp edges.
font-variant-caps - CSS: Cascading Style Sheets
if petite capital glyphs are not available, they are rendered using small capital glyphs.
font-variation-settings - CSS: Cascading Style Sheets
the <number> can be fractional or negative, depending on the value range available in your font, as defined by the font designer.
height - CSS: Cascading Style Sheets
WebCSSheight
fit-content(<length-percentage>) uses the fit-content formula with the available space replaced by the specified argument, i.e.
hyphens - CSS: Cascading Style Sheets
WebCSShyphens
in html, the language is determined by the lang attribute, and browsers will hyphenate only if this attribute is present and the appropriate hyphenation dictionary is available.
justify-content - CSS: Cascading Style Sheets
the alignment is done after the lengths and auto margins are applied, meaning that, if in a flexbox layout there is at least one flexible element, with flex-grow different from 0, it will have no effect as there won't be any available space.
list-style - CSS: Cascading Style Sheets
if list-style-type and list-style-image are both set, then list-style-type is used as a fallback if the image is unavailable.
margin-left - CSS: Cascading Style Sheets
in this case, it is set to the value centering the border area inside the available width, if fixed.
margin-right - CSS: Cascading Style Sheets
in this case, it is set to the value centering the border area inside the available width, if fixed.
margin - CSS: Cascading Style Sheets
WebCSSmargin
however, in older browsers like ie8-9 that do not support flexible box layout, these are not available.
max-block-size - CSS: Cascading Style Sheets
fit-content(<length-percentage>) uses the fit-content formula with the available space replaced by the specified argument, i.e.
min-height - CSS: Cascading Style Sheets
fit-content(<length-percentage>) uses the fit-content formula with the available space replaced by the specified argument, i.e.
order - CSS: Cascading Style Sheets
WebCSSorder
the flexible box layout module automatically creates blocks of equal vertical size and uses as much horizontal space as available.
width - CSS: Cascading Style Sheets
WebCSSwidth
fit-content(<length-percentage>) uses the fit-content formula with the available space replaced by the specified argument, i.e.
CSS: Cascading Style Sheets
WebCSS
this module looks at the cascade and inheritance, all the selector types we have available, units, sizing, styling backgrounds and borders, debugging, and lots more.
Community - Developer guides
WebGuideAJAXCommunity
ajax resources ajax workshops and courses skillsmatter.com: courses and events on javascript, ajax, and reverse ajax technologies telerik.com: an active community forum for ajax community.tableau.com: community support forum and courses available for ajax codementor.io: social platform with ajax forums and tutorials lynda.com: tutorials available for learning the fundamentals of ajax ajax interview questions and answer and answerinterwiki links ...
WAI ARIA Live Regions/API Support - Developer guides
this information is available only for event_show, event_hide, ia2_event_text_inserted and ia2_event_text_removed.
Adding captions and subtitles to HTML5 video - Developer guides
safari safari 6.1+ has similar support to internet explorer 10+, displaying a menu with the different available options, with the addition of an "auto" option, which allows the browser to choose.
Setting up adaptive streaming media sources - Developer guides
hls encoding tools ther are a number of useful tools available for hls encoding for hls live stream encoding adobe provide a media encoder for mac.
Media buffering, seeking, and time ranges - Developer guides
------------------------------------------------------ |=============| |===========| | ------------------------------------------------------ 0 5 15 19 21 for this audio instance, the associated timeranges object would have the following available properties: myaudio.buffered.length; // returns 2 myaudio.buffered.start(0); // returns 0 myaudio.buffered.end(0); // returns 5 myaudio.buffered.start(1); // returns 15 myaudio.buffered.end(1); // returns 19 to try out and visualize buffered time ranges we can write a little bit of html: <p> <audio id="my-audio" controls> <source src="music.mp3" type="audio/mpeg"> </audio> </p> <...
Creating a cross-browser video player - Developer guides
ideally, the correct value of the video's duration attribute is available when the loadedmetadata event is raised, which occurs when the video's metadata has been loaded: video.addeventlistener('loadedmetadata', function() { progress.setattribute('max', video.duration); }); unfortunately in some mobile browsers, when loadedmetadata is raised — if it even is raised — video.duration may not have the correct value, or even any value at all.
Mouse gesture events - Developer guides
note: these gesture events are available to add-ons and other browser chrome code, but are never sent to regular web page content.
Touch events (Mozilla experimental) - Developer guides
the experimental touch events api described on this page was available from gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) to gecko/firefox 17.
Making content editable - Developer guides
</div> here's the above html in action: executing commands when an html element has contenteditable set to true, the document.execcommand() method is made available.
HTML5 Parser - Developer guides
WebGuideHTMLHTML5HTML5 Parser
the mathml named characters are available for use in named character references everywhere in the document (also in html content).
Localizations and character encodings - Developer guides
setting some encodings to be more easily selectable from the character encoding menu the preference intl.charsetmenu.browser.static in intl.properties makes some character encodings more easily available in the character encoding menu in the browser.
Optimization and performance - Developer guides
there are several tools available to check the performance of a website or blog.
The Web Open Font Format (WOFF) - Developer guides
WebGuideWOFF
tools for working with woff fonts tools for working with woff fonts are available.
The HTML autocomplete attribute - HTML: Hypertext Markup Language
the html autocomplete attribute is available on <input> elements that take a text or numeric value as input, <textarea> elements, <select> elements, and <form> elements.
Block-level elements - HTML: Hypertext Markup Language
a block-level element always starts on a new line and takes up the full width available (stretches out to the left and right as far as it can).
Allowing cross-origin use of images and canvas - HTML: Hypertext Markup Language
this event is triggered once the downloaded data is all available.
<blockquote>: The Block Quotation element - HTML: Hypertext Markup Language
this is because of the 3d ether space available to the carriers, in contrast to the 1d ether used by ieee802.3.
<button>: The Button element - HTML: Hypertext Markup Language
WebHTMLElementbutton
this attribute is also available on <input type="image"> and <input type="submit"> elements.
<command>: The HTML Command element - HTML: Hypertext Markup Language
WebHTMLElementcommand
disabled indicates that the command is not available.
<datalist>: The HTML Data List element - HTML: Hypertext Markup Language
WebHTMLElementdatalist
the html <datalist> element contains a set of <option> elements that represent the permissible or recommended options available to choose from within other controls.
<head>: The Document Metadata (Header) element - HTML: Hypertext Markup Language
WebHTMLElementhead
permitted content if the document is an <iframe> srcdoc document, or if title information is available from a higher level protocol (like the subject line in html email), zero or more elements of metadata content.
<iframe>: The Inline Frame element - HTML: Hypertext Markup Language
WebHTMLElementiframe
available only to webextensions.
<input type="checkbox"> - HTML: Hypertext Markup Language
WebHTMLElementinputcheckbox
the most common is when a checkbox is available that "owns" a number of sub-options (which are also checkboxes).
<input type="email"> - HTML: Hypertext Markup Language
WebHTMLElementinputemail
validation there are two levels of content validation available for email inputs.
<input type="hidden"> - HTML: Hypertext Markup Language
WebHTMLElementinputhidden
ts, hidden inputs offer the following attributes: attribute description name like all input types, the name of the input to report when submitting the form; the special value _charset_ causes the hidden input's value to be reported as the character encoding used to submit the form name this is actually one of the common attributes, but it has a special meaning available for hidden inputs.
<input type="password"> - HTML: Hypertext Markup Language
WebHTMLElementinputpassword
<label for="hexid">hex id: </label> <input id="hexid" type="password" pattern="[0-9a-fa-f]{4,8}" title="enter an id consisting of 4-8 hexadecimal digits" autocomplete="new-password"> disabled this boolean attribute indicates that the password field is not available for interaction.
<input type="range"> - HTML: Hypertext Markup Language
WebHTMLElementinputrange
events change and input supported common attributes autocomplete, list, max, min, and step idl attributes list, value, and valueasnumber methods stepdown() and stepup() validation there is no pattern validation available; however, the following forms of automatic validation are performed: if the value is set to something which can't be converted into a valid floating-point number, validation fails because the input is suffering from a bad input.
<input type="tel"> - HTML: Hypertext Markup Language
WebHTMLElementinputtel
non-standard attributes the following non-standard attributes are available to telephone number input fields.
<input type="time"> - HTML: Hypertext Markup Language
WebHTMLElementinputtime
no information is yet available about when or if safari will add it.
<keygen> - HTML: Hypertext Markup Language
WebHTMLElementkeygen
disabled this boolean attribute indicates that the form control is not available for interaction.
<link>: The External Resource Link element - HTML: Hypertext Markup Language
WebHTMLElementlink
these provide useful hints to allow the browser to choose the most appropriate icon available.
<menuitem> - HTML: Hypertext Markup Language
WebHTMLElementmenuitem
disabled boolean attribute which indicates that the command is not available in the current state.
<noframes>: The Frame Fallback element - HTML: Hypertext Markup Language
WebHTMLElementnoframes
it has no other attributes available.
<textarea> - HTML: Hypertext Markup Language
WebHTMLElementtextarea
the non-deprecated values are available in ios 5 and later.
<track>: The Embed Text Track element - HTML: Hypertext Markup Language
WebHTMLElementtrack
label a user-readable title of the text track which is used by the browser when listing available text tracks.
<u>: The Unarticulated Annotation (Underline) element - HTML: Hypertext Markup Language
WebHTMLElementu
result the result should be familiar to anyone who has used any of the more popular word processors available today.
<var>: The Variable element - HTML: Hypertext Markup Language
WebHTMLElementvar
in this example, variable names are rendered using bold courier if it's available, otherwise it falls back to the default monospace font.
data-* - HTML: Hypertext Markup Language
all such custom data are available via the htmlelement interface of the element the attribute is set on.
itemtype - HTML: Hypertext Markup Language
stars, based on <span itemprop="reviewcount">89 </span> reviews </span><p> <span itemprop="offers" itemscope itemtype="http://schema.org/offer"> regular price: $179.99<br> <meta itemprop="pricecurrency" content="usd" /> <span itemprop="price">sale price: $119.99<br></span> (sale ends <time itemprop="pricevaliduntil" datetime="2020-11-05"> 5 november!</time>)<br> available from: <span itemprop="seller" itemscope itemtype="http://schema.org/organization"> <span itemprop="name">executive objects<br></span> </span> condition: <link itemprop="itemcondition" href="http://schema.org/usedcondition"/>previously owned, in excellent condition<br> <link itemprop="availability" href="http://schema.org/instock"/>in stock!
Global attributes - HTML: Hypertext Markup Language
all such custom data are available via the htmlelement interface of the element the attribute is set on.
Microdata - HTML: Hypertext Markup Language
web developers can design a custom vocabulary or use vocabularies available on the web, such as the widely used schema.org vocabulary.
Microformats - HTML: Hypertext Markup Language
the parser makes this data available via apis that can be used for different applications.
HTML: Hypertext Markup Language
WebHTML
this ensures that they are made available earlier and are less likely to block the page's first render, leading to performance improvements.
Evolution of HTTP - HTTP
since 2005, the set of apis available to web pages greatly increased and several of these apis created extensions, mostly new specific http headers, to the http protocol for specific purposes: server-sent events, where the server can push occasional messages to the browser.
MIME types (IANA media types) - HTTP
this isn't a complete list of all the types that may be available, however.
Basics of HTTP - HTTP
resource urls resource urls, those prefixed with the resource scheme are used by firefox and firefox browser extensions to load resources internally, but is also available to some sites the browser connects to as well.
HTTP caching - HTTP
WebHTTPCaching
this cache is used to make visited documents available for back/forward navigation, saving, viewing-as-source, etc.
Connection management in HTTP/1.x - HTTP
as an http/1.x connection is serializing requests, even without any ordering, it can't be optimal without large enough available bandwidth.
Content-Location - HTTP
then the client could remember that the json version is available at that particular url, skipping content negotation the next time it requests that document.
CSP: trusted-types - HTTP
'allow-duplicates' allows for creating policies with a name that was already used examples todo polyfill a polyfill for trusted types is available on github.
CSP: upgrade-insecure-requests - HTTP
note that, if the requested resource is not actually available via https, the request will fail without any fallback to http.
Cross-Origin-Embedder-Policy - HTTP
to check if cross origin isolation has been successful, you can test against the crossoriginisolated property available to window and worker contexts: if (crossoriginisolated) { // post sharedarraybuffer } else { // do something else } avoiding coep blockage with cors if you enable coep using require-corp and have a cross origin resource that needs to be loaded, it needs to support cors and you need to explicitly mark the resource as loadable from another origin to avoid blockage from coep.
Feature-Policy: screen-wake-lock - HTTP
note: this api is still actively being developed and available only behind a flag on select browsers and platforms.
Feature-Policy: wake-lock - HTTP
note: this api is still actively being developed and available only behind a flag on select browsers and platforms.
Large-Allocation - HTTP
this message means that the browser saw the large-allocation header, and was able to reload the page into a new process which should have more available contiguous memory.
Server-Timing - HTTP
the interface is only available in secure contexts (https) in some browsers.
HTTP headers - HTTP
WebHTTPHeaders
accept-signature a client can send the accept-signature header field to indicate intention to take advantage of any available signatures and to indicate what kinds of signatures it supports.
Network Error Logging - HTTP
time": 338, "method": "post", "phase": "application", "protocol": "http/1.1", "referrer": "https://example.com/previous-page", "sampling_fraction": 1, "server_ip": "137.205.28.66", "status_code": 400, "type": "http.error", "url": "https://example.com/bad-request" } } dns name not resolved note that the phase is set to dns in this report and no server_ip is available to include.
Proxy Auto-Configuration (PAC) file - HTTP
ain.com:8080; " + "proxy proxy4.mydomain.com:8080"; else if (shexpmatch(host, "*.edu")) return "proxy proxy2.mydomain.com:8080; " + "proxy proxy4.mydomain.com:8080"; else return "proxy proxy3.mydomain.com:8080; " + "proxy proxy4.mydomain.com:8080"; } example 6 setting a proxy for a specific protocol most of the standard javascript functionality is available for use in the findproxyforurl() function.
402 Payment Required - HTTP
WebHTTPStatus402
originally it was created to enable digital cash or (micro) payment systems and would indicate that the requested content is not available until the client makes a payment.
406 Not Acceptable - HTTP
WebHTTPStatus406
if a server returns such an error status, the body of the message should contain the list of the available representations of the resources, allowing the user to choose among them.
410 Gone - HTTP
WebHTTPStatus410
the hypertext transfer protocol (http) 410 gone client error response code indicates that access to the target resource is no longer available at the origin server and that this condition is likely to be permanent.
HTTP
WebHTTP
connection management in http/1.x describes the three connection management models available in http/1.x, their strengths, and their weaknesses.
CSS Houdini
it is not yet natively available.
About JavaScript - JavaScript
what javascript implementations are available?
Concurrency model and the event loop - JavaScript
event loop the event loop got its name because of how it's usually implemented, which usually resembles: while (queue.waitformessage()) { queue.processnextmessage() } queue.waitformessage() waits synchronously for a message to arrive (if one is not already available and waiting to be handled).
Expressions and operators - JavaScript
a complete and detailed list of operators and expressions is also available in the reference.
Functions - JavaScript
a closure is created when the inner function is somehow made available to any scope outside the outer function.
Introduction - JavaScript
this guide includes some javascript features which are only currently available in the latest versions of firefox, so using the most recent version of firefox is recommended.
Loops and iteration - JavaScript
this chapter of the javascript guide introduces the different iteration statements available to javascript.
Regular expression syntax cheatsheet - JavaScript
note: as there are many properties and values available, we will not describe them exhaustively here but rather provide various examples ...
Using Promises - JavaScript
unhandledrejection sent when a promise is rejected but there is no rejection handler available.
Inheritance and the prototype chain - JavaScript
more information is available for firefox developer tools, chrome devtools, and edge devtools.) function dosomething(){} console.log( dosomething.prototype ); // it does not matter how you declare the function, a // function in javascript will always have a default // prototype property.
Private class fields - JavaScript
return 42; } static publicstaticmethod1() { return base.#privatestaticmethod(); } static publicstaticmethod2() { return this.#privatestaticmethod(); } } class derived extends base {} console.log(derived.publicstaticmethod1()); // 42 console.log(derived.publicstaticmethod2()); // typeerror private instance methods private instance methods are methods available on class instances whose access is restricted in the same manner as private instance fields.
Public class fields - JavaScript
public instance methods as the name implies, public instance methods are methods available on class instances.
Deprecated and obsolete features - JavaScript
this page lists features of javascript that are deprecated (that is, still available but planned for removal) and obsolete (that is, no longer usable).
Warning: String.x is deprecated; use String.prototype.x instead - JavaScript
examples deprecated syntax var num = 15; string.replace(num, /5/, '2'); standard syntax var num = 15; string(num).replace(/5/, '2'); shim the following is a shim to provide support to non-supporting browsers: /*globals define*/ // assumes all supplied string instance methods already present // (one may use shims for these if not available) (function() { 'use strict'; var i, // we could also build the array of methods with the following, but the // getownpropertynames() method is non-shimable: // object.getownpropertynames(string).filter(function(methodname) { // return typeof string[methodname] === 'function'; // }); methods = [ 'contains', 'substring', 'tolowercase', 'touppercase', 'charat',...
Default parameters - JavaScript
(value, array = []) { array.push(value) return array } append(1) // [1] append(2) // [2], not [1, 2] this even applies to functions and variables: function callsomething(thing = something()) { return thing } let numberoftimescalled = 0 function something() { numberoftimescalled += 1 return numberoftimescalled } callsomething() // 1 callsomething() // 2 earlier parameters are available to later default parameters parameters defined earlier (to the left) are available to later default parameters: function greet(name, greeting, message = greeting + ' ' + name) { return [name, greeting, message] } greet('david', 'hi') // ["david", "hi", "hi david"] greet('david', 'hi', 'happy birthday!') // ["david", "hi", "happy birthday!"] this functionality can be ap...
The arguments object - JavaScript
the arguments object is a local variable available within all non-arrow functions.
Array.prototype.find() - JavaScript
polyfill this method has been added to the ecmascript 2015 specification and may not be available in all javascript implementations yet.
Array.isArray() - JavaScript
polyfill running the following code before any other code will create array.isarray() if it's not natively available.
Array.of() - JavaScript
for more information, see: array.of() array.from() proposal array.of() polyfill polyfill running the following code before any other code will create array.of() if it's not natively available.
Array.prototype.sort() - JavaScript
ction(el, i) { return { index: i, value: el.tolowercase() }; }) // sorting the mapped array containing the reduced values mapped.sort(function(a, b) { if (a.value > b.value) { return 1; } if (a.value < b.value) { return -1; } return 0; }); // container for the resulting order var result = mapped.map(function(el){ return list[el.index]; }); there is an open source library available called mapsort which applies this approach.
Array.prototype.toSource() - JavaScript
description the tosource method returns the following values: for the built-in array object, tosource returns the following string indicating that the source code is not available: function array() { [native code] } for instances of array, tosource returns a string representing the source code.
BigInt.asIntN() - JavaScript
syntax bigint.asintn(width, bigint); parameters width the amount of bits available for the integer size.
BigInt.asUintN() - JavaScript
syntax bigint.asuintn(width, bigint); parameters width the amount of bits available for the integer size.
Boolean.prototype.toSource() - JavaScript
examples native function for the built-in boolean object, tosource returns the following string indicating that the source code is not available: function boolean() { [native code] } specifications not part of any standard.
Date.prototype.toSource() - JavaScript
examples native function for the built-in date object, tosource() returns the following string indicating that the source code is not available: function date() { [native code] } specifications not part of any standard.
Date - JavaScript
date format and time zone conversions there are a number of methods available to obtain a date in various formats, as well as to perform time zone conversions.
Error.prototype.message - JavaScript
description this property contains a brief description of the error if one is available or has been set.
Error - JavaScript
class customerror extends error { constructor(foo = 'bar', ...params) { // pass remaining arguments (including vendor specific ones) to parent constructor super(...params) // maintains proper stack trace for where our error was thrown (only available on v8) if (error.capturestacktrace) { error.capturestacktrace(this, customerror) } this.name = 'customerror' // custom debugging information this.foo = foo this.date = new date() } } try { throw new customerror('baz', 'bazmessage') } catch(e) { console.error(e.name) //customerror console.error(e.foo) //baz console.error(e.message) //bazmessage co...
Function.arguments - JavaScript
the recommended way to access the arguments object available within functions is simply to refer to the variable arguments.
Function.prototype.toSource() - JavaScript
examples native functions for the built-in function object, tosource() returns the following string indicating that the source code is not available: function function() { [native code] } custom functions for custom functions, tosource() returns the javascript source that defines the object as a string.
Function - JavaScript
use the arguments object (available within the function) instead.
Intl.DateTimeFormat.prototype.resolvedOptions() - JavaScript
weekday era year month day hour minute second timezonename the values resulting from format matching between the corresponding properties in the options argument and the available combinations and representations for date-time formatting in the selected locale.
Intl.Locale.prototype.baseName - JavaScript
specifically, the property returns the substring containing the language, and the script and region if available.
Intl.Locale.prototype.collation - JavaScript
below is a table with the available collation types, taken from the unicode collation specification.
Intl.NumberFormat.prototype.formatToParts() - JavaScript
at formatters by providing you the string in parts: formatter.formattoparts(number); // return value: [ { type: "integer", value: "3" }, { type: "group", value: "." }, { type: "integer", value: "500" }, { type: "decimal", value: "," }, { type: "fraction", value: "00" }, { type: "literal", value: " " }, { type: "currency", value: "€" } ] now the information is available separately and it can be formatted and concatenated again in a customized way.
Intl - JavaScript
the runtime compares it against the locales it has available and picks the best one available.
Math.clz32() - JavaScript
now, inversing the bits reveals the lowest bits return 32 - clz(~integer) |0; // `|0` ensures integer coercion } function ctron(integer){ // count trailing ones // no shift-filling-in-with-ones operator is available in // javascript, so the below code is the fastest return ctrz(~integer); /* alternate implementation for demonstrational purposes: // 1.
Number.prototype.toSource() - JavaScript
examples native function for the built-in number object, tosource() returns the following string indicating that the source code is not available: function number() { [native code] } for instances of number, tosource() returns a string representing the source code.
Object.create() - JavaScript
; } // inherit one class myclass.prototype = object.create(superclass.prototype); // mixin another object.assign(myclass.prototype, othersuperclass.prototype); // re-assign constructor myclass.prototype.constructor = myclass; myclass.prototype.mymethod = function() { // do something }; object.assign() copies properties from the othersuperclass prototype to the myclass prototype, making them available to all instances of myclass.
Object.defineProperty() - JavaScript
object.defineproperty(obj, 'key', withvalue('static')); // if freeze is available, prevents adding or // removing the object prototype properties // (value, get, set, enumerable, writable, configurable) (object.freeze || object)(object.prototype); examples if you want to see how to use the object.defineproperty method with a binary-flags-like syntax, see additional examples.
Object.setPrototypeOf() - JavaScript
nding a new function to that chain function person(sname) { this.identity = sname; } var george = object.appendchain(new person('george'), 'console.log("hello guys!!");'); console.log(george.identity); // 'george' george(); // 'hello guys!!' polyfill using the older object.prototype.__proto__ property, we can easily define object.setprototypeof if it isn't available already: if (!object.setprototypeof) { // only works in chrome and firefox, does not work in ie: object.prototype.setprototypeof = function(obj, proto) { if(obj.__proto__) { obj.__proto__ = proto; return obj; } else { // if you want to return prototype of object.create(null): var fn = function() { for...
Object.prototype.toSource() - JavaScript
description the tosource() method returns the following values: for the built-in object object, tosource() returns the following string indicating that the source code is not available: function object() { [native code] } for instances of object, tosource() returns a string representing the source code.
Promise.any() - JavaScript
we use promise.any() to fetch a couple of images and display the first one available (i.e.
RegExp.prototype.toSource() - JavaScript
examples native function for the built-in regexp object, tosource() returns the following string indicating that the source code is not available: function regexp() { [native code] } for instances of regexp, tosource() returns a string representing the source code.
String.prototype.endsWith() - JavaScript
polyfill this method has been added to the ecmascript 6 specification and may not be available in all javascript implementations yet.
String.prototype.includes() - JavaScript
for example, the following expression returns false: 'blue whale'.includes('blue') // returns false polyfill this method has been added to the ecmascript 2015 specification and may not be available in all javascript implementations yet.
String.prototype.matchAll() - JavaScript
the /g flag) in a loop to obtain all the matches: const regexp = regexp('foo[a-z]*','g'); const str = 'table football, foosball'; let match; while ((match = regexp.exec(str)) !== null) { console.log(`found ${match[0]} start=${match.index} end=${regexp.lastindex}.`); // expected output: "found football start=6 end=14." // expected output: "found foosball start=16 end=24." } with matchall available, you can avoid the while loop and exec with g.
String.prototype.repeat() - JavaScript
polyfill this method has been added to the ecmascript 2015 specification and may not be available in all javascript implementations yet.
String.prototype.replace() - JavaScript
only available in browser versions supporting named capturing groups.
String.prototype.replaceAll() - JavaScript
it will become available in chrome 85.
String.prototype.toLocaleLowerCase() - JavaScript
if multiple locales are given in an array, the best available locale is used.
String.prototype.toLocaleUpperCase() - JavaScript
if multiple locales are given in an array, the best available locale is used.
String.prototype.toSource() - JavaScript
examples native function for the built-in string object, tosource() returns the following string indicating that the source code is not available: function string() { [native code] } for instances of string or string literals, tosource() returns a string representing the source code.
String.prototype.trim() - JavaScript
polyfill running the following code before any other code will create trim() if it's not natively available.
String - JavaScript
they are of limited use, as they provide only a subset of the available html tags and attributes.
Symbol.for() - JavaScript
description in contrast to symbol(), the symbol.for() function creates a symbol available in a global symbol registry list.
Symbol.prototype.toSource() - JavaScript
examples native function for the built-in symbol object, tosource returns the following string indicating that the source code is not available: "function symbol() { [native code] }" for instances of symbol, tosource returns a string representing the source code.
Symbol.toStringTag - JavaScript
"object" tag: class validatorclass {} object.prototype.tostring.call(new validatorclass()); // "[object object]" custom tag with tostringtag now, with the help of tostringtag, you are able to set your own custom tag: class validatorclass { get [symbol.tostringtag]() { return 'validator'; } } object.prototype.tostring.call(new validatorclass()); // "[object validator]" tostringtag available on all dom prototype objects due to a webidl spec change in mid-2020, browsers are adding a symbol.tostringtag property to all dom prototype objects.
Symbol.unscopables - JavaScript
note that if using strict mode, with statements are not available and will likely also not need this symbol.
WebAssembly.Module.customSections() - JavaScript
the wast2wasm command available as part of the wabt tool has a --debug-names option — specify this during conversion to get a .wasm with a names custom section, for example: wast2wasm simple-name-section.was -o simple-name-section.wasm --debug-names examples using customsections the following example (see the custom-section.html source and live example) compiles the loaded simple-name-section.wasm byte code.
WebAssembly.Module.exports() - JavaScript
when the module is received, we create an instance from it using the webassembly.instantiate() method, invoke an exported function from inside it, then show how we can return information on the available exports on a module using webassembly.module.exports.
globalThis - JavaScript
} with globalthis available, the additional search for the global across environments is not necessary anymore: if (typeof globalthis.settimeout !== 'function') { // no settimeout in this environment!
isNaN() - JavaScript
a nan also results from attempted coercion to numeric values of non-numeric values for which no primitive numeric value is available.
Standard built-in objects - JavaScript
the host objects available in browser contexts are documented in the api reference.
Iteration protocols - JavaScript
in order to be iterable, an object must implement the @@iterator method, meaning that the object (or one of the objects up its prototype chain) must have a property with a @@iterator key which is available via constant symbol.iterator: property value [symbol.iterator] a zero-argument function that returns an object, conforming to the iterator protocol.
Optional chaining (?.) - JavaScript
this can be helpful, for example, when using an api in which a method might be unavailable, either due to the age of the implementation or because of a feature which isn't available on the user's device.
new.target - JavaScript
the new.target pseudo-property is available in all functions.
switch - JavaScript
block-scope variables within switch statements with ecmascript 2015 (es6) support made available in most modern browsers, there will be cases where you would want to use let and const statements to declare block-scoped variables.
with - JavaScript
however, ecmascript 2015 introduces a values property on array.prototype (so that it will be available on every array).
Strict mode - JavaScript
those previous arguments remain available through arguments[i], so they're not completely inaccessible.
Template literals (Template strings) - JavaScript
i'm almost 30 years old." raw strings the special raw property, available on the first argument to the tag function, allows you to access the raw strings as they were entered, without processing escape sequences.
JavaScript shells - JavaScript
jsconsole.com -- an open-source javascript console with the ability to easily link to particular expressions javascript shell (web page) - also available as part of the extension developer's extension jash: javascript shell - a dhtml based shell that gives you command line access to a web page.
JavaScript typed arrays - JavaScript
moreover, not all methods available for normal arrays are supported by typed arrays (e.g.
display - Web app manifests
values the possible values are: display mode description fallback display mode fullscreen all of the available display area is used and no user agent chrome is shown.
related_applications - Web app manifests
list of available values url the url at which the application can be found.
MathML attribute reference - MathML
more details for each attribute are available on particular element pages.
<mglyph> - MathML
WebMathMLElementmglyph
the mathml <mglyph> element is used to display non-standard symbols where existing unicode characters are not available.
Autoplay guide for media and Web Audio APIs - Web media technologies
the default value, true, means that even when otherwise available, autoplay won't take place until after a tab is brought to the foreground.
The "codecs" parameter in common media types - Web media technologies
the high tier is only available for level 4.0 and up.
Mapping the width and height attributes of media container elements to their aspect-ratio - Web media technologies
when such an element has width and height attributes set on it, its aspect ratio will be calculated before load time, and be available to the browser.
Responsive Navigation Patterns - Progressive web apps (PWAs)
note: html/css for the corresponding patterns will be available soon.
contentStyleType - SVG: Scalable Vector Graphics
this language is used for all instances of style that do not specify their own styling language, such as the style attribute that is available on many elements.
data-* - SVG: Scalable Vector Graphics
WebSVGAttributedata-*
their custom data are available via the svgelement interface of the element the attributes belong to, with the svgelement.dataset property.
font-size-adjust - SVG: Scalable Vector Graphics
this means that the first-choice font, when available, will appear the same size in browsers, whether or not they support font-size-adjust.
in - SVG: Scalable Vector Graphics
WebSVGAttributein
if no value is provided, the output will only be available for re-use as the implicit input into the next filter primitive if that filter primitive provides no value for its in attribute.
lang - SVG: Scalable Vector Graphics
WebSVGAttributelang
candidate recommendation made the lang attribute (without namespace) available on all elements and defined the interaction between both.
local - SVG: Scalable Vector Graphics
WebSVGAttributelocal
if both the xlink:href and the local attribute are specified, then the local file system is searched for the color profile first, and, if not available locally, then the resource identified by the xlink:href attribute is used.
requiredFeatures - SVG: Scalable Vector Graphics
this provides a way to design svg that gracefully falls back when features aren't available.
result - SVG: Scalable Vector Graphics
WebSVGAttributeresult
if no value is provided, the output will only be available for re-use as the implicit input into the next filter primitive if that filter primitive provides no value for its in attribute.
string - SVG: Scalable Vector Graphics
WebSVGAttributestring
the available types are: "woff", "woff2", "truetype", "opentype", "embedded-opentype", and "svg".
textLength - SVG: Scalable Vector Graphics
the textlength attribute, available on svg <text> and <tspan> elements, lets you specify the width of the space into which the text will draw.
xlink:href - SVG: Scalable Vector Graphics
if the reference is to a <glyph> element and that glyph is available, then that glyph is rendered instead of the characters that are inside of the <altglyph> element.
xlink:title - SVG: Scalable Vector Graphics
it may be used, for example, to make titles available to applications used by visually impaired users, or to create a table of links, or to present help text that appears when a user lets a mouse pointer hover over a starting resource.
xlink:type - SVG: Scalable Vector Graphics
in svg, only simple links are available.
xml:lang - SVG: Scalable Vector Graphics
candidate recommendation made the lang attribute (without namespace) available on all elements and defined the interaction between both.
SVG Attribute reference - SVG: Scalable Vector Graphics
WebSVGAttribute
below is a list of all of the attributes available in svg along with links to reference documentation to help you learn which elements support them and how they work.
Content type - SVG: Scalable Vector Graphics
the available options and syntax for <paint> are described in specifying paint.
<altGlyph> - SVG: Scalable Vector Graphics
WebSVGElementaltGlyph
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.
<animateColor> - SVG: Scalable Vector Graphics
it provides no features not already available by using the <animate> element.
<feDiffuseLighting> - SVG: Scalable Vector Graphics
example the following example show the effect of the <fediffuselighting> element on a circle with each light source available.
SVG 2 support in Mozilla - SVG: Scalable Vector Graphics
unknown basic data types and interfaces change notes dommatrix or dommatrixreadonly instead of svgmatrix implementation status unknown domrect or domrectreadonly instead of svgrect implementation status unknown dompoint or dompointreadonly instead of svgpoint implementation status unknown members of svgstylable and svglangspace available in svgelement implementation status unknown svggraphicselement instead of svglocatable and svgtransformable implementation status unknown svggeometryelement with svggeometryelement.ispointinfill() and svggeometryelement.ispointinstroke() methods partially implemented (bug 1239100).
Basic Transformations - SVG: Scalable Vector Graphics
skewing to make a rhombus out of our rectangle, the skewx() and skewy() transformations are available.
SVG In HTML Introduction - SVG: Scalable Vector Graphics
the preserveaspectratio attribute specifies that the aspect ratio must be preserved by centering the picture in the available size, sizing to the maximum of the height or width and then cutting off any overflow.
SVG fonts - SVG: Scalable Vector Graphics
the above example states that if the renderer has a local font available named "super sans bold", it should use this instead.
Secure contexts - Web security
if (window.issecurecontext) { // page is a secure context so service workers are now available navigator.serviceworker.register("/offline-worker.js").then(function () { ...
Transport Layer Security - Web security
implementations of draft versions of tls 1.3 are available.
Types of attacks - Web security
recall that a subdomain such as application.example.com can set a cookie to be sent with requests to example.com or other sub-domains by setting the domain attribute: set-cookie: csrf=e8b667; secure; domain=example.com if a vulnerable application is available on a sub-domain, this mechanism can be abused in a session fixation attack.
Weak signature algorithms - Web security
as new attacks are found and improvements in available technology make attacks more feasible, the use of older algorithms is discouraged and support for them is eventually removed.
Web security
features restricted to secure contexts this reference lists the web platform features available only in secure contexts.
Tutorials
this module looks at the cascade and inheritance, all the selector types we have available, units, sizing, styling backgrounds and borders, debugging, and lots more.
Using custom elements - Web Components
ss truncated for brevity // attach the created elements to the shadow dom this.shadowroot.append(style,wrapper); finally, we register our custom element on the customelementregistry using the define() method we mentioned earlier — in the parameters we specify the element name, and then the class name that defines its functionality: customelements.define('popup-info', popupinfo); it is now available to use on our page.
Using templates and slots - Web Components
this has more limited support than <template>, available since chrome 53, opera 40, safari 10, firefox 59, and edge 79.
Axes - XPath
WebXPathAxes
the following is an extremely brief description of the thirteen available axes and the degree of support available in gecko.
format-number - XPath
(the documentation for jdk 1.1 is not available online.
Functions - XPath
boolean() ceiling() choose() concat() contains() count() current() xslt-specific document() xslt-specific element-available() false() floor() format-number() xslt-specific function-available() generate-id() xslt-specific id() (partially supported) key() xslt-specific lang() last() local-name() name() namespace-uri() normalize-space() not() number() position() round() starts-with() string() string-length() substring() substring-after() substring-before() sum() system-property() xslt-specific t...
Common XSLT Errors - XSLT: Extensible Stylesheet Language Transformations
support for this will hopefully be available in the future.
<xsl:text> - XSLT: Extensible Stylesheet Language Transformations
WebXSLTElementtext
the available values are "yes" or "no".
<xsl:value-of> - XSLT: Extensible Stylesheet Language Transformations
WebXSLTElementvalue-of
the available values are "yes" or "no".
PI Parameters - XSLT: Extensible Stylesheet Language Transformations
no variables are available.
The Netscape XSLT/XPath Reference - XSLT: Extensible Stylesheet Language Transformations
with-param (supported) axes ancestor ancestor-or-self attribute child descendant descendant-or-self following following-sibling namespace (not supported) parent preceding preceding-sibling self functions boolean() (supported) ceiling() (supported) concat() (supported) contains() (supported) count() (supported) current() (supported) document() (supported) element-available() (supported) false() (supported) floor() (supported) format-number() (supported) function-available() (supported) generate-id() (supported) id() (partially supported) key() (supported) lang() (supported) last() (supported) local-name() (supported) name() (supported) namespace-uri() (supported) normalize-space() (supported) not() (supported) number() (supported) po...
Transforming XML with XSLT - XSLT: Extensible Stylesheet Language Transformations
xsl:with-param (supported) axes ancestor ancestor-or-self attribute child descendant descendant-or-self following following-sibling namespace (not supported) parent preceding preceding-sibling self functions boolean() (supported) ceiling() (supported) concat() (supported) contains() (supported) count() (supported) current() (supported) document() (supported) element-available() (supported) false() (supported) floor() (supported) format-number() (supported) function-available() (supported) generate-id() (supported) id() (partially supported) key() (supported) lang() (supported) last() (supported) local-name() (supported) name() (supported) namespace-uri() (supported) normalize-space() (supported) not() (supported) number() (supported) position() (suppor...
Introduction - XSLT: Extensible Stylesheet Language Transformations
they are not available in netscape 7.0x however are available in netscape 7.1.
Web technology for developers
code snippets this is a quick list of useful code snippets (small code samples) available for developers of extensions for the various mozilla applications.
Compiling a New C/C++ Module to WebAssembly - WebAssembly
there are a number of options available when compiling with emscripten, but the main two scenarios we'll cover are: compiling to wasm and creating html to run our code in, plus all the javascript "glue" code needed to run the wasm in the web environment.
WebAssembly Concepts - WebAssembly
javascript frameworks could make use of webassembly to confer massive performance advantages and new features while still making functionality easily available to web developers.
Index - WebAssembly
this article explains a little bit about how it works, and how to use available tools to covert text format files to the .wasm assembly format.
Loading and running WebAssembly code - WebAssembly
running your webassembly code once you've got your webassembly instance available in your javascript, you can then start using features of it that have been exported via the webassembly.instance.exports property.
Compiling from Rust to WebAssembly - WebAssembly
making our package availabe to npm let's use `npm link` to make this package available to other javascript packages installed $ cd pkg $ npm link we now have an npm package, written in rust, but compiled to webassembly.
Converting WebAssembly text format to wasm - WebAssembly
this article explains a little bit about how it works, and how to use available tools to convert text format files to the .wasm assembly format.