Search completed in 1.23 seconds.
TimerFirings logging
timerf
irings logging is a feature built into gecko that prints a line of data for every timer fired.
... this is useful because timer f
irings are a major cause of wakeups, which can cause high power consumption.
... invocation timerf
irings logging uses gecko's own logging mechanism, and so is able to be used in any build.
...And 2 more matches
nsIDirIndex
netwerk/streamconv/public/nsid
irindex.idlscriptable a class holding information about a directory index.
...this is encoded with the encoding specified in the nsid
irindexparser, and is also escaped.
... see also nsid
irindexlistener nsid
irindexparser ...
nsIDirIndexListener
netwerk/streamconv/public/nsid
irindexlistener.idlscriptable this interface is used to receive contents of directory index listings from a protocol.
... 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 nsid
irindex 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 nsid
irindex aindex ); parameters arequest the request.
nsIDirIndexParser
netwerk/streamconv/public/nsid
irindexlistener.idlscriptable a parser for 'application/http-index-format' directories.
... listener nsid
irindexlistener the interface to use as a callback for new entries.
xlink:href - SVG: Scalable Vector Graphics
the xlink:href attribute defines a reference to a resource as a reference
iri.
... value <
iri> default value none animatable yes altglyph for <altglyph>, xlink:href defines the reference either to a <glyph> element in an svg document fragment or to an <altglyphdef> element.
... value <
iri> default value none animatable no animate, animatecolor, animatemotion, animatetransform, set for <animate>, <animatecolor>, <animatemotion>, <animatetransform>, and <set>, xlink:href defines the reference to the element which is the target of this animation and which therefore will be modified over time.
...And 16 more matches
Content type - SVG: Scalable Vector Graphics
func
iri <func
iri> functional notation for a reference.
...
iri <
iri> an internationalized resource identifier.
... on the internet, resources are identified using
iris (internationalized resource identifiers).
...And 12 more matches
Index - Web APIs
requests are guaranteed to be initiated before a page is unloaded and they are run to completion, without requ
iring a blocking request (for example xmlhttprequest).
... 1005 document: pointerout event document, event, pointerevent, reference, web, onpointerout, pointerout the pointerout event is fired for several reasons including: pointing device is moved out of the hit test boundaries of an element; f
iring the pointerup event for a device that does not support hover (see pointerup); after f
iring the pointercancel event (see pointercancel); when a pen stylus leaves the hover range detectable by the digitizer.
... 1228 element: webkitmouseforcewillbegin event api, event, force touch, input, mouseevent, needsexample, non-standard, reference, ui, web, webkit, apple, events, macos, webkitmouseforcewillbegin safari for macos fires the non-standard webkitmouseforcewillbegin event at an element before f
iring the initial mousedown event.
...And 9 more matches
SVG Presentation Attributes - SVG: Scalable Vector Graphics
value: none|<func
iri>|inherit; animatable: yes clip-rule it indicates how to determine what side of a path is inside a shape in order to know how a <clippath> should clip its target.
... value: auto|srgb|linearrgb|<name>|<
iri>|inherit; animatable: yes color-rendering it provides a hint to the browser about how to optimize its color interpolation and compositing operations.
... value: <func
iri>|<keywords>|inherit; animatable: yes direction it specifies the base writing direction of text.
...And 4 more matches
nsIRadioInterfaceLayer
telephony/system-worker-manager;1"] .getservice(components.interfaces.nsiinterfacerequestor) .createinstance(components.interfaces.nsiradiointerfacelayer); method overview void answercall(in unsigned long callindex); void deactivatedatacall(in domstring cid, in domstring reason); void dial(in domstring number); void enumeratecalls(in ns
iriltelephonycallback callback); void getdatacalllist(); unsigned short getnumberofmessagesfortext(in domstring text); void hangup(in unsigned long callindex); void registercallback(in ns
iriltelephonycallback callback); void registerdatacallcallback(in ns
irildatacallback callback); void rejectcall(in unsigned long callindex); void sendsms(in domstring number, in domstring message, in lo...
...ng requestid, in unsigned long long processid); void setupdatacall(in long radiotech, in domstring apn, in domstring user, in domstring passwd, in long chappap, in domstring pdptype); void starttone(in domstring dtmfchar); void stoptone(); void unregistercallback(in ns
iriltelephonycallback callback); void unregisterdatacallcallback(in ns
irildatacallback callback); attributes attribute type description currentstate jsval read only.
...void enumeratecalls( in ns
iriltelephonycallback callback ); parameters callback missing description exceptions thrown missing exception missing description getdatacalllist() void getdatacalllist(); parameters none.
...And 2 more matches
Localization content best practices
for example in
irish/gaelic the correct order is be [username] at saying:.
... the text-transform property is not reliable for some locales; for example, text-transform: uppercase won't work properly with languages such as
irish/gaelic.
...> yes/no dialog works in english, but in gaelic/
irish/welsh and several other languages the equivalent answer is want/not want.
... alias :l10n the :l10n alias on bugzilla (community@localization.bugs) is followed by some localizers and it could be cc'd to gather opinions from the wider l10n community (no point in opening needinfo or requ
iring actions from this alias).
Index
clients requ
iring dynamic "binding" of clsids will be required to use some higher-level services (tbd) to figure out the clsids they should use.
... 545 nsid
irindex directories, file i/o, interfaces, interfaces:scriptable, xpcom, xpcom api reference no summary!
... 546 nsid
irindexlistener interfaces, interfaces:scriptable, xpcom, xpcom api reference, xpcom interface reference called for each directory entry.
... 547 nsid
irindexparser directories, file i/o, interfaces, interfaces:scriptable, xpcom, xpcom api reference, xpcom interface reference called for each directory entry.
nsITimer
type_repeating_slack 1 after f
iring, the timer is stopped and not restarted until its callback completes.
... the timer period will ideally be at least the time between when processing for last f
iring the callback completes and when the next f
iring occurs, but note that this is not guaranteed: the timer can fire at any time.
... type_repeating_precise_can_skip 3 this repeating timer aims to have constant period between f
irings.
... however this timer type guarantees that it will not queue up new events to fire the callback until the previous callback event finishes f
iring.
Key Values - Web APIs
gdk_key_dead_cedilla (0xfe5b) qt::key_dead_cedilla (0x0100125b) ¸ gdk_key_dead_ogonek (0xfe5c) qt::key_dead_ogonek (0x0100125c) ˛ also called a nosinė; used in polish and old
irish.
... keycode_tv_audio_description_mix_up (253) "tvcontentsmenu" displays or hides the media contents available for playback (this may be a channel guide showing the currently a
iring programs, or a list of media files to play).
... vk_on_demand "pa
iring" starts the process of pa
iring the remote with a device to be controlled.
... keycode_pa
iring (225) "pinpdown" a button to move the picture-in-picture view downward.
Using the application cache - HTML: Hypertext Markup Language
in the explicit (cache:) section, each line is a valid uri or
iri reference to a resource to cache (no wildcard characters are allowed in this sections).
... whitespace is allowed before and after the uri or
iri on each line.
... in the fallback section each line is a valid uri or
iri reference to a resource, followed by a fallback resource that is to be served up when a connection with the server cannot be made.
... in the network section, each line is a valid uri or
iri reference to a resource to fetch from the network (or the wildcard character * can be used in this section).
cfx to jpm - Archive of obsolete content
requ
iring local modules suppose your add-on is structured into separate modules: my-addon lib main.js utils.js when you want to use the "utils" module in "main.js", you should use a path relative to "main.js", and prefix the path with "./" to indicate that it's a relative path: var utils = require("./utils"); however, with cfx you are also allowed to omit the ".
... requ
iring modules from test code similarly, suppose you've written some tests for your add-on: my-addon lib my-addon.js test test-my-addon-js with cfx, code inside "test-my-addon.js" can import "my-addon.js" using a statement like this: var my_addon = require("my-addon"); // this will not work with jpm!
...instead, jpm expects third-party modules to be hosted on npm, and you can use them by installing them from npm into your add-on's directory tree, then requ
iring them.
Index - MDN Web Docs Glossary: Definitions of Web-related terms
4 alpn alpn, draft, glossary, needscontent, tls application-layer protocol negotiation (alpn) is a tls extension which indicates what application layer protocol is negotiating the encryped connection without requ
iring additional round trips.
... 222 irc glossary, infrastructure, internet relay chat, open protocol, irc irc (internet relay chat) is a worldwide chat system requ
iring an internet connection and an irc client, which sends and receives messages via the irc server.
... 272 mixin codingscripting, glossary, method, mixin, property a mixin is a class or interface in which some or all of its methods and/or properties are unimplemented, requ
iring that another class or interface provide the missing implementations.
Third-party APIs - Learn web development
note: some apis handle access to their functionality slightly differently, requ
iring the developer to make an http request to a specific url pattern to retrieve data.
... requ
iring a key enables the api provider to hold users of the api accountable for their actions.
... w
iring up the pagination buttons to make the pagination buttons work, we will increment (or decrement) the value of the pagenumber variable, and then re-rerun the fetch request with the new value included in the page url parameter.
Performance best practices for Firefox front-end engineers
it is expected that over time, script will update the dom, requ
iring us to recalculate styles.
... it is expected that over time, script will update the dom, requ
iring us to recalculate styles, and then update layout.
...assuming there weren’t any style changes requ
iring size or position recalculation above line 1, the clientheight information should be cached since the last reflow, and will not result in a new layout calculation.
Optimizing Applications For NSPR
in the combined (mxn) model, which includes nt,
irix (sprocs), and pthreads-user, the primordial thread is always a local thread.
...the specific area surrounding pthread's continuation thread has been both observed and emp
irically proven faulty, and a correction identified.
...
irix the
irix (classic) implementation has a known race condition in creating new threads.
Index
forwardcompatible {
irix:6.2:mips sunos:5.5.1:sparc } platforms { winnt::x86 { modulename { "example module" } modulefile { win32/fort32.dll } defaultmechanismflags{0x0001} defaultcipherflags{0x0001} files { win32/setup.exe { executable relativepath { %temp%/setup.exe } } win32/setup.hlp { relativepath { %temp%/s...
...01} files { unix/fort.so { relativepath{%root%/lib/fort.so} absolutepath{/usr/local/netscape/lib/fort.so} filepermissions{555} } xplat/instr.html { relativepath{%root%/docs/inst.html} absolutepath{/usr/local/netscape/docs/inst.html} filepermissions{555} } } }
irix:6.2:mips { equivalentplatform { sunos:5.5.1:sparc } } } script grammar the script is basic java, allowing lists, key-value pairs, strings, and combinations of all of them.
...nspr supports these platforms: o aix (rs6000) o bsdi (x86) o freebsd (x86) o hpux (hppa1.1) o
irix (mips) o linux (ppc, alpha, x86) o macos (powerpc) o ncr (x86) o nec (mips) o os2 (x86) o osf (alpha) o reliantunix (mips) o sco (x86) o solaris (sparc) o sony (mips) o sunos (sparc) o unixware (x86) o win16 (x86) o win95 (x86) o winnt (x86) for example:
irix:6.2:mips sunos:5.5.1:sparc linux:2.0.32:...
NSS tools : modutil
forwardcompatible {
irix:6.2:mips sunos:5.5.1:sparc } platforms { winnt::x86 { modulename { "example module" } modulefile { win32/fort32.dll } defaultmechanismflags{0x0001} defaultcipherflags{0x0001} files { win32/setup.exe { executable relativepath { %temp%/setup.exe } } win32/setup.hlp { relativepath { %temp%/setup.hlp } } win32/setup.cab { relativepath { %temp%/setup.cab } } } } win95::x86 { equi...
...rc { modulename { "example unix module" } modulefile { unix/fort.so } defaultmechanismflags{0x0001} cipherenableflags{0x0001} files { unix/fort.so { relativepath{%root%/lib/fort.so} absolutepath{/usr/local/netscape/lib/fort.so} filepermissions{555} } xplat/instr.html { relativepath{%root%/docs/inst.html} absolutepath{/usr/local/netscape/docs/inst.html} filepermissions{555} } } }
irix:6.2:mips { equivalentplatform { sunos:5.5.1:sparc } } } script grammar the script is basic java, allowing lists, key-value pairs, strings, and combinations of all of them.
...nspr supports these platforms: o aix (rs6000) o bsdi (x86) o freebsd (x86) o hpux (hppa1.1) o
irix (mips) o linux (ppc, alpha, x86) o macos (powerpc) o ncr (x86) o nec (mips) o os2 (x86) o osf (alpha) o reliantunix (mips) o sco (x86) o solaris (sparc) o sony (mips) o sunos (sparc) o unixware (x86) o win16 (x86) o win95 (x86) o winnt (x86) for example:
irix:6.2:mips sunos:5.5.1:sparc linux:2.0.32:x86 win95::x86 the module information is defined independently for each platf...
NSS Tools modutil
if so, the metainfo file for the netscape signing tool would include a line such as this: + pkcs11_install_script: pk11install the sample script file could contain the following: forwardcompatible {
irix:6.2:mips sunos:5.5.1:sparc }platforms { winnt::x86 { modulename { "fortezza module" } modulefile { win32/fort32.dll } defaultmechanismflags{0x0001} defaultcipherflags{0x0001} files { win32/setup.exe { executable relativepath { %temp%/setup.exe } } win32/setup.hlp { relativepath { %temp%/setup.hlp } } ...
... cipherenableflags{0x0001} files { unix/fort.so { relativepath{%root%/lib/fort.so} absolutepath{/usr/local/netscape/lib/fort.so} filepermissions{555} } xplat/instr.html { relativepath{%root%/docs/inst.html} absolutepath{/usr/local/netscape/docs/inst.html} filepermissions{555} } } }
irix:6.2:mips { equivalentplatform { sunos:5.5.1:sparc } }} script grammar the script file grammar is as follows: --> valuelistvaluelist --> value valuelist <null>value ---> key_value_pair stringkey_value_pair --> key { valuelist }key --> stringstring --> simple_string "complex_string"simple_string --> [^ \t\n\""{""}"]+ (no whitespace, quotes, or brace...
...the following system names and platforms are currently defined by nspr: aix (rs6000) bsdi (x86) freebsd (x86) hpux (hppa1.1)
irix (mips) linux (ppc, alpha, x86) macos (powerpc) ncr (x86) nec (mips) os2 (x86) osf (alpha) reliantunix (mips) sco (x86) solaris (sparc) sony (mips) sunos (sparc) unixware (x86) win16 (x86) win95 (x86) winnt (x86) here are some examples of valid platform strings:
irix:6.2:mipssunos:5.5.1:sparclinux:2.0.32:x86win95::x86.
NSS tools : modutil
forwardcompatible {
irix:6.2:mips sunos:5.5.1:sparc } platforms { winnt::x86 { modulename { "example module" } modulefile { win32/fort32.dll } defaultmechanismflags{0x0001} defaultcipherflags{0x0001} files { win32/setup.exe { executable relativepath { %temp%/setup.exe } } win32/setup.hlp { relativepath { %temp%/s...
...01} files { unix/fort.so { relativepath{%root%/lib/fort.so} absolutepath{/usr/local/netscape/lib/fort.so} filepermissions{555} } xplat/instr.html { relativepath{%root%/docs/inst.html} absolutepath{/usr/local/netscape/docs/inst.html} filepermissions{555} } } }
irix:6.2:mips { equivalentplatform { sunos:5.5.1:sparc } } } script grammar the script is basic java, allowing lists, key-value pairs, strings, and combinations of all of them.
...nspr supports these platforms: o aix (rs6000) o bsdi (x86) o freebsd (x86) o hpux (hppa1.1) o
irix (mips) o linux (ppc, alpha, x86) o macos (powerpc) o ncr (x86) o nec (mips) o os2 (x86) o osf (alpha) o reliantunix (mips) o sco (x86) o solaris (sparc) o sony (mips) o sunos (sparc) o unixware (x86) o win16 (x86) o win95 (x86) o winnt (x86) for example:
irix:6.2:mips sunos:5.5.1:sparc linux:2.0.32:...
nsIJSON
when the original instance requ
iring this function is removed, this method will be removed.
... when the original instance requ
iring this function is removed, this method will be removed.
... when the original instance requ
iring this function is removed, this method will be removed.
Web Push API Notifications best practices - Web APIs
win them back with an exp
iring offer of free shipping that they can’t ignore!
... in addition to the question of whether a push notification is required at all, there are many different types of push notifications, ranging from casual-and-disappearing to persistent-and-requ
iring-interaction.
... we caution you to use the interaction-requ
iring ones very sparingly, since they can be the most annoying.
RTCIceCandidatePairStats.selected - Web APIs
that object's selectedcandidatepa
irid property indicates whether or not the specified transport is the one being used.
... example the function shown in this example identifies the currently-selected candidate pair from a statistics report by first iterating over each report, looking for a transport report; when one is found, that transport's selectedcandidatepa
irid is used to get the rtcicecandidatepair describing the connection.
... function getcurrentcandidatepair(statsresults) { statsresults.foreach(report => { if (report.type === "transport") { currentpair = statsresults.get(report.selectedcandidatepa
irid); } }); if (!currentpair) { statsresults.foreach(report => { if (report.type === "candidate-pair" && report.selected) { currentpair = report; } }); } return currentpair; } specifications not part of any specification.
WebRTC API - Web APIs
webrtc (web real-time communication) is a technology which enables web applications and sites to capture and optionally stream audio and/or video media, as well as to exchange arbitrary data between browsers without requ
iring an intermediary.
... the set of standards that comprise webrtc makes it possible to share data and perform teleconferencing peer-to-peer, without requ
iring that the user installs plug-ins or any other third-party software.
...connections between peers can be made without requ
iring any special drivers or plug-ins, and can often be made without any intermediary servers.
WindowOrWorkerGlobalScope.setTimeout() - Web APIs
timeouts in inactive tabs throttled to ≥ 1000ms to reduce the load (and associated battery usage) from background tabs, timeouts are throttled to f
iring no more often than once per second (1,000 ms) in inactive tabs.
... deferral of timeouts during pageload starting in firefox 66, firefox will defer f
iring settimeout and setinterval timers while the current tab is loading.
... f
iring is deferred until the mainthread is deemed idle (similar to window.requestidlecallback()), or until the load event is fired.
<input>: The Input (Form Input) element - HTML: Hypertext Markup Language
associated labels the semantic pa
iring of <input> and <label> elements is useful for assistive technologies such as screen readers.
... by pa
iring them using the <label>'s for attribute, you bond the label to the input in a way that lets screen readers describe inputs to users more precisely.
...by pa
iring a <label> with an <input>, clicking on either one will focus the <input>.
requiredExtensions - SVG: Scalable Vector Graphics
usage notes value <list-of-extensions> default value none animatable no <list-of-extensions> the value is a list of references (
iri references in svg 1, url references in svg 2) which identify the required extensions, with the individual values separated by white space.
... the
iri names for the extension should include versioning information, such as "http://example.org/svgextensionxyz/1.0", so that script writers can distinguish between different versions of a given extension.
... candidate recommendation
iris replaced with urls scalable vector graphics (svg) 1.1 (second edition)the definition of 'requiredextensions' in that specification.
Modules - Archive of obsolete content
firstly, since they do not have a requ
iring module.
...this function takes the id to be resolved and the requ
iring module as an argument, and returns the resolved id as its result.
User Notifications and Alerts - Archive of obsolete content
« previousnext » it is often the case that extensions need to notify users about important events, often requ
iring some response.
... the alerts service this is a very good option when you want to alert users about events without requ
iring input from them.
Binding Attachment and Detachment - Archive of obsolete content
binding document loads suppress the f
iring of the dom load event for the bound document.
...if the binding document is loaded prior to the f
iring of the load event, then any binding attachments that are placed following the load will be synchronous if they come from one of these previously loaded binding documents.
Introduction to Public-Key Cryptography - Archive of obsolete content
instead of requ
iring a user to send passwords across the network throughout the day, single sign-on requires the user to enter the private-key database password just once, without sending it across the network.
... depending on an organization's policies, the process of issuing certificates can range from being completely transparent for the user to requ
iring significant user participation and complex procedures.
Other form controls - Learn web development
less obvious datalist uses according to the html specification, the list attribute and the <datalist> element can be used with any kind of widget requ
iring a user input.
... <progress max="100" value="75">75/100</progress> this is for implementing anything requ
iring progress reporting, such as the percentage of total files downloaded, or the number of questions filled in on a questionnaire.
JavaScript performance - Learn web development
some features requ
iring complex javascript can be done with a few lines of javascript.
... requ
iring a library for other features may improve developer experience, but is all that javascript required?
Gecko info for Windows accessibility vendors
gecko also helps determine when to load a new window by f
iring two event_state_change's on the root role_document accessible -- the first state change indicates the document pane is now busy loading.
...this computed child id for events is always a negative value, unique to the iaccessible f
iring the event these negative childid's from events can be used with accessibleobjectfromevent(), or on the root accessible of a window with any iaccessible method that takes a variant, such as get_accchild().
Debugging on Mac OS X
macos 10.15 went further, requ
iring applications to be notarized with hardened runtime enabled in order to launch (ignoring workarounds.) when run on earlier macos versions, notarization and hardened runtime settings have no effect.
...this is due to notarization requ
iring hardened runtime to be enabled with the com.apple.security.get-task-allow entitlement disallowed.
Using the Browser API
the javascript implementation to wire up the functionality required by our simple browser, we've written some basic javascript (see the full javascript listing.) w
iring up the back and forward buttons early on in the code we implement two simple event listeners to move the browser back and forward in history when the relevant buttons are pressed: back.addeventlistener('touchend',function() { browser.goback(); }); fwd.addeventlistener('touchend',function() { browser.goforward(); }); the functions can be handled using the browser api htmliframeelement.go...
...you'll also notice that we're also f
iring these functions on the touchend event, which is effective as firefox os devices are generally touchscreen.
Localization and Plurals
es: slavic (slovenian, sorbian) ends in 01: 1, 101, 201, … ends in 02: 2, 102, 202, … ends in 03-04: 3, 4, 103, 104, 203, 204, … everything else: 0, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, … plural rule #11 (5 forms) families: celtic (
irish gaelic) is 1: 1 is 2: 2 is 3-6: 3, 4, 5, 6 is 7-10: 7, 8, 9, 10 everything else: 0, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, … plural rule #12 (6 forms) families: semitic (arabic) is 1: 1 is 2: 2 ends in 03-10: 3, 4, 5, 6, 7, 8, 9...
...the plural rule number to create functions * @return a pair: [function that gets the right plural form, * function that returns the number of plural forms] */ [string pluralform get(int anum, string awords), int numforms numforms()] makegetter(int arulenum) here is an example usage of makegetter: components.utils.import("resource://gre/modules/pluralform.jsm"); // let's get
irish (plural rule #11) let [get, numforms] = pluralform.makegetter(11); // make up some values to use with "get" let dummytext = "form 1;form 2;form 3;form 4;form 5"; let dummynum = 10; // in the case of
irish, the value 10 uses plural form #4, so "form 4" is printed print(get(dummynum, dummytext)); in this example, the
irish plural rule was hardcoded, but this could be a value specified in the .
Power profiling overview
some tools can provide high-context wakeup measurements: dtrace (on mac) and perf (on linux.) source-level instrumentation, such as timerf
irings logging, can identify which timers are f
iring frequently.
... for high wakeup counts, use dtrace or perf or timerf
irings logging.
Performance
xul school: add-on performance tips for add-on developers to help them avoid impa
iring application performance.
... timerf
irings logging (all platforms) timerf
irings logging is a built-in logging mechanism that prints data on every time fired.
Utilities for nss samples
esc *src); /* * checkpassword */ extern prbool checkpassword(char *cp); /* * getpassword */ extern char * getpassword(file *input, file *output, char *prompt, prbool (*ok)(char *)); /* * filepasswd extracts the password from a text file * * storing passwords is often used with server environments * where prompting the user for a password or requ
iring it * to be entered in the commnd line is not a feasible option.
... fprintf(output, "password must be at least 8 characters long with one or more\n"); fprintf(output, "non-alphabetic characters\n"); continue; } return (char*) port_strdup(phrase); } } /* * filepasswd extracts the password from a text file * * storing passwords is often used with server environments * where prompting the user for a password or requ
iring it * to be entered in the commnd line is not a feasible option.
PKCS11 Implement
to avoid requ
iring the user to type long pathnames, make sure your module is not buried too deeply.
...2.0 semantic requ
iring all session objects to be visible in all of a token's sessions.
Shell global objects
this just marks the promise as resolved with a value of undefined and causes the f
iring of any onpromisesettled hooks set on debugger instances that are observing the given promise's global as a debuggee.
...this doesn't have any observable effects outside of f
iring any onpromisesettled hooks set on debugger instances that are observing the given promise's global as a debuggee.
The Places database
delete favicons for those exp
iring history entries that are not referenced by any other history entry.
... delete annotations that belong to the exp
iring pages.
nsIDocShell
beginrestore() begin f
iring webprogresslistener notifications for restoring a page presentation.
...finishrestore() finish f
iring webprogresslistener notifications and dom events for restoring a page presentation.
Xptcall Porting Status
it is a variation of the
iris port (only targeted for win32).
... <font color="white">done</font>
irix jason heirtzler <jasonh@m7.engr.sgi.com> jason has declared this done.
MailNews fakeserver
server.start(port); // set up a nsimsgincomingserver locally localserver.someactionrequ
iringconnection(); server.performtest(); // nothing will be executed until the connection is closed // localserver.closecachedconnections() is generally a good way to do so server.resettest(); // set up second test server.performtest(); transaction = server.playtransaction(); // finished with tests server.stop(); } currently, fakeserver provides no means to keep a persistent conn...
...ection past a test, requ
iring connections to be closed, possibly forcibly.
Mail event system
getservice(components.interfaces.nsimsgmailsession); mailsession.addlistener(folderlistener); // now test to see if integer stuff is f
iring at all // let's say "folder" is a folder we know about // first we need an atom to play with atomservice = components.classes["component://netscape/atom-service"].
...both of these could be done by making atoms for each of these events and just f
iring it with notifyitemevent.
console - Web APIs
however, unlike group() this starts with the inline group collapsed requ
iring the use of a disclosure button to expand it.
...the console.groupcollapsed() method is similar but creates the new block collapsed, requ
iring the use of a disclosure button to open it for reading.
KeyboardEvent - Web APIs
note: manually f
iring an event does not generate the default action associated with that event.
... for example, manually f
iring a key event does not cause that letter to appear in a focused text input.
Payment Request API - Web APIs
it aims to make the checkout process easier, by remembering a user's details, which are then passed along to a merchant hopefully without requ
iring a html form.
... merchantvalidationevent represents the browser requ
iring the merchant (website) to validate themselves as allowed to use a particular payment handler (e.g., registered as allowed to use apple pay).
Pointer events - Web APIs
pointerout onpointerout fired for several reasons including: pointer is moved out of the hit test boundaries of an element; f
iring the pointerup event for a device that does not support hover (see pointerup); after f
iring the pointercancel event (see pointercancel); when a pen stylus leaves the hover range detectable by the digitizer.
...if the target area is too small, touching it could result in f
iring other events for adjacent elements.
RTCIceTransport.getSelectedCandidatePair() - Web APIs
as ice negotiation continues, any time a pair of candidates is discovered that is better than the currently-selected pair, the new pair is selected, replacing the previous pa
iring, and the selectedcandidatepairchange event is fired again.
... note: it's possible for one of the configurations in the selected candidate pair to remain unchanged when a new pa
iring is chosen.
RTCIceTransport.state - Web APIs
"checking" at least one remote candidate has been received, and the rtcicetransport has begun examining pa
irings of remote and local candidates in order to attempt to identify viable pairs that could be used to establish a connection.
...however, there are still candidates pa
irings to consider, and there may still be gathering underway on one or both of the two devices.
RTCIceTransportState - Web APIs
"checking" at least one remote candidate has been received, and the rtcicetransport has begun examining pa
irings of remote and local candidates in order to attempt to identify viable pairs that could be used to establish a connection.
...however, there are still candidates pa
irings to consider, and there may still be gathering underway on one or both of the two devices.
RTCRtpTransceiver.mid - Web APIs
the read-only rtcrtptransceiver interface's mid property specifies the negotiated media id (mid) which the local and remote peers have agreed upon to uniquely identify the stream's pa
iring of sender and receiver.
... syntax var mediaid = rtcrtptransceiver.mid; value a domstring which uniquely identifies the pa
iring of source and destination of the transceiver's stream.
RTCRtpTransceiver - Web APIs
the webrtc interface rtcrtptransceiver describes a permanent pa
iring of an rtcrtpsender and an rtcrtpreceiver, along with some shared state.
...this pa
iring of send and receive srtp streams is significant for some applications, so rtcrtptransceiver is used to represent this pa
iring, along with other important state from the media section.
Touch events - Web APIs
handling clicks since calling preventdefault() on a touchstart or the first touchmove event of a series prevents the corresponding mouse events from f
iring, it's common to call preventdefault() on touchmove rather than touchstart.
...alternatively, some frameworks have taken to ref
iring touch events as mouse events for this same purpose.
USB.getDevices() - Web APIs
for information on pa
iring devices, see usb.requestdevice().
...for information on pa
iring devices, see usb.requestdevice().
USB.requestDevice() - Web APIs
calling this function triggers the user agent's pa
iring flow.
...this triggers a user-agent flow that prompts the user to select a device for pa
iring.
Cognitive accessibility - Accessibility
for example, being able to extend the expiration time on an application requ
iring an authentication code sent to a mobile device via text message helps with the following scenarios: people with attention or anxiety disorders.
...when requ
iring a specific format for input, provide an example formatted in the proper way.
::first-letter (:first-letter) - CSS: Cascading Style Sheets
stet clita kasd gubergren, no sea takimata sanctus est.</p> <p>duis autem vel eum
iriure dolor in hendrerit in vulputate velit esse molestie consequat.</p> css p { width: 500px; line-height: 1.5; } h2 + p::first-letter { color: white; background-color: black; border-radius: 2px; box-shadow: 3px 3px 0 red; font-size: 250%; padding: 6px 3px; margin-right: 6px; float: left; } result effect on special punctuation and non-latin characters this example illust...
... html <p>duis autem vel eum
iriure dolor in hendrerit in vulputate velit esse molestie consequat.</p> <p>-the beginning of a special punctuation mark.</p> <p>_the beginning of a special punctuation mark.</p> <p>"the beginning of a special punctuation mark.</p> <p>'the beginning of a special punctuation mark.</p> <p>*the beginning of a special punctuation mark.</p> <p>#the beginning of a special punctuation mark.</p> <p>「特殊的汉字标点符号开头。</p> <p>《特殊的汉字标点符号开头。</p> <p>“特殊的汉字标点符号开头。</p> css p::first-letter { color: red; font-size: 150%; } result specifications specification status comment css pseudo-ele...
OpenType font features guide - CSS: Cascading Style Sheets
these include things like ligatures (special glyphs that combine characters like 'fi' or 'ffl'), kerning (adjustments to the spacing between specific letterform pa
irings), fractions, numeral styles, and a number of others.
... kerning (font-kerning) this refers to the spacing between specific glyph pa
irings.
CSS Fonts - CSS: Cascading Style Sheets
p { width: 600px; margin: 0 auto; font-family: "helvetica neue", "arial", sans-serif; font-style: italic; font-weight: 100; font-variant-ligatures: normal; font-size: 2rem; letter-spacing: 1px; } <p>three hundred years ago<br> i thought i might get some sleep<br> i stretched myself out onna antique bed<br> an' my sp
irit did a midnite creep</p> the result is as follows: variable fonts examples you can find a number of variable fonts examples at v-fonts.com and axis-praxis.org; see also our variable fonts guide for more information and usage information.
...these include things like ligatures (special glyphs that combine characters like 'fi' or 'ffl'), kerning (adjustments to the spacing between specific letterform pa
irings), fractions, numeral styles, and a number of others.
text-transform - CSS: Cascading Style Sheets
the text-transform property takes into account language-specific case mapping rules such as the following: in turkic languages, like turkish (tr), azerbaijani (az), crimean tatar (crh), volga tatar (tt), and bashkir (ba), there are two kinds of i, with and without the dot, and two case pa
irings: i/İ and ı/i.
... in
irish (ga), certain prefixed letters remain in lowercase when the base initial is capitalized, so for example text-transform: uppercase will change ar aon tslí to ar aon tslÍ and not, as one might expect, ar aon tslÍ (firefox only).
<input type="month"> - HTML: Hypertext Markup Language
this value must specify a year-month pa
iring later than or equal to the one specified by the min attribute.
... this value must be a year-month pa
iring which is earlier than or equal to the one specified by the max attribute.
<script>: The Script element - HTML: Hypertext Markup Language
defer this boolean attribute is set to indicate to a browser that the script is meant to be executed after the document has been parsed, but before f
iring domcontentloaded.
... scripts with the defer attribute will prevent the domcontentloaded event from f
iring until the script has loaded and finished evaluating.
Using dns-prefetch - Web Performance
second, it’s also possible to specify dns-prefetch (and other resources hints) as an http header by using the http link field: link: <https://fonts.gstatic.com/>; rel=dns-prefetch third, consider pa
iring dns-prefetch with the preconnect hint.
... the logic behind pa
iring these hints is because support for dns-prefetch is better than support for preconnect.
SVG Core Attributes - SVG: Scalable Vector Graphics
value type: <integer>; animatable: no xml:base specifies a base
iri other than the base
iri of the document.
... value type: <
iri>; animatable: no xml:lang it is a universal attribute allowed in all xml dialects to mark up the natural human language that an element contains.
color-profile - SVG: Scalable Vector Graphics
as a presentation attribute, it can be applied to any element but it only has an effect on the following element: <image> usage notes value auto | srgb | <name> | <
iri> default value auto animatable yes auto all colors are presumed to be defined in the srgb color space unless a more precise embedded profile is specified within content data.
... <
iri> an
iri reference to the source color profile.
cursor - SVG: Scalable Vector Graphics
this attribute behaves exactly like the css cursor property except that if the browser supports the <cursor> element, you should be able to use it with the <func
iri> notation.
... usage context categories presentation attribute value [[<func
iri>,]* [ auto | crosshair | default | pointer | move | e-resize | ne-resize | nw-resize | n-resize | se-resize | sw-resize | s-resize | w-resize| text | wait | help ]] | inherit animatable yes normative document svg 1.1 (2nd edition) <func
iri> functional notation for a reference.
xml:base - SVG: Scalable Vector Graphics
the xml:base attribute specifies a base
iri other than the base
iri of the document or external entity.
... usage notes value <
iri> default value none animatable no <
iri> this value specifies the base
iri of the element.
<altGlyph> - SVG: Scalable Vector Graphics
value type: <string> ; default value: none; animatable: no xlink:href an <
iri> reference either to a <glyph> element in an svg document or to an <altglyphdef> element.
... value type: <
iri> ; default value: none; animatable: no global attributes core attributes most notably: id lang styling attributes class, style conditional processing attributes most notably: requiredextensions, systemlanguage event attributes global event attributes, document element event attributes, graphical event attributes presentation attributes most notably: clip-path, clip-rule, color, colo...
<linearGradient> - SVG: Scalable Vector Graphics
value type: <length> ; default value: 100%; animatable: yes xlink:href an <
iri> reference to another <lineargradient> element that will be used as a template.
... value type: <
iri> ; default value: none; animatable: yes y1 this attribute defines the y coordinate of the starting point of the vector gradient along which the linear gradient is drawn.
<radialGradient> - SVG: Scalable Vector Graphics
value type: pad|reflect|repeat ; default value: pad; animatable: yes xlink:href an <
iri> reference to another <lineargradient> element that will be used as a template.
... value type: <
iri> ; default value: none; animatable: yes global attributes core attributes most notably: id styling attributes class, style event attributes global event attributes, document element event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility xlink attributes xlink:href, xlink:title usage notes categoriesgradient elementpermitted contentany number of the following elements, in any order:descriptive elements<animate>, <animatetransform...
<use> - SVG: Scalable Vector Graphics
value type: <url> ; default value: none; animatable: yes xlink:href an <
iri> reference to an element/fragment that needs to be duplicated.
... value type: <
iri> ; default value: none; animatable: yes x the x coordinate of the use element.
SVG documentation index - SVG: Scalable Vector Graphics
257 xlink:href needscompattable, svg, svg attribute the xlink:href attribute defines a reference to a resource as a reference
iri.
... 261 xml:base deprecated, svg, svg attribute the xml:base attribute specifies a base
iri other than the base
iri of the document or external entity.
/loader - Archive of obsolete content
resolve is assigned a function that takes: the id of the module passed into require() the id of the module that called require() on each require() call, the supplied function is then called with the id of the required module and that of the requ
iring module.
package.json - Archive of obsolete content
it looks like this (assuming the add-on's directory is "my-addon"): { "name": "my-addon", "title": "my-addon", "id": "jid1-1fergv45e4f4f@jetpack", "description": "a basic add-on", "author": "", "license": "mpl-2.0", "version": "0.1" } if you are using the new jpm tool, you can easily access manifest data from package.json by requ
iring it like any other module: var title = require("./package.json").title; key reference package.json may contain the following keys: author the name of the package's original author; this could be the name of a person or a company.
List of Mozilla-Based Applications - Archive of obsolete content
ulrunner just (fr) audio a tool for setting temporal tags in audio documents jsdoc toolkit documentation tool uses mozilla rhino k-meleon gecko-based web browser for windows embeds gecko in mfc kairo.at mandelbrot creates images of mandelbrot sets xulrunner application kazehakase gecko-based web browser for unix k
irix strata data browser kiwix offline version of wikipedia kneemail prayer, praise, and journal application komodo and komodo edit and open komodo development tools mozilla-based application (pre-xulrunner style), xul ui kompozer wysiwyg html editor unofficial bug-fix release of nvu kylo video browser uses gecko ...
Structure of an installable bundle - Archive of obsolete content
basic structure of a bundle a bundle may include any of the following files: path from the root of the bundle description version information /install.rdf extension/theme install manifest /application.ini application launch manifest /bootstrap.js the bootstrap script for extensions not requ
iring a restart (those with <em:bootstrap>true</em:bootstrap> in their install.rdf).
Migrate apps from Internet Explorer to Mozilla - Archive of obsolete content
browser sniffing is usually done through the useragent, such as: mozilla/5.0 (x11; u; linux i686; en-us; rv:1.5) gecko/20031016 while using the useragent to sniff the browser provides detailed information on the browser in use, code that handles useragents often can make mistakes when new browser versions arrive, thus requ
iring code changes.
Plug-n-Hack Phase1 - Archive of obsolete content
this can cause the browser to inspect the manifest and register the tool by f
iring a customevent with the type configuresectool and a properties object which specifies the url of the tool manifest.
Binding Implementations - Archive of obsolete content
property initialization always takes place after content generation but before the f
iring of a binding attachment event, since the bindingattached handler needs to be able to assume that all properties will be accessible on the binding.
Introduction - Archive of obsolete content
this is used when you don't want to have the larger size of a complete xulrunner application, but don't mind requ
iring a mozilla browser to be installed to be able to run the application.
calICalendarView - Archive of obsolete content
this link allows the calicalendarview to have a way of creating, modifying, and deleting events based on user interaction with the dom nodes it controls, often without requ
iring any other user interaction.
Mozilla release FAQ - Archive of obsolete content
this list will be updated with time, but (according to netscape.public.mozilla.general) the following platforms have been built successfully: solaris 2.4, 2.5, 2.6 freebsd 2.2, 3.0 linux/intel and alpha 2.0, 2.1 macos winnt 4.0
irix 5.3, 6.2, 6.3, 6.4 win95, win98 digital unix 4.0 netbsd openbsd bsdi hp/ux 9.05, 10.20, 11.0 (see 2.7) hurd .03 dg/ux mac os x i'm *still* having problems getting mozilla to build on my platform!
Browser Detection and Cross Browser Support - Archive of obsolete content
java3, is_hotjava3up, is_opera2, is_opera3, is_opera4, is_opera5, is_opera5up javascript version number is_js (float indicating full javascript version number: 1, 1.1, 1.2 ...) os platform and version is_win, is_win16, is_win32, is_win31, is_win95, is_winnt, is_win98, is_winme, is_win2k, is_os2, is_mac, is_mac68k, is_macppc, is_unix, is_sun, is_sun4, is_sun5, is_suni86, is_
irix, is_
irix5, is_
irix6, is_hpux, is_hpux9, is_hpux10, is_aix, is_aix1, is_aix2, is_aix3, is_aix4, is_linux, is_sco, is_unixware, is_mpras, is_reliant, is_dec, is_sinix, is_freebsd, is_bsd, is_vms detecting browsers using this level of detail is unworkable, unmaintainable and violates the basic principles of web authoring!
New in JavaScript 1.1 - Archive of obsolete content
isnan() now works on every platform (not only unix anymore) parsefloat() and parseint() now return nan on all platforms, if the first character of the specified string cannot be converted to a number; in previous releases, it returned nan on solaris and
irix and zero on all other platforms.
forEach - Archive of obsolete content
if (value>1){ return false;//we could have some way to break when we return false } }); //woulld print 1 2 --porf
irio 11:17, 22-06-2008 another option would be to throw stopiteration and catch it within foreach().
Implementation Status - Archive of obsolete content
8.1.9 submit supported 8.1.10 select partial @selection does not work, select inside repeat may not work correctly, select that mixes itemsets with items may show them in the wrong order 282840; 371595; 372127; 8.1.11 select1 partial there are some resize issues, select/deselect/valuechange f
iring in wrong order.
Building up a basic demo with PlayCanvas - Game development
engine vs editor the engine itself can be used as a standard library by including its javascript file directly in your html, so you can start coding right away; in addition the playcanvas toolset comes with an online editor that you can use to drag and drop components onto the scene — a great way to create games and other apps requ
iring scenes if you're more of a designer than a coder.
Audio for Web games - Game development
see also web audio api on mdn <audio> on mdn developing game audio with the web audio api (html5rocks) mixing positional audio and webgl (html5rocks) songs of d
iridum: pushing the web audio api to its limits making html5 audio actually work on mobile audio sprites (and fixes for ios) ...
Unconventional controls - Game development
interestingly enough, the first captain rogers game (asteroid belt of s
irius) was optimized for low-end, small-screen, cheap smartphones running firefox os, so you can see the difference three years can make — you can read the whole story in our building games for firefox os tv hacks post.
Web fonts - Learn web development
d-opentype'), url('fonts/cicle_fina-webfont.woff2') format('woff2'), url('fonts/cicle_fina-webfont.woff') format('woff'), url('fonts/cicle_fina-webfont.ttf') format('truetype'), url('fonts/cicle_fina-webfont.svg#ciclefina') format('svg'); font-weight: normal; font-style: normal; } this is referred to as "bulletproof @font-face syntax", after a post by paul
irish from early on when @font-face started to get popular (bulletproof @font-face syntax).
Advanced form styling - Learn web development
to recap what we said in the previous article, we have: the bad: some elements are more difficult to style, requ
iring more complex css or some more specific tricks: checkboxes and radio buttons <input type="search"> the ugly: some elements can't be styled thoroughly using css.
Styling web forms - Learn web development
multi-line <textarea>s buttons (both <input> and <button>s) <label> <output> the bad some elements are more difficult to style, requ
iring more complex css or some more specific tricks: checkboxes and radio buttons <input type="search"> we describe how to handle these more specific features in the article advanced form styling.
Introduction to events - Learn web development
we are listening for the click event f
iring, by setting the onclick event handler property to equal an anonymous function containing code that generates a random rgb color and sets the <body> background-color equal to it.
Functions — reusable blocks of code - Learn web development
when creating functions, it is better to just stick to this form: function mygreeting() { alert('hello'); } you will mainly use anonymous functions to just run a load of code in response to an event f
iring — like a button being clicked — using an event handler.
Video and Audio APIs - Learn web development
we do however also want to stop the video when it finishes playing — this is marked by the ended event f
iring, so we also set up a listener to run the function on that event f
iring too.
Understanding client-side JavaScript frameworks - Learn web development
as an asp
iring front-end developer, it can be hard to work out where to begin when learning frameworks — there are so many different frameworks to choose from, new ones appear all the time, they mostly work in a similar way but do some things differently, and there are some specific things to be careful about when using frameworks.
Links and Resources
guidelines & standards information and resources on section 508 - legal policy for us government purchases requ
iring software accessibility.
Index
680 resources for publishers add-ons, extensions, distribution, publication now your add-on is published on amo, check out the following resources: 681 ret
iring your extension extensions, webextension, end-of-life, publication there may be occasions where you want to retire one of your extensions.
OS TARGET
winnt linux darwin android sunos freebsd openbsd netbsd os2 beos
irix64 aix hp-ux dragonfly skyos riscos nto osf1 ...
Experimental features in Firefox
nightly 80 yes developer edition 80 yes beta 80 no release 80 no preference name devtools.netmonitor.features.serversentevents ui desktop zooming this feature lets you enable smooth pinch zooming on desktop computers without requ
iring layout reflows, just like mobile devices do.
Performance
not only does that increase memory footprint but the deserialization also has to be executed seperately for each tab, thus requ
iring more cpu time.
HTMLIFrameElement.findAll()
invoking this method results in a mozbrowserfindchange event f
iring, which carries details about the search results.
HTMLIFrameElement.findNext()
invoking this method results in a mozbrowserfindchange event f
iring, which carries details about the search results.
Overview of Mozilla embedding APIs
to facilitate this, a set of global functions are available to access the nsmemory methods without requ
iring an instance of the nsmemory service (see nsmemory.h).
Gecko Keypress Event
d be no chrome access keys with punctuation characters or other characters that would normally require depressing the shift key.) during accel key handling, if the event includes the shift modifier, but an alternative charcode is not a bicameral letter (i.e., it does not have upper and lower case forms), then the shift modifier state should be ignored if there is no exactly matching handler (requ
iring shift to be down).
JavaScript Tips
some xpcom methods expect an object that implements several interfaces thus requ
iring you to write a queryinterface method.
Addon
operationsrequ
iringrestart read only integer a bitfield holding all of the operations that will require a restart to complete for this add-on.
AddonManager
operations requ
iring restart constant description op_needs_restart_none no operations will require a restart.
DownloadSummary
this allows the summary to be used without requ
iring the initialization of the downloadlist first.
Downloads.jsm
the download object can be used without requ
iring direct database access.
JavaScript code modules
ctypes.jsm provides an interface that allows javascript code to call native libraries without requ
iring the development of an xpcom component.
gettext
consider another example, gaeilge (
irish): plural-forms: nplurals=3; plural=n==1 ?
MathML Accessibility in Mozilla
mozilla and nvda developers essentially do not have control on how mathematical formulas are read, please contact design science for any inqu
iries.
powermetrics
for example, f
iring a single sub-2ms deadline can also cause a package idle exit wakeup.
Preferences
the preference system makes it possible to store data for mozilla applications using a key/value pa
iring system.
PR_Lock
acqu
iring the lock is not an interruptible operation, nor is there any timeout mechanism.
JSS
jss source should now be checked out from the github: git clone git@github.com:dogtagpki/jss.git -- or -- git clone https://github.com/dogtagpki/jss.git all future upstream enqu
iries to jss should now use the pagure issue tracker system: https://pagure.io/jss/issues documentation regarding the jss project should now be viewed at: http://www.dogtagpki.org/wiki/jss note: as much of the jss documentation is sorely out-of-date, updated information will be a work in progress, and many portions of any legacy documentation will be re-written over the course of time.
NSS 3.22 release notes
r pbkdf (not supported) ckp_pkcs5_pbkd2_hmac_sha512_256 - prf based on hmac with sha-512 truncated to 256 bits for pbkdf (not supported) in secoidt.h nss_use_alg_in_ssl nss_use_policy_in_ssl in ssl.h ssl_enable_signed_cert_timestamps in sslt.h ssl_max_extensions is updated to 13 notable changes in nss 3.22 nss c++ tests are built by default, requ
iring a c++11 compiler.
NSS API Guidelines
this method is a more complicated than the other methods: requ
iring the calling of search code tolerant to often repeated element inspection.
NSS Sample Code Utilities_1
fprintf(output, "password must be at least 8 characters long with one or more\n"); fprintf(output, "non-alphabetic characters\n"); continue; } return (char*) port_strdup(phrase); } } /* * filepasswd extracts the password from a text file * * storing passwords is often used with server environments * where prompting the user for a password or requ
iring it * to be entered in the command line is not a feasible option.
PKCS11 FAQ
in the past, nss uses the invalid session handle to mark problems with acqu
iring or using a session.
NSS Tools
overall objectives provide a tool for analyzing and repa
iring certificate databases (dbck).
Tracing JIT
if the side exit condition indicates that the trace exited unsuccessfully -- due to encountering sufficient memory pressure to trigger a garbage collection, running out of native stack space, exp
iring a timer or any similar abnormal condition -- the monitor returns to monitoring mode.
JS_NewGlobalObject
if an error occurs and the operation aborts, callers should skip f
iring the hook.
Split object
in the sp
irit of this rule, js_getscopechain should always return an inner object.
Secure Development Guidelines
race conditions: prevention be very careful when working with threads, the file system, or signals track down shared resources and lock them accordingly for signal handlers never use non-atomic operations longjmp() is a sign of badness even exit() could cause problems, but _exit() is okay deadlocks and locking issues locks are used when dealing with threads acqu
iring more than one lock to perform an action if a second thread acquires the same locks but in a different order, it causes denial of service since both threads will be waiting forever deadlocks and locking issues example func_a() { lock(locka); lock(lockb); ...
History Service Design
expiration expiration is an important part of data management for two reasons: privacy: exp
iring data based on user interaction is important, nothing must be left behind on a page removal database maintenance: having cleaner and smaller tables helps queries performances expiration is done at certain moments, but in future will most likely be moved to async queries, to be executed on a separate thread.
Building the WebLock UI
grouping radio elements together creates the toggling ui by requ
iring that one or another of the elements be selected, but not both.
XPCOM Stream Guide
seekable streams some streams are "seekable": they let you specify where in the stream you are reading from (instead of requ
iring it be from the beginning).
Monitoring HTTP activity
this is very simple, requ
iring you to implement a single method, nsihttpactivityobserver.observeactivity(), which gets called each time an action of interest takes place on the http channel.
Observer Notifications
telemetry topic data description gather-telemetry - note: this is obsolete and planned to be removed as it's not f
iring at the proper times.
mozIRegistry
clients requ
iring dynamic "binding" of clsids will be required to use some higher-level services (tbd) to figure out the clsids they should use.
nsIContentViewer
pagehide() void pagehide( in boolean isunload ); parameters isunload missing description exceptions thrown missing exception missing description permitunload() determins whether or not the document wants to prevent unloading by f
iring beforeunload on the document, and if it does, prompts the user.
nsIMsgDBHdr
for the currently selected message, thunderbird provides a utility function: setmsghdrpropertyandreload(aproperty, avalue); which duplicates this functionality without requ
iring you to grab the current header.
nsIProtocolHandler
(many servers do not support utf-8
iris at the present time, so we must be careful about tracking the native charset of the origin server.) nsiuri newuri( in autf8string aspec, in string aorigincharset, in nsiuri abaseuri ); parameters aspec the uri string in utf-8 encoding.
XPCOM Interface Reference
dow2nsidomwindowinternalnsidomwindowutilsnsidomxpathevaluatornsidomxpathexceptionnsidomxpathexpressionnsidomxpathresultnsidomxulcontrolelementnsidomxulelementnsidomxullabeledcontrolelementnsidomxulselectcontrolelementnsidomxulselectcontrolitemelementnsidatasignatureverifiernsidebugnsidebug2nsidevicemotionnsidevicemotiondatansidevicemotionlistenernsidialogcreatornsidialogparamblocknsidictionarynsid
irindexnsid
irindexlistenernsid
irindexparsernsidirectoryenumeratornsidirectoryiteratornsidirectoryservicensidirectoryserviceprovidernsidirectoryserviceprovider2nsidiskcachestreaminternalnsidispatchsupportnsidocshellnsidocumentloadernsidownloadnsidownloadhistorynsidownloadmanagernsidownloadmanageruinsidownloadobservernsidownloadprogresslistenernsidownloadernsidragdrophandlernsidragservicensidragsession...
XPCOM Interface Reference by grouping
rvice nsicomponentregistrar internationalization nsibidikeyboard nsilocale io filesystem nsidirectoryenumerator nsidirectoryiterator nsidirectoryservice nsidirectoryserviceprovider nsidirectoryserviceprovider2 nsid
irindex nsid
irindexlistener nsid
irindexparser nsifile nsilocalfile stream nsiasyncinputstream nsiasyncoutputstream nsiasyncstreamcopier nsibinaryinputstream nsibinaryoutputstream nsicontentsniffer nsiconverterinputstream nsifil...
nsMsgViewCommandType
cmdrequ
iringmsgbody 20 used with nsimsgdbview.getcommandstatus() to determine if commands requ
iring the message body (i.e.
Performance
for example, the history service used to delete many database items at shutdown when exp
iring old history items.
Reference Manual
the destructor, which corresponds to client code calling release against a raw xpcom interface pointer, is factored, requ
iring the extra time required to invoke a subroutine call, though this is balanced against the cost already present in both cases of calling release which may, in turn, invoke delete and the referents destructor.
Using nsIDirectoryService
you may wish that you could have mozilla use these locations rather than requ
iring the same disk layout as seamonkey.
XPCOM ABI
e cpu architecture and may be either: x86 - i386 and higher series (including x86-64 cpus in 32-bit mode) ppc - powerpc series alpha - alpha series x86_64 - amd64/emt64 series in 64-bit mode (32-bit mode is still considered x86) sparc - sparc series ia64 - itanium series {target_compiler_abi}[platforms] represents the compiler abi and may be either: msvc - microsoft visual c++ n32 -
irix 6 c++ compiler gcc2 - gnu c++ compiler 2.x gcc3 - gnu c++ compiler 3.x or 4.x sunc - sun c++ compiler ibmc - ibm c++ compiler for example: firefox built with the gnu c++ compiler 4.0.0 for the intel pentium processor would have xpcom abi of x86-gcc3 the xpcom abi string can be retrieved programmatically by using the nsixulruntime interface.
xptcall FAQ
though the chosen approach requires some core platform specific code, it has minimal footprint and is extendable to work with any valid xpcom interface without requ
iring additional per platform compiled code to be distributed.
WebIDL bindings
nt handler attributes, like: attribute eventhandler onthingchange; if you need to implement an event handler attribute for an interface, in the definition (header file), you use the handy "impl_event_handler" macro: impl_event_handler(onthingchange); the "onthingchange" needs to be added to the staticatoms.py file: atom("onthingchange", "onthingchange") the actual implementation (.cpp) for f
iring the event would then look something like: nsresult myinterface::dispatchthingchangeevent() { ns_named_literal_string(type, "thingchange"); eventinit init; init.mbubbles = false; init.mcancelable = false; refptr<event> event = event::constructor(this, type, init); event->settrusted(true); errorresult rv; dispatchevent(*event, rv); return rv.stealnsresult(); // assumi...
Mozilla
preferences the preference system makes it possible to store data for mozilla applications using a key/value pa
iring system.
Debugger - Firefox Developer Tools
setting this to false prevents this debugger instance from requ
iring any code coverage instrumentation, but it does not guarantee that the instrumentation is not present.
Beacon API - Web APIs
requests are guaranteed to be initiated before a page is unloaded and they are run to completion, without requ
iring a blocking request (for example xmlhttprequest).
Document: pointerout event - Web APIs
the pointerout event is fired for several reasons including: pointing device is moved out of the hit test boundaries of an element; f
iring the pointerup event for a device that does not support hover (see pointerup); after f
iring the pointercancel event (see pointercancel); when a pen stylus leaves the hover range detectable by the digitizer.
Element.getBoundingClientRect() - Web APIs
cross-browser fallback scripts requ
iring high cross-browser compatibility can use window.pagexoffset and window.pageyoffset instead of window.scrollx and window.scrolly.
EventTarget.addEventListener() - Web APIs
the proprietary mselementresize event, when paired with the addeventlistener method of registering event handlers, provides similar functionality as onresize, f
iring when certain html elements are resized.
Using FormData Objects - Web APIs
this allows a formdata object to be quickly obtained in response to a formdata event f
iring, rather than needing to put it together yourself.
FormDataEvent - Web APIs
this allows a formdata object to be quickly obtained in response to a formdata event f
iring, rather than needing to put it together yourself when you wish to submit form data via a method like xmlhttprequest (see using formdata objects).
Fullscreen API - Web APIs
note: support for this api varies somewhat across browsers, with many requ
iring vendor prefixes and/or not implementing the latest specification.
Using the Gamepad API - Web APIs
technologies like <canvas>, webgl, <audio>, and <video>, along with javascript implementations, have matured to the point where they can now support many tasks previously requ
iring native code.
GlobalEventHandlers.onerror - Web APIs
source: url of the script where the error was raised (string) lineno: line number where error was raised (number) colno: column number for the line where the error occurred (number) error: error object (object) when the function returns true, this prevents the f
iring of the default event handler.
HTMLElement: pointerout event - Web APIs
the pointerout event is fired for several reasons including: pointing device is moved out of the hit test boundaries of an element; f
iring the pointerup event for a device that does not support hover (see pointerup); after f
iring the pointercancel event (see pointercancel); when a pen stylus leaves the hover range detectable by the digitizer.
HTMLImageElement.loading - Web APIs
images whose loading attribute is set to lazy but are located within the visual viewport immediately upon initial page load are loaded as soon as the layout is known, but their loads do not delay the f
iring of the load event.
HTMLInputElement: search event - Web APIs
bubbles yes cancelable no interface event event handler property onsearch there are several ways a search can be initiated, such as by pressing enter while the <input> is focused, or, if the incremental attribute is present, after a ua-defined timeout elapses since the most recent keystroke (with new keystrokes resetting the timeout so the f
iring of the event is debounced).
HTMLMediaElement: canplay event - Web APIs
bubbles no cancelable no interface event target element default action none event handler property globaleventhandlers.oncanplay specification html5 media examples these examples add an event listener for the htmlmediaelement's canplay event, then post a message when that event handler has reacted to the event f
iring.
HTMLMediaElement: canplaythrough event - Web APIs
no cancelable no interface event target element default action none event handler property globaleventhandlers.oncanplaythrough specification html5 media examples these examples add an event listener for the htmlmediaelement's canplaythrough event, then post a message when that event handler has reacted to the event f
iring.
HTMLMediaElement: durationchange event - Web APIs
no cancelable no interface event target element default action none event handler property globaleventhandlers.ondurationchange specification html5 media examples these examples add an event listener for the htmlmediaelement's durationchange event, then post a message when that event handler has reacted to the event f
iring.
HTMLMediaElement: emptied event - Web APIs
bubbles no cancelable no interface event target element default action none event handler property globaleventhandlers.onemptied specification html5 media examples these examples add an event listener for the htmlmediaelement's emptied event, then post a message when that event handler has reacted to the event f
iring.
HTMLMediaElement: ended event - Web APIs
target element default action none event handler property globaleventhandlers.onended specification html5 media this event is also defined in media capture and streams and web audio api examples these examples add an event listener for the htmlmediaelement's ended event, then post a message when that event handler has reacted to the event f
iring.
HTMLMediaElement: pause event - Web APIs
bubbles no cancelable no interface event target element default action none event handler property globaleventhandlers.onpause specification html5 media examples these examples add an event listener for the htmlmediaelement's pause event, then post a message when that event handler has reacted to the event f
iring.
HTMLMediaElement: play event - Web APIs
bubbles no cancelable no interface event target element default action none event handler property globaleventhandlers.onplay specification html5 media examples these examples add an event listener for the htmlmediaelement's play event, then post a message when that event handler has reacted to the event f
iring.
HTMLMediaElement: playing event - Web APIs
bubbles no cancelable no interface event target element default action none event handler property globaleventhandlers.onplaying specification html5 media examples these examples add an event listener for the htmlmediaelement's playing event, then post a message when that event handler has reacted to the event f
iring.
HTMLMediaElement: ratechange event - Web APIs
bbles no cancelable no interface event target element default action none event handler property globaleventhandlers.onratechange specification html5 media examples these examples add an event listener for the htmlmediaelement's ratechange event, then post a message when that event handler has reacted to the event f
iring.
HTMLMediaElement: seeked event - Web APIs
bubbles no cancelable no interface event target element default action none event handler property globaleventhandlers.onseeked specification html5 media examples these examples add an event listener for the htmlmediaelement's seeked event, then post a message when that event handler has reacted to the event f
iring.
HTMLMediaElement: seeking event - Web APIs
bubbles no cancelable no interface event target element default action none event handler property globaleventhandlers.onseeking specification html5 media examples these examples add an event listener for the htmlmediaelement's seeking event, then post a message when that event handler has reacted to the event f
iring.
HTMLMediaElement: stalled event - Web APIs
bubbles no cancelable no interface event target element default action none event handler property globaleventhandlers.onstalled specification html5 media examples these examples add an event listener for the htmlmediaelement's stalled event, then post a message when that event handler has reacted to the event f
iring.
HTMLMediaElement: suspend event - Web APIs
bubbles no cancelable no interface event target element default action none event handler property globaleventhandlers.onsuspend specification html5 media examples these examples add an event listener for the htmlmediaelement's suspend event, then post a message when that event handler has reacted to the event f
iring.
HTMLMediaElement: timeupdate event - Web APIs
bbles no cancelable no interface event target element default action none event handler property globaleventhandlers.ontimeupdate specification html5 media examples these examples add an event listener for the htmlmediaelement's timeupdate event, then post a message when that event handler has reacted to the event f
iring.
HTMLMediaElement: volumechange event - Web APIs
s no cancelable no interface event target element default action none event handler property globaleventhandlers.onvolumechange specification html5 media examples these examples add an event listener for the htmlmediaelement's volumechange event, then post a message when that event handler has reacted to the event f
iring.
HTMLMediaElement: waiting event - Web APIs
bubbles no cancelable no interface event target element default action none event handler property globaleventhandlers.onwaiting specification html5 media examples these examples add an event listener for the htmlmediaelement's waiting event, then post a message when that event handler has reacted to the event f
iring.
HTMLMediaElement - Web APIs
the best time to set a new length is after the loadedmetadata event fires, when the audio info is known, but before the audio has started or mozaudioavailable events have begun f
iring.
Using microtasks in JavaScript with queueMicrotask() - Web APIs
url]) { queuemicrotask(() => { 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")); }); } }; this balances the clauses by having both situations handle the setting of data and f
iring of the load event within a microtask (using queuemicrotask() in the if clause and using the promises used by fetch() in the else clause).
IDBDatabaseSync - Web APIs
transaction() creates and returns a transaction, acqu
iring locks on the given database objects, within the specified timeout duration, if possible.
IndexedDB API - Web APIs
this method returns an idbrequest object; asynchronous operations communicate to the calling application by f
iring events on idbrequest objects.
Intersection Observer API - Web APIs
as the user scrolls the page, these intersection detection routines are f
iring constantly during the scroll handling code, resulting in an experience that leaves the user frustrated with the browser, the web site, and their computer.
MediaStream.getAudioTracks() - Web APIs
example this example gets a webcam's audio and video in a stream using getusermedia(), attaches the stream to a <video> element, then sets a timer that, upon exp
iring, will stop the first audio track found on the stream.
MediaTrackSettings.deviceId - Web APIs
since there is a one-to-one pa
iring of id with each source, all tracks with the same source will share the same id for any given origin, so mediastreamtrack.getcapabilities() will always return exactly one value for deviceid.
MerchantValidationEvent - Web APIs
properties merchantvalidationevent.methodname secure context a domstring providing a unique payment method identifier for the payment handler that's requ
iring validation.
Notifications API - Web APIs
serviceworkerglobalscope includes the serviceworkerglobalscope.onnotificationclick handler, for f
iring custom functions when a notification is clicked.
PointerEvent - Web APIs
pointerout this event is fired for several reasons including: pointing device is moved out of the hit test boundaries of an element; f
iring the pointerup event for a device that does not support hover (see pointerup); after f
iring the pointercancel event (see pointercancel); when a pen stylus leaves the hover range detectable by the digitizer.
RTCIceCandidatePairStats.requestsReceived - Web APIs
the rtcicecandidatepairstats dictionary's requestsreceived property indicates the total number of stun connectivity check requests that have been received so far on the connection described by this pa
iring of candidates.
RTCInboundRtpStreamStats.sliCount - Web APIs
in general, what's usually of interest is that the higher this number is, the more the stream data is becoming corrupted between the sender and the receiver, requ
iring resends or dropping frames.
RTCPeerConnection - Web APIs
"connected" a usable pa
iring of local and remote candidates has been found for all components of the connection, and the connection has been established.
Screen Wake Lock API - Web APIs
wakelock.addeventlistener('release', () => { // the wake lock has been released statuselem.textcontent = 'wake lock has been released'; }); reacqu
iring a wake lock the following code reacquires the wake lock should the visibility of the document change and the wake lock is released.
Storage Access API - Web APIs
note: user interaction propagates to the promise returned by both of these methods, allowing the callers to take actions that require user interaction without requ
iring a second click from the user.
TextTrack.mode - Web APIs
the activecues list is being maintained and events are f
iring at the appropriate times; the track's text is also being drawn appropriately based on the styling and the track's kind.
Supporting both TouchEvent and MouseEvent - Web APIs
event f
iring the touch events standard defines a few browser requirements regarding touch and mouse interaction (see the interaction with mouse events and click section for details), noting the browser may fire both touch events and mouse events in response to the same user input.
USB - Web APIs
calling this function triggers the user agent's pa
iring flow.
Signaling and video calling - Web APIs
note: as is the case with the caller, once the setlocaldescription() fulfillment handler has run, the browser begins f
iring icecandidate events that the callee must handle, one for each candidate that needs to be transmitted to the remote peer.
Using DTMF with WebRTC - Web APIs
hasaddtrack because some browsers have not yet implemented rtcpeerconnection.addtrack(), therefore requ
iring the use of the obsolete addstream() method, we use this boolean to determine whether or not the user agent supports addtrack(); if it doesn't, we'll fall back to addstream().
Web audio spatialization basics - Web APIs
value = y; panner.orientationz.value = z; break; } boombox.style.transform = 'translatex('+transform.xaxis+'px) translatey('+transform.yaxis+'px) scale('+transform.zaxis+') rotatey('+transform.rotatey+'deg) rotatex('+transform.rotatex+'deg)'; const move = prevmove || {}; move.frameid = requestanimationframe(() => moveboombox(direction, move)); return move; } w
iring up our controls w
iring up out control buttons is comparatively simple — now we can listen for a mouse event on our controls and run this function, as well as stop it when the mouse is released: // for each of our controls, move the boombox and change the position values movecontrols.foreach(function(el) { let moving; el.addeventlistener('mousedown', function() { let direct...
XMLHttpRequest() - Web APIs
mozsystem boolean: setting this flag to true allows making cross-site connections without requ
iring the server to opt-in using cors.
ARIA live regions - Accessibility
using javascript, it is possible to dynamically change parts of a page without requ
iring the entire page to reload — for instance, to update a list of search results on the fly, or to display a discreet alert or notification which does not require user interaction.
ARIA Test Cases - Accessibility
also, as a clever feature for at testing, the f
iring of events (like event_object_statechange) can be invoked from the examples.
Accessibility documentation index - Accessibility
7 aria live regions aria, accessibility, arialive using javascript, it is possible to dynamically change parts of a page without requ
iring the entire page to reload — for instance, to update a list of search results on the fly, or to display a discreet alert or notification which does not require user interaction.
display - CSS: Cascading Style Sheets
legacy <display-legacy> css 2 used a single-keyword syntax for the display property, requ
iring separate keywords for block-level and inline-level variants of the same layout mode.
font-variant-caps - CSS: Cascading Style Sheets
for example: in turkic languages, such as turkish (tr), azerbaijani (az), crimean tatar (crh), volga tatar (tt), and bashkir (ba), there are two kinds of i (one with the dot, one without) and two case pa
irings: i/İ and ı/i.
Demos of open web technologies
(interactive) video embedded in svg (or use the local download) summer html image map creator (source code) video video 3d animation "mozilla constantly evolving" video 3d animation "floating dance" streaming anime, movie trailer and interview billy's browser firefox flick virtual barber shop transformers movie trailer a scanner darkly movie trailer (with built in controls) events f
iring and volume control dragable and sizable videos 3d graphics webgl web audio fireworks ioquake3 (source code) escher puzzle (source code) kai 'opua (source code) virtual reality the polar sea (source code) sechelt fly-through (source code) css css zen garden css floating logo "mozilla" paperfold css blockout rubik's cube pure css slides planetarium (source code) loader...
Event reference
timeout progression is terminated due to preset time exp
iring.
Web Audio playbackRate explained - Developer guides
pan id="currentpbr">1</span></p> </form> and apply some javascript to it: window.onload = function () { var v = document.getelementbyid("myvideo"); var p = document.getelementbyid("pbr"); var c = document.getelementbyid("currentpbr"); p.addeventlistener('input',function(){ c.innerhtml = p.value; v.playbackrate = p.value; },false); }; finally, we listen for the input event f
iring on the <input> element, allowing us to react to the playback rate control being changed.
Rich-Text Editing in Mozilla - Developer guides
aihmcz0tvgmbqkzhayyfewev14eq8iflhnehmfdqkaiskqci2pdc4qbg+oajc0ewadncogo6anqkkoiqa7" /> <img class="intlink" title="print" onclick="printdoc();" src="data:image/png;base64,ivborw0kggoaaaansuheugaaabyaaaawcayaaadetgw7aaaabgdbtueaalgpc/xhbqaaaazis0deap8a/wd/ol2nkwaaaalwsflzaaalewaacxmbajqcgaaaaad0su1fb9oebxczfmgboiwaaaaidevydenvbw1lbnqa9sywvwaaaufjrefuomvtlutsjfeux//n3nn0ydpbh1abrpt4lfqtqkc3jrkkneisi
iribbehjjpklivo4m1rrmkkjqirmjruqudkpt71qpipirkpaqdf55tv5vvuszjqtjolseukd3xu/3dpzusc/22wtu2wrn+jg5so/ocdh8ycmjdflehmlkjkvk7kuyn+ufza/rtth76zavocdptrxzqtni3mrwupc+6cktlxz/sddp2uu9uxlmyxz6qm8v4tz8lhf1h+zdqxt7s8olmxtbf4e8qafhjj3kbp2mzkkthpitjp9vh6ihia+whtasx5brpwuemgdondf/2a4m7ukds1jw662+xkqtkeuoqjktojm2h53yfl15psj04zc94wdtibr26fxlc2mzrvbccebz2kirfd414tkmlezbvgt33+qcohgha81swysew0r1uzfnylmtpx80pngqq91lwv...
Making content editable - Developer guides
aihmcz0tvgmbqkzhayyfewev14eq8iflhnehmfdqkaiskqci2pdc4qbg+oajc0ewadncogo6anqkkoiqa7" /> <img class="intlink" title="print" onclick="printdoc();" src="data:image/png;base64,ivborw0kggoaaaansuheugaaabyaaaawcayaaadetgw7aaaabgdbtueaalgpc/xhbqaaaazis0deap8a/wd/ol2nkwaaaalwsflzaaalewaacxmbajqcgaaaaad0su1fb9oebxczfmgboiwaaaaidevydenvbw1lbnqa9sywvwaaaufjrefuomvtlutsjfeux//n3nn0ydpbh1abrpt4lfqtqkc3jrkkneisi
iribbehjjpklivo4m1rrmkkjqirmjruqudkpt71qpipirkpaqdf55tv5vvuszjqtjolseukd3xu/3dpzusc/22wtu2wrn+jg5so/ocdh8ycmjdflehmlkjkvk7kuyn+ufza/rtth76zavocdptrxzqtni3mrwupc+6cktlxz/sddp2uu9uxlmyxz6qm8v4tz8lhf1h+zdqxt7s8olmxtbf4e8qafhjj3kbp2mzkkthpitjp9vh6ihia+whtasx5brpwuemgdondf/2a4m7ukds1jw662+xkqtkeuoqjktojm2h53yfl15psj04zc94wdtibr26fxlc2mzrvbccebz2kirfd414tkmlezbvgt33+qcohgha81swysew0r1uzfnylmtpx80pngqq91lwv...
User input and controls - Developer guides
for devices providing a mouse/touchpad as a pointing method, the pointer lock api helps you in implementing a first person 3d game or other applications requ
iring full control of the pointing device.
<figure>: The Figure with Optional Caption element - HTML: Hypertext Markup Language
igcaption> <blockquote>if debugging is the process of removing software bugs, then programming must be the process of putting them in.</blockquote> </figure> poems <figure> <p style="white-space:pre"> bid me discourse, i will enchant thine ear, or like a fairy trip upon the green, or, like a nymph, with long dishevell'd hair, dance on the sands, and yet no footing seen: love is a sp
irit all compact of fire, not gross to sink, but light, and will aspire.</p> <figcaption><cite>venus and adonis</cite>, by william shakespeare</figcaption> </figure> specifications specification status comment html living standardthe definition of '<figure>' in that specification.
Connection management in HTTP/1.x - HTTP
in http/1.1, persistence is the default, and the header is no longer needed (but it is often added as a defensive measure against cases requ
iring a fallback to http/1.0).
Cache-Control - HTTP
cache-control: public, max-age=604800, immutable requ
iring revalidation specifying no-cache or max-age=0 indicates that clients can cache a resource and must revalidate each time before using it.
CSP: script-src - HTTP
script-src 'strict-dynamic' 'nonce-somenonce' or script-src 'strict-dynamic' 'sha256-base64encodedhash' it is possible to deploy strict-dynamic in a backwards compatible way, without requ
iring user-agent sniffing.
Set-Cookie - HTTP
set-cookie: sessionid=38afes7a8 permanent cookie instead of exp
iring when the client is closed, permanent cookies expire at a specific date (expires) or after a specific length of time (max-age).
Strict-Transport-Security - HTTP
whenever the strict-transport-security header is delivered to the browser, it will update the expiration time for that site, so sites can refresh this information and prevent the timeout from exp
iring.
An overview of HTTP - HTTP
though http doesn't require the underlying transport protocol to be connection-based; only requ
iring it to be reliable, or not lose messages (so at minimum presenting an error).
CSS Houdini
with worklets, you can create modular css, requ
iring a single line of javascript to import configureable components: no pre-processors, post-processors or javascript frameworks needed.
Introduction - JavaScript
in contrast, javascript descends in sp
irit from a line of smaller, dynamically typed languages such as hypertalk and dbase.
Using Promises - JavaScript
when promises and tasks collide if you run into situations in which you have promises and tasks (such as events or callbacks) which are f
iring in unpredictable orders, it's possible you may benefit from using a microtask to check status or balance out your promises when promises are created conditionally.
getter - JavaScript
description sometimes it is desirable to allow access to a property that returns a dynamically computed value, or you may want to reflect the status of an internal variable without requ
iring the use of explicit method calls.
Array.prototype.map() - JavaScript
e: 30}] let reformattedarray = kvarray.map(obj => { let robj = {} robj[obj.key] = obj.value return robj }) // reformattedarray is now [{1: 10}, {2: 20}, {3: 30}], // kvarray is still: // [{key: 1, value: 10}, // {key: 2, value: 20}, // {key: 3, value: 30}] mapping an array of numbers using a function containing an argument the following code shows how map works when a function requ
iring one argument is used with it.
TypedArray.prototype.map() - JavaScript
const numbers = new uint8array([1, 4, 9]); const roots = numbers.map(math.sqrt); // roots is now: uint8array [1, 2, 3], // numbers is still uint8array [1, 4, 9] mapping a typed array of numbers using a function containing an argument the following code shows how map works when a function requ
iring one argument is used with it.
Strict mode - JavaScript
a few strict mode tweaks, plus requ
iring that user-submitted javascript be strict mode code and that it be invoked in a certain manner, substantially reduce the need for those runtime checks.
JavaScript
learn javascript an excellent resource for asp
iring web developers — learn javascript in an interactive environment, with short lessons and interactive tests, guided by automated assessment.
Web media technologies
webrtc webrtc (web real-time communication) makes it possible to stream live audio and video, as well as transfer arbitrary data, between two peers over the internet, without requ
iring an intermediary.
Lazy loading - Web Performance
most of those images are off-screen (non-critical), requ
iring user interaction (an example being scroll) in order to view them.
Mobile first - Progressive web apps (PWAs)
imagine you wanted to include some kind of webgl chart in the desktop version of the site requ
iring a webgl library like three but didn't want it included in the mobile version?
xlink:arcrole - SVG: Scalable Vector Graphics
a different arc it might have the role of "daughter." twentytwo elements are using this attribute: <a>, <altglyph>, <animate>, <animatecolor>, <animatemotion>, <animatetransform>, <color-profile>, <cursor>, <feimage>, <filter>, <font-face-uri>, <glyphref>, <image>, <lineargradient>, <mpath>, <pattern>, <radialgradient>, <script>, <set>, <textpath>, <tref>, <use> usage notes value <
iri> default value none animatable no <
iri> this value specifies an
iri reference that identifies some resource that describes the intended property.