Search completed in 1.03 seconds.
<listing> - HTML: Hypertext Markup Language
summary the html
listing element (<
listing>) renders text between the start and end tags without interpreting the html in between and using a monospaced font.
... desktopmobilechromeedgefirefoxinternet exploreroperasafariandroid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internet
listing deprecatedchrome no support noedge no support nofirefox no support nonotes no support nonotes notes before firefox 4, this element implemented the htmlspanelement interface instead of the standard htmlelement interface...
... the <plaintext> and <xmp> elements, similar to <
listing> but also obsolete.
Chapter 3: Introduction to XUL—How to build a more intuitive UI - Archive of obsolete content
fixme: explain how setting this option and use next
listings if we want to run firefox displaying none of its gui and only the contents of a certain xul file, we can launch firefox and set the option: -chrome file_url.xul another way, as shown in
listing 1, is to use the window.opendialog() method, which can be used only within a xul window.
... window.opendialog('another.xul', '_blank','chrome,all,dialog=no');
listing 1: opening a window without the firefox gui xul as an xml application
listing 2 shows an example of a gui definition file marked up in xul (a "xul document").
...--> </window>
listing 2: general structure of a xul document even with the internationalization of firefox and extensions, this kind of xml function is being used.
...And 53 more matches
Chapter 5: Let's build a Firefox extension - Archive of obsolete content
create install manifest fill in the install.rdf file as shown in
listing 1.
...
listing 1: content for install.rdf <?xml version="1.0"?> <rdf xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"> <description about="urn:mozilla:install-manifest"> <!-- unique id for extension.
...tion for the extension (in this case: firefox 2) --> <em:targetapplication> <description> <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> <em:minversion>2.0</em:minversion> <em:maxversion>4.0.0.*</em:maxversion> </description> </em:targetapplication> </description> </rdf> create the chrome manifest fill in the chrome.manifest file as shown in
listing 2.
...And 51 more matches
Chapter 4: Using XPCOM—Implementing advanced processes - Archive of obsolete content
listing 1 shows how you can use xpconnect to acquire references to xpcom services and create new xpcom objects.
...
listing 1: calling xpcom functions using xpconnect <?xml version="1.0" encoding="utf-8"?> <page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <script type="application/javascript"><![cdata[ var ioservice = components.classes['@mozilla.org/network/io-service;1'] .getservice(components.interfaces.nsiioservice); alert(ioservice); ]]></script> </page> ...
...calling xpconnect using local files try saving the contents of
listing 1 as the file test.xul, somewhere on your desktop, and drag and drop it into firefox to open it.
...And 39 more matches
Back to the Server: Server-Side JavaScript On The Rise - Archive of obsolete content
the code in
listing 1 is a sample javascript script which incorporates java classes to handle the database query.
...
listing 1 - querying a mysql database from rhino // import the java sql packages importpackage( java.sql ); // load the mysql driver java.lang.class.forname( "com.mysql.jdbc.driver" ); // create connection to the database var conn = drivermanager.getconnection( "jdbc:mysql://localhost/rhino", "urhino", "prhino" ); // create a statement handle var stmt = conn.createstatement(); // get a resultset var rs = stmt.executequery( "select * from employee" ); // get the metadata from the resultset var meta = rs.getmetadata(); // loop over the records, dump out column names and values while( rs.next() ) { for( var i = 1; i <= meta.getcolumncount(); i++ ) { print( meta.getcolumnname( i ) + ": " + rs.getobject( i ) + "\n" ); } print( "----------\n" ); } // cleanup rs.
...sample output is shown in
listing 2.
...And 21 more matches
Index
* creating or modifying a crl: crlutil -g|-m -c crl-gen-file -n nickname [-i crl] [-u url] [-d keydir] [-p dbprefix] [-l alg] [-a] [-b] *
listing all crls or a named crl: crlutil -l [-n crl-name] [-d krydir] * deleting crl from db: crlutil -d -n nickname [-d keydir] [-p dbprefix] * erasing crls from db: crlutil -e [-d keydir] [-p dbprefix] * deleting crl from db: crlutil -d -n nickname [-d keydir] [-p dbprefix] * erasing crls from db: crlutil -e [-d keydir] [-p dbpre...
... modutil -list [modulename] -dbdir [sql:]directory
listing the modules shows the module name, their status, and other associated security databases for certificates and keys.
... for example: modutil -list -dbdir sql:/home/my/sharednssdb
listing of pkcs #11 modules ----------------------------------------------------------- 1.
...And 13 more matches
Chapter 6: Firefox extensions and XUL applications - Archive of obsolete content
first we’ll sketch out a simple interface for it (
listing 1).
...
listing 1: calc.js (stage 1) function rpncalc() { } rpncalc.prototype = { init: function() { }, push: function(val) { }, plus: function() { }, pop: function() { } } implement the addition operation create test case begin by creating the test case.
...next, click the edit button to set up the “2 1+” test case (
listing 2).
...And 9 more matches
Index - Web APIs
914 document.forms api, dom, document, forms, html dom, html forms, property, reference the forms read-only property of the document interface returns an htmlcollection
listing all the <form> elements contained in the document.
... 1671 htmlformelement.elements api, elements, html dom, htmlformcontrolscollection, htmlformelement, property, reference the htmlformelement property elements returns an htmlformcontrolscollection
listing all the form controls contained in the <form> element.
... 1767 htmlmediaelement.audiotracks api, audio, audio tracks, html dom, htmlmediaelement, media, property, reference, tracks, web, audiotracks the read-only audiotracks property on htmlmediaelement objects returns an audiotracklist object
listing all of the audiotrack objects representing the media element's audio tracks.
...And 9 more matches
Realizing common layouts using CSS Grid Layout - CSS: Cascading Style Sheets
we will look at an example using grid-template-areas, a typical 12-column flexible grid system, and also a product
listing using auto-placement.
... a product
listing with auto-placement many layouts are essentially sets of “cards” – product
listings, image galleries, and so on.
... a grid can make it very easy to create these
listings in a way that is responsive without needing to add media queries to make it so.
...And 9 more matches
Chapter 2: Technologies used in developing extensions - Archive of obsolete content
listing 1: xml syntax <elementname someattribute="somevalue"> content </elementname> as shown in
listing 1, xml uses elements, which consist of an opening tag, a closing tag, and content.
...as shown in
listing 1, it has an extremely simple syntax.
...
listing 2: css code sample body { color: black; background-color: white; } p { margin-bottom: 1em; text-indent: 1em; } javascript: the world's most misunderstood language javascript is a scripting language first developed in the 1990s, at which time it was created as a way to add dynamic features to web pages.
...And 4 more matches
Using XPCOM Utilities to Make Things Easier
to write a different component library, you could copy the
listing at the end of the chapter, change very little, and paste it into a new project.
...to get an idea about how much can be handled with the macros described in this section, compare the code
listing in weblock2.cpp at the end of the chapter with weblock1.cpp in the previous chapter.
...}; the important thing to note in the fictitious
listing above is that it can support multiple components in a module.
...And 3 more matches
DataTransferItem.webkitGetAsEntry() - Web APIs
example in this example, a drop zone is created, which responds to the drop event by scanning through the dropped files and directories, outputting a hierarchical directory
listing.
... html content the html establishes the drop zone itself, which is a <div> element with the id "dropzone", and an unordered list element with the id "
listing".
... <p>drag files and/or directories to the box below!</p> <div id="dropzone"> <div id="boxtitle"> drop files here </div> </div> <h2>directory tree:</h2> <ul id="
listing"> </ul> css content the styles used by the example are shown here.
...And 3 more matches
FileSystemDirectoryReader.readEntries() - Web APIs
example in this example, a drop zone is created, which responds to the drop event by scanning through the dropped files and directories, outputting a hierarchical directory
listing.
... html content the html establishes the drop zone itself, which is a <div> element with the id "dropzone", and an unordered list element with the id "
listing".
... <p>drag files and/or directories to the box below!</p> <div id="dropzone"> <div id="boxtitle"> drop files here </div> </div> <h2>directory tree:</h2> <ul id="
listing"> </ul> css content the styles used by the example are shown here.
...And 3 more matches
Enhanced Extension Installation - Archive of obsolete content
c:\program files\mozilla firefox\extensions extension metadata the extension system stores metadata in both of the two locations, in the following files: <location>/extensions/extensions.rdf - an xml/rdf datasource
listing all the extensions installed at that location.
... <location>/extensions.ini - an ini manifest
listing the directories for all the extensions and themes at the location (used by the component manager, preferences system, chrome registry etc to locate files during the startup process).
...on the next restart, the xredirprovider now supplies a list of directories to requesting systems
listing the new item's components, defaults and chrome manifests.
...And 2 more matches
Grids - Learn web development
change your track
listing to the following definition, creating three 1fr tracks.
... .container { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-gap: 20px; gap: 20px; } repeating track
listings you can repeat all, or a section of, your track
listing using repeat notation.
... change your track
listing to the following: .container { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 20px; } you will now get 3 1fr tracks just as before.
...And 2 more matches
NSS tools : certutil
9v2, prime239v3, c2pnb163v1, c2pnb163v2, c2pnb163v3, c2pnb176v1, c2tnb191v1, c2tnb191v2, c2tnb191v3, c2pnb208w1, c2tnb239v1, c2tnb239v2, c2tnb239v3, c2pnb272w1, c2pnb304w1, c2tnb359w1, c2pnb368w1, c2tnb431r1, secp112r1, secp112r2, secp128r1, secp128r2, sect113r1, sect113r2 sect131r1, sect131r2 -r display a certificate's binary der encoding when
listing information about that certificate with the -l option.
... certutil -g -d [sql:]directory | -h tokenname -k key-type -g key-size [- y exponent-value] -q pqgfile|curve-name for example: $ certutil -g -h lunasa -k ec -g 256 -q sect193r2
listing certificates the -l command option lists all of the certificates listed in the certificate database.
...ufaaocaqeai8gk l3xo43u7/tdoeeswpmq+jzsdz3gz85ajt3krolwekvzzza2e2hnsvf2uxbk5amke lrxdserh9g85pv4ky7z8xz71nri3+k3uwmnqkc6t0hhyb1mw/gx8oaaoluqx3bix jbdxji73cf7xuopplhbjjiwygijuo8bezj5l+tf4p38mjz1snltzzpeax5bl0u76 bfu/tzfwbbe8yawytkctmcalbpj6jn2wd3m01kgozw4mmbvsj1crb9hnsgsqyhcu u0ujll1h/rwcjn607+ctekh9jlmuqciqpjnoa+kq/6f7nhnrriuzasibzc30bz5a ni7q5n1usm3ewqlvxw== -----end certificate-----
listing keys keys are the original material used to encrypt certificate data.
...And 2 more matches
certutil
-r display a certificate's binary der encoding when
listing information about that certificate with the -l option.
... certutil -g -d [sql:]directory | -h tokenname -k key-type -g key-size [-y exponent-value] -q pqgfile|curve-name for example: $ certutil -g -h lunasa -k ec -g 256 -q sect193r2
listing certificates the -l command option lists all of the certificates listed in the certificate database.
...aqufaaocaqeai8gk l3xo43u7/tdoeeswpmq+jzsdz3gz85ajt3krolwekvzzza2e2hnsvf2uxbk5amke lrxdserh9g85pv4ky7z8xz71nri3+k3uwmnqkc6t0hhyb1mw/gx8oaaoluqx3bix jbdxji73cf7xuopplhbjjiwygijuo8bezj5l+tf4p38mjz1snltzzpeax5bl0u76 bfu/tzfwbbe8yawytkctmcalbpj6jn2wd3m01kgozw4mmbvsj1crb9hnsgsqyhcu u0ujll1h/rwcjn607+ctekh9jlmuqciqpjnoa+kq/6f7nhnrriuzasibzc30bz5a ni7q5n1usm3ewqlvxw== -----end certificate-----
listing keys keys are the original material used to encrypt certificate data.
...And 2 more matches
Adobe Flash - Archive of obsolete content
a complete code
listing which expands on the above approach can be found in the flashversion.js file used in the samples.
... var myflash = document.getelementbyid("myflash").setvariable("myvar", sendtext); a more expanded code example that shows how example 2 was created is shown in this source
listing.
...} in the above code
listing, the javascript function handles what flash sends it, and is named the same as the embed element's name attribute, concatenated with "_dofscommand".
... the source
listing flash-to-js.html shows a source for this example.
NSS Tools certutil-tasks
improve certificate
listings.
... allow
listing and lookup of keys by index and nickname.
... (bugfix)
listing provate keys does not work: requires password authentication.
... (bugfix)
listing certificate extensions has typos and does not provide much information.
NSS tools : signtool
extended examples the following example will do this and that
listing available signing certificates you use the -l option to list the nicknames for all available certificates and check which ones are signing certificates.
... using the -m option to list smart cards you can use the -m option to list the pkcs #11 modules, including smart cards, that are available to signtool: signtool -d "c:\netscape\users\jsmith" -m using certificate directory: c:\netscape\users\username
listing of pkcs11 modules ----------------------------------------------- 1.
... signtool -d "c:\netscape\users\jsmith" -m using certificate directory: c:\netscape\users\jsmith
listing of pkcs11 modules ----------------------------------------------- 1.
...ser private key and certificate services token: communicator certificate db ----------------------------------------------- this unix example shows that netscape signing tool is using a fips-140-1 module: signtool -d "c:\netscape\users\jsmith" -m using certificate directory: c:\netscape\users\jsmith enter password or pin for "communicator certificate db": [password will not echo]
listing of pkcs11 modules ----------------------------------------------- 1.
Thread Sanitizer
compile-time black
listing functions with racy memory access can be flagged, such that the compiler will not instrument them.
...compile-time black
listing is the preferred way of black
listing, because it does not have a performance impact.
... still, black
listing should be done very carefully so we won't miss important bugs.
...however, unlike compile-time black
listing, runtime suppressions do have a performance impact, especially if the race in question keeps showing up a lot.
Reference - Archive of obsolete content
--jonnyq i've already added those methods in the methods
listing, but i haven't defined them yet.
... make a footnote on each page, pointing to a page
listing "hot new javascript features", which in turn points to 1 page for 1.6, 1 page for 1.7, etc.,
listing all the differences from one version to the next ?
... make a footnote on each page, pointing to a page
listing "hot new javascript features", which lists all the differences between the current latest version, and the documented 1.5 version ?
Organizing your CSS - Learn web development
/* || store pages */ .product-
listing { ...
... for example, we might have an online store as part of the site, with a lot of css used only for styling the product
listings and forms needed for the store.
...it's a pattern we see all over websites for comments,
listings, and so on.
Index
675 creating an appealing add-on
listing add-ons, beginner, guide, webextension, publishing there are two essential steps to getting people to use your add-on: they need to discover your add-on and open the
listing page, then the
listing page needs to encourage them to click the add to firefox button.
... the content you add to a
listing is therefore vital: from making effective use of keywords in your descriptions, to get visibility in external search engine results, through having an icon that attracts a user’s attention from a category list, to screenshots that show how useful your add-on is.
... 679 promoting your extension or theme add-ons, extensions, promotion, themes, webextensions, distribution so you’ve written a great extension, but only a few people have found and installed it from addons.mozilla.org—despite your efforts to create an appealing
listing.
How to Report a Hung Firefox
type "about:crashes" in the url bar and click on the top
listing.
...type "about:crashes" in the url bar and click on the top
listing.
...type "about:crashes" in the url bar and click on the top
listing.
NSS tools : modutil
modutil -list [modulename] -dbdir [sql:]directory
listing the modules shows the module name, their status, and other associated security databases for certificates and keys.
... for example: modutil -list -dbdir sql:/home/my/sharednssdb
listing of pkcs #11 modules ----------------------------------------------------------- 1.
...these new databases provide more accessibility and performance: o cert9.db for certificates o key4.db for keys o pkcs11.txt, which is
listing of all of the pkcs #11 modules contained in a new subdirectory in the security databases directory because the sqlite databases are designed to be shared, these are the shared database type.
NSS Tools certutil
-r display a certificate's binary der encoding when
listing information about that certificate with the -l option.
...] [-r] [-a] -v -n certname -b validity-time -u certusage [-e] [-l] [-d certdir ] -m -n certname -t trustargs [-d certdir ] -h creating a new cert8.db file: creating a new certificate and adding it to the database with one command: making a separate certificate request: creating a new binary certificate from a binary certificate request: adding a certificate to an existing database:
listing all certificates or a named certificate: validating a certificate: modifying a certificate's trust attribute: displaying a list of the options and arguments used by the certificate database tool: examples creating a new certificate database this example creates a new certificate database (cert8.db file) in the specified directory: certutil -n -d certdir you must generate the associated k...
...
listing certificates in a database this example lists all the certificates in the cert8.db file in the specified directory: certutil -l -d certdir the certificate database tool displays output similar to the following: certificate name trust attributes uptime group plc.
NSS tools : modutil
modutil -list [modulename] -dbdir [sql:]directory
listing the modules shows the module name, their status, and other associated security databases for certificates and keys.
... for example: modutil -list -dbdir sql:/home/my/sharednssdb
listing of pkcs #11 modules ----------------------------------------------------------- 1.
...these new databases provide more accessibility and performance: o cert9.db for certificates o key4.db for keys o pkcs11.txt, which is
listing of all of the pkcs #11 modules contained in a new subdirectory in the security databases directory because the sqlite databases are designed to be shared, these are the shared database type.
Starting WebLock
ng &previous); if (previous) nsmemory::free(previous); // free the memory the replaced value might have used the unregistration, which should occur in the unregistration callback, looks like this: rv = catman->deletecategoryentry("xpcom-startup", "weblock", pr_true); // persist a complete code
listing for registering weblock as a startup observer follows: #define mozilla_strict_api #include "nsigenericfactory.h" #include "nscomptr.h" #include "nsxpcom.h" #include "nsiservicemanager.h" #include "nsicategorymanager.h" #include "nsmemory.h" #include "nsiobserver.h" #include "nsembedstring.h" #define weblock_cid \ { 0x777f7150, 0x4a2b, 0x4301, \ { 0xad, 0x10, 0x5e, 0xab, 0x25, 0xb3, 0x22, 0...
...you must know the string key (or property) that refers to the location you are interested in, which is published in the file nsdirectoryservicedefs.h that comes with the gecko sdk (for a
listing of these locations, see the xpcom api reference).
...on windows or linux, for example, it is possible to multiply a print64 by a long like this: print64 x = 1, y = 2; y = x * 2; however, this same snippet will not compile on a platform like macintosh os 9, where you need to use macros to perform the calculation: print64 x, y, two; ll_i2l(x, 1); ll_i2l(y, 2); ll_i2l(two, 2); ll_mul(y, x, two); a full
listing of nspr's long long support can be found at http://www.mozilla.org/projects/nspr/.
console - Web APIs
console.dir() displays an interactive
listing of the properties of a specified javascript object.
... this
listing lets you use disclosure triangles to examine the contents of child objects.
... outputting a single object the simplest way to use the logging methods is to output a single object: var someobject = { str: "some text", id: 5 }; console.log(someobject); the output looks something like this: [09:27:13.475] ({str:"some text", id:5}) outputting multiple objects you can also output multiple objects by simply
listing them when calling the logging method, like this: var car = "dodge charger"; var someobject = { str: "some text", id: 5 }; console.info("my first car was a", car, ".
Auto-placement in CSS Grid Layout - CSS: Cascading Style Sheets
</div> <div>five</div> </div> .wrapper { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 10px; grid-auto-rows: minmax(100px, auto); } you can also pass in a track
listing, this will repeat.
... the following track
listing will create an initial implicit row track as 100 pixels and a second as 200px.
...that could be items that do not have a logical order such as a gallery of photos, or product
listing.
Basic Concepts of grid layout - CSS: Cascading Style Sheets
.wrapper { display: grid; grid-template-columns: 500px 1fr 2fr; } track
listings with repeat() notation large grids with many tracks can use the repeat() notation, to repeat all or a section of the track
listing.
... for example the grid definition: .wrapper { display: grid; grid-template-columns: 1fr 1fr 1fr; } can also be written as: .wrapper { display: grid; grid-template-columns: repeat(3, 1fr); } repeat notation can be used for a part of the track
listing.
... .wrapper { display: grid; grid-template-columns: 20px repeat(6, 1fr) 20px; } repeat notation takes the track
listing, and uses it to create a repeating pattern of tracks.
New Security Model for Web Services - Archive of obsolete content
white-
listing by creating a white list of trusted uris from which scripts are trusted to not compromise internal resources, it is possible to release domains from the stricter same-source sandbox.
...this could be combined with the other options above such as white
listing, signed scripts, etc.
Creating XPI Installer Modules - Archive of obsolete content
in the following
listing, the items in red are particular to the barley package and can be edited for your own distribution: <?xml version="1.0"?> <rdf:rdf xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:chrome="http://www.mozilla.org/rdf/chrome#"> <!-- list all the packages being supplied --> <rdf:seq about="urn:mozilla:package:root"> <rdf:li resource="urn:mozilla:package:barley"/> </rdf:seq> <!-...
...- package information --> <rdf:description about="urn:mozilla:package:barley" chrome:displayname="barley grain" chrome:author="ian oeschger" chrome:name="barley"> </rdf:description> </rdf:rdf> create a contents.rdf file like the one in the
listing above and put it in the content/ subdirectory with the other package resources.
Windows Media in Netscape - Archive of obsolete content
example 1: client-side detection scripts browser architecture supports: netscapeplugin windows media player installed: true windows media scriptable: false windows media version: pluginversion a complete source code
listing showing how that detection was done can be found here (devedge-temp).
...the code
listing below provides a mechanism to to this.
Command line crash course - Learn web development
listing directory contents another built-in unix command is ls (short for list), which lists the contents of the directory you’re currently in.
... for example, give this a go and see what you get: ls -l in the case of ls, the -l (dash ell) option gives you a
listing with one file or directory on each line, and a lot more information shown.
Using the Browser API
you can see the full html
listing here.
... the javascript implementation to wire up the functionality required by our simple browser, we've written some basic javascript (see the full javascript
listing.) wiring 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.goback() and htmliframeelement.goforward() methods.
TraceMalloc
if you run with --trace-malloc -, your code can call ns_tracemallocdumpallocations(pathname) at opportune times, and a human-readable
listing of the current heap, including stack traces for every allocation, will be written to pathname.
... tracemallocdumpallocations(pathname) - dump a human-readable
listing of all traced, live allocations.
NSS 3.34 release notes
new in nss 3.34 new functionality when
listing an nss database.
... using certutil -l, and the database hasn't yet been initialized with any non-empty or empty password, the text "database needs user init" will be included in the
listing.
NSS tools : pk12util
pk12util -o p12file -n certname [-c keycipher] [-c certcipher] [-m|--key_len keylen] [-n|--cert_key_len certkeylen] [-d [sql:]directory] [-p dbprefix] [-k slotpasswordfile|-k slotpassword] [-w p12filepasswordfile|-w p12filepassword] for example: # pk12util -o certs.p12 -n server-cert -d sql:/home/my/sharednssdb enter password for pkcs12 file: re-enter password:
listing keys and certificates the information in a .p12 file are not human-readable.
...these new databases provide more accessibility and performance: o cert9.db for certificates o key4.db for keys o pkcs11.txt, which is
listing of all of the pkcs #11 modules contained in a new subdirectory in the security databases directory because the sqlite databases are designed to be shared, these are the shared database type.
NSS Tools crlutil
-g|-m -c crl-gen-file -n nickname [-i crl] [-u url] [-d keydir] [-p dbprefix] [-l alg] [-a] [-b] -l [-n crl-name] [-d krydir] crlutil -d -n nickname [-d keydir] [-p dbprefix] crlutil -e [-d keydir] [-p dbprefix] crlutil -i -i crl [-t crltype] [-u url] [-d keydir] [-p dbprefix] [-b] creating or modifying a crl:
listing all crls or a named crl: deleting crl from db: erasing crls from db: import crl from file: examples creating a new crl
listing crls in a database deleting crl from a database importing crl into a database modifiying crl in a database creating a new crl this example creates a new crl and importing it in to a database in the specified directory: crlutil -g -d cer...
...
listing crls in a database this example lists all the crls in the nss database in the specified directory: crlutil -l -d certdir the crl management tool displays output similar to the following: crl name crl type cn=nss test ca,o=bogus nss,l=mountain view,st=california,c=us crl cn=john smith,o=netscape,l=mountain view,st=california,c=us crl to view a particular crl user should specify -n nickname parameter.
NSS tools : pk12util
pk12util -o p12file -n certname [-c keycipher] [-c certcipher] [-m|--key_len keylen] [-n|--cert_key_len certkeylen] [-d [sql:]directory] [-p dbprefix] [-k slotpasswordfile|-k slotpassword] [-w p12filepasswordfile|-w p12filepassword] for example: # pk12util -o certs.p12 -n server-cert -d sql:/home/my/sharednssdb enter password for pkcs12 file: re-enter password:
listing keys and certificates the information in a .p12 file are not human-readable.
...these new databases provide more accessibility and performance: o cert9.db for certificates o key4.db for keys o pkcs11.txt, which is
listing of all of the pkcs #11 modules contained in a new subdirectory in the security databases directory because the sqlite databases are designed to be shared, these are the shared database type.
Bytecodes
bytecode
listing all opcodes are annotated with a [-popcount, +pushcount] to represent the overall stack-effects their execution.
... bytecode
listing was moved to spidermonkey internals: bytecode descriptions page.
An Overview of XPCOM
in xpcom, all interface methods should return an nsresult error value (see the xpcom api reference for a
listing of these error codes).
...the tutorial will show each of these component and services in use, and the xpcom api reference has a complete interface
listing of these areas.
Setting up the Gecko SDK
below is a
listing for a makefile that configures your compiler to work with the sdk.
...for a
listing of the commands that appear in this
listing, see the make manual.
Using the Multiple Accounts API
by alec flett alecf@flett.org structure servers identities storage creating new accounts smtp servers appendix a:
listing of all preferences and properties structure the account system consists of: the account manager (nsimsgaccountmanager): there is a single account manager in the the client, which maintains the list of accounts, servers, etc.
... appendix a:
listing of all properties (when brendan's idldoc comes along, i'll just link to that) all preferences are strings, unless otherwise noted.
Document.forms - Web APIs
the forms read-only property of the document interface returns an htmlcollection
listing all the <form> elements contained in the document.
... syntax collection = document.forms; value an htmlcollection object
listing all of the document's forms.
HTMLFormElement - Web APIs
document.forms returns an array of htmlformelement objects
listing each of the forms on the page.
...this returns an htmlformcontrolscollection
listing all of the form's user data entry elements, both those which are descendants of the <form> and those which are made members of the form using their form attributes.
Navigator - Web APIs
navigatorplugins.mimetypes read only returns an mimetypearray
listing the mime types supported by the browser.
... navigatorplugins.plugins read only returns a pluginarray
listing the plugins installed in the browser.
NavigatorPlugins - Web APIs
properties navigatorplugins.mimetypes read only returns an mimetypearray
listing the mime types supported by the browser.
... navigatorplugins.plugins read only returns a pluginarray
listing the plugins installed in the browser.
TouchEvent.targetTouches - Web APIs
the targettouches read-only property is a touchlist
listing all the touch objects for touch points that are still in contact with the touch surface and whose touchstart event occurred inside the same target element as the current target element.
... syntax var touches = touchevent.targettouches; return value touches a touchlist
listing all the touch objects for touch points that are still in contact with the touch surface and whose touchstart event occurred inside the same target element as the current target element.
TouchEvent.touches - Web APIs
touches is a read-only touchlist
listing all the touch objects for touch points that are currently in contact with the touch surface, regardless of whether or not they've changed or what their target element was at touchstart time.
... syntax var touches = touchevent.touches; return value touches a touchlist
listing all the touch objects for touch points that are still in contact with the touch surface, regardless of whether or not they've changed or what their target element was at touchstart time.
ARIA: timer role - Accessibility
the timer role indicates to assistive technologies that an element is a numerical counter
listing the amount of elapsed time from a starting point or the remaining time until an end point.
... description the timer role indicates to assistive technologies that this part of the web content is a live region containing a timer
listing the time remaining or elapsed time.
Relationship of grid layout to other layout methods - CSS: Cascading Style Sheets
auto-filling grid tracks we can create a similar effect to flexbox, while still keeping the content arranged in strict rows and columns, by creating our track
listing using repeat notation and the auto-fill and auto-fit properties.
... in this next example, i have used the auto-fill keyword in place of an integer in the repeat notation and set the track
listing to 200 pixels.
grid-template - CSS: Cascading Style Sheets
sets grid-template-areas to the strings listed, grid-template-rows to the track sizes following each string (filling in auto for any missing sizes), and splicing in the named lines defined before/after each size, and grid-template-columns to the track
listing specified after the slash (or none, if not specified).
... note: the repeat() function isn’t allowed in these track
listings, as the tracks are intended to visually line up one-to-one with the rows/columns in the “ascii art”.
<tbody>: The Table Body element - HTML: Hypertext Markup Language
basic example in this relatively simple example, we create a table
listing information about a group of students with a <thead> and a <tbody>, with a number of rows in the body.
... let's take the previous example, add some more students to the list, and update the table so that instead of
listing each student's major on every row, the students are grouped by major, with heading rows for each major.
Want-Digest - HTTP
if want-digest does not include any digest algorithms that the server supports, the server may respond with: a digest calculated using a different digest algorithm, or a 400 bad request error, and include another want-digest header with that response,
listing the algorithms that it does support.
... unsupported digests the server does not support any of the requested digest algorithms, so uses a different algorithm: request: get /item want-digest: sha;q=1 response: http/1.1 200 ok digest: sha-256=x48e9qookqqrvdts8nojrjn3owduoywxbf7kbu9dbpe= the server does not support any of the requested digest algorithms, so responds with a 400 error and includes another want-digest header,
listing the algorithms that it does support: request: get /item want-digest: sha;q=1 response: http/1.1 400 bad request want-digest: sha-256, sha-512 specifications specification title draft-ietf-httpbis-digest-headers-latest resource digests for http this header was originally defined in rfc 3230, but the definition of "selected representation" i...
net/xhr - Archive of obsolete content
this can probably be done most securely by white-
listing the protocols that can be used in the url passed to the open() method, and limiting them to http:, https:, and possibly a special scheme that can be used to access the add-on's packaged, read-only resources.
Storing annotations - Archive of obsolete content
neditor = panels.panel({ width: 220, height: 220, contenturl: data.url('editor/annotation-editor.html'), contentscriptfile: data.url('editor/annotation-editor.js'), onmessage: function(annotationtext) { if (annotationtext) handlenewannotation(annotationtext, this.annotationanchor); annotationeditor.hide(); }, onshow: function() { this.postmessage('focus'); } });
listing stored annotations to prove that this works, let's implement the part of the add-on that displays all the previously entered annotations.
Firefox addons developer guide - Archive of obsolete content
todo: all fixme notes inside the documents; add abbreviation definition to acronyms; add some link to the internal mdc documentation when it makes sense; indent source code; make sure documentation is relevant for all platforms: gnu/linux, macos, windows; add anchor links to figures &
listings; add credits to original authors and license; completed sometimes, interfaces names are misspelled: s/nsl/nsi; talk about fuel; titles of chapters and sub-headings should have caps for first letter of each word; we should add a part about bad and good practices (leaks, global scopes, ...); add external resources (mozdev.org/community/books.html); add to chapter 3 or 5 more informations ab...
Index - Archive of obsolete content
1992 ant script to assemble an extension extensions, extensions:tools, tools this ant script helps to package an extension 1993 application/http-index-format specification necko the application/http-index-format file format is an attempt to provide a generic, extensible file
listing format that is principly machine readable.
Repackaging Firefox - Archive of obsolete content
partner.properties locale/pl/partner.properties locale/pt-br/partner.properties locale/pt-pt/partner.properties locale/ru/partner.properties locale/sk/partner.properties locale/sv-se/partner.properties locale/tr/partner.properties locale/zh-cn/partner.properties locale/zh-tw/partner.properties partner-bookmarks.xml one by one, the files listed above are: chrome.manifest contains a specialized
listing of the contents of the xpi.
Learn XPI Installer Scripting by Example - Archive of obsolete content
most installation scripts, including the one discussed here, take the following basic form (in pseudo-code and with links to the sections in which these installation steps are documented): initinstall(); if (verify_space()) { err = add_dirs_and_files; register_files; if (err==success) { performinstall() }; else { cancelinstall() }; } as you can see in the code
listing, the verification process at the top is on lines 1 to 18; the file addition process, here part of the main installation block, is on lines 24 to 41; the registration part of the main installation block is on lines 42-58; and the execution at the end of the main block is on lines 59 to 71.
Building Trees - Archive of obsolete content
untry" predicate="http://purl.org/dc/elements/1.1/title" object="?countrytitle"/> </query> <action> <treechildren> <treeitem uri="?photo"> <treerow properties="?countrytitle"> <treecell src="?photo"/> </treerow> </treeitem> </treechildren> </action> </rule> you might use the following css to change the border around rows
listing a particular country: treechildren::-moz-tree-row(netherlands) { border: green 1px solid; } the result of this example is a tree where one row has a green border around it.
CSS FAQ - Learn web development
html elements can be assigned multiple classes by
listing the classes in the class attribute, with a blank space to separate them.
Other form controls - Learn web development
once a data list is affiliated with a form widget, its options are used to auto-complete text entered by the user; typically, this is presented to the user as a drop-down box
listing possible matches for what they've typed into the input.
Looping code - Learn web development
let's rewrite our cat
listing example again to use a do...while loop: let i = 0; do { if (i === cats.length - 1) { info += 'and ' + cats[i] + '.'; } else { info += cats[i] + ', '; } i++; } while (i < cats.length); note: again, this works just the same as expected — have a look at it running live on github (also view the full source code).
Introduction to web APIs - Learn web development
this seemingly small detail has had a huge impact on the performance and behaviour of sites — if you just need to update a stock
listing or list of available new stories, doing it instantly without having to reload the whole entire page from the server can make the site or app feel much more responsive and "snappy".
Website security - Learn web development
for a comprehensive
listing of website security threats see category: web security exploits (wikipedia) and category: attack (open web application security project).
Displaying Places information using views
s> <treecol 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.
Geckoview-Junit Tests
for example: <class1>#<test1> <class2> <class3>#<test2> <class3>#<test3> to run the tests specified in the file: mozilla-central$ mach geckoview-junit --test-filters-file <path-to-filter-file> disabling one failing test there is no manifest
listing the geckoview junit tests.
Addon
nceluninstall() boolean hasresource(in string path) nsiuri getresourceuri(in string path) void getdatadirectory(in datadirectorycallback callback) required properties attribute type description appdisabled read only boolean true if this add-on cannot be used in the application based on version compatibility, dependencies, and block
listing.
Crash reporting
type about:crashes into your location bar to get a page
listing both submitted and unsubmitted crash reports.
NSS 3.33 release notes
new in nss 3.33 new functionality when
listing an nss database, using certutil -l, and the database hasn't yet been initialized with any non-empty or empty password, the text "database needs user init" will be included in the
listing.
NSS tools : crlutil
* creating or modifying a crl: crlutil -g|-m -c crl-gen-file -n nickname [-i crl] [-u url] [-d keydir] [-p dbprefix] [-l alg] [-a] [-b] *
listing all crls or a named crl: crlutil -l [-n crl-name] [-d krydir] * deleting crl from db: crlutil -d -n nickname [-d keydir] [-p dbprefix] * erasing crls from db: crlutil -e [-d keydir] [-p dbprefix] * deleting crl from db: crlutil -d -n nickname [-d keydir] [-p dbprefix] * erasing crls from db: crlutil -e [-d keydir] [-p dbprefix] * import crl from file: crlutil -i -i crl [-t cr...
NSS tools : crlutil
* creating or modifying a crl: crlutil -g|-m -c crl-gen-file -n nickname [-i crl] [-u url] [-d keydir] [-p dbprefix] [-l alg] [-a] [-b] *
listing all crls or a named crl: crlutil -l [-n crl-name] [-d krydir] * deleting crl from db: crlutil -d -n nickname [-d keydir] [-p dbprefix] * erasing crls from db: crlutil -e [-d keydir] [-p dbprefix] * deleting crl from db: crlutil -d -n nickname [-d keydir] [-p dbprefix] * erasing crls from db: crlutil -e [-d keydir] [-p dbpre...
NSS tools : signver
these new databases provide more accessibility and performance: o cert9.db for certificates o key4.db for keys o pkcs11.txt, which is
listing of all of the pkcs #11 modules contained in a new subdirectory in the security databases directory because the sqlite databases are designed to be shared, these are the shared database type.
Hacking Tips
it is followed by lines
listing each compartment within the zone.
Bytecode Descriptions
bytecode
listing this document is automatically generated from opcodes.h by make_opcode_doc.py.
Retrieving part of the bookmarks tree
complete code
listing var historyservice = components.classes["@mozilla.org/browser/nav-history-service;1"] .getservice(components.interfaces.nsinavhistoryservice); var options = historyservice.getnewqueryoptions(); var query = historyservice.getnewquery(); var bookmarksservice = components.classes["@mozilla.org/browser/nav-bookmarks-service;1"] .getserv...
extIPreferenceBranch
all readonly attribute nsivariant array of extipreference
listing all preferences in this branch.
How to build an XPCOM component in JavaScript
for a new component in firefox/thunderbird/b2g if you are adding a new feature to applications in the mozilla-central repository, you can create a makefile
listing the idl files and the build system will automatically generate the typelib.
Preface
format description bold component names appear in bold in the text monospace code
listings, interface names and members of interfaces (e.g., createinstance()) appear in monospaced font.
inIDOMUtils
return value an nsidomfontfacelist object
listing all the font faces used by the text in the range.
nsIDirIndexListener
netwerk/streamconv/public/nsidirindexlistener.idlscriptable this interface is used to receive contents of directory index
listings from a protocol.
nsINavHistoryQuery
setting this is equivalent to
listing all bookmark folders in the folders parameter.
nsMsgFolderFlagType
* (note that directories may have zero children.) */ const nsmsgfolderflagtype directory = 0x00000008; /** whether the children of this folder are currently hidden in the
listing.
Index
spam detection happens after filters are run white
listing happens after filters, but before spam detection the purge code is implemented as a search of the "junk" folder, looking for "old" message that have the proper junk status.
LDAP Support
mail compose typedown in mail compose, when typing a partial mail address, a typedown window appears
listing possible matches against address books and ldap directories.
Spam filtering
white
listing happens after filters, but before spam detection.
Demo Addon
we start with
listing all folders and marking the inbox: let server = accounts[0].incomingserver; let folder = server.rootfolder; // ...
Folders and message lists
listing messages in a folder if you have a message folder, and would like to list all the messages in that folder, you can use the .messages attribute, which returns an nsisimpleenumerator.
Plug-in Basics - Plugins
gecko displays a page
listing all installed plug-ins and the mime types they handle, as well as optional descriptive information supplied by the plug-in.
Examine Event Listeners - Firefox Developer Tools
the inspector shows the word "event" next to elements in the html pane, that have event listeners bound to them: click the icon, then you'll see a popup
listing all the event listeners bound to this element: each line contains: a right-pointing arrowhead; click to expand the row and show the listener function source code a curved arrow pointing to a stack; click it to show the code for the handler in the debugger the name of the event for which a handler was attached to this element the name and line number for the listener; you can also click here to expand the row and view the listener function source code a label indicating whether the event bubbles a label indicating the system that defines the event.
A basic ray-caster - Web APIs
=) the ray-caster the nice people here have manually copied my files up so you can take a look, and for your hacking enjoyment i've posted the individual file contents as code
listings (see below).
Console.dir() - Web APIs
the output is presented as a hierarchical
listing with disclosure triangles that let you see the contents of child objects.
Console.dirxml() - Web APIs
the output is presented as a hierarchical
listing of expandable nodes that let you see the contents of child nodes.
File.webkitRelativePath - Web APIs
html content <input type="file" id="filepicker" name="filelist" webkitdirectory multiple /> <ul id="
listing"></ul> javascript content document.getelementbyid("filepicker").addeventlistener("change", function(event) { let output = document.getelementbyid("
listing"); let files = event.target.files; for (let i=0; i<files.length; i++) { let item = document.createelement("li"); item.innerhtml = files[i].webkitrelativepath; output.appendchild(item); }; }, false); result specificat...
HTMLInputElement.webkitdirectory - Web APIs
html content <input type="file" id="filepicker" name="filelist" webkitdirectory multiple /> <ul id="
listing"></ul> javascript content document.getelementbyid("filepicker").addeventlistener("change", function(event) { let output = document.getelementbyid("
listing"); let files = event.target.files; for (let i=0; i<files.length; i++) { let item = document.createelement("li"); item.innerhtml = files[i].webkitrelativepath; output.appendchild(item); }; }, false); result specificat...
HTMLMediaElement.audioTracks - Web APIs
the read-only audiotracks property on htmlmediaelement objects returns an audiotracklist object
listing all of the audiotrack objects representing the media element's audio tracks.
HTMLMediaElement.textTracks - Web APIs
the read-only texttracks property on htmlmediaelement objects returns a texttracklist object
listing all of the texttrack objects representing the media element's text tracks, in the same order as in the list of text tracks.
HTMLMediaElement.videoTracks - Web APIs
the read-only videotracks property on htmlmediaelement objects returns a videotracklist object
listing all of the videotrack objects representing the media element's video tracks.
Checking when a deadline is due - Web APIs
switch(cursor.value.month) { case "january": var monthnumber = 0; break; case "february": var monthnumber = 1; break; // other lines removed from
listing for brevity case "december": var monthnumber = 11; break; default: alert('incorrect month entered in database.'); } the first thing we do is convert the month names we have stored in the database into a month number that javascript will understand.
Key Values - Web APIs
vk_list "livecontent" toggles a display
listing currently available live content or programs.
MIDIAccess - Web APIs
the midiaccess interface of the web midi api provides methods for
listing midi input and output devices, and obtaining access to those devices.
MediaStreamTrack.applyConstraints() - Web APIs
syntax const appliedpromise = track.applyconstraints([constraints]) parameters constraints optional a mediatrackconstraints object
listing the constraints to apply to the track's constrainable properties; any existing constraints are replaced with the new values specified, and any constrainable properties not included are restored to their default constraints.
RTCConfiguration.iceServers - Web APIs
while it can be useful to provide a second server as a fallback in case the first is offline,
listing too many servers can delay the user's connection being established, depending on the network's performance and how many servers get used for negotiation before a connection is established.
SyncManager - Web APIs
the syncmanager interface of the the serviceworker api provides an interface for registering and
listing sync registrations.
TextTrack - Web APIs
texttrack.activecues read only a texttrackcuelist object
listing the currently active set of text track cues.
Using the Web Animations API - Web APIs
we aren’t
listing an easing value here because, unlike css animations where the default animation-timing-function is ease, in the web animations api the default easing is linear — which is what we want here.
Window.frames - Web APIs
returns the window itself, which is an array-like object,
listing the direct sub-frames of the current window.
XRPermissionStatus - Web APIs
granted an array of strings
listing the names of the features for which permission has been granted as of the time at which navigator.permissions.query() was called.
XRSession.inputSources - Web APIs
syntax inputsources = xrsession.inputsources; value an xrinputsourcearray object
listing all of the currently-connected input controllers which are linked specifically to the xr device currently in use.
-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.
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.
Subgrid - CSS: Cascading Style Sheets
if you set the value subgrid on grid-template-columns, grid-template-rows or both, instead of creating a new track
listing the nested grid uses the tracks defined on the parent.
Using CSS transitions - CSS: Cascading Style Sheets
css transitions let you decide which properties to animate (by
listing them explicitly), when the animation will start (by setting a delay), how long the transition will last (by setting a duration), and how the transition will run (by defining a timing function, e.g.
<input type="file"> - HTML: Hypertext Markup Language
additional attributes in addition to the common attributes shared by all <input> elements, inputs of type file also support the following attributes: attribute description accept one or more unique file type specifiers describing file types to allow capture what source to use for capturing image or video data files a filelist
listing the chosen files multiple a boolean which, if present, indicates that the user may choose more than one file accept the accept attribute value is a string that defines the file types the file input should accept.
Microformats - HTML: Hypertext Markup Language
h-event is often used with both event
listings and individual event pages <div class="h-event"> <h1 class="p-name">microformats meetup</h1> <p>from <time class="dt-start" datetime="2013-06-30 12:00">30<sup>th</sup> june 2013, 12:00</time> to <time class="dt-end" datetime="2013-06-30 18:00">18:00</time> at <span class="p-location">some bar in sf</span></p> <p class="p-summary">get together and discuss all things microformats-rel...
HTML: Hypertext Markup Language
related topics applying color to html elements using css this article covers most of the ways you use css to add color to html content,
listing what parts of html documents can be colored and what css properties to use when doing so.
Access-Control-Allow-Headers - HTTP
access-control-allow-headers: x-custom-header, upgrade-insecure-requests bypassing additional restrictions although cors-safelisted request headers are always allowed and don't usually need to be listed in access-control-allow-headers,
listing them anyway will circumvent the additional restrictions that apply.
Index - HTTP
11 access-control-expose-headers cors, http, reference, header the access-control-expose-headers response header indicates which headers can be exposed as part of the response by
listing their names.
Upgrade - HTTP
for example, the client might send a get request as shown,
listing the preferred protocols to switch to (in this case "example/1" and "foo/2"): get /index.html http/1.1 host: www.example.com connection: upgrade upgrade: example/1, foo/2 note: connection: upgrade must be set whenever upgrade is sent.
HTTP headers - HTTP
access-control-expose-headers indicates which headers can be exposed as part of the response by
listing their names.
HTTP Index - HTTP
59 access-control-expose-headers cors, http, reference, header the access-control-expose-headers response header indicates which headers can be exposed as part of the response by
listing their names.
Add to Home screen - Progressive web apps (PWAs)
hey, at least it isn't cats.", "display": "fullscreen", "icons": [ { "src": "icon/fox-icon.png", "sizes": "192x192", "type": "image/png" } ], "name": "awesome fox pictures", "short_name": "foxes", "start_url": "/pwa-examples/a2hs/index.html" } appropriate icon as shown in the above manifest
listing, we are including a 192 x 192 px icon for use in our app.